From 3f35ac66a8dcc14e2b68bae347931e76ff68623f Mon Sep 17 00:00:00 2001 From: Sidharth Date: Tue, 3 Sep 2024 17:24:24 +0530 Subject: [PATCH] (clean) : main stuff --- .../libraries/main/jsonnetfile.json | 15 - .../libraries/main/jsonnetfile.lock.json | 231 - .../libraries/main/vendor/alertmanager | 1 - .../libraries/main/vendor/doc-util | 1 - .../grafana/grafana.libsonnet | 377 - .../grafana/jsonnetfile.json | 15 - .../etcd-io/etcd/contrib/mixin/.gitignore | 1 - .../etcd-io/etcd/contrib/mixin/.lint | 18 - .../etcd-io/etcd/contrib/mixin/Makefile | 27 - .../etcd-io/etcd/contrib/mixin/OWNERS | 4 - .../etcd-io/etcd/contrib/mixin/README.md | 39 - .../contrib/mixin/alerts/alerts.libsonnet | 240 - .../etcd/contrib/mixin/config.libsonnet | 26 - .../mixin/dashboards/dashboards.libsonnet | 2 - .../mixin/dashboards/etcd-grafana7x.libsonnet | 1186 -- .../contrib/mixin/dashboards/etcd.libsonnet | 40 - .../etcd/contrib/mixin/dashboards/g.libsonnet | 1 - .../contrib/mixin/dashboards/panels.libsonnet | 59 - .../mixin/dashboards/targets.libsonnet | 104 - .../mixin/dashboards/variables.libsonnet | 21 - .../etcd/contrib/mixin/jsonnetfile.json | 15 - .../etcd/contrib/mixin/jsonnetfile.lock.json | 36 - .../etcd/contrib/mixin/mixin.libsonnet | 3 - .../etcd-io/etcd/contrib/mixin/test.yaml | 157 - .../grafana/grafana/grafana-mixin/.gitignore | 3 - .../grafana/grafana/grafana-mixin/Makefile | 13 - .../grafana/grafana/grafana-mixin/README.md | 28 - .../grafana-mixin/alerts/alerts.libsonnet | 31 - .../dashboards/dashboards.libsonnet | 5 - .../dashboards/grafana-overview.json | 535 - .../grafana/grafana-mixin/mixin.libsonnet | 3 - .../grafana-mixin/rules/rules.libsonnet | 17 - .../grafana/grafana-mixin/scripts/build.sh | 6 - .../grafana/grafana-mixin/scripts/common.sh | 1 - .../grafana/grafana-mixin/scripts/format.sh | 9 - .../grafana/grafana-mixin/scripts/lint.sh | 13 - .../grafonnet-lib/grafonnet-7.0/DOCS.md | 885 -- .../grafonnet-7.0/dashboard.libsonnet | 87 - .../grafonnet-7.0/grafana.libsonnet | 21 - .../grafonnet-7.0/panel/gauge.libsonnet | 138 - .../grafonnet-7.0/panel/graph.libsonnet | 257 - .../grafonnet-7.0/panel/row.libsonnet | 45 - .../grafonnet-7.0/panel/stat.libsonnet | 142 - .../grafonnet-7.0/panel/table.libsonnet | 134 - .../grafonnet-7.0/panel/text.libsonnet | 58 - .../grafonnet-7.0/target/prometheus.libsonnet | 21 - .../grafonnet-7.0/template/custom.libsonnet | 36 - .../template/datasource.libsonnet | 36 - .../grafonnet-7.0/template/query.libsonnet | 52 - .../grafonnet/alert_condition.libsonnet | 47 - .../grafonnet/alertlist.libsonnet | 43 - .../grafonnet/annotation.libsonnet | 40 - .../grafonnet/bar_gauge_panel.libsonnet | 47 - .../grafonnet/cloudmonitoring.libsonnet | 57 - .../grafonnet/cloudwatch.libsonnet | 51 - .../grafonnet/dashboard.libsonnet | 181 - .../grafonnet/dashlist.libsonnet | 41 - .../grafonnet/elasticsearch.libsonnet | 51 - .../grafonnet/gauge_panel.libsonnet | 211 - .../grafonnet-lib/grafonnet/grafana.libsonnet | 32 - .../grafonnet/graph_panel.libsonnet | 313 - .../grafonnet/graphite.libsonnet | 29 - .../grafonnet/heatmap_panel.libsonnet | 150 - .../grafonnet/influxdb.libsonnet | 104 - .../grafonnet-lib/grafonnet/link.libsonnet | 39 - .../grafonnet/log_panel.libsonnet | 56 - .../grafonnet-lib/grafonnet/loki.libsonnet | 22 - .../grafonnet/pie_chart_panel.libsonnet | 72 - .../grafonnet/pluginlist.libsonnet | 23 - .../grafonnet/prometheus.libsonnet | 38 - .../grafonnet-lib/grafonnet/row.libsonnet | 47 - .../grafonnet/singlestat.libsonnet | 181 - .../grafonnet-lib/grafonnet/sql.libsonnet | 23 - .../grafonnet/stat_panel.libsonnet | 222 - .../grafonnet/table_panel.libsonnet | 91 - .../grafonnet/template.libsonnet | 289 - .../grafonnet-lib/grafonnet/text.libsonnet | 43 - .../grafonnet/timepicker.libsonnet | 40 - .../grafonnet/transformation.libsonnet | 12 - .../gen/grafonnet-latest/jsonnetfile.json | 15 - .../gen/grafonnet-latest/main.libsonnet | 1 - .../gen/grafonnet-v10.0.0/alerting.libsonnet | 9 - .../clean/alerting/contactPoint.libsonnet | 33 - .../clean/alerting/messageTemplate.libsonnet | 12 - .../clean/alerting/muteTiming.libsonnet | 113 - .../alerting/notificationPolicy.libsonnet | 97 - .../clean/alerting/ruleGroup.libsonnet | 135 - .../clean/dashboard.libsonnet | 507 - .../grafonnet-v10.0.0/clean/panel.libsonnet | 781 -- .../clean/panel/alertGroups.libsonnet | 40 - .../clean/panel/alertList.libsonnet | 341 - .../clean/panel/annotationsList.libsonnet | 94 - .../clean/panel/barChart.libsonnet | 527 - .../clean/panel/barGauge.libsonnet | 150 - .../clean/panel/candlestick.libsonnet | 19 - .../clean/panel/canvas.libsonnet | 19 - .../clean/panel/dashboardList.libsonnet | 94 - .../clean/panel/datagrid.libsonnet | 28 - .../clean/panel/debug.libsonnet | 67 - .../clean/panel/gauge.libsonnet | 132 - .../clean/panel/geomap.libsonnet | 462 - .../clean/panel/heatmap.libsonnet | 864 -- .../clean/panel/histogram.libsonnet | 407 - .../clean/panel/logs.libsonnet | 70 - .../clean/panel/news.libsonnet | 34 - .../clean/panel/nodeGraph.libsonnet | 118 - .../clean/panel/pieChart.libsonnet | 364 - .../clean/panel/stat.libsonnet | 144 - .../clean/panel/stateTimeline.libsonnet | 282 - .../clean/panel/statusHistory.libsonnet | 276 - .../clean/panel/table.libsonnet | 1206 -- .../clean/panel/text.libsonnet | 73 - .../clean/panel/timeSeries.libsonnet | 704 - .../clean/panel/trend.libsonnet | 692 - .../clean/panel/xyChart.libsonnet | 500 - .../clean/query/loki.libsonnet | 49 - .../clean/query/prometheus.libsonnet | 53 - .../clean/query/tempo.libsonnet | 99 - .../custom/alerting/contactPoint.libsonnet | 12 - .../custom/alerting/muteTiming.libsonnet | 8 - .../alerting/notificationPolicy.libsonnet | 12 - .../custom/alerting/ruleGroup.libsonnet | 13 - .../custom/dashboard.libsonnet | 64 - .../custom/dashboard/annotation.libsonnet | 36 - .../custom/dashboard/link.libsonnet | 90 - .../custom/dashboard/variable.libsonnet | 516 - .../grafonnet-v10.0.0/custom/panel.libsonnet | 171 - .../custom/query/loki.libsonnet | 27 - .../custom/query/prometheus.libsonnet | 47 - .../custom/query/tempo.libsonnet | 29 - .../grafonnet-v10.0.0/custom/row.libsonnet | 26 - .../custom/util/dashboard.libsonnet | 55 - .../custom/util/grid.libsonnet | 173 - .../custom/util/main.libsonnet | 9 - .../custom/util/panel.libsonnet | 321 - .../custom/util/string.libsonnet | 27 - .../gen/grafonnet-v10.0.0/docs/README.md | 29 - .../docs/alerting/contactPoint.md | 100 - .../grafonnet-v10.0.0/docs/alerting/index.md | 11 - .../docs/alerting/messageTemplate.md | 32 - .../docs/alerting/muteTiming/index.md | 48 - .../alerting/muteTiming/interval/index.md | 144 - .../alerting/muteTiming/interval/times.md | 32 - .../docs/alerting/notificationPolicy/index.md | 173 - .../alerting/notificationPolicy/matcher.md | 45 - .../docs/alerting/ruleGroup/index.md | 72 - .../docs/alerting/ruleGroup/rule/data.md | 128 - .../docs/alerting/ruleGroup/rule/index.md | 161 - .../docs/dashboard/annotation.md | 285 - .../grafonnet-v10.0.0/docs/dashboard/index.md | 495 - .../grafonnet-v10.0.0/docs/dashboard/link.md | 195 - .../docs/dashboard/variable.md | 1042 -- .../grafonnet-v10.0.0/docs/librarypanel.md | 334 - .../docs/panel/alertGroups/index.md | 605 - .../panel/alertGroups/panelOptions/link.md | 145 - .../queryOptions/transformation.md | 99 - .../alertGroups/standardOptions/mapping.md | 469 - .../alertGroups/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../docs/panel/alertList/index.md | 1136 -- .../docs/panel/alertList/panelOptions/link.md | 145 - .../alertList/queryOptions/transformation.md | 99 - .../alertList/standardOptions/mapping.md | 469 - .../alertList/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../docs/panel/annotationsList/index.md | 709 - .../annotationsList/panelOptions/link.md | 145 - .../queryOptions/transformation.md | 99 - .../standardOptions/mapping.md | 469 - .../standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../docs/panel/barChart/index.md | 1305 -- .../docs/panel/barChart/panelOptions/link.md | 145 - .../barChart/queryOptions/transformation.md | 99 - .../panel/barChart/standardOptions/mapping.md | 469 - .../barChart/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../docs/panel/barGauge/index.md | 788 -- .../docs/panel/barGauge/panelOptions/link.md | 145 - .../barGauge/queryOptions/transformation.md | 99 - .../panel/barGauge/standardOptions/mapping.md | 469 - .../barGauge/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../docs/panel/candlestick/index.md | 564 - .../panel/candlestick/panelOptions/link.md | 145 - .../queryOptions/transformation.md | 99 - .../candlestick/standardOptions/mapping.md | 469 - .../candlestick/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../docs/panel/canvas/index.md | 564 - .../docs/panel/canvas/panelOptions/link.md | 145 - .../canvas/queryOptions/transformation.md | 99 - .../panel/canvas/standardOptions/mapping.md | 469 - .../panel/canvas/standardOptions/override.md | 244 - .../canvas/standardOptions/threshold/step.md | 60 - .../docs/panel/dashboardList/index.md | 708 - .../panel/dashboardList/panelOptions/link.md | 145 - .../queryOptions/transformation.md | 99 - .../dashboardList/standardOptions/mapping.md | 469 - .../dashboardList/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../docs/panel/datagrid/index.md | 581 - .../docs/panel/datagrid/panelOptions/link.md | 145 - .../datagrid/queryOptions/transformation.md | 99 - .../panel/datagrid/standardOptions/mapping.md | 469 - .../datagrid/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../docs/panel/debug/index.md | 648 - .../docs/panel/debug/panelOptions/link.md | 145 - .../debug/queryOptions/transformation.md | 99 - .../panel/debug/standardOptions/mapping.md | 469 - .../panel/debug/standardOptions/override.md | 244 - .../debug/standardOptions/threshold/step.md | 60 - .../docs/panel/gauge/index.md | 748 -- .../docs/panel/gauge/panelOptions/link.md | 145 - .../gauge/queryOptions/transformation.md | 99 - .../panel/gauge/standardOptions/mapping.md | 469 - .../panel/gauge/standardOptions/override.md | 244 - .../gauge/standardOptions/threshold/step.md | 60 - .../docs/panel/geomap/index.md | 1123 -- .../docs/panel/geomap/options/layers.md | 196 - .../docs/panel/geomap/panelOptions/link.md | 145 - .../geomap/queryOptions/transformation.md | 99 - .../panel/geomap/standardOptions/mapping.md | 469 - .../panel/geomap/standardOptions/override.md | 244 - .../geomap/standardOptions/threshold/step.md | 60 - .../docs/panel/heatmap/index.md | 1804 --- .../docs/panel/heatmap/panelOptions/link.md | 145 - .../heatmap/queryOptions/transformation.md | 99 - .../panel/heatmap/standardOptions/mapping.md | 469 - .../panel/heatmap/standardOptions/override.md | 244 - .../heatmap/standardOptions/threshold/step.md | 60 - .../docs/panel/histogram/index.md | 1098 -- .../docs/panel/histogram/panelOptions/link.md | 145 - .../histogram/queryOptions/transformation.md | 99 - .../histogram/standardOptions/mapping.md | 469 - .../histogram/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../gen/grafonnet-v10.0.0/docs/panel/index.md | 33 - .../docs/panel/logs/index.md | 672 - .../docs/panel/logs/panelOptions/link.md | 145 - .../panel/logs/queryOptions/transformation.md | 99 - .../panel/logs/standardOptions/mapping.md | 469 - .../panel/logs/standardOptions/override.md | 244 - .../logs/standardOptions/threshold/step.md | 60 - .../docs/panel/news/index.md | 593 - .../docs/panel/news/panelOptions/link.md | 145 - .../panel/news/queryOptions/transformation.md | 99 - .../panel/news/standardOptions/mapping.md | 469 - .../panel/news/standardOptions/override.md | 244 - .../news/standardOptions/threshold/step.md | 60 - .../docs/panel/nodeGraph/index.md | 697 - .../panel/nodeGraph/options/nodes/arcs.md | 33 - .../docs/panel/nodeGraph/panelOptions/link.md | 145 - .../nodeGraph/queryOptions/transformation.md | 99 - .../nodeGraph/standardOptions/mapping.md | 469 - .../nodeGraph/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../docs/panel/pieChart/index.md | 1071 -- .../docs/panel/pieChart/panelOptions/link.md | 145 - .../pieChart/queryOptions/transformation.md | 99 - .../panel/pieChart/standardOptions/mapping.md | 469 - .../pieChart/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../gen/grafonnet-v10.0.0/docs/panel/row.md | 178 - .../docs/panel/stat/index.md | 774 -- .../docs/panel/stat/panelOptions/link.md | 145 - .../panel/stat/queryOptions/transformation.md | 99 - .../panel/stat/standardOptions/mapping.md | 469 - .../panel/stat/standardOptions/override.md | 244 - .../stat/standardOptions/threshold/step.md | 60 - .../docs/panel/stateTimeline/index.md | 956 -- .../panel/stateTimeline/panelOptions/link.md | 145 - .../queryOptions/transformation.md | 99 - .../stateTimeline/standardOptions/mapping.md | 469 - .../stateTimeline/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../docs/panel/statusHistory/index.md | 944 -- .../panel/statusHistory/panelOptions/link.md | 145 - .../queryOptions/transformation.md | 99 - .../statusHistory/standardOptions/mapping.md | 469 - .../statusHistory/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../docs/panel/table/index.md | 1830 --- .../docs/panel/table/options/sortBy.md | 34 - .../docs/panel/table/panelOptions/link.md | 145 - .../table/queryOptions/transformation.md | 99 - .../panel/table/standardOptions/mapping.md | 469 - .../panel/table/standardOptions/override.md | 244 - .../table/standardOptions/threshold/step.md | 60 - .../docs/panel/text/index.md | 662 - .../docs/panel/text/panelOptions/link.md | 145 - .../panel/text/queryOptions/transformation.md | 99 - .../panel/text/standardOptions/mapping.md | 469 - .../panel/text/standardOptions/override.md | 244 - .../text/standardOptions/threshold/step.md | 60 - .../docs/panel/timeSeries/index.md | 1430 -- .../panel/timeSeries/panelOptions/link.md | 145 - .../timeSeries/queryOptions/transformation.md | 99 - .../timeSeries/standardOptions/mapping.md | 469 - .../timeSeries/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 60 - .../docs/panel/trend/index.md | 1418 -- .../docs/panel/trend/panelOptions/link.md | 145 - .../trend/queryOptions/transformation.md | 99 - .../panel/trend/standardOptions/mapping.md | 469 - .../panel/trend/standardOptions/override.md | 244 - .../trend/standardOptions/threshold/step.md | 60 - .../docs/panel/xyChart/index.md | 891 -- .../docs/panel/xyChart/options/series.md | 638 - .../docs/panel/xyChart/panelOptions/link.md | 145 - .../xyChart/queryOptions/transformation.md | 99 - .../panel/xyChart/standardOptions/mapping.md | 469 - .../panel/xyChart/standardOptions/override.md | 244 - .../xyChart/standardOptions/threshold/step.md | 60 - .../grafonnet-v10.0.0/docs/playlist/index.md | 78 - .../grafonnet-v10.0.0/docs/playlist/items.md | 53 - .../gen/grafonnet-v10.0.0/docs/preferences.md | 110 - .../grafonnet-v10.0.0/docs/publicdashboard.md | 84 - .../azureMonitor/dimensionFilters.md | 69 - .../azureMonitor/azureMonitor/resources.md | 68 - .../query/azureMonitor/azureTraces/filters.md | 57 - .../docs/query/azureMonitor/index.md | 1502 --- .../CloudWatchLogsQuery/logGroups.md | 57 - .../parameters.md | 32 - .../sql/orderBy/parameters.md | 32 - .../sql/select/parameters.md | 32 - .../docs/query/cloudWatch/index.md | 1272 -- .../bucketAggs/Filters/settings/filters.md | 32 - .../query/elasticsearch/bucketAggs/index.md | 585 - .../docs/query/elasticsearch/index.md | 155 - .../BucketScript/pipelineVariables.md | 32 - .../BucketScript/pipelineVariables.md | 32 - .../docs/query/elasticsearch/metrics/index.md | 2616 ---- .../docs/query/grafanaPyroscope.md | 127 - .../gen/grafonnet-v10.0.0/docs/query/index.md | 15 - .../gen/grafonnet-v10.0.0/docs/query/loki.md | 163 - .../gen/grafonnet-v10.0.0/docs/query/parca.md | 91 - .../docs/query/prometheus.md | 177 - .../docs/query/tempo/filters.md | 94 - .../docs/query/tempo/index.md | 201 - .../docs/query/testData/csvWave.md | 56 - .../docs/query/testData/index.md | 760 -- .../grafonnet-v10.0.0/docs/serviceaccount.md | 157 - .../gen/grafonnet-v10.0.0/docs/team.md | 105 - .../gen/grafonnet-v10.0.0/docs/util.md | 285 - .../gen/grafonnet-v10.0.0/jsonnetfile.json | 24 - .../gen/grafonnet-v10.0.0/main.libsonnet | 24 - .../gen/grafonnet-v10.0.0/panel.libsonnet | 31 - .../gen/grafonnet-v10.0.0/query.libsonnet | 13 - .../raw/alerting/contactPoint.libsonnet | 32 - .../raw/alerting/messageTemplate.libsonnet | 16 - .../raw/alerting/muteTiming.libsonnet | 112 - .../raw/alerting/notificationPolicy.libsonnet | 146 - .../raw/alerting/ruleGroup.libsonnet | 163 - .../grafonnet-v10.0.0/raw/dashboard.libsonnet | 607 - .../raw/librarypanel.libsonnet | 159 - .../gen/grafonnet-v10.0.0/raw/panel.libsonnet | 941 -- .../raw/panel/alertGroups.libsonnet | 37 - .../raw/panel/alertList.libsonnet | 338 - .../raw/panel/annotationsList.libsonnet | 91 - .../raw/panel/barChart.libsonnet | 562 - .../raw/panel/barGauge.libsonnet | 147 - .../raw/panel/candlestick.libsonnet | 8 - .../raw/panel/canvas.libsonnet | 8 - .../raw/panel/dashboardList.libsonnet | 91 - .../raw/panel/datagrid.libsonnet | 25 - .../raw/panel/debug.libsonnet | 97 - .../raw/panel/gauge.libsonnet | 129 - .../raw/panel/geomap.libsonnet | 608 - .../raw/panel/heatmap.libsonnet | 1226 -- .../raw/panel/histogram.libsonnet | 442 - .../raw/panel/logs.libsonnet | 67 - .../raw/panel/news.libsonnet | 31 - .../raw/panel/nodeGraph.libsonnet | 214 - .../raw/panel/pieChart.libsonnet | 506 - .../grafonnet-v10.0.0/raw/panel/row.libsonnet | 103 - .../raw/panel/stat.libsonnet | 141 - .../raw/panel/stateTimeline.libsonnet | 317 - .../raw/panel/statusHistory.libsonnet | 311 - .../raw/panel/table.libsonnet | 1241 -- .../raw/panel/text.libsonnet | 107 - .../raw/panel/timeSeries.libsonnet | 739 -- .../raw/panel/trend.libsonnet | 727 -- .../raw/panel/xyChart.libsonnet | 1276 -- .../grafonnet-v10.0.0/raw/playlist.libsonnet | 46 - .../raw/preferences.libsonnet | 41 - .../raw/publicdashboard.libsonnet | 28 - .../raw/query/azureMonitor.libsonnet | 837 -- .../raw/query/cloudWatch.libsonnet | 680 - .../raw/query/elasticsearch.libsonnet | 1449 -- .../raw/query/grafanaPyroscope.libsonnet | 46 - .../raw/query/loki.libsonnet | 48 - .../raw/query/parca.libsonnet | 28 - .../raw/query/prometheus.libsonnet | 52 - .../raw/query/tempo.libsonnet | 98 - .../raw/query/testData.libsonnet | 364 - .../raw/serviceaccount.libsonnet | 58 - .../gen/grafonnet-v10.0.0/raw/team.libsonnet | 36 - .../grafonnet-v11.0.0/accesspolicy.libsonnet | 90 - .../gen/grafonnet-v11.0.0/alerting.libsonnet | 9 - .../clean/alerting/contactPoint.libsonnet | 33 - .../clean/alerting/muteTiming.libsonnet | 135 - .../alerting/notificationPolicy.libsonnet | 97 - .../alerting/notificationTemplate.libsonnet | 16 - .../clean/alerting/ruleGroup.libsonnet | 147 - .../custom/alerting/contactPoint.libsonnet | 12 - .../custom/alerting/muteTiming.libsonnet | 8 - .../alerting/notificationPolicy.libsonnet | 12 - .../custom/alerting/ruleGroup.libsonnet | 13 - .../custom/dashboard.libsonnet | 69 - .../custom/dashboard/annotation.libsonnet | 36 - .../custom/dashboard/link.libsonnet | 90 - .../custom/dashboard/variable.libsonnet | 525 - .../grafonnet-v11.0.0/custom/panel.libsonnet | 171 - .../custom/query/azureMonitor.libsonnet | 17 - .../custom/query/cloudWatch.libsonnet | 23 - .../custom/query/elasticsearch.libsonnet | 20 - .../custom/query/expr.libsonnet | 12 - .../query/googleCloudMonitoring.libsonnet | 17 - .../custom/query/grafanaPyroscope.libsonnet | 17 - .../custom/query/loki.libsonnet | 28 - .../custom/query/parca.libsonnet | 17 - .../custom/query/prometheus.libsonnet | 48 - .../custom/query/tempo.libsonnet | 30 - .../custom/query/testData.libsonnet | 17 - .../grafonnet-v11.0.0/custom/row.libsonnet | 26 - .../custom/util/dashboard.libsonnet | 55 - .../custom/util/grid.libsonnet | 212 - .../custom/util/main.libsonnet | 9 - .../custom/util/panel.libsonnet | 420 - .../custom/util/string.libsonnet | 27 - .../gen/grafonnet-v11.0.0/dashboard.libsonnet | 580 - .../gen/grafonnet-v11.0.0/docs/README.md | 31 - .../docs/accesspolicy/index.md | 156 - .../docs/accesspolicy/rules.md | 60 - .../docs/alerting/contactPoint.md | 103 - .../grafonnet-v11.0.0/docs/alerting/index.md | 11 - .../docs/alerting/muteTiming/index.md | 48 - .../alerting/muteTiming/interval/index.md | 48 - .../interval/time_intervals/index.md | 144 - .../interval/time_intervals/times.md | 32 - .../docs/alerting/notificationPolicy/index.md | 185 - .../alerting/notificationPolicy/matcher.md | 45 - .../docs/alerting/notificationTemplate.md | 44 - .../docs/alerting/ruleGroup/index.md | 72 - .../docs/alerting/ruleGroup/rule/data.md | 123 - .../docs/alerting/ruleGroup/rule/index.md | 196 - .../docs/dashboard/annotation.md | 298 - .../grafonnet-v11.0.0/docs/dashboard/index.md | 479 - .../grafonnet-v11.0.0/docs/dashboard/link.md | 196 - .../docs/dashboard/variable.md | 1054 -- .../gen/grafonnet-v11.0.0/docs/folder.md | 45 - .../docs/librarypanel/index.md | 1599 --- .../model/fieldConfig/overrides/index.md | 104 - .../model/fieldConfig/overrides/properties.md | 45 - .../docs/librarypanel/model/links.md | 146 - .../librarypanel/model/transformations.md | 140 - .../docs/panel/alertList/index.md | 1215 -- .../docs/panel/alertList/panelOptions/link.md | 146 - .../alertList/queryOptions/transformation.md | 140 - .../alertList/standardOptions/mapping.md | 445 - .../alertList/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 34 - .../docs/panel/annotationsList/index.md | 788 -- .../annotationsList/panelOptions/link.md | 146 - .../queryOptions/transformation.md | 140 - .../standardOptions/mapping.md | 445 - .../standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 34 - .../docs/panel/barChart/index.md | 1426 -- .../docs/panel/barChart/panelOptions/link.md | 146 - .../barChart/queryOptions/transformation.md | 140 - .../panel/barChart/standardOptions/mapping.md | 445 - .../barChart/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 34 - .../docs/panel/barGauge/index.md | 906 -- .../docs/panel/barGauge/panelOptions/link.md | 146 - .../barGauge/queryOptions/transformation.md | 140 - .../panel/barGauge/standardOptions/mapping.md | 445 - .../barGauge/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 34 - .../docs/panel/candlestick/index.md | 1755 --- .../panel/candlestick/panelOptions/link.md | 146 - .../queryOptions/transformation.md | 140 - .../candlestick/standardOptions/mapping.md | 445 - .../candlestick/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 34 - .../docs/panel/canvas/index.md | 775 -- .../root/elements/connections/index.md | 410 - .../root/elements/connections/vertices.md | 32 - .../canvas/options/root/elements/index.md | 512 - .../docs/panel/canvas/panelOptions/link.md | 146 - .../canvas/queryOptions/transformation.md | 140 - .../panel/canvas/standardOptions/mapping.md | 445 - .../panel/canvas/standardOptions/override.md | 244 - .../canvas/standardOptions/threshold/step.md | 34 - .../docs/panel/dashboardList/index.md | 799 -- .../panel/dashboardList/panelOptions/link.md | 146 - .../queryOptions/transformation.md | 140 - .../dashboardList/standardOptions/mapping.md | 445 - .../dashboardList/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 34 - .../docs/panel/datagrid/index.md | 660 - .../docs/panel/datagrid/panelOptions/link.md | 146 - .../datagrid/queryOptions/transformation.md | 140 - .../panel/datagrid/standardOptions/mapping.md | 445 - .../datagrid/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 34 - .../docs/panel/debug/index.md | 727 -- .../docs/panel/debug/panelOptions/link.md | 146 - .../debug/queryOptions/transformation.md | 140 - .../panel/debug/standardOptions/mapping.md | 445 - .../panel/debug/standardOptions/override.md | 244 - .../debug/standardOptions/threshold/step.md | 34 - .../docs/panel/gauge/index.md | 866 -- .../docs/panel/gauge/panelOptions/link.md | 146 - .../gauge/queryOptions/transformation.md | 140 - .../panel/gauge/standardOptions/mapping.md | 445 - .../panel/gauge/standardOptions/override.md | 244 - .../gauge/standardOptions/threshold/step.md | 34 - .../docs/panel/geomap/index.md | 1226 -- .../docs/panel/geomap/options/layers.md | 220 - .../docs/panel/geomap/panelOptions/link.md | 146 - .../geomap/queryOptions/transformation.md | 140 - .../panel/geomap/standardOptions/mapping.md | 445 - .../panel/geomap/standardOptions/override.md | 244 - .../geomap/standardOptions/threshold/step.md | 34 - .../docs/panel/heatmap/index.md | 1841 --- .../docs/panel/heatmap/panelOptions/link.md | 146 - .../heatmap/queryOptions/transformation.md | 140 - .../panel/heatmap/standardOptions/mapping.md | 445 - .../panel/heatmap/standardOptions/override.md | 244 - .../heatmap/standardOptions/threshold/step.md | 34 - .../docs/panel/histogram/index.md | 1282 -- .../docs/panel/histogram/panelOptions/link.md | 146 - .../histogram/queryOptions/transformation.md | 140 - .../histogram/standardOptions/mapping.md | 445 - .../histogram/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 34 - .../gen/grafonnet-v11.0.0/docs/panel/index.md | 32 - .../docs/panel/logs/index.md | 764 -- .../docs/panel/logs/panelOptions/link.md | 146 - .../panel/logs/queryOptions/transformation.md | 140 - .../panel/logs/standardOptions/mapping.md | 445 - .../panel/logs/standardOptions/override.md | 244 - .../logs/standardOptions/threshold/step.md | 34 - .../docs/panel/news/index.md | 672 - .../docs/panel/news/panelOptions/link.md | 146 - .../panel/news/queryOptions/transformation.md | 140 - .../panel/news/standardOptions/mapping.md | 445 - .../panel/news/standardOptions/override.md | 244 - .../news/standardOptions/threshold/step.md | 34 - .../docs/panel/nodeGraph/index.md | 776 -- .../panel/nodeGraph/options/nodes/arcs.md | 33 - .../docs/panel/nodeGraph/panelOptions/link.md | 146 - .../nodeGraph/queryOptions/transformation.md | 140 - .../nodeGraph/standardOptions/mapping.md | 445 - .../nodeGraph/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 34 - .../docs/panel/pieChart/index.md | 1174 -- .../docs/panel/pieChart/panelOptions/link.md | 146 - .../pieChart/queryOptions/transformation.md | 140 - .../panel/pieChart/standardOptions/mapping.md | 445 - .../pieChart/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 34 - .../gen/grafonnet-v11.0.0/docs/panel/row.md | 179 - .../docs/panel/stat/index.md | 879 -- .../docs/panel/stat/panelOptions/link.md | 146 - .../panel/stat/queryOptions/transformation.md | 140 - .../panel/stat/standardOptions/mapping.md | 445 - .../panel/stat/standardOptions/override.md | 244 - .../stat/standardOptions/threshold/step.md | 34 - .../docs/panel/stateTimeline/index.md | 1085 -- .../panel/stateTimeline/panelOptions/link.md | 146 - .../queryOptions/transformation.md | 140 - .../stateTimeline/standardOptions/mapping.md | 445 - .../stateTimeline/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 34 - .../docs/panel/statusHistory/index.md | 1072 -- .../panel/statusHistory/panelOptions/link.md | 146 - .../queryOptions/transformation.md | 140 - .../statusHistory/standardOptions/mapping.md | 445 - .../statusHistory/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 34 - .../docs/panel/table/index.md | 1981 --- .../docs/panel/table/options/sortBy.md | 34 - .../docs/panel/table/panelOptions/link.md | 146 - .../table/queryOptions/transformation.md | 140 - .../panel/table/standardOptions/mapping.md | 445 - .../panel/table/standardOptions/override.md | 244 - .../table/standardOptions/threshold/step.md | 34 - .../docs/panel/text/index.md | 740 -- .../docs/panel/text/panelOptions/link.md | 146 - .../panel/text/queryOptions/transformation.md | 140 - .../panel/text/standardOptions/mapping.md | 445 - .../panel/text/standardOptions/override.md | 244 - .../text/standardOptions/threshold/step.md | 34 - .../docs/panel/timeSeries/index.md | 1607 --- .../panel/timeSeries/panelOptions/link.md | 146 - .../timeSeries/queryOptions/transformation.md | 140 - .../timeSeries/standardOptions/mapping.md | 445 - .../timeSeries/standardOptions/override.md | 244 - .../standardOptions/threshold/step.md | 34 - .../docs/panel/trend/index.md | 1560 --- .../docs/panel/trend/panelOptions/link.md | 146 - .../trend/queryOptions/transformation.md | 140 - .../panel/trend/standardOptions/mapping.md | 445 - .../panel/trend/standardOptions/override.md | 244 - .../trend/standardOptions/threshold/step.md | 34 - .../docs/panel/xyChart/index.md | 1614 --- .../docs/panel/xyChart/options/series.md | 663 - .../docs/panel/xyChart/panelOptions/link.md | 146 - .../xyChart/queryOptions/transformation.md | 140 - .../panel/xyChart/standardOptions/mapping.md | 445 - .../panel/xyChart/standardOptions/override.md | 244 - .../xyChart/standardOptions/threshold/step.md | 34 - .../gen/grafonnet-v11.0.0/docs/preferences.md | 210 - .../grafonnet-v11.0.0/docs/publicdashboard.md | 84 - .../azureMonitor/dimensionFilters.md | 69 - .../azureMonitor/azureMonitor/resources.md | 68 - .../query/azureMonitor/azureTraces/filters.md | 57 - .../docs/query/azureMonitor/index.md | 1495 --- .../CloudWatchLogsQuery/logGroups.md | 57 - .../parameters.md | 29 - .../sql/orderBy/parameters.md | 29 - .../sql/select/parameters.md | 29 - .../docs/query/cloudWatch/index.md | 1245 -- .../bucketAggs/Filters/settings/filters.md | 32 - .../query/elasticsearch/bucketAggs/index.md | 567 - .../docs/query/elasticsearch/index.md | 150 - .../BucketScript/pipelineVariables.md | 32 - .../BucketScript/pipelineVariables.md | 32 - .../docs/query/elasticsearch/metrics/index.md | 2547 ---- .../expr/TypeClassicConditions/conditions.md | 205 - .../query/expr/TypeClassicConditions/index.md | 324 - .../docs/query/expr/TypeMath.md | 308 - .../docs/query/expr/TypeReduce.md | 384 - .../docs/query/expr/TypeResample.md | 357 - .../docs/query/expr/TypeSql.md | 308 - .../query/expr/TypeThreshold/conditions.md | 163 - .../docs/query/expr/TypeThreshold/index.md | 336 - .../docs/query/expr/index.md | 12 - .../docs/query/googleCloudMonitoring.md | 595 - .../docs/query/grafanaPyroscope.md | 146 - .../gen/grafonnet-v11.0.0/docs/query/index.md | 17 - .../gen/grafonnet-v11.0.0/docs/query/loki.md | 173 - .../gen/grafonnet-v11.0.0/docs/query/parca.md | 86 - .../docs/query/prometheus.md | 188 - .../docs/query/tempo/filters.md | 94 - .../docs/query/tempo/groupBy.md | 94 - .../docs/query/tempo/index.md | 274 - .../docs/query/testData/csvWave.md | 56 - .../docs/query/testData/index.md | 1107 -- .../gen/grafonnet-v11.0.0/docs/role.md | 70 - .../gen/grafonnet-v11.0.0/docs/rolebinding.md | 189 - .../gen/grafonnet-v11.0.0/docs/team.md | 33 - .../gen/grafonnet-v11.0.0/docs/util.md | 328 - .../gen/grafonnet-v11.0.0/folder.libsonnet | 16 - .../gen/grafonnet-v11.0.0/jsonnetfile.json | 24 - .../grafonnet-v11.0.0/librarypanel.libsonnet | 1130 -- .../gen/grafonnet-v11.0.0/main.libsonnet | 26 - .../gen/grafonnet-v11.0.0/panel.libsonnet | 803 -- .../panel/alertList.libsonnet | 341 - .../panel/annotationsList.libsonnet | 94 - .../panel/barChart.libsonnet | 553 - .../panel/barGauge.libsonnet | 168 - .../panel/candlestick.libsonnet | 850 -- .../grafonnet-v11.0.0/panel/canvas.libsonnet | 544 - .../panel/dashboardList.libsonnet | 100 - .../panel/datagrid.libsonnet | 28 - .../grafonnet-v11.0.0/panel/debug.libsonnet | 67 - .../grafonnet-v11.0.0/panel/gauge.libsonnet | 150 - .../grafonnet-v11.0.0/panel/geomap.libsonnet | 486 - .../grafonnet-v11.0.0/panel/heatmap.libsonnet | 839 -- .../panel/histogram.libsonnet | 486 - .../grafonnet-v11.0.0/panel/logs.libsonnet | 76 - .../grafonnet-v11.0.0/panel/news.libsonnet | 34 - .../panel/nodeGraph.libsonnet | 118 - .../panel/pieChart.libsonnet | 380 - .../gen/grafonnet-v11.0.0/panel/row.libsonnet | 103 - .../grafonnet-v11.0.0/panel/stat.libsonnet | 156 - .../panel/stateTimeline.libsonnet | 309 - .../panel/statusHistory.libsonnet | 303 - .../grafonnet-v11.0.0/panel/table.libsonnet | 1274 -- .../grafonnet-v11.0.0/panel/text.libsonnet | 73 - .../panel/timeSeries.libsonnet | 767 -- .../grafonnet-v11.0.0/panel/trend.libsonnet | 738 -- .../grafonnet-v11.0.0/panel/xyChart.libsonnet | 1070 -- .../grafonnet-v11.0.0/panelindex.libsonnet | 30 - .../grafonnet-v11.0.0/preferences.libsonnet | 88 - .../publicdashboard.libsonnet | 28 - .../gen/grafonnet-v11.0.0/query.libsonnet | 15 - .../query/azureMonitor.libsonnet | 860 -- .../query/cloudWatch.libsonnet | 693 - .../query/elasticsearch.libsonnet | 1452 --- .../grafonnet-v11.0.0/query/expr.libsonnet | 996 -- .../query/googleCloudMonitoring.libsonnet | 293 - .../query/grafanaPyroscope.libsonnet | 65 - .../grafonnet-v11.0.0/query/loki.libsonnet | 57 - .../grafonnet-v11.0.0/query/parca.libsonnet | 33 - .../query/prometheus.libsonnet | 61 - .../grafonnet-v11.0.0/query/tempo.libsonnet | 165 - .../query/testData.libsonnet | 494 - .../gen/grafonnet-v11.0.0/role.libsonnet | 24 - .../grafonnet-v11.0.0/rolebinding.libsonnet | 92 - .../gen/grafonnet-v11.0.0/team.libsonnet | 12 - .../grafana-builder/grafana.libsonnet | 646 - .../jsonnet-libs/docsonnet/doc-util/README.md | 326 - .../docsonnet/doc-util/main.libsonnet | 263 - .../docsonnet/doc-util/render.libsonnet | 479 - .../xtd/.github/workflows/tests.yml | 32 - .../github.com/jsonnet-libs/xtd/.gitignore | 3 - .../github.com/jsonnet-libs/xtd/LICENSE | 201 - .../github.com/jsonnet-libs/xtd/Makefile | 16 - .../github.com/jsonnet-libs/xtd/README.md | 19 - .../jsonnet-libs/xtd/aggregate.libsonnet | 104 - .../jsonnet-libs/xtd/array.libsonnet | 55 - .../jsonnet-libs/xtd/ascii.libsonnet | 99 - .../jsonnet-libs/xtd/camelcase.libsonnet | 100 - .../jsonnet-libs/xtd/date.libsonnet | 185 - .../jsonnet-libs/xtd/docs/.gitignore | 2 - .../github.com/jsonnet-libs/xtd/docs/Gemfile | 2 - .../jsonnet-libs/xtd/docs/README.md | 26 - .../jsonnet-libs/xtd/docs/_config.yml | 2 - .../jsonnet-libs/xtd/docs/aggregate.md | 74 - .../github.com/jsonnet-libs/xtd/docs/array.md | 37 - .../github.com/jsonnet-libs/xtd/docs/ascii.md | 61 - .../jsonnet-libs/xtd/docs/camelcase.md | 41 - .../github.com/jsonnet-libs/xtd/docs/date.md | 66 - .../jsonnet-libs/xtd/docs/inspect.md | 93 - .../jsonnet-libs/xtd/docs/jsonpath.md | 53 - .../jsonnet-libs/xtd/docs/number.md | 43 - .../jsonnet-libs/xtd/docs/string.md | 26 - .../github.com/jsonnet-libs/xtd/docs/url.md | 56 - .../jsonnet-libs/xtd/inspect.libsonnet | 209 - .../jsonnet-libs/xtd/jsonpath.libsonnet | 142 - .../jsonnet-libs/xtd/main.libsonnet | 25 - .../jsonnet-libs/xtd/number.libsonnet | 48 - .../jsonnet-libs/xtd/string.libsonnet | 35 - .../jsonnet-libs/xtd/test/array_test.jsonnet | 83 - .../jsonnet-libs/xtd/test/ascii_test.jsonnet | 92 - .../xtd/test/camelcase_test.jsonnet | 193 - .../jsonnet-libs/xtd/test/date_test.jsonnet | 219 - .../xtd/test/inspect_test.jsonnet | 152 - .../jsonnet-libs/xtd/test/jsonnetfile.json | 15 - .../xtd/test/jsonpath_test.jsonnet | 305 - .../jsonnet-libs/xtd/test/url_test.jsonnet | 209 - .../github.com/jsonnet-libs/xtd/url.libsonnet | 111 - .../.github/ISSUE_TEMPLATE/bugs.yaml | 49 - .../.github/ISSUE_TEMPLATE/enhancements.yaml | 55 - .../.github/PULL_REQUEST_TEMPLATE/prs.md | 19 - .../kubernetes-mixin/.github/dependabot.yaml | 11 - .../workflows/check-with-upstream.yaml | 14 - .../.github/workflows/ci.yaml | 40 - .../kubernetes-mixin/.gitignore | 7 - .../kubernetes-mixin/.lint | 9 - .../kubernetes-mixin/.vale.ini | 8 - .../kubernetes-mixin/CODE_OF_CONDUCT.md | 77 - .../kubernetes-mixin/CONTRIBUTING.md | 38 - .../kubernetes-mixin/DESIGN.md | 230 - .../kubernetes-mixin/LICENSE | 202 - .../kubernetes-mixin/Makefile | 107 - .../kubernetes-mixin/OWNERS | 19 - .../kubernetes-mixin/README.md | 246 - .../kubernetes-mixin/SECURITY.md | 5 - .../kubernetes-mixin/SECURITY_CONTACTS | 16 - .../kubernetes-mixin/alerts/alerts.libsonnet | 10 - .../alerts/apps_alerts.libsonnet | 328 - .../alerts/kube_apiserver.libsonnet | 126 - .../alerts/kube_controller_manager.libsonnet | 19 - .../alerts/kube_proxy.libsonnet | 19 - .../alerts/kube_scheduler.libsonnet | 19 - .../kubernetes-mixin/alerts/kubelet.libsonnet | 202 - .../alerts/resource_alerts.libsonnet | 220 - .../alerts/storage_alerts.libsonnet | 137 - .../alerts/system_alerts.libsonnet | 50 - .../kubernetes-mixin/config.libsonnet | 113 - .../dashboards/apiserver.libsonnet | 348 - .../dashboards/controller-manager.libsonnet | 213 - .../dashboards/dashboards.libsonnet | 9 - .../dashboards/defaults.libsonnet | 50 - .../dashboards/kubelet.libsonnet | 376 - .../network-usage/cluster-total.libsonnet | 483 - .../network-usage/namespace-by-pod.libsonnet | 454 - .../namespace-by-workload.libsonnet | 492 - .../network-usage/pod-total.libsonnet | 201 - .../network-usage/workload-total.libsonnet | 264 - .../dashboards/network.libsonnet | 5 - .../persistentvolumesusage.libsonnet | 203 - .../dashboards/proxy.libsonnet | 183 - .../dashboards/resources.libsonnet | 7 - .../dashboards/resources/cluster.libsonnet | 730 -- .../resources/multi-cluster.libsonnet | 311 - .../dashboards/resources/namespace.libsonnet | 783 -- .../dashboards/resources/node.libsonnet | 304 - .../dashboards/resources/pod.libsonnet | 671 - .../resources/workload-namespace.libsonnet | 756 -- .../dashboards/resources/workload.libsonnet | 586 - .../dashboards/scheduler.libsonnet | 188 - .../dashboards/windows.libsonnet | 1101 -- .../kubernetes-mixin/jsonnetfile.json | 15 - .../lib/absent_alert.libsonnet | 18 - .../lib/add-runbook-links.libsonnet | 23 - .../kubernetes-mixin/lib/alerts.jsonnet | 1 - .../kubernetes-mixin/lib/dashboards.jsonnet | 6 - .../kubernetes-mixin/lib/rules.jsonnet | 1 - .../kubernetes-mixin/lib/utils.libsonnet | 18 - .../kubernetes-mixin/mixin.libsonnet | 4 - .../kubernetes-mixin/rules/apps.libsonnet | 266 - .../kube_apiserver-availability.libsonnet | 165 - .../rules/kube_apiserver-burnrate.libsonnet | 93 - .../rules/kube_apiserver-config.libsonnet | 16 - .../rules/kube_apiserver-histogram.libsonnet | 28 - .../rules/kube_apiserver.libsonnet | 4 - .../rules/kube_scheduler.libsonnet | 31 - .../kubernetes-mixin/rules/kubelet.libsonnet | 25 - .../kubernetes-mixin/rules/node.libsonnet | 79 - .../kubernetes-mixin/rules/rules.libsonnet | 5 - .../kubernetes-mixin/rules/windows.libsonnet | 256 - .../kubernetes-mixin/runbook.md | 290 - .../scripts/check-selectors-ksm.sh | 49 - .../kubernetes-mixin/scripts/go.mod | 263 - .../kubernetes-mixin/scripts/go.sum | 1308 -- .../kubernetes-mixin/scripts/tools.go | 18 - .../kubernetes-mixin/tests.yaml | 1269 -- .../kube-state-metrics-mixin/alerts.libsonnet | 82 - .../kube-state-metrics-mixin/config.libsonnet | 7 - .../kube-state-metrics-mixin/mixin.libsonnet | 2 - .../kube-state-metrics/jsonnetfile.json | 3 - .../kube-state-metrics.libsonnet | 480 - .../jsonnet/kube-prometheus/.gitignore | 2 - .../addons/all-namespaces.libsonnet | 22 - .../addons/anti-affinity.libsonnet | 99 - .../addons/aws-vpc-cni.libsonnet | 114 - .../addons/config-mixins.libsonnet | 40 - .../addons/custom-metrics.libsonnet | 164 - ...g-deprecated-metrics-relabelings.libsonnet | 139 - .../addons/external-metrics.libsonnet | 94 - .../addons/insecure-kubelet.libsonnet | 40 - .../addons/ksm-autoscaler.libsonnet | 136 - .../kube-prometheus/addons/ksm-lite.libsonnet | 39 - .../addons/managed-cluster.libsonnet | 20 - .../addons/networkpolicies-disabled.libsonnet | 35 - .../addons/node-ports.libsonnet | 18 - .../addons/podsecuritypolicies.libsonnet | 268 - .../kube-prometheus/addons/pyrra.libsonnet | 626 - .../addons/static-etcd.libsonnet | 102 - .../addons/strip-limits.libsonnet | 57 - .../addons/weave-net/alerts.libsonnet | 134 - .../weave-net/grafana-weave-net-cluster.json | 3347 ----- .../addons/weave-net/grafana-weave-net.json | 2605 ---- .../addons/weave-net/weave-net.libsonnet | 73 - .../addons/windows-hostprocess.libsonnet | 197 - .../kube-prometheus/addons/windows.libsonnet | 70 - .../components/alertmanager.libsonnet | 238 - .../components/blackbox-exporter.libsonnet | 328 - .../components/grafana.libsonnet | 126 - .../components/k8s-control-plane.libsonnet | 400 - .../components/kube-rbac-proxy.libsonnet | 68 - .../components/kube-state-metrics.libsonnet | 225 - .../components/mixin/alerts/alerts.libsonnet | 2 - .../components/mixin/alerts/general.libsonnet | 58 - .../components/mixin/alerts/node.libsonnet | 25 - .../components/mixin/custom.libsonnet | 44 - .../components/mixin/rules/general.libsonnet | 19 - .../mixin/rules/node-rules.libsonnet | 35 - .../components/mixin/rules/rules.libsonnet | 2 - .../components/node-exporter.libsonnet | 308 - .../components/prometheus-adapter.libsonnet | 439 - .../components/prometheus-operator.libsonnet | 174 - .../components/prometheus.libsonnet | 444 - .../jsonnet/kube-prometheus/jsonnetfile.json | 129 - .../kube-prometheus/lib/mixin.libsonnet | 38 - .../lib/rule-sanitizer.libsonnet | 156 - .../kube-prometheus/lib/utils.libsonnet | 7 - .../jsonnet/kube-prometheus/main.libsonnet | 160 - .../kube-prometheus/platforms/README.md | 3 - .../kube-prometheus/platforms/aks.libsonnet | 32 - .../kube-prometheus/platforms/aws.libsonnet | 33 - .../platforms/bootkube.libsonnet | 42 - .../kube-prometheus/platforms/eks.libsonnet | 16 - .../kube-prometheus/platforms/gke.libsonnet | 13 - .../platforms/kops-coredns.libsonnet | 20 - .../kube-prometheus/platforms/kops.libsonnet | 40 - .../platforms/kubeadm.libsonnet | 33 - .../platforms/kubespray.libsonnet | 1 - .../platforms/platforms.libsonnet | 45 - .../jsonnet/kube-prometheus/versions.json | 13 - .../jsonnet/mixin/alerts.jsonnet | 3 - .../jsonnet/mixin/alerts/alerts.libsonnet | 142 - .../jsonnet/mixin/config.libsonnet | 7 - .../jsonnet/mixin/mixin.libsonnet | 2 - .../jsonnet/prometheus-operator/.gitignore | 2 - .../admission-webhook.libsonnet | 177 - .../alertmanagerconfigs-crd.json | 8833 ------------- .../alertmanagerconfigs-v1beta1-crd.libsonnet | 8726 ------------- .../alertmanagers-crd.json | 7224 ---------- .../prometheus-operator/conversion.libsonnet | 39 - .../prometheus-operator/jsonnetfile.json | 4 - .../prometheus-operator/podmonitors-crd.json | 1006 -- .../prometheus-operator/probes-crd.json | 1040 -- .../prometheus-operator.libsonnet | 268 - .../prometheusagents-crd.json | 8779 ------------- .../prometheus-operator/prometheuses-crd.json | 10677 --------------- .../prometheusrules-crd.json | 156 - .../scrapeconfigs-crd.json | 10868 ---------------- .../servicemonitors-crd.json | 1030 -- .../prometheus-operator/thanosrulers-crd.json | 6707 ---------- .../doc/alertmanager-mixin/.gitignore | 2 - .../alertmanager/doc/alertmanager-mixin/.lint | 15 - .../doc/alertmanager-mixin/Makefile | 31 - .../doc/alertmanager-mixin/README.md | 30 - .../doc/alertmanager-mixin/alerts.jsonnet | 1 - .../doc/alertmanager-mixin/alerts.libsonnet | 169 - .../doc/alertmanager-mixin/config.libsonnet | 44 - .../doc/alertmanager-mixin/dashboards.jsonnet | 6 - .../alertmanager-mixin/dashboards.libsonnet | 1 - .../dashboards/overview.libsonnet | 154 - .../doc/alertmanager-mixin/jsonnetfile.json | 15 - .../alertmanager-mixin/jsonnetfile.lock.json | 16 - .../doc/alertmanager-mixin/mixin.libsonnet | 3 - .../node_exporter/docs/node-mixin/.gitignore | 4 - .../node_exporter/docs/node-mixin/Makefile | 32 - .../node_exporter/docs/node-mixin/README.md | 45 - .../docs/node-mixin/alerts.jsonnet | 1 - .../docs/node-mixin/alerts/alerts.libsonnet | 428 - .../docs/node-mixin/config.libsonnet | 96 - .../docs/node-mixin/dashboards.jsonnet | 6 - .../dashboards/dashboards.libsonnet | 2 - .../docs/node-mixin/dashboards/node.libsonnet | 7 - .../docs/node-mixin/dashboards/use.libsonnet | 469 - .../docs/node-mixin/jsonnetfile.json | 24 - .../docs/node-mixin/lib/prom-mixin.libsonnet | 523 - .../docs/node-mixin/mixin.libsonnet | 4 - .../docs/node-mixin/rules.jsonnet | 1 - .../docs/node-mixin/rules/rules.libsonnet | 119 - .../documentation/prometheus-mixin/.gitignore | 4 - .../documentation/prometheus-mixin/Makefile | 29 - .../documentation/prometheus-mixin/README.md | 36 - .../prometheus-mixin/alerts.jsonnet | 1 - .../prometheus-mixin/alerts.libsonnet | 498 - .../prometheus-mixin/config.libsonnet | 53 - .../prometheus-mixin/dashboards.jsonnet | 6 - .../prometheus-mixin/dashboards.libsonnet | 438 - .../prometheus-mixin/jsonnetfile.json | 24 - .../prometheus-mixin/mixin.libsonnet | 3 - .../pyrra.dev_servicelevelobjectives.json | 207 - .../pyrra.dev_servicelevelobjectives.yaml | 170 - .../thanos-io/thanos/mixin/README.md | 194 - .../thanos-io/thanos/mixin/alerts.jsonnet | 3 - .../thanos/mixin/alerts/absent.libsonnet | 40 - .../mixin/alerts/add-runbook-links.libsonnet | 23 - .../thanos/mixin/alerts/alerts.libsonnet | 9 - .../mixin/alerts/bucket-replicate.libsonnet | 55 - .../thanos/mixin/alerts/compact.libsonnet | 92 - .../thanos/mixin/alerts/query.libsonnet | 165 - .../thanos/mixin/alerts/receive.libsonnet | 189 - .../thanos/mixin/alerts/rule.libsonnet | 205 - .../thanos/mixin/alerts/sidecar.libsonnet | 48 - .../thanos/mixin/alerts/store.libsonnet | 96 - .../thanos-io/thanos/mixin/config.libsonnet | 73 - .../thanos-io/thanos/mixin/dashboards.jsonnet | 8 - .../dashboards/bucket-replicate.libsonnet | 61 - .../thanos/mixin/dashboards/compact.libsonnet | 205 - .../mixin/dashboards/dashboards.libsonnet | 10 - .../mixin/dashboards/defaults.libsonnet | 91 - .../mixin/dashboards/overview.libsonnet | 33 - .../mixin/dashboards/query-frontend.libsonnet | 81 - .../thanos/mixin/dashboards/query.libsonnet | 163 - .../thanos/mixin/dashboards/receive.libsonnet | 305 - .../thanos/mixin/dashboards/rule.libsonnet | 175 - .../thanos/mixin/dashboards/sidecar.libsonnet | 119 - .../thanos/mixin/dashboards/store.libsonnet | 303 - .../thanos-io/thanos/mixin/jsonnetfile.json | 24 - .../thanos/mixin/jsonnetfile.lock.json | 26 - .../lib/thanos-grafana-builder/README.md | 5 - .../thanos-grafana-builder/builder.libsonnet | 185 - .../lib/thanos-grafana-builder/grpc.libsonnet | 46 - .../lib/thanos-grafana-builder/http.libsonnet | 34 - .../lib/thanos-grafana-builder/slo.libsonnet | 34 - .../thanos/mixin/lib/utils.libsonnet | 32 - .../thanos-io/thanos/mixin/mixin.libsonnet | 4 - .../thanos-io/thanos/mixin/rules.jsonnet | 3 - .../mixin/rules/bucket-replicate.libsonnet | 14 - .../thanos/mixin/rules/query.libsonnet | 68 - .../thanos/mixin/rules/receive.libsonnet | 87 - .../thanos/mixin/rules/rules.libsonnet | 4 - .../thanos/mixin/rules/store.libsonnet | 57 - .../thanos-io/thanos/mixin/runbook.md | 100 - .../thanos/mixin/separated-alerts.jsonnet | 7 - .../libraries/main/vendor/grafana | 1 - .../libraries/main/vendor/grafana-builder | 1 - .../libraries/main/vendor/grafana-mixin | 1 - .../libraries/main/vendor/grafonnet | 1 - .../libraries/main/vendor/grafonnet-7.0 | 1 - .../libraries/main/vendor/grafonnet-latest | 1 - .../libraries/main/vendor/grafonnet-v10.0.0 | 1 - .../libraries/main/vendor/grafonnet-v11.0.0 | 1 - .../libraries/main/vendor/kube-prometheus | 1 - .../libraries/main/vendor/kube-state-metrics | 1 - .../main/vendor/kube-state-metrics-mixin | 1 - .../libraries/main/vendor/kubernetes-mixin | 1 - .../libraries/main/vendor/mixin | 1 - .../libraries/main/vendor/node-mixin | 1 - .../libraries/main/vendor/prometheus | 1 - .../libraries/main/vendor/prometheus-operator | 1 - .../main/vendor/prometheus-operator-mixin | 1 - .../libraries/main/vendor/pyrra | 1 - .../libraries/main/vendor/thanos-mixin | 1 - .../kube-prometheus/libraries/main/vendor/xtd | 1 - 1011 files changed, 299094 deletions(-) delete mode 100644 build/kube-prometheus/libraries/main/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/jsonnetfile.lock.json delete mode 120000 build/kube-prometheus/libraries/main/vendor/alertmanager delete mode 120000 build/kube-prometheus/libraries/main/vendor/doc-util delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/brancz/kubernetes-grafana/grafana/grafana.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/brancz/kubernetes-grafana/grafana/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/.gitignore delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/.lint delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/Makefile delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/OWNERS delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/alerts/alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/config.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/dashboards.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/etcd-grafana7x.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/etcd.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/g.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/panels.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/targets.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/variables.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/jsonnetfile.lock.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/mixin.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/test.yaml delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/.gitignore delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/Makefile delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/alerts/alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/dashboards/dashboards.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/dashboards/grafana-overview.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/mixin.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/rules/rules.libsonnet delete mode 100755 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/build.sh delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/common.sh delete mode 100755 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/format.sh delete mode 100755 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/lint.sh delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/DOCS.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/dashboard.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/grafana.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/gauge.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/graph.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/row.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/stat.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/table.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/text.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/target/prometheus.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/template/custom.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/template/datasource.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/template/query.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/alert_condition.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/alertlist.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/annotation.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/bar_gauge_panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/cloudmonitoring.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/cloudwatch.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/dashboard.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/dashlist.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/elasticsearch.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/gauge_panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/grafana.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/graph_panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/graphite.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/heatmap_panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/influxdb.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/link.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/log_panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/loki.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/pie_chart_panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/pluginlist.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/prometheus.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/row.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/singlestat.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/sql.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/stat_panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/table_panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/template.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/text.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/timepicker.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/transformation.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/alerting.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/contactPoint.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/messageTemplate.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/muteTiming.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/notificationPolicy.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/ruleGroup.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/dashboard.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertGroups.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertList.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/annotationsList.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barChart.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barGauge.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/candlestick.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/canvas.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/dashboardList.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/datagrid.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/debug.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/gauge.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/geomap.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/heatmap.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/histogram.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/logs.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/news.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/nodeGraph.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/pieChart.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stat.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stateTimeline.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/statusHistory.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/table.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/text.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/timeSeries.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/trend.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/xyChart.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/loki.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/prometheus.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/tempo.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/contactPoint.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/muteTiming.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/notificationPolicy.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/ruleGroup.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/annotation.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/link.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/variable.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/loki.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/prometheus.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/tempo.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/row.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/dashboard.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/grid.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/main.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/string.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/contactPoint.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/messageTemplate.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/muteTiming/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/muteTiming/interval/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/muteTiming/interval/times.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/notificationPolicy/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/notificationPolicy/matcher.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/ruleGroup/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/ruleGroup/rule/data.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/ruleGroup/rule/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/annotation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/variable.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/librarypanel.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/options/layers.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/options/nodes/arcs.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/row.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/options/sortBy.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/options/series.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/playlist/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/playlist/items.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/preferences.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/publicdashboard.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/azureMonitor/dimensionFilters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/azureMonitor/resources.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/azureTraces/filters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchLogsQuery/logGroups.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/orderBy/parameters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/select/parameters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/bucketAggs/Filters/settings/filters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/bucketAggs/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/metrics/MetricAggregationWithSettings/BucketScript/pipelineVariables.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/metrics/PipelineMetricAggregation/BucketScript/pipelineVariables.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/metrics/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/grafanaPyroscope.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/loki.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/parca.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/prometheus.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/tempo/filters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/tempo/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/testData/csvWave.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/testData/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/serviceaccount.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/team.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/util.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/query.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/contactPoint.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/messageTemplate.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/muteTiming.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/notificationPolicy.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/ruleGroup.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/dashboard.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/librarypanel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertGroups.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertList.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/annotationsList.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barChart.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barGauge.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/candlestick.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/canvas.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/dashboardList.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/datagrid.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/debug.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/gauge.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/geomap.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/heatmap.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/histogram.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/logs.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/news.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/nodeGraph.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/pieChart.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/row.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stat.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stateTimeline.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/statusHistory.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/table.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/text.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/timeSeries.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/trend.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/xyChart.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/playlist.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/preferences.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/publicdashboard.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/azureMonitor.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/cloudWatch.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/elasticsearch.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/grafanaPyroscope.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/loki.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/parca.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/prometheus.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/tempo.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/testData.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/serviceaccount.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/team.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/accesspolicy.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/alerting.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/contactPoint.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/muteTiming.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/notificationPolicy.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/notificationTemplate.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/ruleGroup.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/contactPoint.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/muteTiming.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/notificationPolicy.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/ruleGroup.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard/annotation.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard/link.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard/variable.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/azureMonitor.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/cloudWatch.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/elasticsearch.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/expr.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/googleCloudMonitoring.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/grafanaPyroscope.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/loki.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/parca.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/prometheus.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/tempo.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/testData.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/row.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/dashboard.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/grid.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/main.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/string.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/dashboard.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/accesspolicy/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/accesspolicy/rules.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/contactPoint.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/interval/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/interval/time_intervals/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/interval/time_intervals/times.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/notificationPolicy/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/notificationPolicy/matcher.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/notificationTemplate.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/ruleGroup/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/ruleGroup/rule/data.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/ruleGroup/rule/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/annotation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/variable.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/folder.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/fieldConfig/overrides/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/fieldConfig/overrides/properties.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/links.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/transformations.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/options/root/elements/connections/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/options/root/elements/connections/vertices.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/options/root/elements/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/options/layers.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/options/nodes/arcs.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/row.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/options/sortBy.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/options/series.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/panelOptions/link.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/queryOptions/transformation.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/standardOptions/mapping.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/standardOptions/override.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/standardOptions/threshold/step.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/preferences.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/publicdashboard.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/azureMonitor/dimensionFilters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/azureMonitor/resources.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/azureTraces/filters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchLogsQuery/logGroups.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/orderBy/parameters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/select/parameters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/bucketAggs/Filters/settings/filters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/bucketAggs/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/metrics/MetricAggregationWithSettings/BucketScript/pipelineVariables.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/metrics/PipelineMetricAggregation/BucketScript/pipelineVariables.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/metrics/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeClassicConditions/conditions.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeClassicConditions/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeMath.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeReduce.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeResample.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeSql.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeThreshold/conditions.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeThreshold/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/googleCloudMonitoring.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/grafanaPyroscope.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/loki.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/parca.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/prometheus.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/tempo/filters.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/tempo/groupBy.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/tempo/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/testData/csvWave.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/testData/index.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/role.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/rolebinding.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/team.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/util.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/folder.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/librarypanel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/main.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/alertList.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/annotationsList.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/barChart.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/barGauge.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/candlestick.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/canvas.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/dashboardList.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/datagrid.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/debug.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/gauge.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/geomap.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/heatmap.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/histogram.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/logs.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/news.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/nodeGraph.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/pieChart.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/row.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/stat.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/stateTimeline.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/statusHistory.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/table.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/text.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/timeSeries.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/trend.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/xyChart.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panelindex.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/preferences.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/publicdashboard.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/azureMonitor.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/cloudWatch.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/elasticsearch.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/expr.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/googleCloudMonitoring.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/grafanaPyroscope.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/loki.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/parca.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/prometheus.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/tempo.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/testData.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/role.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/rolebinding.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/team.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/.github/workflows/tests.yml delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/.gitignore delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/LICENSE delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/Makefile delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/array.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/date.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/.gitignore delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/Gemfile delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/_config.yml delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/array.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/date.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/number.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/string.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/url.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/main.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/number.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/string.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/array_test.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/ascii_test.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/jsonpath_test.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/url_test.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/url.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/ISSUE_TEMPLATE/bugs.yaml delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/ISSUE_TEMPLATE/enhancements.yaml delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/PULL_REQUEST_TEMPLATE/prs.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/dependabot.yaml delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/workflows/check-with-upstream.yaml delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/workflows/ci.yaml delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.gitignore delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.lint delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.vale.ini delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/CODE_OF_CONDUCT.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/CONTRIBUTING.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/DESIGN.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/LICENSE delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/Makefile delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/OWNERS delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/SECURITY.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/SECURITY_CONTACTS delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/apps_alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_apiserver.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_controller_manager.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_proxy.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_scheduler.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kubelet.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/resource_alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/storage_alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/system_alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/config.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/apiserver.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/controller-manager.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/dashboards.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/defaults.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/kubelet.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/cluster-total.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/namespace-by-pod.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/namespace-by-workload.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/pod-total.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/workload-total.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/persistentvolumesusage.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/proxy.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/cluster.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/multi-cluster.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/namespace.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/node.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/pod.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/workload-namespace.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/workload.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/scheduler.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/windows.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/absent_alert.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/alerts.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/dashboards.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/rules.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/utils.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/mixin.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/apps.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-availability.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-burnrate.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-config.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-histogram.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_scheduler.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kubelet.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/node.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/rules.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/windows.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/runbook.md delete mode 100755 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/check-selectors-ksm.sh delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/go.mod delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/go.sum delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/tools.go delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/tests.yaml delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/config.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/mixin.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics/kube-state-metrics.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/.gitignore delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/all-namespaces.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/anti-affinity.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/aws-vpc-cni.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/config-mixins.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/custom-metrics.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/dropping-deprecated-metrics-relabelings.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/external-metrics.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/insecure-kubelet.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/ksm-autoscaler.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/ksm-lite.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/managed-cluster.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/networkpolicies-disabled.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/node-ports.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/pyrra.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/static-etcd.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/strip-limits.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/grafana-weave-net-cluster.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/grafana-weave-net.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/weave-net.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/windows-hostprocess.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/windows.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/alertmanager.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/blackbox-exporter.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/grafana.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/kube-rbac-proxy.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/kube-state-metrics.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/alerts/alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/alerts/general.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/alerts/node.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/custom.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/rules/general.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/rules/node-rules.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/rules/rules.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/node-exporter.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/prometheus-operator.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/prometheus.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/lib/mixin.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/lib/rule-sanitizer.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/lib/utils.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/main.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/aks.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/aws.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/bootkube.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/eks.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/gke.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kops-coredns.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kops.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kubeadm.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kubespray.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/platforms.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/versions.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/alerts.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/alerts/alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/config.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/mixin.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/.gitignore delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/admission-webhook.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/alertmanagerconfigs-crd.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/alertmanagerconfigs-v1beta1-crd.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/alertmanagers-crd.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/conversion.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/podmonitors-crd.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/probes-crd.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheus-operator.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheusagents-crd.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheuses-crd.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheusrules-crd.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/scrapeconfigs-crd.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/servicemonitors-crd.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/thanosrulers-crd.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/.gitignore delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/.lint delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/Makefile delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/alerts.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/config.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/dashboards.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/dashboards.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/dashboards/overview.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/jsonnetfile.lock.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/mixin.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/.gitignore delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/Makefile delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/alerts.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/alerts/alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/config.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards/dashboards.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards/node.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards/use.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/lib/prom-mixin.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/mixin.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/rules.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/rules/rules.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/.gitignore delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/Makefile delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/alerts.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/config.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/dashboards.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/dashboards.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/mixin.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/pyrra-dev/pyrra/config/crd/bases/pyrra.dev_servicelevelobjectives.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/pyrra-dev/pyrra/config/crd/bases/pyrra.dev_servicelevelobjectives.yaml delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/absent.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/add-runbook-links.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/alerts.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/bucket-replicate.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/compact.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/query.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/receive.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/rule.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/sidecar.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/store.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/config.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/bucket-replicate.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/compact.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/dashboards.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/defaults.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/overview.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/query-frontend.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/query.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/receive.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/rule.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/sidecar.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/store.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/jsonnetfile.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/jsonnetfile.lock.json delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/README.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/builder.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/grpc.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/http.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/slo.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/utils.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/mixin.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules.jsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/bucket-replicate.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/query.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/receive.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/rules.libsonnet delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/store.libsonnet delete mode 100755 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/runbook.md delete mode 100644 build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/separated-alerts.jsonnet delete mode 120000 build/kube-prometheus/libraries/main/vendor/grafana delete mode 120000 build/kube-prometheus/libraries/main/vendor/grafana-builder delete mode 120000 build/kube-prometheus/libraries/main/vendor/grafana-mixin delete mode 120000 build/kube-prometheus/libraries/main/vendor/grafonnet delete mode 120000 build/kube-prometheus/libraries/main/vendor/grafonnet-7.0 delete mode 120000 build/kube-prometheus/libraries/main/vendor/grafonnet-latest delete mode 120000 build/kube-prometheus/libraries/main/vendor/grafonnet-v10.0.0 delete mode 120000 build/kube-prometheus/libraries/main/vendor/grafonnet-v11.0.0 delete mode 120000 build/kube-prometheus/libraries/main/vendor/kube-prometheus delete mode 120000 build/kube-prometheus/libraries/main/vendor/kube-state-metrics delete mode 120000 build/kube-prometheus/libraries/main/vendor/kube-state-metrics-mixin delete mode 120000 build/kube-prometheus/libraries/main/vendor/kubernetes-mixin delete mode 120000 build/kube-prometheus/libraries/main/vendor/mixin delete mode 120000 build/kube-prometheus/libraries/main/vendor/node-mixin delete mode 120000 build/kube-prometheus/libraries/main/vendor/prometheus delete mode 120000 build/kube-prometheus/libraries/main/vendor/prometheus-operator delete mode 120000 build/kube-prometheus/libraries/main/vendor/prometheus-operator-mixin delete mode 120000 build/kube-prometheus/libraries/main/vendor/pyrra delete mode 120000 build/kube-prometheus/libraries/main/vendor/thanos-mixin delete mode 120000 build/kube-prometheus/libraries/main/vendor/xtd diff --git a/build/kube-prometheus/libraries/main/jsonnetfile.json b/build/kube-prometheus/libraries/main/jsonnetfile.json deleted file mode 100644 index 97f3b96ff..000000000 --- a/build/kube-prometheus/libraries/main/jsonnetfile.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/prometheus-operator/kube-prometheus.git", - "subdir": "jsonnet/kube-prometheus" - } - }, - "version": "main" - } - ], - "legacyImports": true -} diff --git a/build/kube-prometheus/libraries/main/jsonnetfile.lock.json b/build/kube-prometheus/libraries/main/jsonnetfile.lock.json deleted file mode 100644 index f01188e34..000000000 --- a/build/kube-prometheus/libraries/main/jsonnetfile.lock.json +++ /dev/null @@ -1,231 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/brancz/kubernetes-grafana.git", - "subdir": "grafana" - } - }, - "version": "5698c8940b6dadca3f42107b7839557bc041761f", - "sum": "l6fPvh3tW6fWot308w71QY/amrYsFPeitvz1IgJxqQA=" - }, - { - "source": { - "git": { - "remote": "https://github.com/etcd-io/etcd.git", - "subdir": "contrib/mixin" - } - }, - "version": "b39b7c9213a0e44a40708d5aed46cc452fc9dfb2", - "sum": "IXI3LQIT9NmTPJAk8WLUJd5+qZfcGpeNCyWIK7oEpws=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafana.git", - "subdir": "grafana-mixin" - } - }, - "version": "1120f9e255760a3c104b57871fcb91801e934382", - "sum": "MkjR7zCgq6MUZgjDzop574tFKoTX2OBr7DTwm1K+Ofs=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet-lib.git", - "subdir": "grafonnet" - } - }, - "version": "a1d61cce1da59c71409b99b5c7568511fec661ea", - "sum": "342u++/7rViR/zj2jeJOjshzglkZ1SY+hFNuyCBFMdc=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet-lib.git", - "subdir": "grafonnet-7.0" - } - }, - "version": "a1d61cce1da59c71409b99b5c7568511fec661ea", - "sum": "gCtR9s/4D5fxU9aKXg0Bru+/njZhA0YjLjPiASc61FM=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet.git", - "subdir": "gen/grafonnet-latest" - } - }, - "version": "733beadbc8dab55c5fe1bcdcf0d8a2d215759a55", - "sum": "eyuJ0jOXeA4MrobbNgU4/v5a7ASDHslHZ0eS6hDdWoI=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet.git", - "subdir": "gen/grafonnet-v10.0.0" - } - }, - "version": "733beadbc8dab55c5fe1bcdcf0d8a2d215759a55", - "sum": "xdcrJPJlpkq4+5LpGwN4tPAuheNNLXZjE6tDcyvFjr0=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet.git", - "subdir": "gen/grafonnet-v11.0.0" - } - }, - "version": "733beadbc8dab55c5fe1bcdcf0d8a2d215759a55", - "sum": "0BvzR0i4bS4hc2O3xDv6i9m52z7mPrjvqxtcPrGhynA=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/jsonnet-libs.git", - "subdir": "grafana-builder" - } - }, - "version": "cc24a43ba8d973732f6cc124d707b7f5906ff192", - "sum": "yxqWcq/N3E/a/XreeU6EuE6X7kYPnG0AspAQFKOjASo=" - }, - { - "source": { - "git": { - "remote": "https://github.com/jsonnet-libs/docsonnet.git", - "subdir": "doc-util" - } - }, - "version": "6ac6c69685b8c29c54515448eaca583da2d88150", - "sum": "BrAL/k23jq+xy9oA7TWIhUx07dsA/QLm3g7ktCwe//U=" - }, - { - "source": { - "git": { - "remote": "https://github.com/jsonnet-libs/xtd.git", - "subdir": "" - } - }, - "version": "63d430b69a95741061c2f7fc9d84b1a778511d9c", - "sum": "qiZi3axUSXCVzKUF83zSAxklwrnitMmrDK4XAfjPMdE=" - }, - { - "source": { - "git": { - "remote": "https://github.com/kubernetes-monitoring/kubernetes-mixin.git", - "subdir": "" - } - }, - "version": "b4f314e2d70505cea6ecdf82cafd8b3e989bd6fa", - "sum": "UMG9cPMJlglkQTER1T9t8lbZA0/kdH8/glwHo60txuk=" - }, - { - "source": { - "git": { - "remote": "https://github.com/kubernetes/kube-state-metrics.git", - "subdir": "jsonnet/kube-state-metrics" - } - }, - "version": "e6f359db36ab62b0238aff20bf568ad69f998a87", - "sum": "lO7jUSzAIy8Yk9pOWJIWgPRhubkWzVh56W6wtYfbVH4=" - }, - { - "source": { - "git": { - "remote": "https://github.com/kubernetes/kube-state-metrics.git", - "subdir": "jsonnet/kube-state-metrics-mixin" - } - }, - "version": "e6f359db36ab62b0238aff20bf568ad69f998a87", - "sum": "qclI7LwucTjBef3PkGBkKxF0mfZPbHnn4rlNWKGtR4c=" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus-operator/kube-prometheus.git", - "subdir": "jsonnet/kube-prometheus" - } - }, - "version": "74e445ae4a2582f978bae2e0e9b63024d7f759d6", - "sum": "roigNXE23iQFFU6G8t7/SF+UKqG6zV9yQotiClXnkoM=" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus-operator/prometheus-operator.git", - "subdir": "jsonnet/mixin" - } - }, - "version": "bf3a738f8ce631035005884f99ed1f1a7ef453a2", - "sum": "gi+knjdxs2T715iIQIntrimbHRgHnpM8IFBJDD1gYfs=", - "name": "prometheus-operator-mixin" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus-operator/prometheus-operator.git", - "subdir": "jsonnet/prometheus-operator" - } - }, - "version": "bf3a738f8ce631035005884f99ed1f1a7ef453a2", - "sum": "6IwYUpGs77xQUxluawAb+xCBwJeylRmhnKt65+yUFoM=" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus/alertmanager.git", - "subdir": "doc/alertmanager-mixin" - } - }, - "version": "a6df704408ba303c5d1d4e8e751da227e0ab08bf", - "sum": "IpF46ZXsm+0wJJAPtAre8+yxTNZA57mBqGpBP/r7/kw=", - "name": "alertmanager" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus/node_exporter.git", - "subdir": "docs/node-mixin" - } - }, - "version": "b9d0932179a0c5b3a8863f3d6cdafe8584cedc8e", - "sum": "rhUvbqviGjQ2mwsRhHKMN0TiS3YvnYpUXHew3XlQ+Wg=" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus/prometheus.git", - "subdir": "documentation/prometheus-mixin" - } - }, - "version": "70bb219d332411ee6d95e4571feba541fa2ca20f", - "sum": "dYLcLzGH4yF3qB7OGC/7z4nqeTNjv42L7Q3BENU8XJI=", - "name": "prometheus" - }, - { - "source": { - "git": { - "remote": "https://github.com/pyrra-dev/pyrra.git", - "subdir": "config/crd/bases" - } - }, - "version": "551856d42dff02ec38c5b0ea6a2d99c4cb127e82", - "sum": "bY/Pcrrbynguq8/HaI88cQ3B2hLv/xc+76QILY7IL+g=", - "name": "pyrra" - }, - { - "source": { - "git": { - "remote": "https://github.com/thanos-io/thanos.git", - "subdir": "mixin" - } - }, - "version": "dfeaf6e258bca159c39fa6f7dadba51c27ff06b0", - "sum": "ieCD4eMgGbOlrI8GmckGPHBGQDcLasE1rULYq56W/bs=", - "name": "thanos-mixin" - } - ], - "legacyImports": false -} diff --git a/build/kube-prometheus/libraries/main/vendor/alertmanager b/build/kube-prometheus/libraries/main/vendor/alertmanager deleted file mode 120000 index 96f32a46b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/alertmanager +++ /dev/null @@ -1 +0,0 @@ -github.com/prometheus/alertmanager/doc/alertmanager-mixin \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/doc-util b/build/kube-prometheus/libraries/main/vendor/doc-util deleted file mode 120000 index dcfde67cf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/doc-util +++ /dev/null @@ -1 +0,0 @@ -github.com/jsonnet-libs/docsonnet/doc-util \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/brancz/kubernetes-grafana/grafana/grafana.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/brancz/kubernetes-grafana/grafana/grafana.libsonnet deleted file mode 100644 index 2813ee3d2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/brancz/kubernetes-grafana/grafana/grafana.libsonnet +++ /dev/null @@ -1,377 +0,0 @@ -local defaults = { - local defaults = self, - namespace: 'default', - version: '7.5.10', - image: 'docker.io/grafana/grafana:' + defaults.version, - commonLabels:: { - 'app.kubernetes.io/name': 'grafana', - 'app.kubernetes.io/version': defaults.version, - 'app.kubernetes.io/component': 'grafana', - }, - selectorLabels:: { - [labelName]: defaults.commonLabels[labelName] - for labelName in std.objectFields(defaults.commonLabels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, - replicas: 1, - port: 3000, - resources: { - requests: { cpu: '100m', memory: '100Mi' }, - limits: { cpu: '200m', memory: '200Mi' }, - }, - - dashboards: {}, - rawDashboards: {}, - folderDashboards: {}, - folderUidGenerator(folder): '', - datasources: [{ - name: 'prometheus', - type: 'prometheus', - access: 'proxy', - orgId: 1, - url: 'http://prometheus-k8s.' + defaults.namespace + '.svc:9090', - version: 1, - editable: false, - }], - // Forces pod restarts when dashboards are changed - dashboardsChecksum: false, - config: { - sections: { - date_formats: { default_timezone: 'UTC' }, - }, - }, - ldap: null, - plugins: [], - env: [], - containers: [], -}; - -function(params) { - local g = self, - _config:: defaults + params, - _metadata:: { - name: 'grafana', - namespace: g._config.namespace, - labels: g._config.commonLabels, - }, - - serviceAccount: { - apiVersion: 'v1', - kind: 'ServiceAccount', - metadata: g._metadata, - automountServiceAccountToken: false, - }, - - service: { - apiVersion: 'v1', - kind: 'Service', - metadata: g._metadata, - spec: { - selector: g.deployment.spec.selector.matchLabels, - ports: [ - { name: 'http', targetPort: 'http', port: 3000 }, - ], - }, - }, - - config: { - apiVersion: 'v1', - kind: 'Secret', - metadata: g._metadata { - name: 'grafana-config', - }, - type: 'Opaque', - stringData: { - 'grafana.ini': std.manifestIni(g._config.config), - } + if g._config.ldap != null then { 'ldap.toml': g._config.ldap } else {}, - }, - - dashboardDefinitions: { - apiVersion: 'v1', - kind: 'ConfigMapList', - items: [ - { - local dashboardName = 'grafana-dashboard-' + std.strReplace(name, '.json', ''), - apiVersion: 'v1', - kind: 'ConfigMap', - metadata: g._metadata { - name: dashboardName, - }, - data: { [name]: std.manifestJsonEx(g._config.dashboards[name], ' ') }, - } - for name in std.objectFields(g._config.dashboards) - ] + [ - { - local dashboardName = 'grafana-dashboard-' + std.strReplace(name, '.json', ''), - apiVersion: 'v1', - kind: 'ConfigMap', - metadata: g._metadata { - name: dashboardName, - }, - data: { [name]: std.manifestJsonEx(g._config.folderDashboards[folder][name], ' ') }, - } - for folder in std.objectFields(g._config.folderDashboards) - for name in std.objectFields(g._config.folderDashboards[folder]) - ] + ( - if std.length(g._config.rawDashboards) > 0 then - [ - - { - local dashboardName = 'grafana-dashboard-' + std.strReplace(name, '.json', ''), - apiVersion: 'v1', - kind: 'ConfigMap', - metadata: g._metadata { - name: dashboardName, - }, - data: { [name]: g._config.rawDashboards[name] }, - } - for name in std.objectFields(g._config.rawDashboards) - ] - else - [] - ), - }, - - dashboardSources: - local dashboardSources = { - apiVersion: 1, - providers: - ( - if std.length(g._config.dashboards) + - std.length(g._config.rawDashboards) > 0 then [ - { - name: '0', - orgId: 1, - folder: 'Default', - folderUid: g._config.folderUidGenerator('Default'), - type: 'file', - options: { - path: '/grafana-dashboard-definitions/0', - }, - }, - ] else [] - ) + - [ - { - name: folder, - orgId: 1, - folder: folder, - folderUid: g._config.folderUidGenerator(folder), - type: 'file', - options: { - path: '/grafana-dashboard-definitions/' + folder, - }, - } - for folder in std.objectFields(g._config.folderDashboards) - ], - }; - - { - kind: 'ConfigMap', - apiVersion: 'v1', - metadata: g._metadata { - name: 'grafana-dashboards', - }, - data: { 'dashboards.yaml': std.manifestJsonEx(dashboardSources, ' ') }, - }, - - dashboardDatasources: { - apiVersion: 'v1', - kind: 'Secret', - metadata: g._metadata { - name: 'grafana-datasources', - }, - type: 'Opaque', - stringData: { - 'datasources.yaml': std.manifestJsonEx( - { - apiVersion: 1, - datasources: g._config.datasources, - }, ' ' - ), - }, - }, - - deployment: - local configVolume = { - name: 'grafana-config', - secret: { secretName: g.config.metadata.name }, - }; - local configVolumeMount = { - name: configVolume.name, - mountPath: '/etc/grafana', - readOnly: false, - }; - - local storageVolume = { - name: 'grafana-storage', - emptyDir: {}, - }; - local storageVolumeMount = { - name: storageVolume.name, - mountPath: '/var/lib/grafana', - readOnly: false, - }; - - local datasourcesVolume = { - name: 'grafana-datasources', - secret: { secretName: g.dashboardDatasources.metadata.name }, - }; - local datasourcesVolumeMount = { - name: datasourcesVolume.name, - mountPath: '/etc/grafana/provisioning/datasources', - readOnly: false, - }; - - local dashboardsVolume = { - name: 'grafana-dashboards', - configMap: { name: g.dashboardSources.metadata.name }, - }; - local dashboardsVolumeMount = { - name: dashboardsVolume.name, - mountPath: '/etc/grafana/provisioning/dashboards', - readOnly: false, - }; - // A volume on /tmp is needed to let us use 'readOnlyRootFilesystem: true' - local pluginTmpVolume = { - name: 'tmp-plugins', - emptyDir: { - medium: 'Memory', - }, - }; - local pluginTmpVolumeMount = { - mountPath: '/tmp', - name: 'tmp-plugins', - readOnly: false, - }; - - local volumeMounts = - [ - storageVolumeMount, - datasourcesVolumeMount, - dashboardsVolumeMount, - pluginTmpVolumeMount, - ] + - [ - { - local dashboardName = std.strReplace(name, '.json', ''), - name: 'grafana-dashboard-' + dashboardName, - mountPath: '/grafana-dashboard-definitions/0/' + dashboardName, - readOnly: false, - } - for name in std.objectFields(g._config.dashboards + g._config.rawDashboards) - ] + - [ - { - local dashboardName = std.strReplace(name, '.json', ''), - name: 'grafana-dashboard-' + dashboardName, - mountPath: '/grafana-dashboard-definitions/' + folder + '/' + dashboardName, - readOnly: false, - } - for folder in std.objectFields(g._config.folderDashboards) - for name in std.objectFields(g._config.folderDashboards[folder]) - ] + ( - if std.length(g._config.config) > 0 then [configVolumeMount] else [] - ); - - local volumes = - [ - storageVolume, - datasourcesVolume, - dashboardsVolume, - pluginTmpVolume, - ] + - [ - { - local dashboardName = 'grafana-dashboard-' + std.strReplace(name, '.json', ''), - name: dashboardName, - configMap: { name: dashboardName }, - } - for name in std.objectFields(g._config.dashboards) - ] + - [ - { - local dashboardName = 'grafana-dashboard-' + std.strReplace(name, '.json', ''), - name: dashboardName, - configMap: { name: dashboardName }, - } - for folder in std.objectFields(g._config.folderDashboards) - for name in std.objectFields(g._config.folderDashboards[folder]) - ] + - [ - { - local dashboardName = 'grafana-dashboard-' + std.strReplace(name, '.json', ''), - name: dashboardName, - configMap: { name: dashboardName }, - } - for name in std.objectFields(g._config.rawDashboards) - ] + - if std.length(g._config.config) > 0 then [configVolume] else []; - - local plugins = ( - if std.length(g._config.plugins) == 0 then - [] - else - [{ name: 'GF_INSTALL_PLUGINS', value: std.join(',', g._config.plugins) }] - ); - - local grafanaContainer = { - name: 'grafana', - image: g._config.image, - env: g._config.env + plugins, - volumeMounts: volumeMounts, - ports: [{ - name: 'http', - containerPort: g._config.port, - }], - readinessProbe: { - httpGet: { - path: '/api/health', - port: grafanaContainer.ports[0].name, - }, - }, - resources: g._config.resources, - securityContext: { - capabilities: { drop: ['ALL'] }, - allowPrivilegeEscalation: false, - readOnlyRootFilesystem: true, - seccompProfile: { type: 'RuntimeDefault' }, - }, - }; - - { - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: g._metadata, - spec: { - replicas: g._config.replicas, - selector: { - matchLabels: g._config.selectorLabels, - }, - template: { - metadata: { - labels: g._config.commonLabels, - annotations: { - [if std.length(g._config.config) > 0 then 'checksum/grafana-config']: std.md5(std.toString(g.config)), - 'checksum/grafana-datasources': std.md5(std.toString(g.dashboardDatasources)), - [if g._config.dashboardsChecksum then 'checksum/grafana-dashboards']: std.md5(std.toString(g.dashboardDefinitions)), - 'checksum/grafana-dashboardproviders': std.md5(std.toString(g.dashboardSources)), - }, - }, - spec: { - containers: [grafanaContainer] + g._config.containers, - volumes: volumes, - serviceAccountName: g.serviceAccount.metadata.name, - nodeSelector: { - 'kubernetes.io/os': 'linux', - }, - securityContext: { - fsGroup: 65534, - runAsNonRoot: true, - runAsUser: 65534, - }, - }, - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/brancz/kubernetes-grafana/grafana/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/brancz/kubernetes-grafana/grafana/jsonnetfile.json deleted file mode 100644 index 650733a05..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/brancz/kubernetes-grafana/grafana/jsonnetfile.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet-lib.git", - "subdir": "grafonnet" - } - }, - "version": "master" - } - ], - "legacyImports": false -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/.gitignore b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/.gitignore deleted file mode 100644 index 22d0d82f8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/.gitignore +++ /dev/null @@ -1 +0,0 @@ -vendor diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/.lint b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/.lint deleted file mode 100644 index d373b8e2f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/.lint +++ /dev/null @@ -1,18 +0,0 @@ ---- -exclusions: - template-instance-rule: - reason: The mixin only uses `instance` for alerts, and `cluster` for dashboard queries - template-job-rule: - reason: The dashboards use 'cluster' label as selector, rather than 'job' - target-job-rule: - reason: The mixin uses 'cluster' instead of 'job' - target-instance-rule: - reason: The mixin only uses `instance` for alerts, and `cluster` for dashboard queries - alert-name-camelcase: - reason: etcd is spelled all lowercase, meaning all alert name start with a lowercase - alert-summary-style: - reason: etcd is spelled all lowercase, meaning summaries starting with 'etcd' are still valid - panel-units-rule: - reason: Stat panels have no unit, and some panels use custom unit or text - panel-title-description-rule: - reason: Suppress noisy linting rule until we can address minor tech debt like this diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/Makefile b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/Makefile deleted file mode 100644 index dbbcb1363..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -.PHONY: tools manifests test clean jb_install - -OS := linux -ARCH ?= amd64 -PROMETHEUS_VERSION := 2.33.1 - -tools: - go install github.com/google/go-jsonnet/cmd/jsonnet@latest - go install github.com/brancz/gojsontoyaml@latest - go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest - wget -qO- "https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_VERSION}/prometheus-${PROMETHEUS_VERSION}.${OS}-${ARCH}.tar.gz" |\ - tar xvz --strip-components=1 -C "$$(go env GOPATH)/bin" prometheus-${PROMETHEUS_VERSION}.${OS}-${ARCH}/promtool - -manifests: manifests/etcd-prometheusRules.yaml - -manifests/etcd-prometheusRules.yaml: - mkdir -p manifests - jsonnet -e '(import "mixin.libsonnet").prometheusAlerts' | gojsontoyaml > manifests/etcd-prometheusRules.yaml - -test: manifests/etcd-prometheusRules.yaml - promtool test rules test.yaml - -jb_install: - jb install - -clean: - rm -rf manifests/*.yaml diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/OWNERS b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/OWNERS deleted file mode 100644 index c299e9b51..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/OWNERS +++ /dev/null @@ -1,4 +0,0 @@ -# See the OWNERS docs at https://go.k8s.io/owners - -labels: - - area/observability diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/README.md deleted file mode 100644 index 0da7ea8fc..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# Prometheus Monitoring Mixin for etcd - -> NOTE: This project is *alpha* stage. Flags, configuration, behaviour and design may change significantly in following releases. - -A customisable set of Grafana dashboard and Prometheus alerts for etcd. - -Instructions for use are the same as the [kubernetes-mixin](https://github.com/kubernetes-monitoring/kubernetes-mixin). - -## Grafana 7.x support - -By default, this mixin generates the dashboard compatible with Grafana 8.x or newer. -To generate dashboard for Grafana 7.x, set in the config.libsonnet: - -``` -// set to true if dashboards should be compatible with Grafana 7x or earlier -grafana7x: true, -``` - -## Background - -* For more information about monitoring mixins, see this [design doc](https://docs.google.com/document/d/1A9xvzwqnFVSOZ5fD3blKODXfsat5fg6ZhnKu9LK3lB4/edit#). - -## Testing alerts - -Make sure to have [jsonnet](https://jsonnet.org/) and [gojsontoyaml](https://github.com/brancz/gojsontoyaml) installed. You can fetch it via - -``` -make tools -``` - -First compile the mixin to a YAML file, which the promtool will read: -``` -make manifests -``` - -Then run the unit test: -``` -promtool test rules test.yaml -``` diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/alerts/alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/alerts/alerts.libsonnet deleted file mode 100644 index 856fe4c1e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/alerts/alerts.libsonnet +++ /dev/null @@ -1,240 +0,0 @@ -{ - prometheusAlerts+:: { - groups+: [ - { - name: 'etcd', - rules: [ - { - alert: 'etcdMembersDown', - expr: ||| - max without (endpoint) ( - sum without (%(etcd_instance_labels)s) (up{%(etcd_selector)s} == bool 0) - or - count without (To) ( - sum without (%(etcd_instance_labels)s) (rate(etcd_network_peer_sent_failures_total{%(etcd_selector)s}[%(network_failure_range)ss])) > 0.01 - ) - ) - > 0 - ||| % { etcd_instance_labels: $._config.etcd_instance_labels, etcd_selector: $._config.etcd_selector, network_failure_range: $._config.scrape_interval_seconds * 4 }, - 'for': '10m', - labels: { - severity: 'critical', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": members are down ({{ $value }}).' % $._config.clusterLabel, - summary: 'etcd cluster members are down.', - }, - }, - { - alert: 'etcdInsufficientMembers', - expr: ||| - sum(up{%(etcd_selector)s} == bool 1) without (%(etcd_instance_labels)s) < ((count(up{%(etcd_selector)s}) without (%(etcd_instance_labels)s) + 1) / 2) - ||| % $._config, - 'for': '3m', - labels: { - severity: 'critical', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": insufficient members ({{ $value }}).' % $._config.clusterLabel, - summary: 'etcd cluster has insufficient number of members.', - }, - }, - { - alert: 'etcdNoLeader', - expr: ||| - etcd_server_has_leader{%(etcd_selector)s} == 0 - ||| % $._config, - 'for': '1m', - labels: { - severity: 'critical', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": member {{ $labels.instance }} has no leader.' % $._config.clusterLabel, - summary: 'etcd cluster has no leader.', - }, - }, - { - alert: 'etcdHighNumberOfLeaderChanges', - expr: ||| - increase((max without (%(etcd_instance_labels)s) (etcd_server_leader_changes_seen_total{%(etcd_selector)s}) or 0*absent(etcd_server_leader_changes_seen_total{%(etcd_selector)s}))[15m:1m]) >= 4 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": {{ $value }} leader changes within the last 15 minutes. Frequent elections may be a sign of insufficient resources, high network latency, or disruptions by other components and should be investigated.' % $._config.clusterLabel, - summary: 'etcd cluster has high number of leader changes.', - }, - }, - { - alert: 'etcdHighNumberOfFailedGRPCRequests', - expr: ||| - 100 * sum(rate(grpc_server_handled_total{%(etcd_selector)s, grpc_code=~"Unknown|FailedPrecondition|ResourceExhausted|Internal|Unavailable|DataLoss|DeadlineExceeded"}[5m])) without (grpc_type, grpc_code) - / - sum(rate(grpc_server_handled_total{%(etcd_selector)s}[5m])) without (grpc_type, grpc_code) - > 1 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": {{ $value }}%% of requests for {{ $labels.grpc_method }} failed on etcd instance {{ $labels.instance }}.' % $._config.clusterLabel, - summary: 'etcd cluster has high number of failed grpc requests.', - }, - }, - { - alert: 'etcdHighNumberOfFailedGRPCRequests', - expr: ||| - 100 * sum(rate(grpc_server_handled_total{%(etcd_selector)s, grpc_code=~"Unknown|FailedPrecondition|ResourceExhausted|Internal|Unavailable|DataLoss|DeadlineExceeded"}[5m])) without (grpc_type, grpc_code) - / - sum(rate(grpc_server_handled_total{%(etcd_selector)s}[5m])) without (grpc_type, grpc_code) - > 5 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'critical', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": {{ $value }}%% of requests for {{ $labels.grpc_method }} failed on etcd instance {{ $labels.instance }}.' % $._config.clusterLabel, - summary: 'etcd cluster has high number of failed grpc requests.', - }, - }, - { - alert: 'etcdGRPCRequestsSlow', - expr: ||| - histogram_quantile(0.99, sum(rate(grpc_server_handling_seconds_bucket{%(etcd_selector)s, grpc_method!="Defragment", grpc_type="unary"}[5m])) without(grpc_type)) - > 0.15 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'critical', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": 99th percentile of gRPC requests is {{ $value }}s on etcd instance {{ $labels.instance }} for {{ $labels.grpc_method }} method.' % $._config.clusterLabel, - summary: 'etcd grpc requests are slow', - }, - }, - { - alert: 'etcdMemberCommunicationSlow', - expr: ||| - histogram_quantile(0.99, rate(etcd_network_peer_round_trip_time_seconds_bucket{%(etcd_selector)s}[5m])) - > 0.15 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": member communication with {{ $labels.To }} is taking {{ $value }}s on etcd instance {{ $labels.instance }}.' % $._config.clusterLabel, - summary: 'etcd cluster member communication is slow.', - }, - }, - { - alert: 'etcdHighNumberOfFailedProposals', - expr: ||| - rate(etcd_server_proposals_failed_total{%(etcd_selector)s}[15m]) > 5 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": {{ $value }} proposal failures within the last 30 minutes on etcd instance {{ $labels.instance }}.' % $._config.clusterLabel, - summary: 'etcd cluster has high number of proposal failures.', - }, - }, - { - alert: 'etcdHighFsyncDurations', - expr: ||| - histogram_quantile(0.99, rate(etcd_disk_wal_fsync_duration_seconds_bucket{%(etcd_selector)s}[5m])) - > 0.5 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": 99th percentile fsync durations are {{ $value }}s on etcd instance {{ $labels.instance }}.' % $._config.clusterLabel, - summary: 'etcd cluster 99th percentile fsync durations are too high.', - }, - }, - { - alert: 'etcdHighFsyncDurations', - expr: ||| - histogram_quantile(0.99, rate(etcd_disk_wal_fsync_duration_seconds_bucket{%(etcd_selector)s}[5m])) - > 1 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'critical', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": 99th percentile fsync durations are {{ $value }}s on etcd instance {{ $labels.instance }}.' % $._config.clusterLabel, - summary: 'etcd cluster 99th percentile fsync durations are too high.', - }, - }, - { - alert: 'etcdHighCommitDurations', - expr: ||| - histogram_quantile(0.99, rate(etcd_disk_backend_commit_duration_seconds_bucket{%(etcd_selector)s}[5m])) - > 0.25 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": 99th percentile commit durations {{ $value }}s on etcd instance {{ $labels.instance }}.' % $._config.clusterLabel, - summary: 'etcd cluster 99th percentile commit durations are too high.', - }, - }, - { - alert: 'etcdDatabaseQuotaLowSpace', - expr: ||| - (last_over_time(etcd_mvcc_db_total_size_in_bytes{%(etcd_selector)s}[5m]) / last_over_time(etcd_server_quota_backend_bytes{%(etcd_selector)s}[5m]))*100 > 95 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'critical', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": database size exceeds the defined quota on etcd instance {{ $labels.instance }}, please defrag or increase the quota as the writes to etcd will be disabled when it is full.' % $._config.clusterLabel, - summary: 'etcd cluster database is running full.', - }, - }, - { - alert: 'etcdExcessiveDatabaseGrowth', - expr: ||| - predict_linear(etcd_mvcc_db_total_size_in_bytes{%(etcd_selector)s}[4h], 4*60*60) > etcd_server_quota_backend_bytes{%(etcd_selector)s} - ||| % $._config, - 'for': '10m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": Predicting running out of disk space in the next four hours, based on write observations within the past four hours on etcd instance {{ $labels.instance }}, please check as it might be disruptive.' % $._config.clusterLabel, - summary: 'etcd cluster database growing very fast.', - }, - }, - { - alert: 'etcdDatabaseHighFragmentationRatio', - expr: ||| - (last_over_time(etcd_mvcc_db_total_size_in_use_in_bytes{%(etcd_selector)s}[5m]) / last_over_time(etcd_mvcc_db_total_size_in_bytes{%(etcd_selector)s}[5m])) < 0.5 and etcd_mvcc_db_total_size_in_use_in_bytes{%(etcd_selector)s} > 104857600 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'etcd cluster "{{ $labels.%s }}": database size in use on instance {{ $labels.instance }} is {{ $value | humanizePercentage }} of the actual allocated disk space, please run defragmentation (e.g. etcdctl defrag) to retrieve the unused fragmented disk space.' % $._config.clusterLabel, - summary: 'etcd database size in use is less than 50% of the actual allocated storage.', - runbook_url: 'https://etcd.io/docs/v3.5/op-guide/maintenance/#defragmentation', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/config.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/config.libsonnet deleted file mode 100644 index d27b13091..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/config.libsonnet +++ /dev/null @@ -1,26 +0,0 @@ -{ - - _config+:: { - - // set to true if dashboards should be compatible with Grafana 7x or earlier - grafana7x: false, - - etcd_selector: 'job=~".*etcd.*"', - // etcd_instance_labels are the label names that are uniquely - // identifying an instance and need to be aggreated away for alerts - // that are about an etcd cluster as a whole. For example, if etcd - // instances are deployed on K8s, you will likely want to change - // this to 'instance, pod'. - etcd_instance_labels: 'instance', - // scrape_interval_seconds is the global scrape interval which can be - // used to dynamically adjust rate windows as a function of the interval. - scrape_interval_seconds: 30, - // Dashboard variable refresh option on Grafana (https://grafana.com/docs/grafana/latest/datasources/prometheus/). - // 0 : Never (Will never refresh the Dashboard variables values) - // 1 : On Dashboard Load (Will refresh Dashboards variables when dashboard are loaded) - // 2 : On Time Range Change (Will refresh Dashboards variables when time range will be changed) - dashboard_var_refresh: 2, - // clusterLabel is used to identify a cluster. - clusterLabel: 'job', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/dashboards.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/dashboards.libsonnet deleted file mode 100644 index af089a68f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/dashboards.libsonnet +++ /dev/null @@ -1,2 +0,0 @@ -(import "etcd.libsonnet") + -(import "etcd-grafana7x.libsonnet") diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/etcd-grafana7x.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/etcd-grafana7x.libsonnet deleted file mode 100644 index 38d5085c9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/etcd-grafana7x.libsonnet +++ /dev/null @@ -1,1186 +0,0 @@ -{ - grafanaDashboards+:: if $._config.grafana7x then { - 'etcd.json': { - uid: std.md5('etcd.json'), - title: 'etcd', - description: 'etcd sample Grafana dashboard with Prometheus', - tags: ['etcd-mixin'], - style: 'dark', - timezone: 'browser', - editable: true, - hideControls: false, - sharedCrosshair: false, - rows: [ - { - collapse: false, - editable: true, - height: '250px', - panels: [ - { - cacheTimeout: null, - colorBackground: false, - colorValue: false, - colors: [ - 'rgba(245, 54, 54, 0.9)', - 'rgba(237, 129, 40, 0.89)', - 'rgba(50, 172, 45, 0.97)', - ], - datasource: '$datasource', - editable: true, - 'error': false, - format: 'none', - gauge: { - maxValue: 100, - minValue: 0, - show: false, - thresholdLabels: false, - thresholdMarkers: true, - }, - id: 28, - interval: null, - isNew: true, - links: [], - mappingType: 1, - mappingTypes: [ - { - name: 'value to text', - value: 1, - }, - { - name: 'range to text', - value: 2, - }, - ], - maxDataPoints: 100, - nullPointMode: 'connected', - nullText: null, - postfix: '', - postfixFontSize: '50%', - prefix: '', - prefixFontSize: '50%', - rangeMaps: [{ - from: 'null', - text: 'N/A', - to: 'null', - }], - span: 3, - sparkline: { - fillColor: 'rgba(31, 118, 189, 0.18)', - full: false, - lineColor: 'rgb(31, 120, 193)', - show: false, - }, - targets: [{ - expr: 'sum(etcd_server_has_leader{%s, %s="$cluster"})' % [$._config.etcd_selector, $._config.clusterLabel], - intervalFactor: 2, - legendFormat: '', - metric: 'etcd_server_has_leader', - refId: 'A', - step: 20, - }], - thresholds: '', - title: 'Up', - type: 'singlestat', - valueFontSize: '200%', - valueMaps: [{ - op: '=', - text: 'N/A', - value: 'null', - }], - valueName: 'avg', - }, - { - aliasColors: {}, - bars: false, - datasource: '$datasource', - editable: true, - 'error': false, - fill: 0, - id: 23, - isNew: true, - legend: { - avg: false, - current: false, - max: false, - min: false, - show: false, - total: false, - values: false, - }, - lines: true, - linewidth: 2, - links: [], - nullPointMode: 'connected', - percentage: false, - pointradius: 5, - points: false, - renderer: 'flot', - seriesOverrides: [], - span: 5, - stack: false, - steppedLine: false, - targets: [ - { - expr: 'sum(rate(grpc_server_started_total{%s, %s="$cluster",grpc_type="unary"}[$__rate_interval]))' % [$._config.etcd_selector, $._config.clusterLabel], - format: 'time_series', - intervalFactor: 2, - legendFormat: 'RPC Rate', - metric: 'grpc_server_started_total', - refId: 'A', - step: 2, - }, - { - expr: 'sum(rate(grpc_server_handled_total{%s, %s="$cluster",grpc_type="unary",grpc_code=~"Unknown|FailedPrecondition|ResourceExhausted|Internal|Unavailable|DataLoss|DeadlineExceeded"}[$__rate_interval]))' % [$._config.etcd_selector, $._config.clusterLabel], - format: 'time_series', - intervalFactor: 2, - legendFormat: 'RPC Failed Rate', - metric: 'grpc_server_handled_total', - refId: 'B', - step: 2, - }, - ], - thresholds: [], - timeFrom: null, - timeShift: null, - title: 'RPC Rate', - tooltip: { - msResolution: false, - shared: true, - sort: 0, - value_type: 'individual', - }, - type: 'graph', - xaxis: { - mode: 'time', - name: null, - show: true, - values: [], - }, - yaxes: [ - { - format: 'ops', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - { - format: 'short', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - ], - }, - { - aliasColors: {}, - bars: false, - datasource: '$datasource', - editable: true, - 'error': false, - fill: 0, - id: 41, - isNew: true, - legend: { - avg: false, - current: false, - max: false, - min: false, - show: false, - total: false, - values: false, - }, - lines: true, - linewidth: 2, - links: [], - nullPointMode: 'connected', - percentage: false, - pointradius: 5, - points: false, - renderer: 'flot', - seriesOverrides: [], - span: 4, - stack: true, - steppedLine: false, - targets: [ - { - expr: 'sum(grpc_server_started_total{%(etcd_selector)s,%(clusterLabel)s="$cluster",grpc_service="etcdserverpb.Watch",grpc_type="bidi_stream"}) - sum(grpc_server_handled_total{%(clusterLabel)s="$cluster",grpc_service="etcdserverpb.Watch",grpc_type="bidi_stream"})' % $._config, - intervalFactor: 2, - legendFormat: 'Watch Streams', - metric: 'grpc_server_handled_total', - refId: 'A', - step: 4, - }, - { - expr: 'sum(grpc_server_started_total{%(etcd_selector)s,%(clusterLabel)s="$cluster",grpc_service="etcdserverpb.Lease",grpc_type="bidi_stream"}) - sum(grpc_server_handled_total{%(clusterLabel)s="$cluster",grpc_service="etcdserverpb.Lease",grpc_type="bidi_stream"})' % $._config, - intervalFactor: 2, - legendFormat: 'Lease Streams', - metric: 'grpc_server_handled_total', - refId: 'B', - step: 4, - }, - ], - thresholds: [], - timeFrom: null, - timeShift: null, - title: 'Active Streams', - tooltip: { - msResolution: false, - shared: true, - sort: 0, - value_type: 'individual', - }, - type: 'graph', - xaxis: { - mode: 'time', - name: null, - show: true, - values: [], - }, - yaxes: [ - { - format: 'short', - label: '', - logBase: 1, - max: null, - min: null, - show: true, - }, - { - format: 'short', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - ], - }, - ], - showTitle: false, - title: 'Row', - }, - { - collapse: false, - editable: true, - height: '250px', - panels: [ - { - aliasColors: {}, - bars: false, - datasource: '$datasource', - decimals: null, - editable: true, - 'error': false, - fill: 0, - grid: {}, - id: 1, - legend: { - avg: false, - current: false, - max: false, - min: false, - show: false, - total: false, - values: false, - }, - lines: true, - linewidth: 2, - links: [], - nullPointMode: 'connected', - percentage: false, - pointradius: 5, - points: false, - renderer: 'flot', - seriesOverrides: [], - span: 4, - stack: false, - steppedLine: false, - targets: [{ - expr: 'etcd_mvcc_db_total_size_in_bytes{%s, %s="$cluster"}' % [$._config.etcd_selector, $._config.clusterLabel], - hide: false, - interval: '', - intervalFactor: 2, - legendFormat: '{{instance}} DB Size', - metric: '', - refId: 'A', - step: 4, - }], - thresholds: [], - timeFrom: null, - timeShift: null, - title: 'DB Size', - tooltip: { - msResolution: false, - shared: true, - sort: 0, - value_type: 'cumulative', - }, - type: 'graph', - xaxis: { - mode: 'time', - name: null, - show: true, - values: [], - }, - yaxes: [ - { - format: 'bytes', - logBase: 1, - max: null, - min: null, - show: true, - }, - { - format: 'short', - logBase: 1, - max: null, - min: null, - show: false, - }, - ], - }, - { - aliasColors: {}, - bars: false, - datasource: '$datasource', - editable: true, - 'error': false, - fill: 0, - grid: {}, - id: 3, - legend: { - avg: false, - current: false, - max: false, - min: false, - show: false, - total: false, - values: false, - }, - lines: true, - linewidth: 2, - links: [], - nullPointMode: 'connected', - percentage: false, - pointradius: 1, - points: false, - renderer: 'flot', - seriesOverrides: [], - span: 4, - stack: false, - steppedLine: true, - targets: [ - { - expr: 'histogram_quantile(0.99, sum(rate(etcd_disk_wal_fsync_duration_seconds_bucket{%s, %s="$cluster"}[$__rate_interval])) by (instance, le))' % [$._config.etcd_selector, $._config.clusterLabel], - hide: false, - intervalFactor: 2, - legendFormat: '{{instance}} WAL fsync', - metric: 'etcd_disk_wal_fsync_duration_seconds_bucket', - refId: 'A', - step: 4, - }, - { - expr: 'histogram_quantile(0.99, sum(rate(etcd_disk_backend_commit_duration_seconds_bucket{%s, %s="$cluster"}[$__rate_interval])) by (instance, le))' % [$._config.etcd_selector, $._config.clusterLabel], - intervalFactor: 2, - legendFormat: '{{instance}} DB fsync', - metric: 'etcd_disk_backend_commit_duration_seconds_bucket', - refId: 'B', - step: 4, - }, - ], - thresholds: [], - timeFrom: null, - timeShift: null, - title: 'Disk Sync Duration', - tooltip: { - msResolution: false, - shared: true, - sort: 0, - value_type: 'cumulative', - }, - type: 'graph', - xaxis: { - mode: 'time', - name: null, - show: true, - values: [], - }, - yaxes: [ - { - format: 's', - logBase: 1, - max: null, - min: null, - show: true, - }, - { - format: 'short', - logBase: 1, - max: null, - min: null, - show: false, - }, - ], - }, - { - aliasColors: {}, - bars: false, - datasource: '$datasource', - editable: true, - 'error': false, - fill: 0, - id: 29, - isNew: true, - legend: { - avg: false, - current: false, - max: false, - min: false, - show: false, - total: false, - values: false, - }, - lines: true, - linewidth: 2, - links: [], - nullPointMode: 'connected', - percentage: false, - pointradius: 5, - points: false, - renderer: 'flot', - seriesOverrides: [], - span: 4, - stack: false, - steppedLine: false, - targets: [{ - expr: 'process_resident_memory_bytes{%s, %s="$cluster"}' % [$._config.etcd_selector, $._config.clusterLabel], - intervalFactor: 2, - legendFormat: '{{instance}} Resident Memory', - metric: 'process_resident_memory_bytes', - refId: 'A', - step: 4, - }], - thresholds: [], - timeFrom: null, - timeShift: null, - title: 'Memory', - tooltip: { - msResolution: false, - shared: true, - sort: 0, - value_type: 'individual', - }, - type: 'graph', - xaxis: { - mode: 'time', - name: null, - show: true, - values: [], - }, - yaxes: [ - { - format: 'bytes', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - { - format: 'short', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - ], - }, - ], - title: 'New row', - }, - { - collapse: false, - editable: true, - height: '250px', - panels: [ - { - aliasColors: {}, - bars: false, - datasource: '$datasource', - editable: true, - 'error': false, - fill: 5, - id: 22, - isNew: true, - legend: { - avg: false, - current: false, - max: false, - min: false, - show: false, - total: false, - values: false, - }, - lines: true, - linewidth: 2, - links: [], - nullPointMode: 'connected', - percentage: false, - pointradius: 5, - points: false, - renderer: 'flot', - seriesOverrides: [], - span: 3, - stack: true, - steppedLine: false, - targets: [{ - expr: 'rate(etcd_network_client_grpc_received_bytes_total{%s, %s="$cluster"}[$__rate_interval])' % [$._config.etcd_selector, $._config.clusterLabel], - intervalFactor: 2, - legendFormat: '{{instance}} Client Traffic In', - metric: 'etcd_network_client_grpc_received_bytes_total', - refId: 'A', - step: 4, - }], - thresholds: [], - timeFrom: null, - timeShift: null, - title: 'Client Traffic In', - tooltip: { - msResolution: false, - shared: true, - sort: 0, - value_type: 'individual', - }, - type: 'graph', - xaxis: { - mode: 'time', - name: null, - show: true, - values: [], - }, - yaxes: [ - { - format: 'Bps', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - { - format: 'short', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - ], - }, - { - aliasColors: {}, - bars: false, - datasource: '$datasource', - editable: true, - 'error': false, - fill: 5, - id: 21, - isNew: true, - legend: { - avg: false, - current: false, - max: false, - min: false, - show: false, - total: false, - values: false, - }, - lines: true, - linewidth: 2, - links: [], - nullPointMode: 'connected', - percentage: false, - pointradius: 5, - points: false, - renderer: 'flot', - seriesOverrides: [], - span: 3, - stack: true, - steppedLine: false, - targets: [{ - expr: 'rate(etcd_network_client_grpc_sent_bytes_total{%s, %s="$cluster"}[$__rate_interval])' % [$._config.etcd_selector, $._config.clusterLabel], - intervalFactor: 2, - legendFormat: '{{instance}} Client Traffic Out', - metric: 'etcd_network_client_grpc_sent_bytes_total', - refId: 'A', - step: 4, - }], - thresholds: [], - timeFrom: null, - timeShift: null, - title: 'Client Traffic Out', - tooltip: { - msResolution: false, - shared: true, - sort: 0, - value_type: 'individual', - }, - type: 'graph', - xaxis: { - mode: 'time', - name: null, - show: true, - values: [], - }, - yaxes: [ - { - format: 'Bps', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - { - format: 'short', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - ], - }, - { - aliasColors: {}, - bars: false, - datasource: '$datasource', - editable: true, - 'error': false, - fill: 0, - id: 20, - isNew: true, - legend: { - avg: false, - current: false, - max: false, - min: false, - show: false, - total: false, - values: false, - }, - lines: true, - linewidth: 2, - links: [], - nullPointMode: 'connected', - percentage: false, - pointradius: 5, - points: false, - renderer: 'flot', - seriesOverrides: [], - span: 3, - stack: false, - steppedLine: false, - targets: [{ - expr: 'sum(rate(etcd_network_peer_received_bytes_total{%s, %s="$cluster"}[$__rate_interval])) by (instance)' % [$._config.etcd_selector, $._config.clusterLabel], - intervalFactor: 2, - legendFormat: '{{instance}} Peer Traffic In', - metric: 'etcd_network_peer_received_bytes_total', - refId: 'A', - step: 4, - }], - thresholds: [], - timeFrom: null, - timeShift: null, - title: 'Peer Traffic In', - tooltip: { - msResolution: false, - shared: true, - sort: 0, - value_type: 'individual', - }, - type: 'graph', - xaxis: { - mode: 'time', - name: null, - show: true, - values: [], - }, - yaxes: [ - { - format: 'Bps', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - { - format: 'short', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - ], - }, - { - aliasColors: {}, - bars: false, - datasource: '$datasource', - decimals: null, - editable: true, - 'error': false, - fill: 0, - grid: {}, - id: 16, - legend: { - avg: false, - current: false, - max: false, - min: false, - show: false, - total: false, - values: false, - }, - lines: true, - linewidth: 2, - links: [], - nullPointMode: 'connected', - percentage: false, - pointradius: 5, - points: false, - renderer: 'flot', - seriesOverrides: [], - span: 3, - stack: false, - steppedLine: false, - targets: [{ - expr: 'sum(rate(etcd_network_peer_sent_bytes_total{%s, %s="$cluster"}[$__rate_interval])) by (instance)' % [$._config.etcd_selector, $._config.clusterLabel], - hide: false, - interval: '', - intervalFactor: 2, - legendFormat: '{{instance}} Peer Traffic Out', - metric: 'etcd_network_peer_sent_bytes_total', - refId: 'A', - step: 4, - }], - thresholds: [], - timeFrom: null, - timeShift: null, - title: 'Peer Traffic Out', - tooltip: { - msResolution: false, - shared: true, - sort: 0, - value_type: 'cumulative', - }, - type: 'graph', - xaxis: { - mode: 'time', - name: null, - show: true, - values: [], - }, - yaxes: [ - { - format: 'Bps', - logBase: 1, - max: null, - min: null, - show: true, - }, - { - format: 'short', - logBase: 1, - max: null, - min: null, - show: true, - }, - ], - }, - ], - title: 'New row', - }, - { - collapse: false, - editable: true, - height: '250px', - panels: [ - { - aliasColors: {}, - bars: false, - datasource: '$datasource', - editable: true, - 'error': false, - fill: 0, - id: 40, - isNew: true, - legend: { - avg: false, - current: false, - max: false, - min: false, - show: false, - total: false, - values: false, - }, - lines: true, - linewidth: 2, - links: [], - nullPointMode: 'connected', - percentage: false, - pointradius: 5, - points: false, - renderer: 'flot', - seriesOverrides: [], - span: 6, - stack: false, - steppedLine: false, - targets: [ - { - expr: 'sum(rate(etcd_server_proposals_failed_total{%s, %s="$cluster"}[$__rate_interval]))' % [$._config.etcd_selector, $._config.clusterLabel], - intervalFactor: 2, - legendFormat: 'Proposal Failure Rate', - metric: 'etcd_server_proposals_failed_total', - refId: 'A', - step: 2, - }, - { - expr: 'sum(etcd_server_proposals_pending{%s, %s="$cluster"})' % [$._config.etcd_selector, $._config.clusterLabel], - intervalFactor: 2, - legendFormat: 'Proposal Pending Total', - metric: 'etcd_server_proposals_pending', - refId: 'B', - step: 2, - }, - { - expr: 'sum(rate(etcd_server_proposals_committed_total{%s, %s="$cluster"}[$__rate_interval]))' % [$._config.etcd_selector, $._config.clusterLabel], - intervalFactor: 2, - legendFormat: 'Proposal Commit Rate', - metric: 'etcd_server_proposals_committed_total', - refId: 'C', - step: 2, - }, - { - expr: 'sum(rate(etcd_server_proposals_applied_total{%s, %s="$cluster"}[$__rate_interval]))' % [$._config.etcd_selector, $._config.clusterLabel], - intervalFactor: 2, - legendFormat: 'Proposal Apply Rate', - refId: 'D', - step: 2, - }, - ], - thresholds: [], - timeFrom: null, - timeShift: null, - title: 'Raft Proposals', - tooltip: { - msResolution: false, - shared: true, - sort: 0, - value_type: 'individual', - }, - type: 'graph', - xaxis: { - mode: 'time', - name: null, - show: true, - values: [], - }, - yaxes: [ - { - format: 'short', - label: '', - logBase: 1, - max: null, - min: null, - show: true, - }, - { - format: 'short', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - ], - }, - { - aliasColors: {}, - bars: false, - datasource: '$datasource', - decimals: 0, - editable: true, - 'error': false, - fill: 0, - id: 19, - isNew: true, - legend: { - alignAsTable: false, - avg: false, - current: false, - max: false, - min: false, - rightSide: false, - show: false, - total: false, - values: false, - }, - lines: true, - linewidth: 2, - links: [], - nullPointMode: 'connected', - percentage: false, - pointradius: 5, - points: false, - renderer: 'flot', - seriesOverrides: [], - span: 6, - stack: false, - steppedLine: false, - targets: [{ - expr: 'changes(etcd_server_leader_changes_seen_total{%s, %s="$cluster"}[1d])' % [$._config.etcd_selector, $._config.clusterLabel], - intervalFactor: 2, - legendFormat: '{{instance}} Total Leader Elections Per Day', - metric: 'etcd_server_leader_changes_seen_total', - refId: 'A', - step: 2, - }], - thresholds: [], - timeFrom: null, - timeShift: null, - title: 'Total Leader Elections Per Day', - tooltip: { - msResolution: false, - shared: true, - sort: 0, - value_type: 'individual', - }, - type: 'graph', - xaxis: { - mode: 'time', - name: null, - show: true, - values: [], - }, - yaxes: [ - { - format: 'short', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - { - format: 'short', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - ], - }, - { - aliasColors: {}, - bars: false, - dashLength: 10, - dashes: false, - datasource: '$datasource', - decimals: 0, - editable: true, - 'error': false, - fieldConfig: { - defaults: { - custom: {}, - }, - overrides: [], - }, - fill: 0, - fillGradient: 0, - gridPos: { - h: 7, - w: 12, - x: 0, - y: 28, - }, - hiddenSeries: false, - id: 42, - isNew: true, - legend: { - alignAsTable: false, - avg: false, - current: false, - max: false, - min: false, - rightSide: false, - show: false, - total: false, - values: false, - }, - lines: true, - linewidth: 2, - links: [], - nullPointMode: 'connected', - options: { - alertThreshold: true, - }, - percentage: false, - pluginVersion: '7.4.3', - pointradius: 5, - points: false, - renderer: 'flot', - seriesOverrides: [], - spaceLength: 10, - stack: false, - steppedLine: false, - targets: [ - { - expr: 'histogram_quantile(0.99, sum by (instance, le) (rate(etcd_network_peer_round_trip_time_seconds_bucket{%s, %s="$cluster"}[$__rate_interval])))' % [$._config.etcd_selector, $._config.clusterLabel], - interval: '', - intervalFactor: 2, - legendFormat: '{{instance}} Peer round trip time', - metric: 'etcd_network_peer_round_trip_time_seconds_bucket', - refId: 'A', - step: 2, - }, - ], - thresholds: [], - timeFrom: null, - timeRegions: [], - timeShift: null, - title: 'Peer round trip time', - tooltip: { - msResolution: false, - shared: true, - sort: 0, - value_type: 'individual', - }, - type: 'graph', - xaxis: { - buckets: null, - mode: 'time', - name: null, - show: true, - values: [], - }, - yaxes: [ - { - '$$hashKey': 'object:925', - decimals: null, - format: 's', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - { - '$$hashKey': 'object:926', - format: 'short', - label: null, - logBase: 1, - max: null, - min: null, - show: true, - }, - ], - yaxis: { - align: false, - alignLevel: null, - }, - }, - ], - title: 'New row', - }, - ], - time: { - from: 'now-15m', - to: 'now', - }, - timepicker: { - now: true, - refresh_intervals: [ - '5s', - '10s', - '30s', - '1m', - '5m', - '15m', - '30m', - '1h', - '2h', - '1d', - ], - time_options: [ - '5m', - '15m', - '1h', - '6h', - '12h', - '24h', - '2d', - '7d', - '30d', - ], - }, - templating: { - list: [ - { - current: { - text: 'Prometheus', - value: 'Prometheus', - }, - hide: 0, - label: 'Data Source', - name: 'datasource', - options: [], - query: 'prometheus', - refresh: 1, - regex: '', - type: 'datasource', - }, - { - allValue: null, - current: { - text: 'prod', - value: 'prod', - }, - datasource: '$datasource', - hide: 0, - includeAll: false, - label: 'cluster', - multi: false, - name: 'cluster', - options: [], - query: 'label_values(etcd_server_has_leader{%s}, %s)' % [$._config.etcd_selector, $._config.clusterLabel], - refresh: $._config.dashboard_var_refresh, - regex: '', - sort: 2, - tagValuesQuery: '', - tags: [], - tagsQuery: '', - type: 'query', - useTags: false, - }, - ], - }, - annotations: { - list: [], - }, - refresh: '10s', - schemaVersion: 13, - version: 215, - links: [], - gnetId: null, - }, - } else {}, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/etcd.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/etcd.libsonnet deleted file mode 100644 index 57d69998a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/etcd.libsonnet +++ /dev/null @@ -1,40 +0,0 @@ -{ - grafanaDashboards+:: if !$._config.grafana7x then { - local g = import './g.libsonnet', - local panels = import './panels.libsonnet', - local variables = import './variables.libsonnet', - local targets = import './targets.libsonnet', - local v = variables($._config), - local t = targets(v, $._config), - - 'etcd.json': - g.dashboard.new('etcd') - + g.dashboard.withUid(std.md5('etcd.json')) - + g.dashboard.withRefresh('10s') - + g.dashboard.time.withFrom('now-15m') - + g.dashboard.time.withTo('now') - + g.dashboard.withDescription('etcd sample Grafana dashboard with Prometheus') - + g.dashboard.withTags(['etcd-mixin']) - + g.dashboard.withVariables([ - v.datasource, - v.cluster, - ]) - + g.dashboard.withPanels( - [ - panels.stat.up('Up', t.up) { gridPos: { x: 0, h: 7, w: 6, y: 0 } }, - panels.timeSeries.rpcRate('RPC rate', [t.rpcRate, t.rpcFailedRate]) { gridPos: { x: 6, h: 7, w: 10, y: 0 } }, - panels.timeSeries.activeStreams('Active streams', [t.watchStreams, t.leaseStreams]) { gridPos: { x: 16, h: 7, w: 8, y: 0 } }, - panels.timeSeries.dbSize('DB size', [t.dbSize]) { gridPos: { x: 0, h: 7, w: 8, y: 25 } }, - panels.timeSeries.diskSync('Disk sync duration', [t.walFsync, t.dbFsync]) { gridPos: { x: 8, h: 7, w: 8, y: 25 } }, - panels.timeSeries.memory('Memory', [t.memory]) { gridPos: { x: 16, h: 7, w: 8, y: 25 } }, - panels.timeSeries.traffic('Client traffic in', [t.clientTrafficIn]) { gridPos: { x: 0, h: 7, w: 6, y: 50 } }, - panels.timeSeries.traffic('Client traffic out', [t.clientTrafficOut]) { gridPos: { x: 6, h: 7, w: 6, y: 50 } }, - panels.timeSeries.traffic('Peer traffic in', [t.peerTrafficIn]) { gridPos: { x: 12, h: 7, w: 6, y: 50 } }, - panels.timeSeries.traffic('Peer traffic out', [t.peerTrafficOut]) { gridPos: { x: 18, h: 7, w: 6, y: 50 } }, - panels.timeSeries.raftProposals('Raft proposals', [t.raftProposals]) { gridPos: { x: 0, h: 7, w: 8, y: 75 } }, - panels.timeSeries.leaderElections('Total leader elections per day', [t.leaderElections]) { gridPos: { x: 8, h: 7, w: 8, y: 75 } }, - panels.timeSeries.peerRtt('Peer round trip time', [t.peerRtt]) { gridPos: { x: 16, h: 7, w: 8, y: 75 } }, - ] - ), - } else {}, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/g.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/g.libsonnet deleted file mode 100644 index 6da9f4eef..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/g.libsonnet +++ /dev/null @@ -1 +0,0 @@ -import 'github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet' diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/panels.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/panels.libsonnet deleted file mode 100644 index 81455675f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/panels.libsonnet +++ /dev/null @@ -1,59 +0,0 @@ -local g = import 'g.libsonnet'; - -{ - stat: { - local stat = g.panel.stat, - base(title, targets): - stat.new(title) - + stat.queryOptions.withTargets(targets) - + stat.queryOptions.withInterval('1m'), - up(title, targets): - self.base(title, targets) - + stat.options.withColorMode('none') - + stat.options.withGraphMode('none') - + stat.options.reduceOptions.withCalcs([ - 'lastNotNull', - ]), - }, - timeSeries: { - local timeSeries = g.panel.timeSeries, - local fieldOverride = g.panel.timeSeries.fieldOverride, - local custom = timeSeries.fieldConfig.defaults.custom, - local defaults = timeSeries.fieldConfig.defaults, - local options = timeSeries.options, - - - base(title, targets): - timeSeries.new(title) - + timeSeries.queryOptions.withTargets(targets) - + timeSeries.queryOptions.withInterval('1m') - + custom.withLineWidth(2) - + custom.withFillOpacity(0) - + custom.withShowPoints('never'), - - rpcRate(title, targets): - self.base(title, targets) - + timeSeries.standardOptions.withUnit('ops'), - activeStreams(title, targets): - self.base(title, targets), - dbSize(title, targets): - self.base(title, targets) - + timeSeries.standardOptions.withUnit('bytes'), - diskSync(title, targets): - self.base(title, targets) - + timeSeries.standardOptions.withUnit('s'), - memory(title, targets): - self.base(title, targets) - + timeSeries.standardOptions.withUnit('bytes'), - traffic(title, targets): - self.base(title, targets) - + timeSeries.standardOptions.withUnit('Bps'), - raftProposals(title, targets): - self.base(title, targets), - leaderElections(title, targets): - self.base(title, targets), - peerRtt(title, targets): - self.base(title, targets) - + timeSeries.standardOptions.withUnit('s'), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/targets.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/targets.libsonnet deleted file mode 100644 index 3eb315895..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/targets.libsonnet +++ /dev/null @@ -1,104 +0,0 @@ -local g = import './g.libsonnet'; -local prometheusQuery = g.query.prometheus; - -function(variables, config) { - up: - prometheusQuery.new( - '$' + variables.datasource.name, - 'sum(etcd_server_has_leader{%s, %s="$cluster"})' % [config.etcd_selector, config.clusterLabel] - ) - + prometheusQuery.withLegendFormat(||| - {{cluster}} - {{namespace}} - |||), - - rpcRate: - prometheusQuery.new( - '$' + variables.datasource.name, - 'sum(rate(grpc_server_started_total{%s, %s="$cluster",grpc_type="unary"}[$__rate_interval]))' % [config.etcd_selector, config.clusterLabel] - ) - + prometheusQuery.withLegendFormat('RPC rate'), - rpcFailedRate: - prometheusQuery.new( - '$' + variables.datasource.name, - 'sum(rate(grpc_server_handled_total{%s, %s="$cluster",grpc_type="unary",grpc_code=~"Unknown|FailedPrecondition|ResourceExhausted|Internal|Unavailable|DataLoss|DeadlineExceeded"}[$__rate_interval]))' % [config.etcd_selector, config.clusterLabel] - ) - + prometheusQuery.withLegendFormat('RPC failed rate'), - watchStreams: - prometheusQuery.new( - '$' + variables.datasource.name, - 'sum(grpc_server_started_total{%(etcd_selector)s,%(clusterLabel)s="$cluster",grpc_service="etcdserverpb.Watch",grpc_type="bidi_stream"}) - sum(grpc_server_handled_total{%(clusterLabel)s="$cluster",grpc_service="etcdserverpb.Watch",grpc_type="bidi_stream"})' % config - ) - + prometheusQuery.withLegendFormat('Watch streams'), - leaseStreams: - prometheusQuery.new( - '$' + variables.datasource.name, - 'sum(grpc_server_started_total{%(etcd_selector)s,%(clusterLabel)s="$cluster",grpc_service="etcdserverpb.Lease",grpc_type="bidi_stream"}) - sum(grpc_server_handled_total{%(clusterLabel)s="$cluster",grpc_service="etcdserverpb.Lease",grpc_type="bidi_stream"})' % config - ) - + prometheusQuery.withLegendFormat('Lease streams'), - dbSize: - prometheusQuery.new( - '$' + variables.datasource.name, - 'etcd_mvcc_db_total_size_in_bytes{%s, %s="$cluster"}' % [config.etcd_selector, config.clusterLabel], - ) - + prometheusQuery.withLegendFormat('{{instance}} DB size'), - walFsync: - prometheusQuery.new( - '$' + variables.datasource.name, - 'histogram_quantile(0.99, sum(rate(etcd_disk_wal_fsync_duration_seconds_bucket{%s, %s="$cluster"}[$__rate_interval])) by (instance, le))' % [config.etcd_selector, config.clusterLabel], - ) - + prometheusQuery.withLegendFormat('{{instance}} WAL fsync'), - dbFsync: - prometheusQuery.new( - '$' + variables.datasource.name, - 'histogram_quantile(0.99, sum(rate(etcd_disk_backend_commit_duration_seconds_bucket{%s, %s="$cluster"}[$__rate_interval])) by (instance, le))' % [config.etcd_selector, config.clusterLabel], - ) - + prometheusQuery.withLegendFormat('{{instance}} DB fsync'), - memory: - prometheusQuery.new( - '$' + variables.datasource.name, - 'process_resident_memory_bytes{%s, %s="$cluster"}' % [config.etcd_selector, config.clusterLabel], - ) - + prometheusQuery.withLegendFormat('{{instance}} resident memory'), - clientTrafficIn: - prometheusQuery.new( - '$' + variables.datasource.name, - 'rate(etcd_network_client_grpc_received_bytes_total{%s, %s="$cluster"}[$__rate_interval])' % [config.etcd_selector, config.clusterLabel], - ) - + prometheusQuery.withLegendFormat('{{instance}} client traffic in'), - clientTrafficOut: - prometheusQuery.new( - '$' + variables.datasource.name, - 'rate(etcd_network_client_grpc_sent_bytes_total{%s, %s="$cluster"}[$__rate_interval])' % [config.etcd_selector, config.clusterLabel], - ) - + prometheusQuery.withLegendFormat('{{instance}} client traffic out'), - peerTrafficIn: - prometheusQuery.new( - '$' + variables.datasource.name, - 'sum(rate(etcd_network_peer_received_bytes_total{%s, %s="$cluster"}[$__rate_interval])) by (instance)' % [config.etcd_selector, config.clusterLabel], - ) - + prometheusQuery.withLegendFormat('{{instance}} peer traffic in'), - peerTrafficOut: - prometheusQuery.new( - '$' + variables.datasource.name, - 'sum(rate(etcd_network_peer_sent_bytes_total{%s, %s="$cluster"}[$__rate_interval])) by (instance)' % [config.etcd_selector, config.clusterLabel], - ) - + prometheusQuery.withLegendFormat('{{instance}} peer traffic out'), - raftProposals: - prometheusQuery.new( - '$' + variables.datasource.name, - 'changes(etcd_server_leader_changes_seen_total{%s, %s="$cluster"}[1d])' % [config.etcd_selector, config.clusterLabel], - ) - + prometheusQuery.withLegendFormat('{{instance}} total leader elections per day'), - leaderElections: - prometheusQuery.new( - '$' + variables.datasource.name, - 'changes(etcd_server_leader_changes_seen_total{%s, %s="$cluster"}[1d])' % [config.etcd_selector, config.clusterLabel], - ) - + prometheusQuery.withLegendFormat('{{instance}} total leader elections per day'), - peerRtt: - prometheusQuery.new( - '$' + variables.datasource.name, - 'histogram_quantile(0.99, sum by (instance, le) (rate(etcd_network_peer_round_trip_time_seconds_bucket{%s, %s="$cluster"}[$__rate_interval])))' % [config.etcd_selector, config.clusterLabel], - ) - + prometheusQuery.withLegendFormat('{{instance}} peer round trip time'), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/variables.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/variables.libsonnet deleted file mode 100644 index 7dafc63a9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/dashboards/variables.libsonnet +++ /dev/null @@ -1,21 +0,0 @@ -// variables.libsonnet -local g = import './g.libsonnet'; -local var = g.dashboard.variable; - - -function(config) { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.generalOptions.withLabel('Data Source'), - - cluster: - var.query.new('cluster') - + var.query.generalOptions.withLabel('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + { refresh: config.dashboard_var_refresh } - + var.query.queryTypes.withLabelValues( - config.clusterLabel, - 'etcd_server_has_leader{%s}' % [config.etcd_selector] - ), - -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/jsonnetfile.json deleted file mode 100644 index 8c5b5e48a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/jsonnetfile.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet.git", - "subdir": "gen/grafonnet-v10.0.0" - } - }, - "version": "main" - } - ], - "legacyImports": true -} \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/jsonnetfile.lock.json b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/jsonnetfile.lock.json deleted file mode 100644 index cc41cc3d6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/jsonnetfile.lock.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet.git", - "subdir": "gen/grafonnet-v10.0.0" - } - }, - "version": "e85299323fd8808187d30865cc5c7a38a347399a", - "sum": "uJCTMGtY/7c5HSLQ7UQD38TOPmuSYrIKLIKmdSF/Htk=" - }, - { - "source": { - "git": { - "remote": "https://github.com/jsonnet-libs/docsonnet.git", - "subdir": "doc-util" - } - }, - "version": "fd8de9039b3c06da77d635a3a8289809a5bfb542", - "sum": "mFebrE9fhyAKW4zbnidcjVFupziN5LPA/Z7ii94uCzs=" - }, - { - "source": { - "git": { - "remote": "https://github.com/jsonnet-libs/xtd.git", - "subdir": "" - } - }, - "version": "0256a910ac71f0f842696d7bca0bf01ea77eb654", - "sum": "zBOpb1oTNvXdq9RF6yzTHill5r1YTJLBBoqyx4JYtAg=" - } - ], - "legacyImports": false -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/mixin.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/mixin.libsonnet deleted file mode 100644 index edb8e14e9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/mixin.libsonnet +++ /dev/null @@ -1,3 +0,0 @@ -(import './config.libsonnet') + -(import './dashboards/dashboards.libsonnet') + -(import './alerts/alerts.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/test.yaml b/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/test.yaml deleted file mode 100644 index bfb50d8af..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/etcd-io/etcd/contrib/mixin/test.yaml +++ /dev/null @@ -1,157 +0,0 @@ ---- -rule_files: [manifests/etcd-prometheusRules.yaml] -evaluation_interval: 1m -tests: - - interval: 1m - input_series: - - series: up{job="etcd",instance="10.10.10.0"} - values: 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 - - series: up{job="etcd",instance="10.10.10.1"} - values: 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 - - series: up{job="etcd",instance="10.10.10.2"} - values: 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 - alert_rule_test: - - eval_time: 3m - alertname: etcdInsufficientMembers - - eval_time: 5m - alertname: etcdInsufficientMembers - - eval_time: 12m - alertname: etcdMembersDown - - eval_time: 14m - alertname: etcdMembersDown - exp_alerts: - - exp_labels: - job: etcd - severity: critical - exp_annotations: - description: 'etcd cluster "etcd": members are down (3).' - summary: etcd cluster members are down. - - eval_time: 7m - alertname: etcdInsufficientMembers - - eval_time: 11m - alertname: etcdInsufficientMembers - exp_alerts: - - exp_labels: - job: etcd - severity: critical - exp_annotations: - description: 'etcd cluster "etcd": insufficient members (1).' - summary: etcd cluster has insufficient number of members. - - eval_time: 15m - alertname: etcdInsufficientMembers - exp_alerts: - - exp_labels: - job: etcd - severity: critical - exp_annotations: - description: 'etcd cluster "etcd": insufficient members (0).' - summary: etcd cluster has insufficient number of members. - - interval: 1m - input_series: - - series: up{job="etcd",instance="10.10.10.0"} - values: 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 - - series: up{job="etcd",instance="10.10.10.1"} - values: 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 - - series: up{job="etcd",instance="10.10.10.2"} - values: 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 - alert_rule_test: - - eval_time: 14m - alertname: etcdMembersDown - exp_alerts: - - exp_labels: - job: etcd - severity: critical - exp_annotations: - description: 'etcd cluster "etcd": members are down (3).' - summary: etcd cluster members are down. - - interval: 1m - input_series: - - series: up{job="etcd",instance="10.10.10.0"} - values: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 - - series: up{job="etcd",instance="10.10.10.1"} - values: 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 - - series: etcd_network_peer_sent_failures_total{To="member-1",job="etcd",endpoint="test"} - values: 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 - alert_rule_test: - - eval_time: 13m - alertname: etcdMembersDown - exp_alerts: - - exp_labels: - job: etcd - severity: critical - exp_annotations: - description: 'etcd cluster "etcd": members are down (1).' - summary: etcd cluster members are down. - - interval: 1m - input_series: - - series: etcd_server_leader_changes_seen_total{job="etcd",instance="10.10.10.0"} - values: 0 0 2 0 0 1 0 0 0 0 0 0 0 0 0 0 - - series: etcd_server_leader_changes_seen_total{job="etcd",instance="10.10.10.1"} - values: 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 - - series: etcd_server_leader_changes_seen_total{job="etcd",instance="10.10.10.2"} - values: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 - alert_rule_test: - - eval_time: 10m - alertname: etcdHighNumberOfLeaderChanges - exp_alerts: - - exp_labels: - job: etcd - severity: warning - exp_annotations: - description: 'etcd cluster "etcd": 4 leader changes within the last 15 minutes. Frequent elections may be a sign of insufficient resources, high network latency, or disruptions by other components and should be investigated.' - summary: etcd cluster has high number of leader changes. - - interval: 1m - input_series: - - series: etcd_server_leader_changes_seen_total{job="etcd",instance="10.10.10.0"} - values: 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 - - series: etcd_server_leader_changes_seen_total{job="etcd",instance="10.10.10.1"} - values: 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 - - series: etcd_server_leader_changes_seen_total{job="etcd",instance="10.10.10.2"} - values: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 - alert_rule_test: - - eval_time: 10m - alertname: etcdHighNumberOfLeaderChanges - exp_alerts: - - interval: 1m - input_series: - - series: etcd_mvcc_db_total_size_in_bytes{job="etcd",instance="10.10.10.0"} - values: 0+8192x240 - - series: etcd_server_quota_backend_bytes{job="etcd",instance="10.10.10.0"} - values: 524288+0x240 - - series: etcd_mvcc_db_total_size_in_bytes{job="etcd",instance="10.10.10.1"} - values: 0+1024x240 - - series: etcd_server_quota_backend_bytes{job="etcd",instance="10.10.10.1"} - values: 524288+0x240 - alert_rule_test: - - eval_time: 11m - alertname: etcdExcessiveDatabaseGrowth - exp_alerts: - - exp_labels: - instance: 10.10.10.0 - job: etcd - severity: warning - exp_annotations: - description: 'etcd cluster "etcd": Predicting running out of disk space in the next four hours, based on write observations within the past four hours on etcd instance 10.10.10.0, please check as it might be disruptive.' - summary: etcd cluster database growing very fast. - - interval: 1m - input_series: - - series: etcd_mvcc_db_total_size_in_use_in_bytes{job="etcd",instance="10.10.10.0"} - values: 300000000+0x10 - - series: etcd_mvcc_db_total_size_in_bytes{job="etcd",instance="10.10.10.0"} - values: 1000000000+0x10 - - series: etcd_mvcc_db_total_size_in_use_in_bytes{job="etcd",instance="10.10.10.1"} - values: 700000000+0x10 - - series: etcd_mvcc_db_total_size_in_bytes{job="etcd",instance="10.10.10.1"} - values: 1000000000+0x10 - alert_rule_test: - - eval_time: 11m - alertname: etcdDatabaseHighFragmentationRatio - exp_alerts: - - exp_labels: - instance: 10.10.10.0 - job: etcd - severity: warning - exp_annotations: - description: 'etcd cluster "etcd": database size in use on instance 10.10.10.0 is 30% of the actual allocated disk space, please run defragmentation (e.g. etcdctl defrag) to retrieve the unused fragmented disk space.' - runbook_url: https://etcd.io/docs/v3.5/op-guide/maintenance/#defragmentation - summary: etcd database size in use is less than 50% of the actual allocated storage. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/.gitignore b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/.gitignore deleted file mode 100644 index 97bf5f5c8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/alerts.yaml -/rules.yaml -dashboards_out diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/Makefile b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/Makefile deleted file mode 100644 index df6ef32df..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -all: fmt lint build clean - -fmt: - ./scripts/format.sh - -lint: - ./scripts/lint.sh - -build: - ./scripts/build.sh - -clean: - rm -rf dashboards_out alerts.yaml rules.yaml diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/README.md deleted file mode 100644 index 60feb1df1..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# Grafana Mixin - -_This is a work in progress. We aim for it to become a good role model for alerts -and dashboards eventually, but it is not quite there yet._ - -The Grafana Mixin is a set of configurable, reusable, and extensible alerts and -dashboards based on the metrics exported by Grafana. The mixin creates -recording and alerting rules for Prometheus and suitable dashboard descriptions -for Grafana. - -To use them, you need to have `mixtool` and `jsonnetfmt` installed. If you -have a working Go development environment, it's easiest to run the following: - -```bash -$ go get github.com/monitoring-mixins/mixtool/cmd/mixtool -$ go get github.com/google/go-jsonnet/cmd/jsonnetfmt -``` - -You can then build the Prometheus rules files `alerts.yaml` and -`rules.yaml` and a directory `dashboard_out` with the JSON dashboard files -for Grafana: - -```bash -$ make build -``` - -For more advanced uses of mixins, see -https://github.com/monitoring-mixins/docs. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/alerts/alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/alerts/alerts.libsonnet deleted file mode 100644 index e38f2a4a7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/alerts/alerts.libsonnet +++ /dev/null @@ -1,31 +0,0 @@ -{ - _config+:: { - grafanaRequestsFailingThresholdPercent: 50, - }, - - prometheusAlerts+:: { - groups+: [ - { - name: 'GrafanaAlerts', - rules: [ - { - alert: 'GrafanaRequestsFailing', - expr: ||| - 100 * namespace_job_handler_statuscode:grafana_http_request_duration_seconds_count:rate5m{handler!~"/api/datasources/proxy/:id.*|/api/ds/query|/api/tsdb/query", status_code=~"5.."} - / ignoring (status_code) - sum without (status_code) (namespace_job_handler_statuscode:grafana_http_request_duration_seconds_count:rate5m{handler!~"/api/datasources/proxy/:id.*|/api/ds/query|/api/tsdb/query"}) - > %(grafanaRequestsFailingThresholdPercent)s - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - message: '{{ $labels.namespace }}/{{ $labels.job }}/{{ $labels.handler }} is experiencing {{ $value | humanize }}% errors', - }, - 'for': '5m', - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/dashboards/dashboards.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/dashboards/dashboards.libsonnet deleted file mode 100644 index e7589aaed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/dashboards/dashboards.libsonnet +++ /dev/null @@ -1,5 +0,0 @@ -{ - grafanaDashboards+:: { - 'grafana-overview.json': (import 'grafana-overview.json'), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/dashboards/grafana-overview.json b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/dashboards/grafana-overview.json deleted file mode 100644 index fdef735c3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/dashboards/grafana-overview.json +++ /dev/null @@ -1,535 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": 3085, - "iteration": 1631554945276, - "links": [], - "panels": [ - { - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 6, - "x": 0, - "y": 0 - }, - "id": 6, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": ["mean"], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.1.3", - "targets": [ - { - "expr": "grafana_alerting_result_total{job=~\"$job\", instance=~\"$instance\", state=\"alerting\"}", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Firing Alerts", - "type": "stat" - }, - { - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 6, - "x": 6, - "y": 0 - }, - "id": 8, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": ["mean"], - "fields": "", - "values": false - }, - "text": {}, - "textMode": "auto" - }, - "pluginVersion": "8.1.3", - "targets": [ - { - "expr": "sum(grafana_stat_totals_dashboard{job=~\"$job\", instance=~\"$instance\"})", - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Dashboards", - "type": "stat" - }, - { - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "custom": { - "align": null, - "displayMode": "auto" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 10, - "options": { - "showHeader": true - }, - "pluginVersion": "8.1.3", - "targets": [ - { - "expr": "grafana_build_info{job=~\"$job\", instance=~\"$instance\"}", - "instant": true, - "interval": "", - "legendFormat": "", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Build Info", - "transformations": [ - { - "id": "labelsToFields", - "options": {} - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "Value": true, - "branch": true, - "container": true, - "goversion": true, - "namespace": true, - "pod": true, - "revision": true - }, - "indexByName": { - "Time": 7, - "Value": 11, - "branch": 4, - "container": 8, - "edition": 2, - "goversion": 6, - "instance": 1, - "job": 0, - "namespace": 9, - "pod": 10, - "revision": 5, - "version": 3 - }, - "renameByName": {} - } - } - ], - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 5 - }, - "hiddenSeries": false, - "id": 2, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.1.3", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "sum by (status_code) (irate(grafana_http_request_duration_seconds_count{job=~\"$job\", instance=~\"$instance\"}[1m])) ", - "interval": "", - "legendFormat": "{{status_code}}", - "refId": "A" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "RPS", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:157", - "format": "reqps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:158", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 5 - }, - "hiddenSeries": false, - "id": 4, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.1.3", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "histogram_quantile(0.99, sum(irate(grafana_http_request_duration_seconds_bucket{instance=~\"$instance\", job=~\"$job\"}[$__rate_interval])) by (le)) * 1", - "interval": "", - "legendFormat": "99th Percentile", - "refId": "A" - }, - { - "exemplar": true, - "expr": "histogram_quantile(0.50, sum(irate(grafana_http_request_duration_seconds_bucket{instance=~\"$instance\", job=~\"$job\"}[$__rate_interval])) by (le)) * 1", - "interval": "", - "legendFormat": "50th Percentile", - "refId": "B" - }, - { - "exemplar": true, - "expr": "sum(irate(grafana_http_request_duration_seconds_sum{instance=~\"$instance\", job=~\"$job\"}[$__rate_interval])) * 1 / sum(irate(grafana_http_request_duration_seconds_count{instance=~\"$instance\", job=~\"$job\"}[$__rate_interval]))", - "interval": "", - "legendFormat": "Average", - "refId": "C" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Request Latency", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:210", - "format": "ms", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "$$hashKey": "object:211", - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - } - ], - "schemaVersion": 30, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": { - "selected": true, - "text": "dev-cortex", - "value": "dev-cortex" - }, - "description": null, - "error": null, - "hide": 0, - "includeAll": false, - "label": null, - "multi": false, - "name": "datasource", - "options": [], - "query": "prometheus", - "queryValue": "", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "type": "datasource" - }, - { - "allValue": ".*", - "current": { - "selected": false, - "text": ["default/grafana"], - "value": ["default/grafana"] - }, - "datasource": "$datasource", - "definition": "label_values(grafana_build_info, job)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": null, - "multi": true, - "name": "job", - "options": [], - "query": { - "query": "label_values(grafana_build_info, job)", - "refId": "Billing Admin-job-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": ".*", - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "$datasource", - "definition": "label_values(grafana_build_info, instance)", - "description": null, - "error": null, - "hide": 0, - "includeAll": true, - "label": null, - "multi": true, - "name": "instance", - "options": [], - "query": { - "query": "label_values(grafana_build_info, instance)", - "refId": "Billing Admin-instance-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": ["10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"] - }, - "timezone": "", - "title": "Grafana Overview", - "uid": "6be0s85Mk", - "version": 2 -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/mixin.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/mixin.libsonnet deleted file mode 100644 index 4a7437b94..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/mixin.libsonnet +++ /dev/null @@ -1,3 +0,0 @@ -(import 'alerts/alerts.libsonnet') + -(import 'dashboards/dashboards.libsonnet') + -(import 'rules/rules.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/rules/rules.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/rules/rules.libsonnet deleted file mode 100644 index 8cb284339..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/rules/rules.libsonnet +++ /dev/null @@ -1,17 +0,0 @@ -{ - prometheusRules+:: { - groups+: [ - { - name: 'grafana_rules', - rules: [ - { - record: 'namespace_job_handler_statuscode:grafana_http_request_duration_seconds_count:rate5m', - expr: ||| - sum by (namespace, job, handler, status_code) (rate(grafana_http_request_duration_seconds_count[5m])) - |||, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/build.sh b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/build.sh deleted file mode 100755 index b6d93c2e7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/build.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -set -eo pipefail - -cd "$(dirname "$0")"/.. - -mixtool generate all mixin.libsonnet diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/common.sh b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/common.sh deleted file mode 100644 index de4e05f76..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/common.sh +++ /dev/null @@ -1 +0,0 @@ -JSONNET_FMT="jsonnetfmt -n 2 --max-blank-lines 2 --string-style s --comment-style s" diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/format.sh b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/format.sh deleted file mode 100755 index 1d541f18f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/format.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -eo pipefail - -cd "$(dirname "$0")"/.. - -. scripts/common.sh - -find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \ - xargs -n 1 -- ${JSONNET_FMT} -i diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/lint.sh b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/lint.sh deleted file mode 100755 index fc7d2eed1..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafana/grafana-mixin/scripts/lint.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -set -eo pipefail - -cd "$(dirname "$0")"/.. - -. scripts/common.sh - -find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \ - while read f; do \ - ${JSONNET_FMT} "$f" | diff -u "$f" -; \ - done - -#mixtool lint mixin.libsonnet diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/DOCS.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/DOCS.md deleted file mode 100644 index 9e3c09f6d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/DOCS.md +++ /dev/null @@ -1,885 +0,0 @@ -# Docs - -* [dashboard](#dashboard) -* [panel](#panel) - * [gauge.new](#panelGaugenew) - * [graph.new](#panelGraphnew) - * [row.new](#panelRownew) - * [stat.new](#panelStatnew) - * [table.new](#panelTablenew) - * [text.new](#panelTextnew) -* [target](#target) - * [prometheus.new](#targetPrometheusnew) -* [template](#template) - * [custom.new](#templateCustomnew) - * [datasource.new](#templateDatasourcenew) - * [query.new](#templateQuerynew) - -## dashboard - - - -### dashboard.new - -Instantiate a dashboard. - -* **description**: (type: string, default: `null`) - -* **editable**: (type: boolean, default: `true`) - -* **graphTooltip**: (type: integer, default: `0`) - -* **refresh**: (type: string, default: `null`) - -* **schemaVersion**: (type: integer, default: `25`) - -* **style**: (type: string, default: `"dark"`) - -* **tags**: (type: array, default: `[]`) - -* **timezone**: (type: string, default: `null`) - -* **title**: (type: string, default: `null`) - -* **uid**: (type: string, default: `null`) - - -#### #setTime - -* **from**: (type: string, default: `"now-6h"`) - -* **to**: (type: string, default: `"now"`) - -#### #setTimepicker - -* **hidden**: (type: boolean, default: `false`) - -* **refreshIntervals**: (type: array, default: `["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]`) - - -#### #addAnnotation - -* **builtIn**: (type: integer, default: `0`) - -* **datasource**: (type: string, default: `"default"`) - -* **enable**: (type: boolean, default: `true`) - -* **hide**: (type: boolean, default: `false`) - -* **iconColor**: (type: string, default: `null`) - -* **name**: (type: string, default: `null`) - -* **rawQuery**: (type: string, default: `null`) - -* **showIn**: (type: integer, default: `0`) - -#### #addTemplate - -* **template**: (type: object) - - - -## panel - - - -### panel.gauge.new - - - -* **datasource**: (type: string, default: `"default"`) - -* **description**: (type: string, default: `null`) - -* **repeat**: (type: string, default: `null`) - -* **repeatDirection**: (type: string, default: `null`) - -* **title**: (type: string, default: `null`) - -* **transparent**: (type: boolean, default: `false`) - - -#### #setFieldConfig - -* **max**: (type: integer, default: `null`) - -* **min**: (type: integer, default: `null`) - -* **thresholdMode**: (type: string, default: `"absolute"`) - -* **unit**: (type: string, default: `null`) - -#### #setGridPos - -* **h**: (type: integer, default: `8`) - Panel height. -* **w**: (type: integer, default: `12`) - Panel width. -* **x**: (type: integer, default: `null`) - Panel x position. -* **y**: (type: integer, default: `null`) - Panel y position. -#### #setOptions - -* **calcs**: (type: array, default: `["mean"]`) - -* **fields**: (type: string, default: `null`) - -* **orientation**: (type: string, default: `"auto"`) - -* **showThresholdLabels**: (type: boolean, default: `false`) - -* **showThresholdMarkers**: (type: boolean, default: `true`) - -* **values**: (type: boolean, default: `false`) - - -#### #addDataLink - -* **targetBlank**: (type: boolean, default: `true`) - -* **title**: (type: string, default: `null`) - -* **url**: (type: string, default: `null`) - -#### #addPanelLink - -* **targetBlank**: (type: boolean, default: `true`) - -* **title**: (type: string, default: `null`) - -* **url**: (type: string, default: `null`) - -#### #addMapping - -* **from**: (type: string, default: `null`) - -* **id**: (type: integer, default: `null`) - -* **operator**: (type: string, default: `null`) - -* **text**: (type: string, default: `null`) - -* **to**: (type: string, default: `null`) - -* **type**: (type: integer, default: `null`) - -* **value**: (type: string, default: `null`) - -#### #addOverride - -* **matcher**: (type: oject, default: `null`) - -* **properties**: (type: array, default: `null`) - -#### #addThresholdStep - -* **color**: (type: string, default: `null`) - -* **value**: (type: integer, default: `null`) - -#### #addTarget - -* **target**: (type: object) - - - -### panel.graph.new - - - -* **bars**: (type: boolean, default: `false`) - Display values as a bar chart. -* **dashLength**: (type: integer, default: `10`) - Dashed line length. -* **dashes**: (type: boolean, default: `false`) - Show line with dashes. -* **datasource**: (type: string, default: `"default"`) - -* **decimals**: (type: integer, default: `null`) - Controls how many decimals are displayed for legend values and - graph hover tooltips. -* **description**: (type: string, default: `null`) - -* **fill**: (type: integer, default: `1`) - Amount of color fill for a series. Expects a value between 0 and 1. -* **fillGradient**: (type: integer, default: `0`) - Degree of gradient on the area fill. 0 is no gradient, 10 is a - steep gradient. -* **hiddenSeries**: (type: boolean, default: `false`) - Hide the series. -* **lines**: (type: boolean, default: `true`) - Display values as a line graph. -* **linewidth**: (type: integer, default: `1`) - The width of the line for a series. -* **nullPointMode**: (type: string, default: `"null"`) - How null values are displayed. - * 'null' - If there is a gap in the series, meaning a null value, - then the line in the graph will be broken and show the gap. - * 'null as zero' - If there is a gap in the series, meaning a null - value, then it will be displayed as a zero value in the graph - panel. - * 'connected' - If there is a gap in the series, meaning a null - value or values, then the line will skip the gap and connect to the - next non-null value. -* **percentage**: (type: boolean, default: `false`) - Available when `stack` is true. Each series is drawn as a percentage - of the total of all series. -* **pointradius**: (type: integer, default: `null`) - Controls how large the points are. -* **points**: (type: boolean, default: `false`) - Display points for values. -* **repeat**: (type: string, default: `null`) - -* **repeatDirection**: (type: string, default: `null`) - -* **spaceLength**: (type: integer, default: `10`) - Dashed line spacing when `dashes` is true. -* **stack**: (type: boolean, default: `false`) - Each series is stacked on top of another. -* **steppedLine**: (type: boolean, default: `false`) - Draws adjacent points as staircase. -* **timeFrom**: (type: string, default: `null`) - -* **timeShift**: (type: string, default: `null`) - -* **title**: (type: string, default: `null`) - -* **transparent**: (type: boolean, default: `false`) - - -#### #setGridPos - -* **h**: (type: integer, default: `8`) - Panel height. -* **w**: (type: integer, default: `12`) - Panel width. -* **x**: (type: integer, default: `null`) - Panel x position. -* **y**: (type: integer, default: `null`) - Panel y position. -#### #setLegend - -* **alignAsTable**: (type: boolean, default: `null`) - Whether to display legend in table. -* **avg**: (type: boolean, default: `false`) - Average of all values returned from the metric query. -* **current**: (type: boolean, default: `false`) - Last value returned from the metric query. -* **max**: (type: boolean, default: `false`) - Maximum of all values returned from the metric query. -* **min**: (type: boolean, default: `false`) - Minimum of all values returned from the metric query. -* **rightSide**: (type: boolean, default: `false`) - Display legend to the right. -* **show**: (type: boolean, default: `true`) - Show or hide the legend. -* **sideWidth**: (type: integer, default: `null`) - Available when `rightSide` is true. The minimum width for the legend in - pixels. -* **total**: (type: boolean, default: `false`) - Sum of all values returned from the metric query. -* **values**: (type: boolean, default: `true`) - -#### #setThresholds - -* **thresholdMode**: (type: string, default: `"absolute"`) - -#### #setTooltip - -* **shared**: (type: boolean, default: `true`) - * true - The hover tooltip shows all series in the graph. - Grafana highlights the series that you are hovering over in - bold in the series list in the tooltip. - * false - The hover tooltip shows only a single series, the one - that you are hovering over on the graph. -* **sort**: (type: integer, default: `2`) - * 0 (none) - The order of the series in the tooltip is - determined by the sort order in your query. For example, they - could be alphabetically sorted by series name. - * 1 (increasing) - The series in the hover tooltip are sorted - by value and in increasing order, with the lowest value at the - top of the list. - * 2 (decreasing) - The series in the hover tooltip are sorted - by value and in decreasing order, with the highest value at the - top of the list. -#### #setXaxis - -* **buckets**: (type: string, default: `null`) - -* **mode**: (type: string, default: `"time"`) - The display mode completely changes the visualization of the - graph panel. It’s like three panels in one. The main mode is - the time series mode with time on the X-axis. The other two - modes are a basic bar chart mode with series on the X-axis - instead of time and a histogram mode. - * 'time' - The X-axis represents time and that the data is - grouped by time (for example, by hour, or by minute). - * 'series' - The data is grouped by series and not by time. The - Y-axis still represents the value. - * 'histogram' - Converts the graph into a histogram. A histogram - is a kind of bar chart that groups numbers into ranges, often - called buckets or bins. Taller bars show that more data falls - in that range. -* **name**: (type: string, default: `null`) - -* **show**: (type: boolean, default: `true`) - Show or hide the axis. -#### #setYaxis - -* **align**: (type: boolean, default: `false`) - Align left and right Y-axes by value. -* **alignLevel**: (type: integer, default: `0`) - Available when align is true. Value to use for alignment of - left and right Y-axes, starting from Y=0. - -#### #addDataLink - -* **targetBlank**: (type: boolean, default: `true`) - -* **title**: (type: string, default: `null`) - -* **url**: (type: string, default: `null`) - -#### #addPanelLink - -* **targetBlank**: (type: boolean, default: `true`) - -* **title**: (type: string, default: `null`) - -* **url**: (type: string, default: `null`) - -#### #addOverride - -* **matcher**: (type: oject, default: `null`) - -* **properties**: (type: array, default: `null`) - -#### #addSeriesOverride - -* **alias**: (type: string, default: `null`) - Alias or regex matching the series you'd like to target. -* **bars**: (type: boolean, default: `null`) - -* **color**: (type: string, default: `null`) - -* **dashLength**: (type: integer, default: `null`) - -* **dashes**: (type: boolean, default: `null`) - -* **fill**: (type: integer, default: `null`) - -* **fillBelowTo**: (type: string, default: `null`) - -* **fillGradient**: (type: integer, default: `null`) - -* **hiddenSeries**: (type: boolean, default: `null`) - -* **hideTooltip**: (type: boolean, default: `null`) - -* **legend**: (type: boolean, default: `null`) - -* **lines**: (type: boolean, default: `null`) - -* **linewidth**: (type: integer, default: `null`) - -* **nullPointMode**: (type: string, default: `null`) - -* **pointradius**: (type: integer, default: `null`) - -* **points**: (type: boolean, default: `null`) - -* **spaceLength**: (type: integer, default: `null`) - -* **stack**: (type: integer, default: `null`) - -* **steppedLine**: (type: boolean, default: `null`) - -* **transform**: (type: string, default: `null`) - -* **yaxis**: (type: integer, default: `null`) - -* **zindex**: (type: integer, default: `null`) - -#### #addThresholdStep - -* **color**: (type: string, default: `null`) - -* **value**: (type: integer, default: `null`) - -#### #addTarget - -* **target**: (type: object) - -#### #addYaxis - -* **decimals**: (type: integer, default: `null`) - Defines how many decimals are displayed for Y value. -* **format**: (type: string, default: `"short"`) - The display unit for the Y value. -* **label**: (type: string, default: `null`) - The Y axis label. -* **logBase**: (type: integer, default: `1`) - The scale to use for the Y value - linear, or logarithmic. - * 1 - linear - * 2 - log (base 2) - * 10 - log (base 10) - * 32 - log (base 32) - * 1024 - log (base 1024) -* **max**: (type: integer, default: `null`) - The maximum Y value. -* **min**: (type: integer, default: `null`) - The minimum Y value. -* **show**: (type: boolean, default: `true`) - Show or hide the axis. - - -### panel.row.new - - - -* **collapse**: (type: boolean, default: `true`) - -* **collapsed**: (type: boolean, default: `true`) - -* **datasource**: (type: string, default: `null`) - -* **repeat**: (type: string, default: `null`) - -* **repeatIteration**: (type: string, default: `null`) - -* **showTitle**: (type: boolean, default: `true`) - -* **title**: (type: string, default: `null`) - -* **titleSize**: (type: string, default: `"h6"`) - - -#### #setGridPos - -* **h**: (type: integer, default: `8`) - Panel height. -* **w**: (type: integer, default: `12`) - Panel width. -* **x**: (type: integer, default: `null`) - Panel x position. -* **y**: (type: integer, default: `null`) - Panel y position. - -#### #addPanel - -* **panel**: (type: object) - - - -### panel.stat.new - - - -* **datasource**: (type: string, default: `"default"`) - -* **description**: (type: string, default: `null`) - -* **repeat**: (type: string, default: `null`) - -* **repeatDirection**: (type: string, default: `null`) - -* **title**: (type: string, default: `null`) - -* **transparent**: (type: boolean, default: `false`) - - -#### #setFieldConfig - -* **max**: (type: integer, default: `null`) - -* **min**: (type: integer, default: `null`) - -* **thresholdMode**: (type: string, default: `"absolute"`) - -* **unit**: (type: string, default: `null`) - -#### #setGridPos - -* **h**: (type: integer, default: `8`) - Panel height. -* **w**: (type: integer, default: `12`) - Panel width. -* **x**: (type: integer, default: `null`) - Panel x position. -* **y**: (type: integer, default: `null`) - Panel y position. -#### #setOptions - -* **calcs**: (type: array, default: `["mean"]`) - -* **colorMode**: (type: string, default: `"value"`) - -* **fields**: (type: string, default: `null`) - -* **graphMode**: (type: string, default: `"none"`) - -* **justifyMode**: (type: string, default: `"auto"`) - -* **orientation**: (type: string, default: `"auto"`) - -* **textMode**: (type: string, default: `"auto"`) - -* **values**: (type: boolean, default: `false`) - - -#### #addDataLink - -* **targetBlank**: (type: boolean, default: `true`) - -* **title**: (type: string, default: `null`) - -* **url**: (type: string, default: `null`) - -#### #addPanelLink - -* **targetBlank**: (type: boolean, default: `true`) - -* **title**: (type: string, default: `null`) - -* **url**: (type: string, default: `null`) - -#### #addMapping - -* **from**: (type: string, default: `null`) - -* **id**: (type: integer, default: `null`) - -* **operator**: (type: string, default: `null`) - -* **text**: (type: string, default: `null`) - -* **to**: (type: string, default: `null`) - -* **type**: (type: integer, default: `null`) - -* **value**: (type: string, default: `null`) - -#### #addOverride - -* **matcher**: (type: oject, default: `null`) - -* **properties**: (type: array, default: `null`) - -#### #addThresholdStep - -* **color**: (type: string, default: `null`) - -* **value**: (type: integer, default: `null`) - -#### #addTarget - -* **target**: (type: object) - - - -### panel.table.new - - - -* **datasource**: (type: string, default: `"default"`) - -* **description**: (type: string, default: `null`) - -* **repeat**: (type: string, default: `null`) - -* **repeatDirection**: (type: string, default: `null`) - -* **title**: (type: string, default: `null`) - -* **transparent**: (type: boolean, default: `false`) - - -#### #setFieldConfig - -* **displayName**: (type: string, default: `null`) - -* **max**: (type: integer, default: `null`) - -* **min**: (type: integer, default: `null`) - -* **thresholdMode**: (type: string, default: `"absolute"`) - -* **noValue**: (type: string, default: `null`) - -* **unit**: (type: string, default: `"short"`) - -* **width**: (type: integer, default: `null`) - -#### #setGridPos - -* **h**: (type: integer, default: `8`) - Panel height. -* **w**: (type: integer, default: `12`) - Panel width. -* **x**: (type: integer, default: `null`) - Panel x position. -* **y**: (type: integer, default: `null`) - Panel y position. -#### #setOptions - -* **showHeader**: (type: boolean, default: `true`) - - -#### #addDataLink - -* **targetBlank**: (type: boolean, default: `true`) - -* **title**: (type: string, default: `null`) - -* **url**: (type: string, default: `null`) - -#### #addPanelLink - -* **targetBlank**: (type: boolean, default: `true`) - -* **title**: (type: string, default: `null`) - -* **url**: (type: string, default: `null`) - -#### #addMapping - -* **from**: (type: string, default: `null`) - -* **id**: (type: integer, default: `null`) - -* **operator**: (type: string, default: `null`) - -* **text**: (type: string, default: `null`) - -* **to**: (type: string, default: `null`) - -* **type**: (type: integer, default: `null`) - -* **value**: (type: string, default: `null`) - -#### #addOverride - -* **matcher**: (type: oject, default: `null`) - -* **properties**: (type: array, default: `null`) - -#### #addThresholdStep - -* **color**: (type: string, default: `null`) - -* **value**: (type: integer, default: `null`) - -#### #addTarget - -* **target**: (type: object) - - - -### panel.text.new - - - -* **content**: (type: string, default: `null`) - -* **datasource**: (type: string, default: `"default"`) - -* **description**: (type: string, default: `null`) - -* **mode**: (type: string, default: `"markdown"`) - -* **repeat**: (type: string, default: `null`) - -* **repeatDirection**: (type: string, default: `null`) - -* **title**: (type: string, default: `null`) - -* **transparent**: (type: boolean, default: `false`) - - -#### #setGridPos - -* **h**: (type: integer, default: `8`) - Panel height. -* **w**: (type: integer, default: `12`) - Panel width. -* **x**: (type: integer, default: `null`) - Panel x position. -* **y**: (type: integer, default: `null`) - Panel y position. - -#### #addPanelLink - -* **targetBlank**: (type: boolean, default: `true`) - -* **title**: (type: string, default: `null`) - -* **url**: (type: string, default: `null`) - -#### #addTarget - -* **target**: (type: object) - - - - -## target - - - -### target.prometheus.new - - - -* **datasource**: (type: string, default: `"default"`) - -* **expr**: (type: string, default: `null`) - -* **format**: (type: string, default: `"time_series"`) - -* **instant**: (type: boolean, default: `null`) - -* **interval**: (type: string, default: `null`) - -* **intervalFactor**: (type: integer, default: `null`) - -* **legendFormat**: (type: string, default: `null`) - - - - - - -## template - - - -### template.custom.new - - - -* **allValue**: (type: string, default: `null`) - -* **hide**: (type: integer, default: `0`) - -* **includeAll**: (type: boolean, default: `false`) - -* **label**: (type: string, default: `null`) - -* **multi**: (type: boolean, default: `false`) - -* **name**: (type: string, default: `null`) - -* **query**: (type: string, default: `null`) - -* **queryValue**: (type: string, default: `""`) - -* **skipUrlSync**: (type: string, default: `false`) - - -#### #setCurrent - -* **selected**: (type: boolean, default: `false`) - -* **text**: (type: string, default: `null`) - -* **value**: (type: string, default: `null`) - - - - -### template.datasource.new - - - -* **hide**: (type: integer, default: `0`) - -* **includeAll**: (type: boolean, default: `false`) - -* **label**: (type: string, default: `null`) - -* **multi**: (type: boolean, default: `false`) - -* **name**: (type: string, default: `null`) - -* **query**: (type: string, default: `null`) - -* **refresh**: (type: integer, default: `1`) - -* **regex**: (type: string, default: `null`) - -* **skipUrlSync**: (type: string, default: `false`) - - -#### #setCurrent - -* **selected**: (type: boolean, default: `false`) - -* **text**: (type: string, default: `null`) - -* **value**: (type: string, default: `null`) - - - - -### template.query.new - - - -* **allValue**: (type: string, default: `null`) - -* **datasource**: (type: string, default: `null`) - -* **definition**: (type: string, default: `null`) - -* **hide**: (type: integer, default: `0`) - -* **includeAll**: (type: boolean, default: `false`) - -* **label**: (type: string, default: `null`) - -* **multi**: (type: boolean, default: `false`) - -* **name**: (type: string, default: `null`) - -* **query**: (type: string, default: `null`) - -* **refresh**: (type: integer, default: `0`) - -* **regex**: (type: string, default: `null`) - -* **skipUrlSync**: (type: string, default: `false`) - -* **sort**: (type: integer, default: `0`) - -* **tagValuesQuery**: (type: string, default: `null`) - -* **tags**: (type: array, default: `null`) - -* **tagsQuery**: (type: string, default: `null`) - -* **useTags**: (type: boolean, default: `false`) - - -#### #setCurrent - -* **selected**: (type: boolean, default: `null`) - -* **text**: (type: string, default: `null`) - -* **value**: (type: string, default: `null`) - - -#### #addOption - -* **selected**: (type: boolean, default: `true`) - -* **text**: (type: string, default: `null`) - -* **value**: (type: string, default: `null`) - - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/dashboard.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/dashboard.libsonnet deleted file mode 100644 index faa25c651..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/dashboard.libsonnet +++ /dev/null @@ -1,87 +0,0 @@ -// This file was generated by https://github.com/grafana/dashboard-spec - -{ - new( - description=null, - editable=true, - graphTooltip=0, - refresh=null, - schemaVersion=25, - style='dark', - tags=[], - timezone=null, - title=null, - uid=null, - ):: { - [if description != null then 'description']: description, - [if editable != null then 'editable']: editable, - [if graphTooltip != null then 'graphTooltip']: graphTooltip, - [if refresh != null then 'refresh']: refresh, - [if schemaVersion != null then 'schemaVersion']: schemaVersion, - [if style != null then 'style']: style, - [if tags != null then 'tags']: tags, - [if timezone != null then 'timezone']: timezone, - [if title != null then 'title']: title, - [if uid != null then 'uid']: uid, - - setTime( - from='now-6h', - to='now', - ):: self {} - + { time+: { [if from != null then 'from']: from } } - + { time+: { [if to != null then 'to']: to } } - , - - setTimepicker( - hidden=false, - refreshIntervals=['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], - ):: self {} - + { timepicker+: { [if hidden != null then 'hidden']: hidden } } - + { timepicker+: { [if refreshIntervals != null then 'refresh_intervals']: refreshIntervals } } - , - - - addTemplate( - template - ):: self {} - + { templating+: { list+: [ - template, - ] } }, - - addAnnotation( - builtIn=0, - datasource='default', - enable=true, - hide=false, - iconColor=null, - name=null, - rawQuery=null, - showIn=0, - ):: self {} - + { annotations+: { list+: [ - { - [if builtIn != null then 'builtIn']: builtIn, - [if datasource != null then 'datasource']: datasource, - [if enable != null then 'enable']: enable, - [if hide != null then 'hide']: hide, - [if iconColor != null then 'iconColor']: iconColor, - [if name != null then 'name']: name, - [if rawQuery != null then 'rawQuery']: rawQuery, - [if showIn != null then 'showIn']: showIn, - }, - ] } }, - - - panels: [], - _nextPanelID:: 2, - addPanel(panel):: self { - local nextPanelID = super._nextPanelID, - panels+: [ - panel { id: nextPanelID } + - if 'panels' in panel then { panels: std.mapWithIndex(function(i, p) p { id: nextPanelID + i + 1 }, panel.panels) } else {}, - ], - _nextPanelID:: nextPanelID + 1 + (if 'panels' in panel then std.length(panel.panels) else 0), - }, - addPanels(panels):: std.foldl(function(d, p) d.addPanel(p), panels, self), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/grafana.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/grafana.libsonnet deleted file mode 100644 index 28e65d1db..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/grafana.libsonnet +++ /dev/null @@ -1,21 +0,0 @@ -// This file was generated by https://github.com/grafana/dashboard-spec - -{ - dashboard:: import 'dashboard.libsonnet', - panel:: { - gauge:: import 'panel/gauge.libsonnet', - graph:: import 'panel/graph.libsonnet', - row:: import 'panel/row.libsonnet', - stat:: import 'panel/stat.libsonnet', - table:: import 'panel/table.libsonnet', - text:: import 'panel/text.libsonnet', - }, - target:: { - prometheus:: import 'target/prometheus.libsonnet', - }, - template:: { - custom:: import 'template/custom.libsonnet', - datasource:: import 'template/datasource.libsonnet', - query:: import 'template/query.libsonnet', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/gauge.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/gauge.libsonnet deleted file mode 100644 index 715c44458..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/gauge.libsonnet +++ /dev/null @@ -1,138 +0,0 @@ -// This file was generated by https://github.com/grafana/dashboard-spec - -{ - new( - datasource='default', - description=null, - repeat=null, - repeatDirection=null, - title=null, - transparent=false, - ):: { - [if datasource != null then 'datasource']: datasource, - [if description != null then 'description']: description, - [if repeat != null then 'repeat']: repeat, - [if repeatDirection != null then 'repeatDirection']: repeatDirection, - [if title != null then 'title']: title, - [if transparent != null then 'transparent']: transparent, - type: 'gauge', - - setFieldConfig( - max=null, - min=null, - thresholdMode='absolute', - unit=null, - ):: self {} - + { fieldConfig+: { defaults+: { [if max != null then 'max']: max } } } - + { fieldConfig+: { defaults+: { [if min != null then 'min']: min } } } - + { fieldConfig+: { defaults+: { thresholds+: { [if thresholdMode != null then 'mode']: thresholdMode } } } } - + { fieldConfig+: { defaults+: { [if unit != null then 'unit']: unit } } } - , - - setGridPos( - h=8, - w=12, - x=null, - y=null, - ):: self {} - + { gridPos+: { [if h != null then 'h']: h } } - + { gridPos+: { [if w != null then 'w']: w } } - + { gridPos+: { [if x != null then 'x']: x } } - + { gridPos+: { [if y != null then 'y']: y } } - , - - setOptions( - calcs=['mean'], - fields=null, - orientation='auto', - showThresholdLabels=false, - showThresholdMarkers=true, - values=false, - ):: self {} - + { options+: { reduceOptions+: { [if calcs != null then 'calcs']: calcs } } } - + { options+: { reduceOptions+: { [if fields != null then 'fields']: fields } } } - + { options+: { [if orientation != null then 'orientation']: orientation } } - + { options+: { [if showThresholdLabels != null then 'showThresholdLabels']: showThresholdLabels } } - + { options+: { [if showThresholdMarkers != null then 'showThresholdMarkers']: showThresholdMarkers } } - + { options+: { reduceOptions+: { [if values != null then 'values']: values } } } - , - - - addPanelLink( - targetBlank=true, - title=null, - url=null, - ):: self {} - + { links+: [ - { - [if targetBlank != null then 'targetBlank']: targetBlank, - [if title != null then 'title']: title, - [if url != null then 'url']: url, - }, - ] }, - - addDataLink( - targetBlank=true, - title=null, - url=null, - ):: self {} - + { fieldConfig+: { defaults+: { links+: [ - { - [if targetBlank != null then 'targetBlank']: targetBlank, - [if title != null then 'title']: title, - [if url != null then 'url']: url, - }, - ] } } }, - - addMapping( - from=null, - id=null, - operator=null, - text=null, - to=null, - type=null, - value=null, - ):: self {} - + { fieldConfig+: { defaults+: { mappings+: [ - { - [if from != null then 'from']: from, - [if id != null then 'id']: id, - [if operator != null then 'operator']: operator, - [if text != null then 'text']: text, - [if to != null then 'to']: to, - [if type != null then 'type']: type, - [if value != null then 'value']: value, - }, - ] } } }, - - addOverride( - matcher=null, - properties=null, - ):: self {} - + { fieldConfig+: { overrides+: [ - { - [if matcher != null then 'matcher']: matcher, - [if properties != null then 'properties']: properties, - }, - ] } }, - - addThresholdStep( - color=null, - value=null, - ):: self {} - + { fieldConfig+: { defaults+: { thresholds+: { steps+: [ - { - [if color != null then 'color']: color, - [if value != null then 'value']: value, - }, - ] } } } }, - - addTarget( - target - ):: self {} - + { targets+: [ - target, - ] }, - - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/graph.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/graph.libsonnet deleted file mode 100644 index 34985a188..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/graph.libsonnet +++ /dev/null @@ -1,257 +0,0 @@ -// This file was generated by https://github.com/grafana/dashboard-spec - -{ - new( - bars=false, - dashLength=10, - dashes=false, - datasource='default', - decimals=null, - description=null, - fill=1, - fillGradient=0, - hiddenSeries=false, - lines=true, - linewidth=1, - nullPointMode='null', - percentage=false, - pointradius=null, - points=false, - repeat=null, - repeatDirection=null, - spaceLength=10, - stack=false, - steppedLine=false, - timeFrom=null, - timeShift=null, - title=null, - transparent=false, - ):: { - [if bars != null then 'bars']: bars, - [if dashLength != null then 'dashLength']: dashLength, - [if dashes != null then 'dashes']: dashes, - [if datasource != null then 'datasource']: datasource, - [if decimals != null then 'decimals']: decimals, - [if description != null then 'description']: description, - [if fill != null then 'fill']: fill, - [if fillGradient != null then 'fillGradient']: fillGradient, - [if hiddenSeries != null then 'hiddenSeries']: hiddenSeries, - [if lines != null then 'lines']: lines, - [if linewidth != null then 'linewidth']: linewidth, - [if nullPointMode != null then 'nullPointMode']: nullPointMode, - [if percentage != null then 'percentage']: percentage, - [if pointradius != null then 'pointradius']: pointradius, - [if points != null then 'points']: points, - [if repeat != null then 'repeat']: repeat, - [if repeatDirection != null then 'repeatDirection']: repeatDirection, - [if spaceLength != null then 'spaceLength']: spaceLength, - [if stack != null then 'stack']: stack, - [if steppedLine != null then 'steppedLine']: steppedLine, - [if timeFrom != null then 'timeFrom']: timeFrom, - [if timeShift != null then 'timeShift']: timeShift, - [if title != null then 'title']: title, - [if transparent != null then 'transparent']: transparent, - renderer: 'flot', - type: 'graph', - tooltip+: { value_type: 'individual' }, - - setGridPos( - h=8, - w=12, - x=null, - y=null, - ):: self {} - + { gridPos+: { [if h != null then 'h']: h } } - + { gridPos+: { [if w != null then 'w']: w } } - + { gridPos+: { [if x != null then 'x']: x } } - + { gridPos+: { [if y != null then 'y']: y } } - , - - setLegend( - alignAsTable=null, - avg=false, - current=false, - max=false, - min=false, - rightSide=false, - show=true, - sideWidth=null, - total=false, - values=true, - ):: self {} - + { legend+: { [if alignAsTable != null then 'alignAsTable']: alignAsTable } } - + { legend+: { [if avg != null then 'avg']: avg } } - + { legend+: { [if current != null then 'current']: current } } - + { legend+: { [if max != null then 'max']: max } } - + { legend+: { [if min != null then 'min']: min } } - + { legend+: { [if rightSide != null then 'rightSide']: rightSide } } - + { legend+: { [if show != null then 'show']: show } } - + { legend+: { [if sideWidth != null then 'sideWidth']: sideWidth } } - + { legend+: { [if total != null then 'total']: total } } - + { legend+: { [if values != null then 'values']: values } } - , - - setThresholds( - thresholdMode='absolute', - ):: self {} - + { thresholds+: { [if thresholdMode != null then 'mode']: thresholdMode } } - , - - setTooltip( - shared=true, - sort=2, - ):: self {} - + { tooltip+: { [if shared != null then 'shared']: shared } } - + { tooltip+: { [if sort != null then 'sort']: sort } } - , - - setXaxis( - buckets=null, - mode='time', - name=null, - show=true, - ):: self {} - + { xaxis+: { [if buckets != null then 'buckets']: buckets } } - + { xaxis+: { [if mode != null then 'mode']: mode } } - + { xaxis+: { [if name != null then 'name']: name } } - + { xaxis+: { [if show != null then 'show']: show } } - , - - setYaxis( - align=false, - alignLevel=0, - ):: self {} - + { yaxis+: { [if align != null then 'align']: align } } - + { yaxis+: { [if alignLevel != null then 'alignLevel']: alignLevel } } - , - - - addDataLink( - targetBlank=true, - title=null, - url=null, - ):: self {} - + { options+: { dataLinks+: [ - { - [if targetBlank != null then 'targetBlank']: targetBlank, - [if title != null then 'title']: title, - [if url != null then 'url']: url, - }, - ] } }, - - addPanelLink( - targetBlank=true, - title=null, - url=null, - ):: self {} - + { links+: [ - { - [if targetBlank != null then 'targetBlank']: targetBlank, - [if title != null then 'title']: title, - [if url != null then 'url']: url, - }, - ] }, - - addOverride( - matcher=null, - properties=null, - ):: self {} - + { fieldConfig+: { overrides+: [ - { - [if matcher != null then 'matcher']: matcher, - [if properties != null then 'properties']: properties, - }, - ] } }, - - addSeriesOverride( - alias=null, - bars=null, - color=null, - dashLength=null, - dashes=null, - fill=null, - fillBelowTo=null, - fillGradient=null, - hiddenSeries=null, - hideTooltip=null, - legend=null, - lines=null, - linewidth=null, - nullPointMode=null, - pointradius=null, - points=null, - spaceLength=null, - stack=null, - steppedLine=null, - transform=null, - yaxis=null, - zindex=null, - ):: self {} - + { seriesOverrides+: [ - { - [if alias != null then 'alias']: alias, - [if bars != null then 'bars']: bars, - [if color != null then 'color']: color, - [if dashLength != null then 'dashLength']: dashLength, - [if dashes != null then 'dashes']: dashes, - [if fill != null then 'fill']: fill, - [if fillBelowTo != null then 'fillBelowTo']: fillBelowTo, - [if fillGradient != null then 'fillGradient']: fillGradient, - [if hiddenSeries != null then 'hiddenSeries']: hiddenSeries, - [if hideTooltip != null then 'hideTooltip']: hideTooltip, - [if legend != null then 'legend']: legend, - [if lines != null then 'lines']: lines, - [if linewidth != null then 'linewidth']: linewidth, - [if nullPointMode != null then 'nullPointMode']: nullPointMode, - [if pointradius != null then 'pointradius']: pointradius, - [if points != null then 'points']: points, - [if spaceLength != null then 'spaceLength']: spaceLength, - [if stack != null then 'stack']: stack, - [if steppedLine != null then 'steppedLine']: steppedLine, - [if transform != null then 'transform']: transform, - [if yaxis != null then 'yaxis']: yaxis, - [if zindex != null then 'zindex']: zindex, - }, - ] }, - - addThresholdStep( - color=null, - value=null, - ):: self {} - + { thresholds+: { steps+: [ - { - [if color != null then 'color']: color, - [if value != null then 'value']: value, - }, - ] } }, - - addTarget( - target - ):: self {} - + { targets+: [ - target, - ] }, - - addYaxis( - decimals=null, - format='short', - label=null, - logBase=1, - max=null, - min=null, - show=true, - ):: self {} - + { yaxes+: [ - { - [if decimals != null then 'decimals']: decimals, - [if format != null then 'format']: format, - [if label != null then 'label']: label, - [if logBase != null then 'logBase']: logBase, - [if max != null then 'max']: max, - [if min != null then 'min']: min, - [if show != null then 'show']: show, - }, - ] }, - - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/row.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/row.libsonnet deleted file mode 100644 index e8a21d361..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/row.libsonnet +++ /dev/null @@ -1,45 +0,0 @@ -// This file was generated by https://github.com/grafana/dashboard-spec - -{ - new( - collapse=true, - collapsed=true, - datasource=null, - repeat=null, - repeatIteration=null, - showTitle=true, - title=null, - titleSize='h6', - ):: { - [if collapse != null then 'collapse']: collapse, - [if collapsed != null then 'collapsed']: collapsed, - [if datasource != null then 'datasource']: datasource, - [if repeat != null then 'repeat']: repeat, - [if repeatIteration != null then 'repeatIteration']: repeatIteration, - [if showTitle != null then 'showTitle']: showTitle, - [if title != null then 'title']: title, - [if titleSize != null then 'titleSize']: titleSize, - type: 'row', - - setGridPos( - h=8, - w=12, - x=null, - y=null, - ):: self {} - + { gridPos+: { [if h != null then 'h']: h } } - + { gridPos+: { [if w != null then 'w']: w } } - + { gridPos+: { [if x != null then 'x']: x } } - + { gridPos+: { [if y != null then 'y']: y } } - , - - - addPanel( - panel - ):: self {} - + { panels+: [ - panel, - ] }, - - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/stat.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/stat.libsonnet deleted file mode 100644 index a14c9380e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/stat.libsonnet +++ /dev/null @@ -1,142 +0,0 @@ -// This file was generated by https://github.com/grafana/dashboard-spec - -{ - new( - datasource='default', - description=null, - repeat=null, - repeatDirection=null, - title=null, - transparent=false, - ):: { - [if datasource != null then 'datasource']: datasource, - [if description != null then 'description']: description, - [if repeat != null then 'repeat']: repeat, - [if repeatDirection != null then 'repeatDirection']: repeatDirection, - [if title != null then 'title']: title, - [if transparent != null then 'transparent']: transparent, - type: 'stat', - - setFieldConfig( - max=null, - min=null, - thresholdMode='absolute', - unit=null, - ):: self {} - + { fieldConfig+: { defaults+: { [if max != null then 'max']: max } } } - + { fieldConfig+: { defaults+: { [if min != null then 'min']: min } } } - + { fieldConfig+: { defaults+: { thresholds+: { [if thresholdMode != null then 'mode']: thresholdMode } } } } - + { fieldConfig+: { defaults+: { [if unit != null then 'unit']: unit } } } - , - - setGridPos( - h=8, - w=12, - x=null, - y=null, - ):: self {} - + { gridPos+: { [if h != null then 'h']: h } } - + { gridPos+: { [if w != null then 'w']: w } } - + { gridPos+: { [if x != null then 'x']: x } } - + { gridPos+: { [if y != null then 'y']: y } } - , - - setOptions( - calcs=['mean'], - colorMode='value', - fields=null, - graphMode='none', - justifyMode='auto', - orientation='auto', - textMode='auto', - values=false, - ):: self {} - + { options+: { reduceOptions+: { [if calcs != null then 'calcs']: calcs } } } - + { options+: { [if colorMode != null then 'colorMode']: colorMode } } - + { options+: { reduceOptions+: { [if fields != null then 'fields']: fields } } } - + { options+: { [if graphMode != null then 'graphMode']: graphMode } } - + { options+: { [if justifyMode != null then 'justifyMode']: justifyMode } } - + { options+: { [if orientation != null then 'orientation']: orientation } } - + { options+: { [if textMode != null then 'textMode']: textMode } } - + { options+: { reduceOptions+: { [if values != null then 'values']: values } } } - , - - - addPanelLink( - targetBlank=true, - title=null, - url=null, - ):: self {} - + { links+: [ - { - [if targetBlank != null then 'targetBlank']: targetBlank, - [if title != null then 'title']: title, - [if url != null then 'url']: url, - }, - ] }, - - addDataLink( - targetBlank=true, - title=null, - url=null, - ):: self {} - + { fieldConfig+: { defaults+: { links+: [ - { - [if targetBlank != null then 'targetBlank']: targetBlank, - [if title != null then 'title']: title, - [if url != null then 'url']: url, - }, - ] } } }, - - addMapping( - from=null, - id=null, - operator=null, - text=null, - to=null, - type=null, - value=null, - ):: self {} - + { fieldConfig+: { defaults+: { mappings+: [ - { - [if from != null then 'from']: from, - [if id != null then 'id']: id, - [if operator != null then 'operator']: operator, - [if text != null then 'text']: text, - [if to != null then 'to']: to, - [if type != null then 'type']: type, - [if value != null then 'value']: value, - }, - ] } } }, - - addOverride( - matcher=null, - properties=null, - ):: self {} - + { fieldConfig+: { overrides+: [ - { - [if matcher != null then 'matcher']: matcher, - [if properties != null then 'properties']: properties, - }, - ] } }, - - addThresholdStep( - color=null, - value=null, - ):: self {} - + { fieldConfig+: { defaults+: { thresholds+: { steps+: [ - { - [if color != null then 'color']: color, - [if value != null then 'value']: value, - }, - ] } } } }, - - addTarget( - target - ):: self {} - + { targets+: [ - target, - ] }, - - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/table.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/table.libsonnet deleted file mode 100644 index 981d1ea27..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/table.libsonnet +++ /dev/null @@ -1,134 +0,0 @@ -// This file was generated by https://github.com/grafana/dashboard-spec - -{ - new( - datasource='default', - description=null, - repeat=null, - repeatDirection=null, - title=null, - transparent=false, - ):: { - [if datasource != null then 'datasource']: datasource, - [if description != null then 'description']: description, - [if repeat != null then 'repeat']: repeat, - [if repeatDirection != null then 'repeatDirection']: repeatDirection, - [if title != null then 'title']: title, - [if transparent != null then 'transparent']: transparent, - type: 'table', - - setFieldConfig( - displayName=null, - max=null, - min=null, - thresholdMode='absolute', - noValue=null, - unit='short', - width=null, - ):: self {} - + { fieldConfig+: { defaults+: { [if displayName != null then 'displayName']: displayName } } } - + { fieldConfig+: { defaults+: { [if max != null then 'max']: max } } } - + { fieldConfig+: { defaults+: { [if min != null then 'min']: min } } } - + { fieldConfig+: { defaults+: { thresholds+: { [if thresholdMode != null then 'mode']: thresholdMode } } } } - + { fieldConfig+: { defaults+: { [if noValue != null then 'noValue']: noValue } } } - + { fieldConfig+: { defaults+: { [if unit != null then 'unit']: unit } } } - + { fieldConfig+: { defaults+: { custom+: { [if width != null then 'width']: width } } } } - , - - setGridPos( - h=8, - w=12, - x=null, - y=null, - ):: self {} - + { gridPos+: { [if h != null then 'h']: h } } - + { gridPos+: { [if w != null then 'w']: w } } - + { gridPos+: { [if x != null then 'x']: x } } - + { gridPos+: { [if y != null then 'y']: y } } - , - - setOptions( - showHeader=true, - ):: self {} - + { options+: { [if showHeader != null then 'showHeader']: showHeader } } - , - - - addDataLink( - targetBlank=true, - title=null, - url=null, - ):: self {} - + { fieldConfig+: { defaults+: { links+: [ - { - [if targetBlank != null then 'targetBlank']: targetBlank, - [if title != null then 'title']: title, - [if url != null then 'url']: url, - }, - ] } } }, - - addPanelLink( - targetBlank=true, - title=null, - url=null, - ):: self {} - + { links+: [ - { - [if targetBlank != null then 'targetBlank']: targetBlank, - [if title != null then 'title']: title, - [if url != null then 'url']: url, - }, - ] }, - - addMapping( - from=null, - id=null, - operator=null, - text=null, - to=null, - type=null, - value=null, - ):: self {} - + { fieldConfig+: { defaults+: { mappings+: [ - { - [if from != null then 'from']: from, - [if id != null then 'id']: id, - [if operator != null then 'operator']: operator, - [if text != null then 'text']: text, - [if to != null then 'to']: to, - [if type != null then 'type']: type, - [if value != null then 'value']: value, - }, - ] } } }, - - addOverride( - matcher=null, - properties=null, - ):: self {} - + { fieldConfig+: { overrides+: [ - { - [if matcher != null then 'matcher']: matcher, - [if properties != null then 'properties']: properties, - }, - ] } }, - - addThresholdStep( - color=null, - value=null, - ):: self {} - + { fieldConfig+: { defaults+: { thresholds+: { steps+: [ - { - [if color != null then 'color']: color, - [if value != null then 'value']: value, - }, - ] } } } }, - - addTarget( - target - ):: self {} - + { targets+: [ - target, - ] }, - - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/text.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/text.libsonnet deleted file mode 100644 index 1c4c682ac..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/panel/text.libsonnet +++ /dev/null @@ -1,58 +0,0 @@ -// This file was generated by https://github.com/grafana/dashboard-spec - -{ - new( - content=null, - datasource='default', - description=null, - mode='markdown', - repeat=null, - repeatDirection=null, - title=null, - transparent=false, - ):: { - [if content != null then 'content']: content, - [if datasource != null then 'datasource']: datasource, - [if description != null then 'description']: description, - [if mode != null then 'mode']: mode, - [if repeat != null then 'repeat']: repeat, - [if repeatDirection != null then 'repeatDirection']: repeatDirection, - [if title != null then 'title']: title, - [if transparent != null then 'transparent']: transparent, - type: 'text', - - setGridPos( - h=8, - w=12, - x=null, - y=null, - ):: self {} - + { gridPos+: { [if h != null then 'h']: h } } - + { gridPos+: { [if w != null then 'w']: w } } - + { gridPos+: { [if x != null then 'x']: x } } - + { gridPos+: { [if y != null then 'y']: y } } - , - - - addPanelLink( - targetBlank=true, - title=null, - url=null, - ):: self {} - + { links+: [ - { - [if targetBlank != null then 'targetBlank']: targetBlank, - [if title != null then 'title']: title, - [if url != null then 'url']: url, - }, - ] }, - - addTarget( - target - ):: self {} - + { targets+: [ - target, - ] }, - - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/target/prometheus.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/target/prometheus.libsonnet deleted file mode 100644 index e6e5fa0f6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/target/prometheus.libsonnet +++ /dev/null @@ -1,21 +0,0 @@ -// This file was generated by https://github.com/grafana/dashboard-spec - -{ - new( - datasource='default', - expr=null, - format='time_series', - instant=null, - interval=null, - intervalFactor=null, - legendFormat=null, - ):: { - [if datasource != null then 'datasource']: datasource, - [if expr != null then 'expr']: expr, - [if format != null then 'format']: format, - [if instant != null then 'instant']: instant, - [if interval != null then 'interval']: interval, - [if intervalFactor != null then 'intervalFactor']: intervalFactor, - [if legendFormat != null then 'legendFormat']: legendFormat, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/template/custom.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/template/custom.libsonnet deleted file mode 100644 index 3755b6219..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/template/custom.libsonnet +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated by https://github.com/grafana/dashboard-spec - -{ - new( - allValue=null, - hide=0, - includeAll=false, - label=null, - multi=false, - name=null, - query=null, - queryValue='', - skipUrlSync=false, - ):: { - [if allValue != null then 'allValue']: allValue, - [if hide != null then 'hide']: hide, - [if includeAll != null then 'includeAll']: includeAll, - [if label != null then 'label']: label, - [if multi != null then 'multi']: multi, - [if name != null then 'name']: name, - [if query != null then 'query']: query, - [if queryValue != null then 'queryValue']: queryValue, - [if skipUrlSync != null then 'skipUrlSync']: skipUrlSync, - type: 'custom', - - setCurrent( - selected=false, - text=null, - value=null, - ):: self {} - + { current+: { [if selected != null then 'selected']: selected } } - + { current+: { [if text != null then 'text']: text } } - + { current+: { [if value != null then 'value']: value } }, - - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/template/datasource.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/template/datasource.libsonnet deleted file mode 100644 index 0bdaf834a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/template/datasource.libsonnet +++ /dev/null @@ -1,36 +0,0 @@ -// This file was generated by https://github.com/grafana/dashboard-spec - -{ - new( - hide=0, - includeAll=false, - label=null, - multi=false, - name=null, - query=null, - refresh=1, - regex=null, - skipUrlSync=false, - ):: { - [if hide != null then 'hide']: hide, - [if includeAll != null then 'includeAll']: includeAll, - [if label != null then 'label']: label, - [if multi != null then 'multi']: multi, - [if name != null then 'name']: name, - [if query != null then 'query']: query, - [if refresh != null then 'refresh']: refresh, - [if regex != null then 'regex']: regex, - [if skipUrlSync != null then 'skipUrlSync']: skipUrlSync, - type: 'datasource', - - setCurrent( - selected=false, - text=null, - value=null, - ):: self {} - + { current+: { [if selected != null then 'selected']: selected } } - + { current+: { [if text != null then 'text']: text } } - + { current+: { [if value != null then 'value']: value } }, - - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/template/query.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/template/query.libsonnet deleted file mode 100644 index 951cef753..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet-7.0/template/query.libsonnet +++ /dev/null @@ -1,52 +0,0 @@ -// This file was generated by https://github.com/grafana/dashboard-spec - -{ - new( - allValue=null, - datasource=null, - definition=null, - hide=0, - includeAll=false, - label=null, - multi=false, - name=null, - query=null, - refresh=0, - regex=null, - skipUrlSync=false, - sort=0, - tagValuesQuery=null, - tags=null, - tagsQuery=null, - useTags=false, - ):: { - [if allValue != null then 'allValue']: allValue, - [if datasource != null then 'datasource']: datasource, - [if definition != null then 'definition']: definition, - [if hide != null then 'hide']: hide, - [if includeAll != null then 'includeAll']: includeAll, - [if label != null then 'label']: label, - [if multi != null then 'multi']: multi, - [if name != null then 'name']: name, - [if query != null then 'query']: query, - [if refresh != null then 'refresh']: refresh, - [if regex != null then 'regex']: regex, - [if skipUrlSync != null then 'skipUrlSync']: skipUrlSync, - [if sort != null then 'sort']: sort, - [if tagValuesQuery != null then 'tagValuesQuery']: tagValuesQuery, - [if tags != null then 'tags']: tags, - [if tagsQuery != null then 'tagsQuery']: tagsQuery, - [if useTags != null then 'useTags']: useTags, - type: 'query', - - setCurrent( - selected=null, - text=null, - value=null, - ):: self {} - + { current+: { [if selected != null then 'selected']: selected } } - + { current+: { [if text != null then 'text']: text } } - + { current+: { [if value != null then 'value']: value } }, - - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/alert_condition.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/alert_condition.libsonnet deleted file mode 100644 index 163d08282..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/alert_condition.libsonnet +++ /dev/null @@ -1,47 +0,0 @@ -{ - /** - * Returns a new condition of alert of graph panel. - * Currently the only condition type that exists is a Query condition - * that allows to specify a query letter, time range and an aggregation function. - * - * @name alertCondition.new - * - * @param evaluatorParams Value of threshold - * @param evaluatorType Type of threshold - * @param operatorType Operator between conditions - * @param queryRefId The letter defines what query to execute from the Metrics tab - * @param queryTimeStart Begging of time range - * @param queryTimeEnd End of time range - * @param reducerParams Params of an aggregation function - * @param reducerType Name of an aggregation function - * - * @return A json that represents a condition of alert - */ - new( - evaluatorParams=[], - evaluatorType='gt', - operatorType='and', - queryRefId='A', - queryTimeEnd='now', - queryTimeStart='5m', - reducerParams=[], - reducerType='avg', - ):: - { - evaluator: { - params: if std.type(evaluatorParams) == 'array' then evaluatorParams else [evaluatorParams], - type: evaluatorType, - }, - operator: { - type: operatorType, - }, - query: { - params: [queryRefId, queryTimeStart, queryTimeEnd], - }, - reducer: { - params: if std.type(reducerParams) == 'array' then reducerParams else [reducerParams], - type: reducerType, - }, - type: 'query', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/alertlist.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/alertlist.libsonnet deleted file mode 100644 index 94df3603e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/alertlist.libsonnet +++ /dev/null @@ -1,43 +0,0 @@ -{ - /** - * Creates an [Alert list panel](https://grafana.com/docs/grafana/latest/panels/visualizations/alert-list-panel/) - * - * @name alertlist.new - * - * @param title (default `''`) - * @param span (optional) - * @param show (default `'current'`) Whether the panel should display the current alert state or recent alert state changes. - * @param limit (default `10`) Sets the maximum number of alerts to list. - * @param sortOrder (default `'1'`) '1': alerting, '2': no_data, '3': pending, '4': ok, '5': paused - * @param stateFilter (optional) - * @param onlyAlertsOnDashboard (optional) Shows alerts only from the dashboard the alert list is in - * @param transparent (optional) Whether to display the panel without a background - * @param description (optional) - * @param datasource (optional) - */ - new( - title='', - span=null, - show='current', - limit=10, - sortOrder=1, - stateFilter=[], - onlyAlertsOnDashboard=true, - transparent=null, - description=null, - datasource=null, - ):: - { - [if transparent != null then 'transparent']: transparent, - title: title, - [if span != null then 'span']: span, - type: 'alertlist', - show: show, - limit: limit, - sortOrder: sortOrder, - [if show != 'changes' then 'stateFilter']: stateFilter, - onlyAlertsOnDashboard: onlyAlertsOnDashboard, - [if description != null then 'description']: description, - datasource: datasource, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/annotation.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/annotation.libsonnet deleted file mode 100644 index 955b029cb..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/annotation.libsonnet +++ /dev/null @@ -1,40 +0,0 @@ -{ - default:: - { - builtIn: 1, - datasource: '-- Grafana --', - enable: true, - hide: true, - iconColor: 'rgba(0, 211, 255, 1)', - name: 'Annotations & Alerts', - type: 'dashboard', - }, - - /** - * @name annotation.datasource - */ - - datasource( - name, - datasource, - expr=null, - enable=true, - hide=false, - iconColor='rgba(255, 96, 96, 1)', - tags=[], - type='tags', - builtIn=null, - ):: - { - datasource: datasource, - enable: enable, - [if expr != null then 'expr']: expr, - hide: hide, - iconColor: iconColor, - name: name, - showIn: 0, - tags: tags, - type: type, - [if builtIn != null then 'builtIn']: builtIn, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/bar_gauge_panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/bar_gauge_panel.libsonnet deleted file mode 100644 index 313e5a033..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/bar_gauge_panel.libsonnet +++ /dev/null @@ -1,47 +0,0 @@ -{ - /** - * Create a [bar gauge panel](https://grafana.com/docs/grafana/latest/panels/visualizations/bar-gauge-panel/), - * - * @name barGaugePanel.new - * - * @param title Panel title. - * @param description (optional) Panel description. - * @param datasource (optional) Panel datasource. - * @param unit (optional) The unit of the data. - * @param thresholds (optional) An array of threashold values. - * - * @method addTarget(target) Adds a target object. - * @method addTargets(targets) Adds an array of targets. - */ - new( - title, - description=null, - datasource=null, - unit=null, - thresholds=[], - ):: { - type: 'bargauge', - title: title, - [if description != null then 'description']: description, - datasource: datasource, - targets: [ - ], - fieldConfig: { - defaults: { - unit: unit, - thresholds: { - mode: 'absolute', - steps: thresholds, - }, - }, - }, - _nextTarget:: 0, - addTarget(target):: self { - // automatically ref id in added targets. - local nextTarget = super._nextTarget, - _nextTarget: nextTarget + 1, - targets+: [target { refId: std.char(std.codepoint('A') + nextTarget) }], - }, - addTargets(targets):: std.foldl(function(p, t) p.addTarget(t), targets, self), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/cloudmonitoring.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/cloudmonitoring.libsonnet deleted file mode 100644 index 49cef5e1a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/cloudmonitoring.libsonnet +++ /dev/null @@ -1,57 +0,0 @@ -{ - /** - * Creates a [Google Cloud Monitoring target](https://grafana.com/docs/grafana/latest/datasources/google-cloud-monitoring/) - * - * @name cloudmonitoring.target - * - * @param metric - * @param project - * @param filters (optional) - * @param groupBys (optional) - * @param period (default: `'cloud-monitoring-auto'`) - * @param crossSeriesReducer (default 'REDUCE_MAX') - * @param valueType (default 'INT64') - * @param perSeriesAligner (default 'ALIGN_DELTA') - * @param metricKind (default 'CUMULATIVE') - * @param unit (optional) - * @param alias (optional) - - * @return Panel target - */ - - target( - metric, - project, - filters=[], - groupBys=[], - period='cloud-monitoring-auto', - crossSeriesReducer='REDUCE_MAX', - valueType='INT64', - perSeriesAligner='ALIGN_DELTA', - metricKind='CUMULATIVE', - unit=1, - alias=null, - ):: { - metricQuery: { - [if alias != null then 'aliasBy']: alias, - alignmentPeriod: period, - crossSeriesReducer: crossSeriesReducer, - [if filters != null then 'filters']: filters, - [if groupBys != null then 'groupBys']: groupBys, - metricKind: metricKind, - metricType: metric, - perSeriesAligner: perSeriesAligner, - projectName: project, - unit: unit, - valueType: valueType, - }, - sloQuery: { - [if alias != null then 'aliasBy']: alias, - alignmentPeriod: period, - projectName: project, - selectorName: 'select_slo_health', - serviceId: '', - sloId: '', - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/cloudwatch.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/cloudwatch.libsonnet deleted file mode 100644 index f56056f4e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/cloudwatch.libsonnet +++ /dev/null @@ -1,51 +0,0 @@ -{ - /** - * Creates a [CloudWatch target](https://grafana.com/docs/grafana/latest/datasources/cloudwatch/) - * - * @name cloudwatch.target - * - * @param region - * @param namespace - * @param metric - * @param datasource (optional) - * @param statistic (default: `'Average'`) - * @param alias (optional) - * @param highResolution (default: `false`) - * @param period (default: `'auto'`) - * @param dimensions (optional) - * @param id (optional) - * @param expression (optional) - * @param hide (optional) - - * @return Panel target - */ - - target( - region, - namespace, - metric, - datasource=null, - statistic='Average', - alias=null, - highResolution=false, - period='auto', - dimensions={}, - id=null, - expression=null, - hide=null - ):: { - region: region, - namespace: namespace, - metricName: metric, - [if datasource != null then 'datasource']: datasource, - statistics: [statistic], - [if alias != null then 'alias']: alias, - highResolution: highResolution, - period: period, - dimensions: dimensions, - [if id != null then 'id']: id, - [if expression != null then 'expression']: expression, - [if hide != null then 'hide']: hide, - - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/dashboard.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/dashboard.libsonnet deleted file mode 100644 index 1cc1bf320..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/dashboard.libsonnet +++ /dev/null @@ -1,181 +0,0 @@ -local timepickerlib = import 'timepicker.libsonnet'; - -{ - /** - * Creates a [dashboard](https://grafana.com/docs/grafana/latest/features/dashboard/dashboards/) - * - * @name dashboard.new - * - * @param title The title of the dashboard - * @param editable (default: `false`) Whether the dashboard is editable via Grafana UI. - * @param style (default: `'dark'`) Theme of dashboard, `'dark'` or `'light'` - * @param tags (optional) Array of tags associated to the dashboard, e.g.`['tag1','tag2']` - * @param time_from (default: `'now-6h'`) - * @param time_to (default: `'now'`) - * @param timezone (default: `'browser'`) Timezone of the dashboard, `'utc'` or `'browser'` - * @param refresh (default: `''`) Auto-refresh interval, e.g. `'30s'` - * @param timepicker (optional) See timepicker API - * @param graphTooltip (default: `'default'`) `'default'` : no shared crosshair or tooltip (0), `'shared_crosshair'`: shared crosshair (1), `'shared_tooltip'`: shared crosshair AND shared tooltip (2) - * @param hideControls (default: `false`) - * @param schemaVersion (default: `14`) Version of the Grafana JSON schema, incremented each time an update brings changes. `26` for Grafana 7.1.5, `22` for Grafana 6.7.4, `16` for Grafana 5.4.5, `14` for Grafana 4.6.3. etc. - * @param uid (default: `''`) Unique dashboard identifier as a string (8-40), that can be chosen by users. Used to identify a dashboard to update when using Grafana REST API. - * @param description (optional) - * - * @method addTemplate(template) Add a template variable - * @method addTemplates(templates) Adds an array of template variables - * @method addAnnotation(annotation) Add an [annotation](https://grafana.com/docs/grafana/latest/dashboards/annotations/) - * @method addPanel(panel,gridPos) Appends a panel, with an optional grid position in grid coordinates, e.g. `gridPos={'x':0, 'y':0, 'w':12, 'h': 9}` - * @method addPanels(panels) Appends an array of panels - * @method addLink(link) Adds a [dashboard link](https://grafana.com/docs/grafana/latest/linking/dashboard-links/) - * @method addLinks(dashboardLink) Adds an array of [dashboard links](https://grafana.com/docs/grafana/latest/linking/dashboard-links/) - * @method addRequired(type, name, id, version) - * @method addInput(name, label, type, pluginId, pluginName, description, value) - * @method addRow(row) Adds a row. This is the legacy row concept from Grafana < 5, when rows were needed for layout. Rows should now be added via `addPanel`. - */ - new( - title, - editable=false, - style='dark', - tags=[], - time_from='now-6h', - time_to='now', - timezone='browser', - refresh='', - timepicker=timepickerlib.new(), - graphTooltip='default', - hideControls=false, - schemaVersion=14, - uid='', - description=null, - ):: { - local it = self, - _annotations:: [], - [if uid != '' then 'uid']: uid, - editable: editable, - [if description != null then 'description']: description, - gnetId: null, - graphTooltip: - if graphTooltip == 'shared_tooltip' then 2 - else if graphTooltip == 'shared_crosshair' then 1 - else if graphTooltip == 'default' then 0 - else graphTooltip, - hideControls: hideControls, - id: null, - links: [], - panels:: [], - refresh: refresh, - rows: [], - schemaVersion: schemaVersion, - style: style, - tags: tags, - time: { - from: time_from, - to: time_to, - }, - timezone: timezone, - timepicker: timepicker, - title: title, - version: 0, - addAnnotations(annotations):: self { - _annotations+:: annotations, - }, - addAnnotation(a):: self.addAnnotations([a]), - addTemplates(templates):: self { - templates+: templates, - }, - addTemplate(t):: self.addTemplates([t]), - templates:: [], - annotations: { list: it._annotations }, - templating: { list: it.templates }, - _nextPanel:: 2, - addRow(row):: - self { - // automatically number panels in added rows. - // https://github.com/kausalco/public/blob/master/klumps/grafana.libsonnet - local n = std.length(row.panels), - local nextPanel = super._nextPanel, - local panels = std.makeArray(n, function(i) - row.panels[i] { id: nextPanel + i }), - - _nextPanel: nextPanel + n, - rows+: [row { panels: panels }], - }, - addPanels(newpanels):: - self { - // automatically number panels in added rows. - // https://github.com/kausalco/public/blob/master/klumps/grafana.libsonnet - local n = std.foldl(function(numOfPanels, p) - (if 'panels' in p then - numOfPanels + 1 + std.length(p.panels) - else - numOfPanels + 1), newpanels, 0), - local nextPanel = super._nextPanel, - local _panels = std.makeArray( - std.length(newpanels), function(i) - newpanels[i] { - id: nextPanel + ( - if i == 0 then - 0 - else - if 'panels' in _panels[i - 1] then - (_panels[i - 1].id - nextPanel) + 1 + std.length(_panels[i - 1].panels) - else - (_panels[i - 1].id - nextPanel) + 1 - - ), - [if 'panels' in newpanels[i] then 'panels']: std.makeArray( - std.length(newpanels[i].panels), function(j) - newpanels[i].panels[j] { - id: 1 + j + - nextPanel + ( - if i == 0 then - 0 - else - if 'panels' in _panels[i - 1] then - (_panels[i - 1].id - nextPanel) + 1 + std.length(_panels[i - 1].panels) - else - (_panels[i - 1].id - nextPanel) + 1 - - ), - } - ), - } - ), - - _nextPanel: nextPanel + n, - panels+::: _panels, - }, - addPanel(panel, gridPos):: self.addPanels([panel { gridPos: gridPos }]), - addRows(rows):: std.foldl(function(d, row) d.addRow(row), rows, self), - addLink(link):: self { - links+: [link], - }, - addLinks(dashboardLinks):: std.foldl(function(d, t) d.addLink(t), dashboardLinks, self), - required:: [], - __requires: it.required, - addRequired(type, name, id, version):: self { - required+: [{ type: type, name: name, id: id, version: version }], - }, - inputs:: [], - __inputs: it.inputs, - addInput( - name, - label, - type, - pluginId=null, - pluginName=null, - description='', - value=null, - ):: self { - inputs+: [{ - name: name, - label: label, - type: type, - [if pluginId != null then 'pluginId']: pluginId, - [if pluginName != null then 'pluginName']: pluginName, - [if value != null then 'value']: value, - description: description, - }], - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/dashlist.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/dashlist.libsonnet deleted file mode 100644 index 436cb02b6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/dashlist.libsonnet +++ /dev/null @@ -1,41 +0,0 @@ -{ - /** - * Creates a [dashlist panel](https://grafana.com/docs/grafana/latest/panels/visualizations/dashboard-list-panel/). - * It requires the dashlist panel plugin in grafana, which is built-in. - * - * @name dashlist.new - * - * @param title The title of the dashlist panel. - * @param description (optional) Description of the panel - * @param query (optional) Query to search by - * @param tags (optional) Array of tag(s) to search by - * @param recent (default `true`) Displays recently viewed dashboards - * @param search (default `false`) Description of the panel - * @param starred (default `false`) Displays starred dashboards - * @param headings (default `true`) Chosen list selection(starred, recently Viewed, search) is shown as a heading - * @param limit (default `10`) Set maximum items in a list - * @return A json that represents a dashlist panel - */ - new( - title, - description=null, - query=null, - tags=[], - recent=true, - search=false, - starred=false, - headings=true, - limit=10, - ):: { - type: 'dashlist', - title: title, - query: if query != null then query else '', - tags: tags, - recent: recent, - search: search, - starred: starred, - headings: headings, - limit: limit, - [if description != null then 'description']: description, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/elasticsearch.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/elasticsearch.libsonnet deleted file mode 100644 index 769e1c708..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/elasticsearch.libsonnet +++ /dev/null @@ -1,51 +0,0 @@ -{ - /** - * Creates an [Elasticsearch target](https://grafana.com/docs/grafana/latest/datasources/elasticsearch/) - * - * @name elasticsearch.target - * - * @param query - * @param timeField - * @param id (optional) - * @param datasource (optional) - * @param metrics (optional) - * @param bucketAggs (optional) - * @param alias (optional) - */ - target( - query, - timeField, - id=null, - datasource=null, - metrics=[{ - field: 'value', - id: null, - type: 'percentiles', - settings: { - percents: [ - '90', - ], - }, - }], - bucketAggs=[{ - field: 'timestamp', - id: null, - type: 'date_histogram', - settings: { - interval: '1s', - min_doc_count: 0, - trimEdges: 0, - }, - }], - alias=null, - ):: { - [if datasource != null then 'datasource']: datasource, - query: query, - id: id, - timeField: timeField, - bucketAggs: bucketAggs, - metrics: metrics, - alias: alias, - // TODO: generate bucket ids - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/gauge_panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/gauge_panel.libsonnet deleted file mode 100644 index 40b367351..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/gauge_panel.libsonnet +++ /dev/null @@ -1,211 +0,0 @@ -{ - /** - * Creates a [gauge panel](https://grafana.com/docs/grafana/latest/panels/visualizations/gauge-panel/). - * - * @name gaugePanel.new - * - * @param title Panel title. - * @param description (optional) Panel description. - * @param transparent (default `false`) Whether to display the panel without a background. - * @param datasource (optional) Panel datasource. - * @param allValues (default `false`) Show all values instead of reducing to one. - * @param valueLimit (optional) Limit of values in all values mode. - * @param reducerFunction (default `'mean'`) Function to use to reduce values to when using single value. - * @param fields (default `''`) Fields that should be included in the panel. - * @param showThresholdLabels (default `false`) Render the threshold values around the gauge bar. - * @param showThresholdMarkers (default `true`) Render the thresholds as an outer bar. - * @param unit (default `'percent'`) Panel unit field option. - * @param min (optional) Leave empty to calculate based on all values. - * @param max (optional) Leave empty to calculate based on all values. - * @param decimals Number of decimal places to show. - * @param displayName Change the field or series name. - * @param noValue (optional) What to show when there is no value. - * @param thresholdsMode (default `'absolute'`) 'absolute' or 'percentage'. - * @param repeat (optional) Name of variable that should be used to repeat this panel. - * @param repeatDirection (default `'h'`) 'h' for horizontal or 'v' for vertical. - * @param repeatMaxPerRow (optional) Maximum panels per row in repeat mode. - * @param pluginVersion (default `'7'`) Plugin version the panel should be modeled for. This has been tested with the default, '7', and '6.7'. - * - * @method addTarget(target) Adds a target object. - * @method addTargets(targets) Adds an array of targets. - * @method addLink(link) Adds a [panel link](https://grafana.com/docs/grafana/latest/linking/panel-links/). Argument format: `{ title: 'Link Title', url: 'https://...', targetBlank: true }`. - * @method addLinks(links) Adds an array of links. - * @method addThreshold(step) Adds a threshold step. Argument format: `{ color: 'green', value: 0 }`. - * @method addThresholds(steps) Adds an array of threshold steps. - * @method addMapping(mapping) Adds a value mapping. - * @method addMappings(mappings) Adds an array of value mappings. - * @method addDataLink(link) Adds a data link. - * @method addDataLinks(links) Adds an array of data links. - * @param timeFrom (optional) - */ - new( - title, - description=null, - transparent=false, - datasource=null, - allValues=false, - valueLimit=null, - reducerFunction='mean', - fields='', - showThresholdLabels=false, - showThresholdMarkers=true, - unit='percent', - min=0, - max=100, - decimals=null, - displayName=null, - noValue=null, - thresholdsMode='absolute', - repeat=null, - repeatDirection='h', - repeatMaxPerRow=null, - timeFrom=null, - pluginVersion='7', - ):: { - - type: 'gauge', - title: title, - [if description != null then 'description']: description, - transparent: transparent, - datasource: datasource, - targets: [], - links: [], - [if repeat != null then 'repeat']: repeat, - [if repeat != null then 'repeatDirection']: repeatDirection, - [if repeat != null then 'repeatMaxPerRow']: repeatMaxPerRow, - [if timeFrom != null then 'timeFrom']: timeFrom, - - // targets - _nextTarget:: 0, - addTarget(target):: self { - local nextTarget = super._nextTarget, - _nextTarget: nextTarget + 1, - targets+: [target { refId: std.char(std.codepoint('A') + nextTarget) }], - }, - addTargets(targets):: std.foldl(function(p, t) p.addTarget(t), targets, self), - - // links - addLink(link):: self { - links+: [link], - }, - addLinks(links):: std.foldl(function(p, l) p.addLink(l), links, self), - - pluginVersion: pluginVersion, - } + ( - - if pluginVersion >= '7' then { - options: { - reduceOptions: { - values: allValues, - [if allValues && valueLimit != null then 'limit']: valueLimit, - calcs: [ - reducerFunction, - ], - fields: fields, - }, - showThresholdLabels: showThresholdLabels, - showThresholdMarkers: showThresholdMarkers, - }, - fieldConfig: { - defaults: { - unit: unit, - [if min != null then 'min']: min, - [if max != null then 'max']: max, - [if decimals != null then 'decimals']: decimals, - [if displayName != null then 'displayName']: displayName, - [if noValue != null then 'noValue']: noValue, - thresholds: { - mode: thresholdsMode, - steps: [], - }, - mappings: [], - links: [], - }, - }, - - // thresholds - addThreshold(step):: self { - fieldConfig+: { defaults+: { thresholds+: { steps+: [step] } } }, - }, - - // mappings - _nextMapping:: 0, - addMapping(mapping):: self { - local nextMapping = super._nextMapping, - _nextMapping: nextMapping + 1, - fieldConfig+: { defaults+: { mappings+: [mapping { id: nextMapping }] } }, - }, - - // data links - addDataLink(link):: self { - fieldConfig+: { defaults+: { links+: [link] } }, - }, - - // Overrides - addOverride( - matcher=null, - properties=null, - ):: self { - fieldConfig+: { - overrides+: [ - { - [if matcher != null then 'matcher']: matcher, - [if properties != null then 'properties']: properties, - }, - ], - }, - }, - addOverrides(overrides):: std.foldl(function(p, o) p.addOverride(o.matcher, o.properties), overrides, self), - } else { - - options: { - fieldOptions: { - values: allValues, - [if allValues && valueLimit != null then 'limit']: valueLimit, - calcs: [ - reducerFunction, - ], - fields: fields, - defaults: { - unit: unit, - [if min != null then 'min']: min, - [if max != null then 'max']: max, - [if decimals != null then 'decimals']: decimals, - [if displayName != null then 'displayName']: displayName, - [if noValue != null then 'noValue']: noValue, - thresholds: { - mode: thresholdsMode, - steps: [], - }, - mappings: [], - links: [], - }, - }, - showThresholdLabels: showThresholdLabels, - showThresholdMarkers: showThresholdMarkers, - }, - - // thresholds - addThreshold(step):: self { - options+: { fieldOptions+: { defaults+: { thresholds+: { steps+: [step] } } } }, - }, - - // mappings - _nextMapping:: 0, - addMapping(mapping):: self { - local nextMapping = super._nextMapping, - _nextMapping: nextMapping + 1, - options+: { fieldOptions+: { defaults+: { mappings+: [mapping { id: nextMapping }] } } }, - }, - - // data links - addDataLink(link):: self { - options+: { fieldOptions+: { defaults+: { links+: [link] } } }, - }, - } - ) + { - addThresholds(steps):: std.foldl(function(p, s) p.addThreshold(s), steps, self), - addMappings(mappings):: std.foldl(function(p, m) p.addMapping(m), mappings, self), - addDataLinks(links):: std.foldl(function(p, l) p.addDataLink(l), links, self), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/grafana.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/grafana.libsonnet deleted file mode 100644 index b94ddf391..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/grafana.libsonnet +++ /dev/null @@ -1,32 +0,0 @@ -{ - alertlist:: import 'alertlist.libsonnet', - dashboard:: import 'dashboard.libsonnet', - template:: import 'template.libsonnet', - text:: import 'text.libsonnet', - timepicker:: import 'timepicker.libsonnet', - row:: import 'row.libsonnet', - link:: import 'link.libsonnet', - annotation:: import 'annotation.libsonnet', - graphPanel:: import 'graph_panel.libsonnet', - logPanel:: import 'log_panel.libsonnet', - tablePanel:: import 'table_panel.libsonnet', - singlestat:: import 'singlestat.libsonnet', - pieChartPanel:: import 'pie_chart_panel.libsonnet', - influxdb:: import 'influxdb.libsonnet', - prometheus:: import 'prometheus.libsonnet', - loki:: import 'loki.libsonnet', - sql:: import 'sql.libsonnet', - graphite:: import 'graphite.libsonnet', - alertCondition:: import 'alert_condition.libsonnet', - cloudmonitoring:: import 'cloudmonitoring.libsonnet', - cloudwatch:: import 'cloudwatch.libsonnet', - elasticsearch:: import 'elasticsearch.libsonnet', - heatmapPanel:: import 'heatmap_panel.libsonnet', - dashlist:: import 'dashlist.libsonnet', - pluginlist:: import 'pluginlist.libsonnet', - gauge:: error 'gauge is removed, migrate to gaugePanel', - gaugePanel:: import 'gauge_panel.libsonnet', - barGaugePanel:: import 'bar_gauge_panel.libsonnet', - statPanel:: import 'stat_panel.libsonnet', - transformation:: import 'transformation.libsonnet', -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/graph_panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/graph_panel.libsonnet deleted file mode 100644 index 872769579..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/graph_panel.libsonnet +++ /dev/null @@ -1,313 +0,0 @@ -{ - /** - * Creates a [graph panel](https://grafana.com/docs/grafana/latest/panels/visualizations/graph-panel/). - * It requires the graph panel plugin in grafana, which is built-in. - * - * @name graphPanel.new - * - * @param title The title of the graph panel. - * @param description (optional) The description of the panel - * @param span (optional) Width of the panel - * @param datasource (optional) Datasource - * @param fill (default `1`) , integer from 0 to 10 - * @param fillGradient (default `0`) , integer from 0 to 10 - * @param linewidth (default `1`) Line Width, integer from 0 to 10 - * @param decimals (optional) Override automatic decimal precision for legend and tooltip. If null, not added to the json output. - * @param decimalsY1 (optional) Override automatic decimal precision for the first Y axis. If null, use decimals parameter. - * @param decimalsY2 (optional) Override automatic decimal precision for the second Y axis. If null, use decimals parameter. - * @param min_span (optional) Min span - * @param format (default `short`) Unit of the Y axes - * @param formatY1 (optional) Unit of the first Y axis - * @param formatY2 (optional) Unit of the second Y axis - * @param min (optional) Min of the Y axes - * @param max (optional) Max of the Y axes - * @param maxDataPoints (optional) If the data source supports it, sets the maximum number of data points for each series returned. - * @param labelY1 (optional) Label of the first Y axis - * @param labelY2 (optional) Label of the second Y axis - * @param x_axis_mode (default `'time'`) X axis mode, one of [time, series, histogram] - * @param x_axis_values (default `'total'`) Chosen value of series, one of [avg, min, max, total, count] - * @param x_axis_buckets (optional) Restricts the x axis to this amount of buckets - * @param x_axis_min (optional) Restricts the x axis to display from this value if supplied - * @param x_axis_max (optional) Restricts the x axis to display up to this value if supplied - * @param lines (default `true`) Display lines - * @param points (default `false`) Display points - * @param pointradius (default `5`) Radius of the points, allowed values are 0.5 or [1 ... 10] with step 1 - * @param bars (default `false`) Display bars - * @param staircase (default `false`) Display line as staircase - * @param dashes (default `false`) Display line as dashes - * @param stack (default `false`) Whether to stack values - * @param repeat (optional) Name of variable that should be used to repeat this panel. - * @param repeatDirection (default `'h'`) 'h' for horizontal or 'v' for vertical. - * @param legend_show (default `true`) Show legend - * @param legend_values (default `false`) Show values in legend - * @param legend_min (default `false`) Show min in legend - * @param legend_max (default `false`) Show max in legend - * @param legend_current (default `false`) Show current in legend - * @param legend_total (default `false`) Show total in legend - * @param legend_avg (default `false`) Show average in legend - * @param legend_alignAsTable (default `false`) Show legend as table - * @param legend_rightSide (default `false`) Show legend to the right - * @param legend_sideWidth (optional) Legend width - * @param legend_sort (optional) Sort order of legend - * @param legend_sortDesc (optional) Sort legend descending - * @param aliasColors (optional) Define color mappings for graphs - * @param thresholds (optional) An array of graph thresholds - * @param logBase1Y (default `1`) Value of logarithm base of the first Y axis - * @param logBase2Y (default `1`) Value of logarithm base of the second Y axis - * @param transparent (default `false`) Whether to display the panel without a background. - * @param value_type (default `'individual'`) Type of tooltip value - * @param shared_tooltip (default `true`) Allow to group or spit tooltips on mouseover within a chart - * @param percentage (defaut: false) show as percentages - * @param interval (defaut: null) A lower limit for the interval. - - * - * @method addTarget(target) Adds a target object. - * @method addTargets(targets) Adds an array of targets. - * @method addSeriesOverride(override) - * @method addYaxis(format,min,max,label,show,logBase,decimals) Adds a Y axis to the graph - * @method addAlert(alert) Adds an alert - * @method addLink(link) Adds a [panel link](https://grafana.com/docs/grafana/latest/linking/panel-links/) - * @method addLinks(links) Adds an array of links. - */ - new( - title, - span=null, - fill=1, - fillGradient=0, - linewidth=1, - decimals=null, - decimalsY1=null, - decimalsY2=null, - description=null, - min_span=null, - format='short', - formatY1=null, - formatY2=null, - min=null, - max=null, - labelY1=null, - labelY2=null, - x_axis_mode='time', - x_axis_values='total', - x_axis_buckets=null, - x_axis_min=null, - x_axis_max=null, - lines=true, - datasource=null, - points=false, - pointradius=5, - bars=false, - staircase=false, - height=null, - nullPointMode='null', - dashes=false, - stack=false, - repeat=null, - repeatDirection=null, - sort=0, - show_xaxis=true, - legend_show=true, - legend_values=false, - legend_min=false, - legend_max=false, - legend_current=false, - legend_total=false, - legend_avg=false, - legend_alignAsTable=false, - legend_rightSide=false, - legend_sideWidth=null, - legend_hideEmpty=null, - legend_hideZero=null, - legend_sort=null, - legend_sortDesc=null, - aliasColors={}, - thresholds=[], - links=[], - logBase1Y=1, - logBase2Y=1, - transparent=false, - value_type='individual', - shared_tooltip=true, - percentage=false, - maxDataPoints=null, - time_from=null, - time_shift=null, - interval=null - ):: { - title: title, - [if span != null then 'span']: span, - [if min_span != null then 'minSpan']: min_span, - [if decimals != null then 'decimals']: decimals, - type: 'graph', - datasource: datasource, - targets: [ - ], - [if description != null then 'description']: description, - [if height != null then 'height']: height, - renderer: 'flot', - yaxes: [ - self.yaxe( - if formatY1 != null then formatY1 else format, - min, - max, - decimals=(if decimalsY1 != null then decimalsY1 else decimals), - logBase=logBase1Y, - label=labelY1 - ), - self.yaxe( - if formatY2 != null then formatY2 else format, - min, - max, - decimals=(if decimalsY2 != null then decimalsY2 else decimals), - logBase=logBase2Y, - label=labelY2 - ), - ], - xaxis: { - show: show_xaxis, - mode: x_axis_mode, - name: null, - values: if x_axis_mode == 'series' then [x_axis_values] else [], - buckets: if x_axis_mode == 'histogram' then x_axis_buckets else null, - [if x_axis_min != null then 'min']: x_axis_min, - [if x_axis_max != null then 'max']: x_axis_max, - }, - lines: lines, - fill: fill, - fillGradient: fillGradient, - linewidth: linewidth, - dashes: dashes, - dashLength: 10, - spaceLength: 10, - points: points, - pointradius: pointradius, - bars: bars, - stack: stack, - percentage: percentage, - [if maxDataPoints != null then 'maxDataPoints']: maxDataPoints, - legend: { - show: legend_show, - values: legend_values, - min: legend_min, - max: legend_max, - current: legend_current, - total: legend_total, - alignAsTable: legend_alignAsTable, - rightSide: legend_rightSide, - sideWidth: legend_sideWidth, - avg: legend_avg, - [if legend_hideEmpty != null then 'hideEmpty']: legend_hideEmpty, - [if legend_hideZero != null then 'hideZero']: legend_hideZero, - [if legend_sort != null then 'sort']: legend_sort, - [if legend_sortDesc != null then 'sortDesc']: legend_sortDesc, - }, - nullPointMode: nullPointMode, - steppedLine: staircase, - tooltip: { - value_type: value_type, - shared: shared_tooltip, - sort: if sort == 'decreasing' then 2 else if sort == 'increasing' then 1 else sort, - }, - timeFrom: time_from, - timeShift: time_shift, - [if interval != null then 'interval']: interval, - [if transparent == true then 'transparent']: transparent, - aliasColors: aliasColors, - repeat: repeat, - [if repeatDirection != null then 'repeatDirection']: repeatDirection, - seriesOverrides: [], - thresholds: thresholds, - links: links, - yaxe( - format='short', - min=null, - max=null, - label=null, - show=true, - logBase=1, - decimals=null, - ):: { - label: label, - show: show, - logBase: logBase, - min: min, - max: max, - format: format, - [if decimals != null then 'decimals']: decimals, - }, - _nextTarget:: 0, - addTarget(target):: self { - // automatically ref id in added targets. - // https://github.com/kausalco/public/blob/master/klumps/grafana.libsonnet - local nextTarget = super._nextTarget, - _nextTarget: nextTarget + 1, - targets+: [target { refId: std.char(std.codepoint('A') + nextTarget) }], - }, - addTargets(targets):: std.foldl(function(p, t) p.addTarget(t), targets, self), - addSeriesOverride(override):: self { - seriesOverrides+: [override], - }, - resetYaxes():: self { - yaxes: [], - }, - addYaxis( - format='short', - min=null, - max=null, - label=null, - show=true, - logBase=1, - decimals=null, - ):: self { - yaxes+: [self.yaxe(format, min, max, label, show, logBase, decimals)], - }, - addAlert( - name, - executionErrorState='alerting', - forDuration='5m', - frequency='60s', - handler=1, - message='', - noDataState='no_data', - notifications=[], - alertRuleTags={}, - ):: self { - local it = self, - _conditions:: [], - alert: { - name: name, - conditions: it._conditions, - executionErrorState: executionErrorState, - 'for': forDuration, - frequency: frequency, - handler: handler, - noDataState: noDataState, - notifications: notifications, - message: message, - alertRuleTags: alertRuleTags, - }, - addCondition(condition):: self { - _conditions+: [condition], - }, - addConditions(conditions):: std.foldl(function(p, c) p.addCondition(c), conditions, it), - }, - addLink(link):: self { - links+: [link], - }, - addLinks(links):: std.foldl(function(p, t) p.addLink(t), links, self), - addOverride( - matcher=null, - properties=null, - ):: self { - fieldConfig+: { - overrides+: [ - { - [if matcher != null then 'matcher']: matcher, - [if properties != null then 'properties']: properties, - }, - ], - }, - }, - addOverrides(overrides):: std.foldl(function(p, o) p.addOverride(o.matcher, o.properties), overrides, self), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/graphite.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/graphite.libsonnet deleted file mode 100644 index 46a011335..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/graphite.libsonnet +++ /dev/null @@ -1,29 +0,0 @@ -{ - /** - * Creates a [Graphite target](https://grafana.com/docs/grafana/latest/datasources/graphite/) - * - * @name graphite.target - * - * @param target Graphite Query. Nested queries are possible by adding the query reference (refId). - * @param targetFull (optional) Expanding the @target. Used in nested queries. - * @param hide (default `false`) Disable query on graph. - * @param textEditor (default `false`) Enable raw query mode. - * @param datasource (optional) Datasource. - - * @return Panel target - */ - target( - target, - targetFull=null, - hide=false, - textEditor=false, - datasource=null, - ):: { - target: target, - hide: hide, - textEditor: textEditor, - - [if targetFull != null then 'targetFull']: targetFull, - [if datasource != null then 'datasource']: datasource, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/heatmap_panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/heatmap_panel.libsonnet deleted file mode 100644 index 5e9a04c49..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/heatmap_panel.libsonnet +++ /dev/null @@ -1,150 +0,0 @@ -{ - /** - * Creates a [heatmap panel](https://grafana.com/docs/grafana/latest/panels/visualizations/heatmap/). - * Requires the heatmap panel plugin in Grafana, which is built-in. - * - * @name heatmapPanel.new - * - * @param title The title of the heatmap panel - * @param description (optional) Description of panel - * @param datasource (optional) Datasource - * @param min_span (optional) Min span - * @param span (optional) Width of the panel - * @param cards_cardPadding (optional) How much padding to put between bucket cards - * @param cards_cardRound (optional) How much rounding should be applied to the bucket card shape - * @param color_cardColor (default `'#b4ff00'`) Hex value of color used when color_colorScheme is 'opacity' - * @param color_colorScale (default `'sqrt'`) How to scale the color range, 'linear' or 'sqrt' - * @param color_colorScheme (default `'interpolateOranges'`) TODO: document - * @param color_exponent (default `0.5`) TODO: document - * @param color_max (optional) The value for the end of the color range - * @param color_min (optional) The value for the beginning of the color range - * @param color_mode (default `'spectrum'`) How to display difference in frequency with color - * @param dataFormat (default `'timeseries'`) How to format the data - * @param highlightCards (default `true`) TODO: document - * @param hideZeroBuckets (default `false`) Whether or not to hide empty buckets, default is false - * @param legend_show (default `false`) Show legend - * @param minSpan (optional) Minimum span of the panel when repeated on a template variable - * @param repeat (optional) Variable used to repeat the heatmap panel - * @param repeatDirection (optional) Which direction to repeat the panel, 'h' for horizontal and 'v' for vertically - * @param tooltipDecimals (optional) The number of decimal places to display in the tooltip - * @param tooltip_show (default `true`) Whether or not to display a tooltip when hovering over the heatmap - * @param tooltip_showHistogram (default `false`) Whether or not to display a histogram in the tooltip - * @param xAxis_show (default `true`) Whether or not to show the X axis, default true - * @param xBucketNumber (optional) Number of buckets for the X axis - * @param xBucketSize (optional) Size of X axis buckets. Number or interval(10s, 15h, etc.) Has priority over xBucketNumber - * @param yAxis_decimals (optional) Override automatic decimal precision for the Y axis - * @param yAxis_format (default `'short'`) Unit of the Y axis - * @param yAxis_logBase (default `1`) Only if dataFormat is 'timeseries' - * @param yAxis_min (optional) Only if dataFormat is 'timeseries', min of the Y axis - * @param yAxis_max (optional) Only if dataFormat is 'timeseries', max of the Y axis - * @param yAxis_show (default `true`) Whether or not to show the Y axis - * @param yAxis_splitFactor (optional) TODO: document - * @param yBucketBound (default `'auto'`) Which bound ('lower' or 'upper') of the bucket to use - * @param yBucketNumber (optional) Number of buckets for the Y axis - * @param yBucketSize (optional) Size of Y axis buckets. Has priority over yBucketNumber - * @param maxDataPoints (optional) The maximum data points per series. Used directly by some data sources and used in calculation of auto interval. With streaming data this value is used for the rolling buffer. - * - * @method addTarget(target) Adds a target object. - * @method addTargets(targets) Adds an array of targets. - */ - new( - title, - datasource=null, - description=null, - cards_cardPadding=null, - cards_cardRound=null, - color_cardColor='#b4ff00', - color_colorScale='sqrt', - color_colorScheme='interpolateOranges', - color_exponent=0.5, - color_max=null, - color_min=null, - color_mode='spectrum', - dataFormat='timeseries', - highlightCards=true, - hideZeroBuckets=false, - legend_show=false, - minSpan=null, - span=null, - repeat=null, - repeatDirection=null, - tooltipDecimals=null, - tooltip_show=true, - tooltip_showHistogram=false, - xAxis_show=true, - xBucketNumber=null, - xBucketSize=null, - yAxis_decimals=null, - yAxis_format='short', - yAxis_logBase=1, - yAxis_min=null, - yAxis_max=null, - yAxis_show=true, - yAxis_splitFactor=null, - yBucketBound='auto', - yBucketNumber=null, - yBucketSize=null, - maxDataPoints=null, - ):: { - title: title, - type: 'heatmap', - [if description != null then 'description']: description, - datasource: datasource, - cards: { - cardPadding: cards_cardPadding, - cardRound: cards_cardRound, - }, - color: { - mode: color_mode, - cardColor: color_cardColor, - colorScale: color_colorScale, - exponent: color_exponent, - [if color_mode == 'spectrum' then 'colorScheme']: color_colorScheme, - [if color_max != null then 'max']: color_max, - [if color_min != null then 'min']: color_min, - }, - [if dataFormat != null then 'dataFormat']: dataFormat, - heatmap: {}, - hideZeroBuckets: hideZeroBuckets, - highlightCards: highlightCards, - legend: { - show: legend_show, - }, - [if minSpan != null then 'minSpan']: minSpan, - [if span != null then 'span']: span, - [if repeat != null then 'repeat']: repeat, - [if repeatDirection != null then 'repeatDirection']: repeatDirection, - tooltip: { - show: tooltip_show, - showHistogram: tooltip_showHistogram, - }, - [if tooltipDecimals != null then 'tooltipDecimals']: tooltipDecimals, - xAxis: { - show: xAxis_show, - }, - xBucketNumber: if dataFormat == 'timeseries' && xBucketSize != null then xBucketNumber else null, - xBucketSize: if dataFormat == 'timeseries' && xBucketSize != null then xBucketSize else null, - yAxis: { - decimals: yAxis_decimals, - [if dataFormat == 'timeseries' then 'logBase']: yAxis_logBase, - format: yAxis_format, - [if dataFormat == 'timeseries' then 'max']: yAxis_max, - [if dataFormat == 'timeseries' then 'min']: yAxis_min, - show: yAxis_show, - splitFactor: yAxis_splitFactor, - }, - yBucketBound: yBucketBound, - [if dataFormat == 'timeseries' then 'yBucketNumber']: yBucketNumber, - [if dataFormat == 'timeseries' then 'yBucketSize']: yBucketSize, - [if maxDataPoints != null then 'maxDataPoints']: maxDataPoints, - - _nextTarget:: 0, - addTarget(target):: self { - local nextTarget = super._nextTarget, - _nextTarget: nextTarget + 1, - targets+: [target { refId: std.char(std.codepoint('A') + nextTarget) }], - }, - addTargets(targets):: std.foldl(function(p, t) p.addTarget(t), targets, self), - }, - -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/influxdb.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/influxdb.libsonnet deleted file mode 100644 index dd7c4fd4e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/influxdb.libsonnet +++ /dev/null @@ -1,104 +0,0 @@ -{ - /** - * Creates an [InfluxDB target](https://grafana.com/docs/grafana/latest/datasources/influxdb/) - * - * @name influxdb.target - * - * @param query Raw InfluxQL statement - * - * @param alias (optional) 'Alias By' pattern - * @param datasource (optional) Datasource - * @param hide (optional) Disable query on graph - * - * @param rawQuery (optional) Enable/disable raw query mode - * - * @param policy (default: `'default'`) Tagged query 'From' policy - * @param measurement (optional) Tagged query 'From' measurement - * @param group_time (default: `'$__interval'`) 'Group by' time condition (if set to null, do not groups by time) - * @param group_tags (optional) 'Group by' tags list - * @param fill (default: `'none'`) 'Group by' missing values fill mode (works only with 'Group by time()') - * - * @param resultFormat (default: `'time_series'`) Format results as 'Time series' or 'Table' - * - * @return Panel target - */ - target( - query=null, - - alias=null, - datasource=null, - hide=null, - - rawQuery=null, - - policy='default', - measurement=null, - - group_time='$__interval', - group_tags=[], - fill='none', - - resultFormat='time_series', - ):: { - local it = self, - - [if alias != null then 'alias']: alias, - [if datasource != null then 'datasource']: datasource, - [if hide != null then 'hide']: hide, - - [if query != null then 'query']: query, - [if rawQuery != null then 'rawQuery']: rawQuery, - [if rawQuery == null && query != null then 'rawQuery']: true, - - policy: policy, - [if measurement != null then 'measurement']: measurement, - tags: [], - select: [], - groupBy: - if group_time != null then - [{ type: 'time', params: [group_time] }] + - [{ type: 'tag', params: [tag_name] } for tag_name in group_tags] + - [{ type: 'fill', params: [fill] }] - else - [{ type: 'tag', params: [tag_name] } for tag_name in group_tags], - - resultFormat: resultFormat, - - where(key, operator, value, condition=null):: self { - /* - * Adds query tag condition ('Where' section) - */ - tags: - if std.length(it.tags) == 0 then - [{ key: key, operator: operator, value: value }] - else - it.tags + [{ - key: key, - operator: operator, - value: value, - condition: if condition == null then 'AND' else condition, - }], - }, - - selectField(value):: self { - /* - * Adds InfluxDB selection ('field(value)' part of 'Select' statement) - */ - select+: [[{ params: [value], type: 'field' }]], - }, - - addConverter(type, params=[]):: self { - /* - * Appends converter (aggregation, selector, etc.) to last added selection - */ - local len = std.length(it.select), - select: - if len == 1 then - [it.select[0] + [{ params: params, type: type }]] - else if len > 1 then - it.select[0:(len - 1)] + [it.select[len - 1] + [{ params: params, type: type }]] - else - [], - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/link.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/link.libsonnet deleted file mode 100644 index 5e5ebd237..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/link.libsonnet +++ /dev/null @@ -1,39 +0,0 @@ -{ - /** - * Creates [links](https://grafana.com/docs/grafana/latest/linking/linking-overview/) to navigate to other dashboards. - * - * @param title Human-readable label for the link. - * @param tags Limits the linked dashboards to only the ones with the corresponding tags. Otherwise, Grafana includes links to all other dashboards. - * @param asDropdown (default: `true`) Whether to use a dropdown (with an optional title). If `false`, displays the dashboard links side by side across the top of dashboard. - * @param includeVars (default: `false`) Whether to include template variables currently used as query parameters in the link. Any matching templates in the linked dashboard are set to the values from the link - * @param keepTime (default: `false`) Whether to include the current dashboard time range in the link (e.g. from=now-3h&to=now) - * @param icon (default: `'external link'`) Icon displayed with the link. - * @param url (default: `''`) URL of the link - * @param targetBlank (default: `false`) Whether the link will open in a new window. - * @param type (default: `'dashboards'`) - * - * @name link.dashboards - */ - dashboards( - title, - tags, - asDropdown=true, - includeVars=false, - keepTime=false, - icon='external link', - url='', - targetBlank=false, - type='dashboards', - ):: - { - asDropdown: asDropdown, - icon: icon, - includeVars: includeVars, - keepTime: keepTime, - tags: tags, - title: title, - type: type, - url: url, - targetBlank: targetBlank, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/log_panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/log_panel.libsonnet deleted file mode 100644 index 747ad5f33..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/log_panel.libsonnet +++ /dev/null @@ -1,56 +0,0 @@ -{ - /** - * Creates a [log panel](https://grafana.com/docs/grafana/latest/panels/visualizations/logs-panel/). - * It requires the log panel plugin in grafana, which is built-in. - * - * @name logPanel.new - * - * @param title (default `''`) The title of the log panel. - * @param span (optional) Width of the panel - * @param datasource (optional) Datasource - * @showLabels (default `false`) Whether to show or hide labels - * @showTime (default `true`) Whether to show or hide time for each line - * @wrapLogMessage (default `true`) Whether to wrap log line to the next line - * @sortOrder (default `'Descending'`) sort log by time (can be 'Descending' or 'Ascending' ) - * - * @method addTarget(target) Adds a target object - * @method addTargets(targets) Adds an array of targets - */ - new( - title='', - datasource=null, - time_from=null, - time_shift=null, - showLabels=false, - showTime=true, - sortOrder='Descending', - wrapLogMessage=true, - span=12, - height=null, - ):: { - [if height != null then 'height']: height, - span: span, - datasource: datasource, - options: { - showLabels: showLabels, - showTime: showTime, - sortOrder: sortOrder, - wrapLogMessage: wrapLogMessage, - }, - targets: [ - ], - _nextTarget:: 0, - addTarget(target):: self { - // automatically ref id in added targets. - // https://github.com/kausalco/public/blob/master/klumps/grafana.libsonnet - local nextTarget = super._nextTarget, - _nextTarget: nextTarget + 1, - targets+: [target { refId: std.char(std.codepoint('A') + nextTarget) }], - }, - addTargets(targets):: std.foldl(function(p, t) p.addTarget(t), targets, self), - timeFrom: time_from, - timeShift: time_shift, - title: title, - type: 'logs', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/loki.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/loki.libsonnet deleted file mode 100644 index a300f5a98..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/loki.libsonnet +++ /dev/null @@ -1,22 +0,0 @@ -{ - /** - * Creates a [Loki target](https://grafana.com/docs/grafana/latest/datasources/loki/) - * - * @name loki.target - * - * @param expr - * @param hide (optional) Disable query on graph. - * @param legendFormat (optional) Defines the legend. Defaults to ''. - */ - target( - expr, - hide=null, - legendFormat='', - instant=null, - ):: { - [if hide != null then 'hide']: hide, - expr: expr, - legendFormat: legendFormat, - [if instant != null then 'instant']: instant, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/pie_chart_panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/pie_chart_panel.libsonnet deleted file mode 100644 index 11719e108..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/pie_chart_panel.libsonnet +++ /dev/null @@ -1,72 +0,0 @@ -{ - /** - * Creates a pie chart panel. - * It requires the [pie chart panel plugin in grafana](https://grafana.com/grafana/plugins/grafana-piechart-panel), - * which needs to be explicitly installed. - * - * @name pieChartPanel.new - * - * @param title The title of the pie chart panel. - * @param description (default `''`) Description of the panel - * @param span (optional) Width of the panel - * @param min_span (optional) Min span - * @param datasource (optional) Datasource - * @param aliasColors (optional) Define color mappings - * @param pieType (default `'pie'`) Type of pie chart (one of pie or donut) - * @param showLegend (default `true`) Show legend - * @param showLegendPercentage (default `true`) Show percentage values in the legend - * @param legendType (default `'Right side'`) Type of legend (one of 'Right side', 'Under graph' or 'On graph') - * @param valueName (default `'current') Type of tooltip value - * @param repeat (optional) Variable used to repeat the pie chart - * @param repeatDirection (optional) Which direction to repeat the panel, 'h' for horizontal and 'v' for vertical - * @param maxPerRow (optional) Number of panels to display when repeated. Used in combination with repeat. - * @return A json that represents a pie chart panel - * - * @method addTarget(target) Adds a target object. - */ - new( - title, - description='', - span=null, - min_span=null, - datasource=null, - height=null, - aliasColors={}, - pieType='pie', - valueName='current', - showLegend=true, - showLegendPercentage=true, - legendType='Right side', - repeat=null, - repeatDirection=null, - maxPerRow=null, - ):: { - type: 'grafana-piechart-panel', - [if description != null then 'description']: description, - pieType: pieType, - title: title, - aliasColors: aliasColors, - [if span != null then 'span']: span, - [if min_span != null then 'minSpan']: min_span, - [if height != null then 'height']: height, - [if repeat != null then 'repeat']: repeat, - [if repeatDirection != null then 'repeatDirection']: repeatDirection, - [if maxPerRow != null then 'maxPerRow']: maxPerRow, - valueName: valueName, - datasource: datasource, - legend: { - show: showLegend, - values: true, - percentage: showLegendPercentage, - }, - legendType: legendType, - targets: [ - ], - _nextTarget:: 0, - addTarget(target):: self { - local nextTarget = super._nextTarget, - _nextTarget: nextTarget + 1, - targets+: [target { refId: std.char(std.codepoint('A') + nextTarget) }], - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/pluginlist.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/pluginlist.libsonnet deleted file mode 100644 index d3f23ab0a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/pluginlist.libsonnet +++ /dev/null @@ -1,23 +0,0 @@ -{ - /** - * Returns a new pluginlist panel that can be added in a row. - * It requires the pluginlist panel plugin in grafana, which is built-in. - * - * @name pluginlist.new - * - * @param title The title of the pluginlist panel. - * @param description (optional) Description of the panel - * @param limit (optional) Set maximum items in a list - * @return A json that represents a pluginlist panel - */ - new( - title, - description=null, - limit=null, - ):: { - type: 'pluginlist', - title: title, - [if limit != null then 'limit']: limit, - [if description != null then 'description']: description, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/prometheus.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/prometheus.libsonnet deleted file mode 100644 index 46b75b058..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/prometheus.libsonnet +++ /dev/null @@ -1,38 +0,0 @@ -{ - /** - * Creates a [Prometheus target](https://grafana.com/docs/grafana/latest/datasources/prometheus/) - * to be added to panels. - * - * @name prometheus.target - * - * @param expr PromQL query to be exercised against Prometheus. Checkout [Prometheus documentation](https://prometheus.io/docs/prometheus/latest/querying/basics/). - * @param format (default `'time_series'`) Switch between `'table'`, `'time_series'` or `'heatmap'`. Table will only work in the Table panel. Heatmap is suitable for displaying metrics of the Histogram type on a Heatmap panel. Under the hood, it converts cumulative histograms to regular ones and sorts series by the bucket bound. - * @param intervalFactor (default `2`) - * @param legendFormat (default `''`) Controls the name of the time series, using name or pattern. For example `{{hostname}}` is replaced with the label value for the label `hostname`. - * @param datasource (optional) Name of the Prometheus datasource. Leave by default otherwise. - * @param interval (optional) Time span used to aggregate or group data points by time. By default Grafana uses an automatic interval calculated based on the width of the graph. - * @param instant (optional) Perform an "instant" query, to return only the latest value that Prometheus has scraped for the requested time series. Instant queries return results much faster than normal range queries. Use them to look up label sets. - * @param hide (optional) Set to `true` to hide the target from the panel. - * - * @return A Prometheus target to be added to panels. - */ - target( - expr, - format='time_series', - intervalFactor=2, - legendFormat='', - datasource=null, - interval=null, - instant=null, - hide=null, - ):: { - [if hide != null then 'hide']: hide, - [if datasource != null then 'datasource']: datasource, - expr: expr, - format: format, - intervalFactor: intervalFactor, - legendFormat: legendFormat, - [if interval != null then 'interval']: interval, - [if instant != null then 'instant']: instant, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/row.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/row.libsonnet deleted file mode 100644 index b380192d0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/row.libsonnet +++ /dev/null @@ -1,47 +0,0 @@ -{ - /** - * Creates a [row](https://grafana.com/docs/grafana/latest/features/dashboard/dashboards/#rows). - * Rows are logical dividers within a dashboard and used to group panels together. - * - * @name row.new - * - * @param title The title of the row. - * @param showTitle (default `true` if title is set) Whether to show the row title - * @paral titleSize (default `'h6'`) The size of the title - * @param collapse (default `false`) The initial state of the row when opening the dashboard. Panels in a collapsed row are not load until the row is expanded. - * @param repeat (optional) Name of variable that should be used to repeat this row. It is recommended to use the variable in the row title as well. - * - * @method addPanels(panels) Appends an array of nested panels - * @method addPanel(panel,gridPos) Appends a nested panel, with an optional grid position in grid coordinates, e.g. `gridPos={'x':0, 'y':0, 'w':12, 'h': 9}` - */ - new( - title='Dashboard Row', - height=null, - collapse=false, - repeat=null, - showTitle=null, - titleSize='h6' - ):: { - collapse: collapse, - collapsed: collapse, - [if height != null then 'height']: height, - panels: [], - repeat: repeat, - repeatIteration: null, - repeatRowId: null, - showTitle: - if showTitle != null then - showTitle - else - title != 'Dashboard Row', - title: title, - type: 'row', - titleSize: titleSize, - addPanels(panels):: self { - panels+: panels, - }, - addPanel(panel, gridPos={}):: self { - panels+: [panel { gridPos: gridPos }], - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/singlestat.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/singlestat.libsonnet deleted file mode 100644 index 78428d252..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/singlestat.libsonnet +++ /dev/null @@ -1,181 +0,0 @@ -{ - /** - * Creates a singlestat panel. - * - * @name singlestat.new - * - * @param title The title of the singlestat panel. - * @param format (default `'none'`) Unit - * @param description (default `''`) - * @param interval (optional) - * @param height (optional) - * @param datasource (optional) - * @param span (optional) - * @param min_span (optional) - * @param decimals (optional) - * @param valueName (default `'avg'`) - * @param valueFontSize (default `'80%'`) - * @param prefixFontSize (default `'50%'`) - * @param postfixFontSize (default `'50%'`) - * @param mappingType (default `1`) - * @param repeat (optional) - * @param repeatDirection (optional) - * @param prefix (default `''`) - * @param postfix (default `''`) - * @param colors (default `['#299c46','rgba(237, 129, 40, 0.89)','#d44a3a']`) - * @param colorBackground (default `false`) - * @param colorValue (default `false`) - * @param thresholds (default `''`) - * @param valueMaps (default `{value: 'null',op: '=',text: 'N/A'}`) - * @param rangeMaps (default `{value: 'null',op: '=',text: 'N/A'}`) - * @param transparent (optional) - * @param sparklineFillColor (default `'rgba(31, 118, 189, 0.18)'`) - * @param sparklineFull (default `false`) - * @param sparklineLineColor (default `'rgb(31, 120, 193)'`) - * @param sparklineShow (default `false`) - * @param gaugeShow (default `false`) - * @param gaugeMinValue (default `0`) - * @param gaugeMaxValue (default `100`) - * @param gaugeThresholdMarkers (default `true`) - * @param gaugeThresholdLabels (default `false`) - * @param timeFrom (optional) - * @param links (optional) - * @param tableColumn (default `''`) - * @param maxPerRow (optional) - * @param maxDataPoints (default `100`) - * - * @method addTarget(target) Adds a target object. - */ - new( - title, - format='none', - description='', - interval=null, - height=null, - datasource=null, - span=null, - min_span=null, - decimals=null, - valueName='avg', - valueFontSize='80%', - prefixFontSize='50%', - postfixFontSize='50%', - mappingType=1, - repeat=null, - repeatDirection=null, - prefix='', - postfix='', - colors=[ - '#299c46', - 'rgba(237, 129, 40, 0.89)', - '#d44a3a', - ], - colorBackground=false, - colorValue=false, - thresholds='', - valueMaps=[ - { - value: 'null', - op: '=', - text: 'N/A', - }, - ], - rangeMaps=[ - { - from: 'null', - to: 'null', - text: 'N/A', - }, - ], - transparent=null, - sparklineFillColor='rgba(31, 118, 189, 0.18)', - sparklineFull=false, - sparklineLineColor='rgb(31, 120, 193)', - sparklineShow=false, - gaugeShow=false, - gaugeMinValue=0, - gaugeMaxValue=100, - gaugeThresholdMarkers=true, - gaugeThresholdLabels=false, - timeFrom=null, - links=[], - tableColumn='', - maxPerRow=null, - maxDataPoints=100, - ):: - { - [if height != null then 'height']: height, - [if description != '' then 'description']: description, - [if repeat != null then 'repeat']: repeat, - [if repeatDirection != null then 'repeatDirection']: repeatDirection, - [if transparent != null then 'transparent']: transparent, - [if min_span != null then 'minSpan']: min_span, - title: title, - [if span != null then 'span']: span, - type: 'singlestat', - datasource: datasource, - targets: [ - ], - links: links, - [if decimals != null then 'decimals']: decimals, - maxDataPoints: maxDataPoints, - interval: interval, - cacheTimeout: null, - format: format, - prefix: prefix, - postfix: postfix, - nullText: null, - valueMaps: valueMaps, - [if maxPerRow != null then 'maxPerRow']: maxPerRow, - mappingTypes: [ - { - name: 'value to text', - value: 1, - }, - { - name: 'range to text', - value: 2, - }, - ], - rangeMaps: rangeMaps, - mappingType: - if mappingType == 'value' - then - 1 - else if mappingType == 'range' - then - 2 - else - mappingType, - nullPointMode: 'connected', - valueName: valueName, - prefixFontSize: prefixFontSize, - valueFontSize: valueFontSize, - postfixFontSize: postfixFontSize, - thresholds: thresholds, - [if timeFrom != null then 'timeFrom']: timeFrom, - colorBackground: colorBackground, - colorValue: colorValue, - colors: colors, - gauge: { - show: gaugeShow, - minValue: gaugeMinValue, - maxValue: gaugeMaxValue, - thresholdMarkers: gaugeThresholdMarkers, - thresholdLabels: gaugeThresholdLabels, - }, - sparkline: { - fillColor: sparklineFillColor, - full: sparklineFull, - lineColor: sparklineLineColor, - show: sparklineShow, - }, - tableColumn: tableColumn, - _nextTarget:: 0, - addTarget(target):: self { - local nextTarget = super._nextTarget, - _nextTarget: nextTarget + 1, - targets+: [target { refId: std.char(std.codepoint('A') + nextTarget) }], - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/sql.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/sql.libsonnet deleted file mode 100644 index ab48543fe..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/sql.libsonnet +++ /dev/null @@ -1,23 +0,0 @@ -{ - /** - * Creates an SQL target. - * - * @name sql.target - * - * @param rawSql The SQL query - * @param datasource (optional) - * @param format (default `'time_series'`) - * @param alias (optional) - */ - target( - rawSql, - datasource=null, - format='time_series', - alias=null, - ):: { - [if datasource != null then 'datasource']: datasource, - format: format, - [if alias != null then 'alias']: alias, - rawSql: rawSql, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/stat_panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/stat_panel.libsonnet deleted file mode 100644 index 5d1e5e7f6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/stat_panel.libsonnet +++ /dev/null @@ -1,222 +0,0 @@ -{ - /** - * Creates a [stat panel](https://grafana.com/docs/grafana/latest/panels/visualizations/stat-panel/). - * - * @name statPanel.new - * - * @param title Panel title. - * @param description (optional) Panel description. - * @param transparent (default `false`) Whether to display the panel without a background. - * @param datasource (optional) Panel datasource. - * @param allValues (default `false`) Show all values instead of reducing to one. - * @param valueLimit (optional) Limit of values in all values mode. - * @param reducerFunction (default `'mean'`) Function to use to reduce values to when using single value. - * @param fields (default `''`) Fields that should be included in the panel. - * @param orientation (default `'auto'`) Stacking direction in case of multiple series or fields. - * @param colorMode (default `'value'`) 'value' or 'background'. - * @param graphMode (default `'area'`) 'none' or 'area' to enable sparkline mode. - * @param textMode (default `'auto'`) Control if name and value is displayed or just name. - * @param justifyMode (default `'auto'`) 'auto' or 'center'. - * @param unit (default `'none'`) Panel unit field option. - * @param min (optional) Leave empty to calculate based on all values. - * @param max (optional) Leave empty to calculate based on all values. - * @param decimals (optional) Number of decimal places to show. - * @param displayName (optional) Change the field or series name. - * @param noValue (optional) What to show when there is no value. - * @param thresholdsMode (default `'absolute'`) 'absolute' or 'percentage'. - * @param timeFrom (optional) Override the relative time range. - * @param repeat (optional) Name of variable that should be used to repeat this panel. - * @param repeatDirection (default `'h'`) 'h' for horizontal or 'v' for vertical. - * @param maxPerRow (optional) Maximum panels per row in repeat mode. - * @param pluginVersion (default `'7'`) Plugin version the panel should be modeled for. This has been tested with the default, '7', and '6.7'. - * - * @method addTarget(target) Adds a target object. - * @method addTargets(targets) Adds an array of targets. - * @method addLink(link) Adds a [panel link](https://grafana.com/docs/grafana/latest/linking/panel-links/). Argument format: `{ title: 'Link Title', url: 'https://...', targetBlank: true }`. - * @method addLinks(links) Adds an array of links. - * @method addThreshold(step) Adds a [threshold](https://grafana.com/docs/grafana/latest/panels/thresholds/) step. Argument format: `{ color: 'green', value: 0 }`. - * @method addThresholds(steps) Adds an array of threshold steps. - * @method addMapping(mapping) Adds a value mapping. - * @method addMappings(mappings) Adds an array of value mappings. - * @method addDataLink(link) Adds a data link. - * @method addDataLinks(links) Adds an array of data links. - */ - new( - title, - description=null, - transparent=false, - datasource=null, - allValues=false, - valueLimit=null, - reducerFunction='mean', - fields='', - orientation='auto', - colorMode='value', - graphMode='area', - textMode='auto', - justifyMode='auto', - unit='none', - min=null, - max=null, - decimals=null, - displayName=null, - noValue=null, - thresholdsMode='absolute', - timeFrom=null, - repeat=null, - repeatDirection='h', - maxPerRow=null, - pluginVersion='7', - ):: { - - type: 'stat', - title: title, - [if description != null then 'description']: description, - transparent: transparent, - datasource: datasource, - targets: [], - links: [], - [if repeat != null then 'repeat']: repeat, - [if repeat != null then 'repeatDirection']: repeatDirection, - [if timeFrom != null then 'timeFrom']: timeFrom, - [if repeat != null then 'maxPerRow']: maxPerRow, - - // targets - _nextTarget:: 0, - addTarget(target):: self { - local nextTarget = super._nextTarget, - _nextTarget: nextTarget + 1, - targets+: [target { refId: std.char(std.codepoint('A') + nextTarget) }], - }, - addTargets(targets):: std.foldl(function(p, t) p.addTarget(t), targets, self), - - // links - addLink(link):: self { - links+: [link], - }, - addLinks(links):: std.foldl(function(p, l) p.addLink(l), links, self), - - pluginVersion: pluginVersion, - } + ( - - if pluginVersion >= '7' then { - options: { - reduceOptions: { - values: allValues, - [if allValues && valueLimit != null then 'limit']: valueLimit, - calcs: [ - reducerFunction, - ], - fields: fields, - }, - orientation: orientation, - colorMode: colorMode, - graphMode: graphMode, - justifyMode: justifyMode, - textMode: textMode, - }, - fieldConfig: { - defaults: { - unit: unit, - [if min != null then 'min']: min, - [if max != null then 'max']: max, - [if decimals != null then 'decimals']: decimals, - [if displayName != null then 'displayName']: displayName, - [if noValue != null then 'noValue']: noValue, - thresholds: { - mode: thresholdsMode, - steps: [], - }, - mappings: [], - links: [], - }, - }, - - // thresholds - addThreshold(step):: self { - fieldConfig+: { defaults+: { thresholds+: { steps+: [step] } } }, - }, - - // mappings - _nextMapping:: 0, - addMapping(mapping):: self { - local nextMapping = super._nextMapping, - _nextMapping: nextMapping + 1, - fieldConfig+: { defaults+: { mappings+: [mapping { id: nextMapping }] } }, - }, - - // data links - addDataLink(link):: self { - fieldConfig+: { defaults+: { links+: [link] } }, - }, - - // Overrides - addOverride( - matcher=null, - properties=null, - ):: self { - fieldConfig+: { - overrides+: [ - { - [if matcher != null then 'matcher']: matcher, - [if properties != null then 'properties']: properties, - }, - ], - }, - }, - addOverrides(overrides):: std.foldl(function(p, o) p.addOverride(o.matcher, o.properties), overrides, self), - } else { - options: { - fieldOptions: { - values: allValues, - [if allValues && valueLimit != null then 'limit']: valueLimit, - calcs: [ - reducerFunction, - ], - fields: fields, - defaults: { - unit: unit, - [if min != null then 'min']: min, - [if max != null then 'max']: max, - [if decimals != null then 'decimals']: decimals, - [if displayName != null then 'displayName']: displayName, - [if noValue != null then 'noValue']: noValue, - thresholds: { - mode: thresholdsMode, - steps: [], - }, - mappings: [], - links: [], - }, - }, - orientation: orientation, - colorMode: colorMode, - graphMode: graphMode, - justifyMode: justifyMode, - }, - - // thresholds - addThreshold(step):: self { - options+: { fieldOptions+: { defaults+: { thresholds+: { steps+: [step] } } } }, - }, - - // mappings - _nextMapping:: 0, - addMapping(mapping):: self { - local nextMapping = super._nextMapping, - _nextMapping: nextMapping + 1, - options+: { fieldOptions+: { defaults+: { mappings+: [mapping { id: nextMapping }] } } }, - }, - - // data links - addDataLink(link):: self { - options+: { fieldOptions+: { defaults+: { links+: [link] } } }, - }, - } - - ) + { - addThresholds(steps):: std.foldl(function(p, s) p.addThreshold(s), steps, self), - addMappings(mappings):: std.foldl(function(p, m) p.addMapping(m), mappings, self), - addDataLinks(links):: std.foldl(function(p, l) p.addDataLink(l), links, self), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/table_panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/table_panel.libsonnet deleted file mode 100644 index 4c686b3d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/table_panel.libsonnet +++ /dev/null @@ -1,91 +0,0 @@ -{ - /** - * Creates a [table panel](https://grafana.com/docs/grafana/latest/panels/visualizations/table-panel/) that can be added in a row. - * It requires the table panel plugin in grafana, which is built-in. - * - * @name table.new - * - * @param title The title of the graph panel. - * @param description (optional) Description of the panel - * @param span (optional) Width of the panel - * @param height (optional) Height of the panel - * @param datasource (optional) Datasource - * @param min_span (optional) Min span - * @param styles (optional) Array of styles for the panel - * @param columns (optional) Array of columns for the panel - * @param sort (optional) Sorting instruction for the panel - * @param transform (optional) Allow table manipulation to present data as desired - * @param transparent (default: 'false') Whether to display the panel without a background - * @param links (optional) Array of links for the panel. - * @return A json that represents a table panel - * - * @method addTarget(target) Adds a target object - * @method addTargets(targets) Adds an array of targets - * @method addColumn(field, style) Adds a column - * @method hideColumn(field) Hides a column - * @method addLink(link) Adds a link - * @method addTransformation(transformation) Adds a transformation object - * @method addTransformations(transformations) Adds an array of transformations - */ - new( - title, - description=null, - span=null, - min_span=null, - height=null, - datasource=null, - styles=[], - transform=null, - transparent=false, - columns=[], - sort=null, - time_from=null, - time_shift=null, - links=[], - ):: { - type: 'table', - title: title, - [if span != null then 'span']: span, - [if min_span != null then 'minSpan']: min_span, - [if height != null then 'height']: height, - datasource: datasource, - targets: [ - ], - styles: styles, - columns: columns, - timeFrom: time_from, - timeShift: time_shift, - links: links, - [if sort != null then 'sort']: sort, - [if description != null then 'description']: description, - [if transform != null then 'transform']: transform, - [if transparent == true then 'transparent']: transparent, - _nextTarget:: 0, - addTarget(target):: self { - local nextTarget = super._nextTarget, - _nextTarget: nextTarget + 1, - targets+: [target { refId: std.char(std.codepoint('A') + nextTarget) }], - }, - addTargets(targets):: std.foldl(function(p, t) p.addTarget(t), targets, self), - addColumn(field, style):: self { - local style_ = style { pattern: field }, - local column_ = { text: field, value: field }, - styles+: [style_], - columns+: [column_], - }, - hideColumn(field):: self { - styles+: [{ - alias: field, - pattern: field, - type: 'hidden', - }], - }, - addLink(link):: self { - links+: [link], - }, - addTransformation(transformation):: self { - transformations+: [transformation], - }, - addTransformations(transformations):: std.foldl(function(p, t) p.addTransformation(t), transformations, self), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/template.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/template.libsonnet deleted file mode 100644 index be253e19a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/template.libsonnet +++ /dev/null @@ -1,289 +0,0 @@ -{ - /** - * Creates a [template](https://grafana.com/docs/grafana/latest/variables/#templates) that can be added to a dashboard. - * - * @name template.new - * - * @param name Name of variable. - * @param datasource Template [datasource](https://grafana.com/docs/grafana/latest/variables/variable-types/add-data-source-variable/) - * @param query [Query expression](https://grafana.com/docs/grafana/latest/variables/variable-types/add-query-variable/) for the datasource. - * @param label (optional) Display name of the variable dropdown. If null, then the dropdown label will be the variable name. - * @param allValues (optional) Formatting for [multi-value variables](https://grafana.com/docs/grafana/latest/variables/formatting-multi-value-variables/#formatting-multi-value-variables) - * @param tagValuesQuery (default `''`) Group values into [selectable tags](https://grafana.com/docs/grafana/latest/variables/variable-value-tags/) - * @param current (default `null`) Can be `null`, `'all'` for all, or any other custom text value. - * @param hide (default `''`) `''`: the variable dropdown displays the variable Name or Label value. `'label'`: the variable dropdown only displays the selected variable value and a down arrow. Any other value: no variable dropdown is displayed on the dashboard. - * @param regex (default `''`) Regex expression to filter or capture specific parts of the names returned by your data source query. To see examples, refer to [Filter variables with regex](https://grafana.com/docs/grafana/latest/variables/filter-variables-with-regex/). - * @param refresh (default `'never'`) `'never'`: variables queries are cached and values are not updated. This is fine if the values never change, but problematic if they are dynamic and change a lot. `'load'`: Queries the data source every time the dashboard loads. This slows down dashboard loading, because the variable query needs to be completed before dashboard can be initialized. `'time'`: Queries the data source when the dashboard time range changes. Only use this option if your variable options query contains a time range filter or is dependent on the dashboard time range. - * @param includeAll (default `false`) Whether all value option is available or not. - * @param multi (default `false`) Whether multiple values can be selected or not from variable value list. - * @param sort (default `0`) `0`: Without Sort, `1`: Alphabetical (asc), `2`: Alphabetical (desc), `3`: Numerical (asc), `4`: Numerical (desc). - * - * @return A [template](https://grafana.com/docs/grafana/latest/variables/#templates) - */ - new( - name, - datasource, - query, - label=null, - allValues=null, - tagValuesQuery='', - current=null, - hide='', - regex='', - refresh='never', - includeAll=false, - multi=false, - sort=0, - ):: - { - allValue: allValues, - current: $.current(current), - datasource: datasource, - includeAll: includeAll, - hide: $.hide(hide), - label: label, - multi: multi, - name: name, - options: [], - query: query, - refresh: $.refresh(refresh), - regex: regex, - sort: sort, - tagValuesQuery: tagValuesQuery, - tags: [], - tagsQuery: '', - type: 'query', - useTags: false, - }, - /** - * Use an [interval variable](https://grafana.com/docs/grafana/latest/variables/variable-types/add-interval-variable/) to represent time spans such as '1m', '1h', '1d'. You can think of them as a dashboard-wide "group by time" command. Interval variables change how the data is grouped in the visualization. You can also use the Auto Option to return a set number of data points per time span. - * You can use an interval variable as a parameter to group by time (for InfluxDB), date histogram interval (for Elasticsearch), or as a summarize function parameter (for Graphite). - * - * @name template.interval - * - * @param name Variable name - * @param query Comma separated values without spacing of intervals available for selection. Add `'auto'` in the query to turn on the Auto Option. Ex: `'auto,5m,10m,20m'`. - * @param current Currently selected interval. Must be one of the values in the query. `'auto'` is allowed if defined in the query. - * @param hide (default `''`) `''`: the variable dropdown displays the variable Name or Label value. `'label'`: the variable dropdown only displays the selected variable value and a down arrow. Any other value: no variable dropdown is displayed on the dashboard. - * @param label (optional) Display name of the variable dropdown. If null, then the dropdown label will be the variable name. - * @param auto_count (default `300`) Valid only if `'auto'` is defined in query. Number of times the current time range will be divided to calculate the value, similar to the Max data points query option. For example, if the current visible time range is 30 minutes, then the auto interval groups the data into 30 one-minute increments. The default value is 30 steps. - * @param auto_min (default `'10s'`) Valid only if `'auto'` is defined in query. The minimum threshold below which the step count intervals will not divide the time. To continue the 30 minute example, if the minimum interval is set to `'2m'`, then Grafana would group the data into 15 two-minute increments. - * - * @return A new interval variable for templating. - */ - interval( - name, - query, - current, - hide='', - label=null, - auto_count=300, - auto_min='10s', - ):: - { - current: $.current(current), - hide: $.hide(hide), - label: label, - name: name, - query: std.join(',', std.filter($.filterAuto, std.split(query, ','))), - refresh: 2, - type: 'interval', - auto: std.count(std.split(query, ','), 'auto') > 0, - auto_count: auto_count, - auto_min: auto_min, - }, - hide(hide):: - if hide == '' then 0 else if hide == 'label' then 1 else 2, - current(current):: { - [if current != null then 'text']: current, - [if current != null then 'value']: if current == 'auto' then - '$__auto_interval' - else if current == 'all' then - '$__all' - else - current, - }, - /** - * Data [source variables](https://grafana.com/docs/grafana/latest/variables/variable-types/add-data-source-variable/) - * allow you to quickly change the data source for an entire dashboard. - * They are useful if you have multiple instances of a data source, perhaps in different environments. - * - * @name template.datasource - * - * @param name Data source variable name. Ex: `'PROMETHEUS_DS'`. - * @param query Type of data source. Ex: `'prometheus'`. - * @param current Ex: `'Prometheus'`. - * @param hide (default `''`) `''`: the variable dropdown displays the variable Name or Label value. `'label'`: the variable dropdown only displays the selected variable value and a down arrow. Any other value: no variable dropdown is displayed on the dashboard. - * @param label (optional) Display name of the variable dropdown. If null, then the dropdown label will be the variable name. - * @param regex (default `''`) Regex filter for which data source instances to choose from in the variable value drop-down list. Leave this field empty to display all instances. - * @param refresh (default `'load'`) `'never'`: Variables queries are cached and values are not updated. This is fine if the values never change, but problematic if they are dynamic and change a lot. `'load'`: Queries the data source every time the dashboard loads. This slows down dashboard loading, because the variable query needs to be completed before dashboard can be initialized. `'time'`: Queries the data source when the dashboard time range changes. Only use this option if your variable options query contains a time range filter or is dependent on the dashboard time range. - * - * @return A [data source variable](https://grafana.com/docs/grafana/latest/variables/variable-types/add-data-source-variable/). - */ - datasource( - name, - query, - current, - hide='', - label=null, - regex='', - refresh='load', - ):: { - current: $.current(current), - hide: $.hide(hide), - label: label, - name: name, - options: [], - query: query, - refresh: $.refresh(refresh), - regex: regex, - type: 'datasource', - }, - refresh(refresh):: if refresh == 'never' - then - 0 - else if refresh == 'load' - then - 1 - else if refresh == 'time' - then - 2 - else - refresh, - filterAuto(str):: str != 'auto', - /** - * Use a [custom variable](https://grafana.com/docs/grafana/latest/variables/variable-types/add-custom-variable/) - * for values that do not change. - * - * @name template.custom - * This might be numbers, strings, or even other variables. - * @param name Variable name - * @param query Comma separated without spacing list of selectable values. - * @param current Selected value - * @param refresh (default `'never'`) `'never'`: Variables queries are cached and values are not updated. This is fine if the values never change, but problematic if they are dynamic and change a lot. `'load'`: Queries the data source every time the dashboard loads. This slows down dashboard loading, because the variable query needs to be completed before dashboard can be initialized. `'time'`: Queries the data source when the dashboard time range changes. Only use this option if your variable options query contains a time range filter or is dependent on the dashboard time range. - * @param label (default `''`) Display name of the variable dropdown. If you don’t enter a display name, then the dropdown label will be the variable name. - * @param valuelabels (default `{}`) Display names for values defined in query. For example, if `query='new,old'`, then you may display them as follows `valuelabels={new: 'nouveau', old: 'ancien'}`. - * @param multi (default `false`) Whether multiple values can be selected or not from variable value list. - * @param allValues (optional) Formatting for [multi-value variables](https://grafana.com/docs/grafana/latest/variables/formatting-multi-value-variables/#formatting-multi-value-variables) - * @param includeAll (default `false`) Whether all value option is available or not. - * @param hide (default `''`) `''`: the variable dropdown displays the variable Name or Label value. `'label'`: the variable dropdown only displays the selected variable value and a down arrow. Any other value: no variable dropdown is displayed on the dashboard. - * - * @return A custom variable. - */ - custom( - name, - query, - current, - refresh='never', - label='', - valuelabels={}, - multi=false, - allValues=null, - includeAll=false, - hide='', - ):: - { - // self has dynamic scope, so self may not be myself below. - // '$' can't be used neither as this object is not top-level object. - local custom = self, - - allValue: allValues, - current: { - // Both 'all' and 'All' are accepted for consistency. - value: if includeAll && (current == 'All' || current == 'all') then - if multi then ['$__all'] else '$__all' - else - current, - text: if std.isArray(current) then - std.join(' + ', std.map(custom.valuelabel, current)) - else - custom.valuelabel(current), - [if multi then 'selected']: true, - }, - options: std.map(self.option, self.query_array(query)), - hide: $.hide(hide), - includeAll: includeAll, - label: label, - refresh: $.refresh(refresh), - multi: multi, - name: name, - query: query, - type: 'custom', - - valuelabel(value):: if value in valuelabels then - valuelabels[value] - else value, - - option(option):: { - text: custom.valuelabel(option), - value: if includeAll && option == 'All' then '$__all' else option, - [if multi then 'selected']: if multi && std.isArray(current) then - std.member(current, option) - else if multi then - current == option - else - null, - }, - query_array(query):: std.split( - if includeAll then 'All,' + query else query, ',' - ), - }, - /** - * [Text box variables](https://grafana.com/docs/grafana/latest/variables/variable-types/add-text-box-variable/) - * display a free text input field with an optional default value. - * This is the most flexible variable, because you can enter any value. - * Use this type of variable if you have metrics with high cardinality or if you want to - * update multiple panels in a dashboard at the same time. - * - * @name template.text - * - * @param name Variable name. - * @param label (default `''`) Display name of the variable dropdown. If you don’t enter a display name, then the dropdown label will be the variable name. - * - * @return A text box variable. - */ - text( - name, - label='' - ):: - { - current: { - selected: false, - text: '', - value: '', - }, - name: name, - label: label, - query: '', - type: 'textbox', - }, - /** - * [Ad hoc filters](https://grafana.com/docs/grafana/latest/variables/variable-types/add-ad-hoc-filters/) - * allow you to add key/value filters that are automatically added to all metric queries - * that use the specified data source. Unlike other variables, you do not use ad hoc filters in queries. - * Instead, you use ad hoc filters to write filters for existing queries. - * Note: Ad hoc filter variables only work with InfluxDB, Prometheus, and Elasticsearch data sources. - * - * @name template.adhoc - * - * @param name Variable name. - * @param datasource Target data source - * @param label (optional) Display name of the variable dropdown. If you don’t enter a display name, then the dropdown label will be the variable name. - * @param hide (default `''`) `''`: the variable dropdown displays the variable Name or Label value. `'label'`: the variable dropdown only displays the selected variable value and a down arrow. Any other value: no variable dropdown is displayed on the dashboard. - * - * @return An ad hoc filter - */ - adhoc( - name, - datasource, - label=null, - hide='', - ):: - { - datasource: datasource, - hide: $.hide(hide), - label: label, - name: name, - type: 'adhoc', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/text.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/text.libsonnet deleted file mode 100644 index 18020a678..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/text.libsonnet +++ /dev/null @@ -1,43 +0,0 @@ -{ - /** - * Creates a [text panel](https://grafana.com/docs/grafana/latest/panels/visualizations/text-panel/). - * - * @name text.new - * - * @param title (default `''`) Panel title. - * @param description (optional) Panel description. - * @param datasource (optional) Panel datasource. - * @param span (optional) - * @param content (default `''`) - * @param mode (default `'markdown'`) Rendering of the content: 'markdown','html', ... - * @param transparent (optional) Whether to display the panel without a background. - * @param repeat (optional) Name of variable that should be used to repeat this panel. - * @param repeatDirection (default `'h'`) 'h' for horizontal or 'v' for vertical. - * @param repeatMaxPerRow (optional) Maximum panels per row in repeat mode. - */ - new( - title='', - span=null, - mode='markdown', - content='', - transparent=null, - description=null, - datasource=null, - repeat=null, - repeatDirection=null, - repeatMaxPerRow=null, - ):: - { - [if transparent != null then 'transparent']: transparent, - title: title, - [if span != null then 'span']: span, - type: 'text', - mode: mode, - content: content, - [if description != null then 'description']: description, - datasource: datasource, - [if repeat != null then 'repeat']: repeat, - [if repeat != null then 'repeatDirection']: repeatDirection, - [if repeat != null then 'maxPerRow']: repeatMaxPerRow, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/timepicker.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/timepicker.libsonnet deleted file mode 100644 index 9c18bef86..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/timepicker.libsonnet +++ /dev/null @@ -1,40 +0,0 @@ -{ - /** - * Creates a Timepicker - * - * @name timepicker.new - * - * @param refresh_intervals (default: `['5s','10s','30s','1m','5m','15m','30m','1h','2h','1d']`) Array of time durations - * @param time_options (default: `['5m','15m','1h','6h','12h','24h','2d','7d','30d']`) Array of time durations - */ - new( - refresh_intervals=[ - '5s', - '10s', - '30s', - '1m', - '5m', - '15m', - '30m', - '1h', - '2h', - '1d', - ], - time_options=[ - '5m', - '15m', - '1h', - '6h', - '12h', - '24h', - '2d', - '7d', - '30d', - ], - nowDelay=null, - ):: { - refresh_intervals: refresh_intervals, - time_options: time_options, - [if nowDelay != null then 'nowDelay']: nowDelay, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/transformation.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/transformation.libsonnet deleted file mode 100644 index 5e62adeac..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet-lib/grafonnet/transformation.libsonnet +++ /dev/null @@ -1,12 +0,0 @@ -{ - /** - * @name transformation.new - */ - new( - id='', - options={} - ):: { - id: id, - options: options, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/jsonnetfile.json deleted file mode 100644 index ea82bcab7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/jsonnetfile.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet.git", - "subdir": "gen/grafonnet-v11.0.0" - } - }, - "version": "main" - } - ], - "legacyImports": false, - "version": 1 -} \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet deleted file mode 100644 index f89dcc064..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet +++ /dev/null @@ -1 +0,0 @@ -import 'github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/main.libsonnet' diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/alerting.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/alerting.libsonnet deleted file mode 100644 index 621020b72..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/alerting.libsonnet +++ /dev/null @@ -1,9 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting', name: 'alerting' }, - contactPoint: import 'clean/alerting/contactPoint.libsonnet', - notificationPolicy: import 'clean/alerting/notificationPolicy.libsonnet', - muteTiming: import 'clean/alerting/muteTiming.libsonnet', - ruleGroup: import 'clean/alerting/ruleGroup.libsonnet', - messageTemplate: import 'clean/alerting/messageTemplate.libsonnet', -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/contactPoint.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/contactPoint.libsonnet deleted file mode 100644 index 13c81df18..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/contactPoint.libsonnet +++ /dev/null @@ -1,33 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.contactPoint', name: 'contactPoint' }, - '#withDisableResolveMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withDisableResolveMessage(value=true): { - disableResolveMessage: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name is used as grouping key in the UI. Contact points with the\nsame name will be grouped in the UI.' } }, - withName(value): { - name: value, - }, - '#withProvenance': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withProvenance(value): { - provenance: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['alertmanager', ' dingding', ' discord', ' email', ' googlechat', ' kafka', ' line', ' opsgenie', ' pagerduty', ' pushover', ' sensugo', ' slack', ' teams', ' telegram', ' threema', ' victorops', ' webhook', ' wecom'], name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'UID is the unique identifier of the contact point. The UID can be\nset by the user.' } }, - withUid(value): { - uid: value, - }, -} -+ (import '../../custom/alerting/contactPoint.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/messageTemplate.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/messageTemplate.libsonnet deleted file mode 100644 index 7e9bc9e2a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/messageTemplate.libsonnet +++ /dev/null @@ -1,12 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.messageTemplate', name: 'messageTemplate' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withTemplate': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTemplate(value): { - template: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/muteTiming.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/muteTiming.libsonnet deleted file mode 100644 index ec86898d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/muteTiming.libsonnet +++ /dev/null @@ -1,113 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.muteTiming', name: 'muteTiming' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withTimeIntervals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimeIntervals(value): { - time_intervals: - (if std.isArray(value) - then value - else [value]), - }, - '#withTimeIntervalsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimeIntervalsMixin(value): { - time_intervals+: - (if std.isArray(value) - then value - else [value]), - }, - interval+: - { - '#': { help: '', name: 'interval' }, - '#withDaysOfMonth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDaysOfMonth(value): { - days_of_month: - (if std.isArray(value) - then value - else [value]), - }, - '#withDaysOfMonthMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDaysOfMonthMixin(value): { - days_of_month+: - (if std.isArray(value) - then value - else [value]), - }, - '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLocation(value): { - location: value, - }, - '#withMonths': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMonths(value): { - months: - (if std.isArray(value) - then value - else [value]), - }, - '#withMonthsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMonthsMixin(value): { - months+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTimes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimes(value): { - times: - (if std.isArray(value) - then value - else [value]), - }, - '#withTimesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimesMixin(value): { - times+: - (if std.isArray(value) - then value - else [value]), - }, - times+: - { - '#': { help: '', name: 'times' }, - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFrom(value): { - from: value, - }, - '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTo(value): { - to: value, - }, - }, - '#withWeekdays': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withWeekdays(value): { - weekdays: - (if std.isArray(value) - then value - else [value]), - }, - '#withWeekdaysMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withWeekdaysMixin(value): { - weekdays+: - (if std.isArray(value) - then value - else [value]), - }, - '#withYears': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withYears(value): { - years: - (if std.isArray(value) - then value - else [value]), - }, - '#withYearsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withYearsMixin(value): { - years+: - (if std.isArray(value) - then value - else [value]), - }, - }, -} -+ (import '../../custom/alerting/muteTiming.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/notificationPolicy.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/notificationPolicy.libsonnet deleted file mode 100644 index 684b33b29..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/notificationPolicy.libsonnet +++ /dev/null @@ -1,97 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.notificationPolicy', name: 'notificationPolicy' }, - '#withContinue': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withContinue(value=true): { - continue: value, - }, - '#withGroupInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroupInterval(value): { - group_interval: value, - }, - '#withGroupWait': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroupWait(value): { - group_wait: value, - }, - '#withRepeatInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRepeatInterval(value): { - repeat_interval: value, - }, - '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withGroupBy(value): { - group_by: - (if std.isArray(value) - then value - else [value]), - }, - '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withGroupByMixin(value): { - group_by+: - (if std.isArray(value) - then value - else [value]), - }, - '#withMatchers': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Matchers is a slice of Matchers that is sortable, implements Stringer, and\nprovides a Matches method to match a LabelSet against all Matchers in the\nslice. Note that some users of Matchers might require it to be sorted.' } }, - withMatchers(value): { - matchers: - (if std.isArray(value) - then value - else [value]), - }, - '#withMatchersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Matchers is a slice of Matchers that is sortable, implements Stringer, and\nprovides a Matches method to match a LabelSet against all Matchers in the\nslice. Note that some users of Matchers might require it to be sorted.' } }, - withMatchersMixin(value): { - matchers+: - (if std.isArray(value) - then value - else [value]), - }, - '#withMuteTimeIntervals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMuteTimeIntervals(value): { - mute_time_intervals: - (if std.isArray(value) - then value - else [value]), - }, - '#withMuteTimeIntervalsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMuteTimeIntervalsMixin(value): { - mute_time_intervals+: - (if std.isArray(value) - then value - else [value]), - }, - '#withReceiver': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withReceiver(value): { - receiver: value, - }, - '#withRoutes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withRoutes(value): { - routes: - (if std.isArray(value) - then value - else [value]), - }, - '#withRoutesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withRoutesMixin(value): { - routes+: - (if std.isArray(value) - then value - else [value]), - }, - matcher+: - { - '#': { help: '', name: 'matcher' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - Name: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['=', '!=', '=~', '!~'], name: 'value', type: ['string'] }], help: 'MatchType is an enum for label matching types.' } }, - withType(value): { - Type: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withValue(value): { - Value: value, - }, - }, -} -+ (import '../../custom/alerting/notificationPolicy.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/ruleGroup.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/ruleGroup.libsonnet deleted file mode 100644 index a7550dae5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/alerting/ruleGroup.libsonnet +++ /dev/null @@ -1,135 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.ruleGroup', name: 'ruleGroup' }, - '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFolderUid(value): { - folderUid: value, - }, - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withInterval(value): { - interval: value, - }, - '#withRules': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withRules(value): { - rules: - (if std.isArray(value) - then value - else [value]), - }, - '#withRulesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withRulesMixin(value): { - rules+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - title: value, - }, - rule+: - { - '#withAnnotations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAnnotations(value): { - annotations: value, - }, - '#withAnnotationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAnnotationsMixin(value): { - annotations+: value, - }, - '#withCondition': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withCondition(value): { - condition: value, - }, - '#withData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withData(value): { - data: - (if std.isArray(value) - then value - else [value]), - }, - '#withDataMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDataMixin(value): { - data+: - (if std.isArray(value) - then value - else [value]), - }, - '#withExecErrState': { 'function': { args: [{ default: null, enums: ['OK', 'Alerting', 'Error'], name: 'value', type: ['string'] }], help: '' } }, - withExecErrState(value): { - execErrState: value, - }, - '#withFor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'A Duration represents the elapsed time between two instants\nas an int64 nanosecond count. The representation limits the\nlargest representable duration to approximately 290 years.' } }, - withFor(value): { - 'for': value, - }, - '#withIsPaused': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsPaused(value=true): { - isPaused: value, - }, - '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabels(value): { - labels: value, - }, - '#withLabelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelsMixin(value): { - labels+: value, - }, - '#withNoDataState': { 'function': { args: [{ default: null, enums: ['Alerting', 'NoData', 'OK'], name: 'value', type: ['string'] }], help: '' } }, - withNoDataState(value): { - noDataState: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - title: value, - }, - data+: - { - '#': { help: '', name: 'data' }, - '#withDatasourceUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation." } }, - withDatasourceUid(value): { - datasourceUid: value, - }, - '#withModel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'JSON is the raw JSON query and includes the above properties as well as custom properties.' } }, - withModel(value): { - model: value, - }, - '#withModelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'JSON is the raw JSON query and includes the above properties as well as custom properties.' } }, - withModelMixin(value): { - model+: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, - withRefId(value): { - refId: value, - }, - '#withRelativeTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'RelativeTimeRange is the per query start and end time\nfor requests.' } }, - withRelativeTimeRange(value): { - relativeTimeRange: value, - }, - '#withRelativeTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'RelativeTimeRange is the per query start and end time\nfor requests.' } }, - withRelativeTimeRangeMixin(value): { - relativeTimeRange+: value, - }, - relativeTimeRange+: - { - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'A Duration represents the elapsed time between two instants\nas an int64 nanosecond count. The representation limits the\nlargest representable duration to approximately 290 years.' } }, - withFrom(value): { - relativeTimeRange+: { - from: value, - }, - }, - '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'A Duration represents the elapsed time between two instants\nas an int64 nanosecond count. The representation limits the\nlargest representable duration to approximately 290 years.' } }, - withTo(value): { - relativeTimeRange+: { - to: value, - }, - }, - }, - }, - }, -} -+ (import '../../custom/alerting/ruleGroup.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/dashboard.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/dashboard.libsonnet deleted file mode 100644 index dc30c9d7d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/dashboard.libsonnet +++ /dev/null @@ -1,507 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.dashboard', name: 'dashboard' }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Description of dashboard.' } }, - withDescription(value): { - description: value, - }, - '#withEditable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether a dashboard is editable or not.' } }, - withEditable(value=true): { - editable: value, - }, - '#withFiscalYearStartMonth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'The month that the fiscal year starts on. 0 = January, 11 = December' } }, - withFiscalYearStartMonth(value=0): { - fiscalYearStartMonth: value, - }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withLinks(value): { - links: - (if std.isArray(value) - then value - else [value]), - }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withLinksMixin(value): { - links+: - (if std.isArray(value) - then value - else [value]), - }, - '#withLiveNow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'When set to true, the dashboard will redraw panels at an interval matching the pixel width.\nThis will keep data "moving left" regardless of the query refresh rate. This setting helps\navoid dashboards presenting stale live data' } }, - withLiveNow(value=true): { - liveNow: value, - }, - '#withPanels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPanels(value): { - panels: - (if std.isArray(value) - then value - else [value]), - }, - '#withPanelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPanelsMixin(value): { - panels+: - (if std.isArray(value) - then value - else [value]), - }, - '#withRefresh': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'string'] }], help: 'Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d".' } }, - withRefresh(value): { - refresh: value, - }, - '#withSchemaVersion': { 'function': { args: [{ default: 36, enums: null, name: 'value', type: ['integer'] }], help: "Version of the JSON schema, incremented each time a Grafana update brings\nchanges to said schema.\nTODO this is the existing schema numbering system. It will be replaced by Thema's themaVersion" } }, - withSchemaVersion(value=36): { - schemaVersion: value, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Tags associated with dashboard.' } }, - withTags(value): { - tags: - (if std.isArray(value) - then value - else [value]), - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Tags associated with dashboard.' } }, - withTagsMixin(value): { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTemplating': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTemplating(value): { - templating: value, - }, - '#withTemplatingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTemplatingMixin(value): { - templating+: value, - }, - '#withTimezone': { 'function': { args: [{ default: 'browser', enums: null, name: 'value', type: ['string'] }], help: 'Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc".' } }, - withTimezone(value='browser'): { - timezone: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title of dashboard.' } }, - withTitle(value): { - title: value, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique dashboard identifier that can be generated by anyone. string (8-40)' } }, - withUid(value): { - uid: value, - }, - '#withWeekStart': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withWeekStart(value): { - weekStart: value, - }, - time+: - { - '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFrom(value='now-6h'): { - time+: { - from: value, - }, - }, - '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTo(value='now'): { - time+: { - to: value, - }, - }, - }, - timepicker+: - { - '#withCollapse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether timepicker is collapsed or not.' } }, - withCollapse(value=true): { - timepicker+: { - collapse: value, - }, - }, - '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether timepicker is enabled or not.' } }, - withEnable(value=true): { - timepicker+: { - enable: value, - }, - }, - '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether timepicker is visible or not.' } }, - withHidden(value=true): { - timepicker+: { - hidden: value, - }, - }, - '#withRefreshIntervals': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: ['array'] }], help: 'Selectable intervals for auto-refresh.' } }, - withRefreshIntervals(value): { - timepicker+: { - refresh_intervals: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withRefreshIntervalsMixin': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: ['array'] }], help: 'Selectable intervals for auto-refresh.' } }, - withRefreshIntervalsMixin(value): { - timepicker+: { - refresh_intervals+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimeOptions': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withTimeOptions(value): { - timepicker+: { - time_options: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimeOptionsMixin': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withTimeOptionsMixin(value): { - timepicker+: { - time_options+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - link+: - { - dashboards+: - { - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - title: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - type: value, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTags(value): { - tags: - (if std.isArray(value) - then value - else [value]), - }, - options+: - { - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsDropdown(value=true): { - asDropdown: value, - }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withKeepTime(value=true): { - keepTime: value, - }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIncludeVars(value=true): { - includeVars: value, - }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTargetBlank(value=true): { - targetBlank: value, - }, - }, - }, - link+: - { - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - title: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - type: value, - }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUrl(value): { - url: value, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTooltip(value): { - tooltip: value, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withIcon(value): { - icon: value, - }, - options+: - { - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsDropdown(value=true): { - asDropdown: value, - }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withKeepTime(value=true): { - keepTime: value, - }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIncludeVars(value=true): { - includeVars: value, - }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTargetBlank(value=true): { - targetBlank: value, - }, - }, - }, - }, - annotation+: - { - '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withList(value): { - annotations+: { - list: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withListMixin(value): { - annotations+: { - list+: - (if std.isArray(value) - then value - else [value]), - }, - }, - list+: - { - '#': { help: '', name: 'list' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: Should be DataSourceRef' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: Should be DataSourceRef' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - datasource+: { - type: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'When enabled the annotation query is issued with every dashboard refresh' } }, - withEnable(value=true): { - enable: value, - }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFilter(value): { - filter: value, - }, - '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFilterMixin(value): { - filter+: value, - }, - filter+: - { - '#withExclude': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Should the specified panels be included or excluded' } }, - withExclude(value=true): { - filter+: { - exclude: value, - }, - }, - '#withIds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel IDs that should be included or excluded' } }, - withIds(value): { - filter+: { - ids: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withIdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel IDs that should be included or excluded' } }, - withIdsMixin(value): { - filter+: { - ids+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Annotation queries can be toggled on or off at the top of the dashboard.\nWhen hide is true, the toggle is not shown in the dashboard.' } }, - withHide(value=true): { - hide: value, - }, - '#withIconColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Color to use for the annotation event markers' } }, - withIconColor(value): { - iconColor: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of annotation.' } }, - withName(value): { - name: value, - }, - '#withTarget': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, - withTarget(value): { - target: value, - }, - '#withTargetMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, - withTargetMixin(value): { - target+: value, - }, - target+: - { - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withLimit(value): { - target+: { - limit: value, - }, - }, - '#withMatchAny': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withMatchAny(value=true): { - target+: { - matchAny: value, - }, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withTags(value): { - target+: { - tags: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withTagsMixin(value): { - target+: { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withType(value): { - target+: { - type: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO -- this should not exist here, it is based on the --grafana-- datasource' } }, - withType(value): { - type: value, - }, - }, - }, - variable+: - { - '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withList(value): { - templating+: { - list: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withListMixin(value): { - templating+: { - list+: - (if std.isArray(value) - then value - else [value]), - }, - }, - list+: - { - '#': { help: '', name: 'list' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, - withType(value): { - datasource+: { - type: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withDescription(value): { - description: value, - }, - '#withError': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withError(value): { - 'error': value, - }, - '#withErrorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withErrorMixin(value): { - 'error'+: value, - }, - '#withGlobal': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withGlobal(value=true): { - global: value, - }, - '#withHide': { 'function': { args: [{ default: null, enums: [0, 1, 2], name: 'value', type: ['integer'] }], help: '' } }, - withHide(value): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: '00000000-0000-0000-0000-000000000000', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value='00000000-0000-0000-0000-000000000000'): { - id: value, - }, - '#withIndex': { 'function': { args: [{ default: -1, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withIndex(value=-1): { - index: value, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLabel(value): { - label: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: 'TODO: Move this into a separated QueryVariableModel type' } }, - withQuery(value): { - query: value, - }, - '#withQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: 'TODO: Move this into a separated QueryVariableModel type' } }, - withQueryMixin(value): { - query+: value, - }, - '#withRootStateKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRootStateKey(value): { - rootStateKey: value, - }, - '#withSkipUrlSync': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSkipUrlSync(value=true): { - skipUrlSync: value, - }, - '#withState': { 'function': { args: [{ default: null, enums: ['NotStarted', 'Loading', 'Streaming', 'Done', 'Error'], name: 'value', type: ['string'] }], help: '' } }, - withState(value): { - state: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['query', 'adhoc', 'constant', 'datasource', 'interval', 'textbox', 'custom', 'system'], name: 'value', type: ['string'] }], help: 'FROM: packages/grafana-data/src/types/templateVars.ts\nTODO docs\nTODO this implies some wider pattern/discriminated union, probably?' } }, - withType(value): { - type: value, - }, - }, - }, -} -+ (import '../custom/dashboard.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel.libsonnet deleted file mode 100644 index 666a1be3d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel.libsonnet +++ /dev/null @@ -1,781 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel', name: 'panel' }, - panelOptions+: - { - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel title.' } }, - withTitle(value): { - title: value, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Description.' } }, - withDescription(value): { - description: value, - }, - '#withTransparent': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether to display the panel without a background.' } }, - withTransparent(value=true): { - transparent: value, - }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel links.\nTODO fill this out - seems there are a couple variants?' } }, - withLinks(value): { - links: - (if std.isArray(value) - then value - else [value]), - }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel links.\nTODO fill this out - seems there are a couple variants?' } }, - withLinksMixin(value): { - links+: - (if std.isArray(value) - then value - else [value]), - }, - '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of template variable to repeat for.' } }, - withRepeat(value): { - repeat: value, - }, - '#withRepeatDirection': { 'function': { args: [{ default: 'h', enums: ['h', 'v'], name: 'value', type: ['string'] }], help: "Direction to repeat in if 'repeat' is set.\n\"h\" for horizontal, \"v\" for vertical.\nTODO this is probably optional" } }, - withRepeatDirection(value='h'): { - repeatDirection: value, - }, - '#withPluginVersion': { 'function': { args: [], help: '' } }, - withPluginVersion(): { - pluginVersion: 'v10.0.0', - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The panel plugin type id. May not be empty.' } }, - withType(value): { - type: value, - }, - link+: - { - '#': { help: '', name: 'link' }, - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsDropdown(value=true): { - asDropdown: value, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withIcon(value): { - icon: value, - }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIncludeVars(value=true): { - includeVars: value, - }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withKeepTime(value=true): { - keepTime: value, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTags(value): { - tags: - (if std.isArray(value) - then value - else [value]), - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTagsMixin(value): { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTargetBlank(value=true): { - targetBlank: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - title: value, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTooltip(value): { - tooltip: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - type: value, - }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUrl(value): { - url: value, - }, - }, - }, - queryOptions+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource used in all targets.' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource used in all targets.' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'TODO docs' } }, - withMaxDataPoints(value): { - maxDataPoints: value, - }, - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs\nTODO tighter constraint' } }, - withInterval(value): { - interval: value, - }, - '#withTimeFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs\nTODO tighter constraint' } }, - withTimeFrom(value): { - timeFrom: value, - }, - '#withTimeShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs\nTODO tighter constraint' } }, - withTimeShift(value): { - timeShift: value, - }, - '#withTargets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withTargets(value): { - targets: - (if std.isArray(value) - then value - else [value]), - }, - '#withTargetsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withTargetsMixin(value): { - targets+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTransformations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTransformations(value): { - transformations: - (if std.isArray(value) - then value - else [value]), - }, - '#withTransformationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTransformationsMixin(value): { - transformations+: - (if std.isArray(value) - then value - else [value]), - }, - transformation+: - { - '#': { help: '', name: 'transformation' }, - '#withDisabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Disabled transformations are skipped' } }, - withDisabled(value=true): { - disabled: value, - }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFilter(value): { - filter: value, - }, - '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFilterMixin(value): { - filter+: value, - }, - filter+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value=''): { - filter+: { - id: value, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withOptions(value): { - filter+: { - options: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique identifier of transformer' } }, - withId(value): { - id: value, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, - withOptions(value): { - options: value, - }, - }, - }, - standardOptions+: - { - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Numeric Options' } }, - withUnit(value): { - fieldConfig+: { - defaults+: { - unit: value, - }, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMin(value): { - fieldConfig+: { - defaults+: { - min: value, - }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMax(value): { - fieldConfig+: { - defaults+: { - max: value, - }, - }, - }, - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Significant digits (for display)' } }, - withDecimals(value): { - fieldConfig+: { - defaults+: { - decimals: value, - }, - }, - }, - '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The display value for this field. This supports template variables blank is auto' } }, - withDisplayName(value): { - fieldConfig+: { - defaults+: { - displayName: value, - }, - }, - }, - color+: - { - '#withFixedColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Stores the fixed color value if mode is fixed' } }, - withFixedColor(value): { - fieldConfig+: { - defaults+: { - color+: { - fixedColor: value, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The main color scheme mode' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - color+: { - mode: value, - }, - }, - }, - }, - '#withSeriesBy': { 'function': { args: [{ default: null, enums: ['min', 'max', 'last'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSeriesBy(value): { - fieldConfig+: { - defaults+: { - color+: { - seriesBy: value, - }, - }, - }, - }, - }, - '#withNoValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alternative to empty string' } }, - withNoValue(value): { - fieldConfig+: { - defaults+: { - noValue: value, - }, - }, - }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The behavior when clicking on a result' } }, - withLinks(value): { - fieldConfig+: { - defaults+: { - links: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The behavior when clicking on a result' } }, - withLinksMixin(value): { - fieldConfig+: { - defaults+: { - links+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withMappings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Convert input values into a display string' } }, - withMappings(value): { - fieldConfig+: { - defaults+: { - mappings: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withMappingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Convert input values into a display string' } }, - withMappingsMixin(value): { - fieldConfig+: { - defaults+: { - mappings+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withOverrides': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withOverrides(value): { - fieldConfig+: { - overrides: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withOverridesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withOverridesMixin(value): { - fieldConfig+: { - overrides+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withFilterable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'True if data source field supports ad-hoc filters' } }, - withFilterable(value=true): { - fieldConfig+: { - defaults+: { - filterable: value, - }, - }, - }, - '#withPath': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'An explicit path to the field in the datasource. When the frame meta includes a path,\nThis will default to `${frame.meta.path}/${field.name}\n\nWhen defined, this value can be used as an identifier within the datasource scope, and\nmay be used to update the results' } }, - withPath(value): { - fieldConfig+: { - defaults+: { - path: value, - }, - }, - }, - thresholds+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['absolute', 'percentage'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - thresholds+: { - mode: value, - }, - }, - }, - }, - '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: "Must be sorted by 'value', first value is always -Infinity" } }, - withSteps(value): { - fieldConfig+: { - defaults+: { - thresholds+: { - steps: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - '#withStepsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: "Must be sorted by 'value', first value is always -Infinity" } }, - withStepsMixin(value): { - fieldConfig+: { - defaults+: { - thresholds+: { - steps+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - mapping+: - { - '#': { help: '', name: 'mapping' }, - ValueMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - RangeMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'to and from are `number | null` in current ts, really not sure what to do' } }, - withFrom(value): { - options+: { - from: value, - }, - }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withResult(value): { - options+: { - result: value, - }, - }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withResultMixin(value): { - options+: { - result+: value, - }, - }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withColor(value): { - options+: { - result+: { - color: value, - }, - }, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withIcon(value): { - options+: { - result+: { - icon: value, - }, - }, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withIndex(value): { - options+: { - result+: { - index: value, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withText(value): { - options+: { - result+: { - text: value, - }, - }, - }, - }, - '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withTo(value): { - options+: { - to: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - RegexMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPattern(value): { - options+: { - pattern: value, - }, - }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withResult(value): { - options+: { - result: value, - }, - }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withResultMixin(value): { - options+: { - result+: value, - }, - }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withColor(value): { - options+: { - result+: { - color: value, - }, - }, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withIcon(value): { - options+: { - result+: { - icon: value, - }, - }, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withIndex(value): { - options+: { - result+: { - index: value, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withText(value): { - options+: { - result+: { - text: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - SpecialValueMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withMatch': { 'function': { args: [{ default: null, enums: ['true', 'false'], name: 'value', type: ['string'] }], help: '' } }, - withMatch(value): { - options+: { - match: value, - }, - }, - '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPattern(value): { - options+: { - pattern: value, - }, - }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withResult(value): { - options+: { - result: value, - }, - }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withResultMixin(value): { - options+: { - result+: value, - }, - }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withColor(value): { - options+: { - result+: { - color: value, - }, - }, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withIcon(value): { - options+: { - result+: { - icon: value, - }, - }, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withIndex(value): { - options+: { - result+: { - index: value, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withText(value): { - options+: { - result+: { - text: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - }, - threshold+: { - step+: - { - '#': { help: '', name: 'step' }, - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withColor(value): { - color: value, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Threshold index, an old property that is not needed an should only appear in older dashboards' } }, - withIndex(value): { - index: value, - }, - '#withState': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs\nTODO are the values here enumerable into a disjunction?\nSome seem to be listed in typescript comment' } }, - withState(value): { - state: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'TODO docs\nFIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON' } }, - withValue(value): { - value: value, - }, - }, - }, - override+: - { - '#': { help: '', name: 'override' }, - '#withMatcher': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMatcher(value): { - matcher: value, - }, - '#withMatcherMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMatcherMixin(value): { - matcher+: value, - }, - matcher+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value=''): { - matcher+: { - id: value, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withOptions(value): { - matcher+: { - options: value, - }, - }, - }, - '#withProperties': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withProperties(value): { - properties: - (if std.isArray(value) - then value - else [value]), - }, - '#withPropertiesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPropertiesMixin(value): { - properties+: - (if std.isArray(value) - then value - else [value]), - }, - properties+: - { - '#': { help: '', name: 'properties' }, - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value=''): { - id: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withValue(value): { - value: value, - }, - }, - }, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - datasource+: { - type: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - libraryPanel+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - libraryPanel+: { - name: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUid(value): { - libraryPanel+: { - uid: value, - }, - }, - }, - gridPos+: - { - '#withH': { 'function': { args: [{ default: 9, enums: null, name: 'value', type: ['integer'] }], help: 'Panel' } }, - withH(value=9): { - gridPos+: { - h: value, - }, - }, - '#withStatic': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if fixed' } }, - withStatic(value=true): { - gridPos+: { - static: value, - }, - }, - '#withW': { 'function': { args: [{ default: 12, enums: null, name: 'value', type: ['integer'] }], help: 'Panel' } }, - withW(value=12): { - gridPos+: { - w: value, - }, - }, - '#withX': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel x' } }, - withX(value=0): { - gridPos+: { - x: value, - }, - }, - '#withY': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel y' } }, - withY(value=0): { - gridPos+: { - y: value, - }, - }, - }, -} -+ (import '../custom/panel.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertGroups.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertGroups.libsonnet deleted file mode 100644 index 1dc4ff886..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertGroups.libsonnet +++ /dev/null @@ -1,40 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.alertGroups', name: 'alertGroups' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'alertGroups', - }, - }, - options+: - { - '#withAlertmanager': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the alertmanager used as a source for alerts' } }, - withAlertmanager(value): { - options+: { - alertmanager: value, - }, - }, - '#withExpandAll': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Expand all alert groups by default' } }, - withExpandAll(value=true): { - options+: { - expandAll: value, - }, - }, - '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Comma-separated list of values used to filter alert results' } }, - withLabels(value): { - options+: { - labels: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertList.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertList.libsonnet deleted file mode 100644 index 83229beca..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/alertList.libsonnet +++ /dev/null @@ -1,341 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.alertList', name: 'alertList' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'alertlist', - }, - }, - options+: - { - '#withAlertListOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAlertListOptions(value): { - options+: { - AlertListOptions: value, - }, - }, - '#withAlertListOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAlertListOptionsMixin(value): { - options+: { - AlertListOptions+: value, - }, - }, - AlertListOptions+: - { - '#withAlertName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAlertName(value): { - options+: { - alertName: value, - }, - }, - '#withDashboardAlerts': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withDashboardAlerts(value=true): { - options+: { - dashboardAlerts: value, - }, - }, - '#withDashboardTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withDashboardTitle(value): { - options+: { - dashboardTitle: value, - }, - }, - '#withFolderId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFolderId(value): { - options+: { - folderId: value, - }, - }, - '#withMaxItems': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxItems(value): { - options+: { - maxItems: value, - }, - }, - '#withShowOptions': { 'function': { args: [{ default: null, enums: ['current', 'changes'], name: 'value', type: ['string'] }], help: '' } }, - withShowOptions(value): { - options+: { - showOptions: value, - }, - }, - '#withSortOrder': { 'function': { args: [{ default: null, enums: [1, 2, 3, 4, 5], name: 'value', type: ['number'] }], help: '' } }, - withSortOrder(value): { - options+: { - sortOrder: value, - }, - }, - '#withStateFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStateFilter(value): { - options+: { - stateFilter: value, - }, - }, - '#withStateFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStateFilterMixin(value): { - options+: { - stateFilter+: value, - }, - }, - stateFilter+: - { - '#withAlerting': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAlerting(value=true): { - options+: { - stateFilter+: { - alerting: value, - }, - }, - }, - '#withExecutionError': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withExecutionError(value=true): { - options+: { - stateFilter+: { - execution_error: value, - }, - }, - }, - '#withNoData': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withNoData(value=true): { - options+: { - stateFilter+: { - no_data: value, - }, - }, - }, - '#withOk': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withOk(value=true): { - options+: { - stateFilter+: { - ok: value, - }, - }, - }, - '#withPaused': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withPaused(value=true): { - options+: { - stateFilter+: { - paused: value, - }, - }, - }, - '#withPending': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withPending(value=true): { - options+: { - stateFilter+: { - pending: value, - }, - }, - }, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTags(value): { - options+: { - tags: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTagsMixin(value): { - options+: { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withUnifiedAlertListOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUnifiedAlertListOptions(value): { - options+: { - UnifiedAlertListOptions: value, - }, - }, - '#withUnifiedAlertListOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUnifiedAlertListOptionsMixin(value): { - options+: { - UnifiedAlertListOptions+: value, - }, - }, - UnifiedAlertListOptions+: - { - '#withAlertInstanceLabelFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAlertInstanceLabelFilter(value): { - options+: { - alertInstanceLabelFilter: value, - }, - }, - '#withAlertName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAlertName(value): { - options+: { - alertName: value, - }, - }, - '#withDashboardAlerts': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withDashboardAlerts(value=true): { - options+: { - dashboardAlerts: value, - }, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withDatasource(value): { - options+: { - datasource: value, - }, - }, - '#withFolder': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFolder(value): { - options+: { - folder: value, - }, - }, - '#withFolderMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFolderMixin(value): { - options+: { - folder+: value, - }, - }, - folder+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withId(value): { - options+: { - folder+: { - id: value, - }, - }, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - options+: { - folder+: { - title: value, - }, - }, - }, - }, - '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withGroupBy(value): { - options+: { - groupBy: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withGroupByMixin(value): { - options+: { - groupBy+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withGroupMode': { 'function': { args: [{ default: null, enums: ['default', 'custom'], name: 'value', type: ['string'] }], help: '' } }, - withGroupMode(value): { - options+: { - groupMode: value, - }, - }, - '#withMaxItems': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxItems(value): { - options+: { - maxItems: value, - }, - }, - '#withShowInstances': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowInstances(value=true): { - options+: { - showInstances: value, - }, - }, - '#withSortOrder': { 'function': { args: [{ default: null, enums: [1, 2, 3, 4, 5], name: 'value', type: ['number'] }], help: '' } }, - withSortOrder(value): { - options+: { - sortOrder: value, - }, - }, - '#withStateFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStateFilter(value): { - options+: { - stateFilter: value, - }, - }, - '#withStateFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStateFilterMixin(value): { - options+: { - stateFilter+: value, - }, - }, - stateFilter+: - { - '#withError': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withError(value=true): { - options+: { - stateFilter+: { - 'error': value, - }, - }, - }, - '#withFiring': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withFiring(value=true): { - options+: { - stateFilter+: { - firing: value, - }, - }, - }, - '#withInactive': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withInactive(value=true): { - options+: { - stateFilter+: { - inactive: value, - }, - }, - }, - '#withNoData': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withNoData(value=true): { - options+: { - stateFilter+: { - noData: value, - }, - }, - }, - '#withNormal': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withNormal(value=true): { - options+: { - stateFilter+: { - normal: value, - }, - }, - }, - '#withPending': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withPending(value=true): { - options+: { - stateFilter+: { - pending: value, - }, - }, - }, - }, - '#withViewMode': { 'function': { args: [{ default: null, enums: ['list', 'stat'], name: 'value', type: ['string'] }], help: '' } }, - withViewMode(value): { - options+: { - viewMode: value, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/annotationsList.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/annotationsList.libsonnet deleted file mode 100644 index 6c567eac5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/annotationsList.libsonnet +++ /dev/null @@ -1,94 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.annotationsList', name: 'annotationsList' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'annolist', - }, - }, - options+: - { - '#withLimit': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLimit(value=10): { - options+: { - limit: value, - }, - }, - '#withNavigateAfter': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withNavigateAfter(value='10m'): { - options+: { - navigateAfter: value, - }, - }, - '#withNavigateBefore': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withNavigateBefore(value='10m'): { - options+: { - navigateBefore: value, - }, - }, - '#withNavigateToPanel': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withNavigateToPanel(value=true): { - options+: { - navigateToPanel: value, - }, - }, - '#withOnlyFromThisDashboard': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withOnlyFromThisDashboard(value=true): { - options+: { - onlyFromThisDashboard: value, - }, - }, - '#withOnlyInTimeRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withOnlyInTimeRange(value=true): { - options+: { - onlyInTimeRange: value, - }, - }, - '#withShowTags': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowTags(value=true): { - options+: { - showTags: value, - }, - }, - '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowTime(value=true): { - options+: { - showTime: value, - }, - }, - '#withShowUser': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowUser(value=true): { - options+: { - showUser: value, - }, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTags(value): { - options+: { - tags: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTagsMixin(value): { - options+: { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barChart.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barChart.libsonnet deleted file mode 100644 index 11cc23ce0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barChart.libsonnet +++ /dev/null @@ -1,527 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.barChart', name: 'barChart' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'barchart', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the fill opacity of the bars.' } }, - withFillOpacity(value=80): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\nGradient appearance is influenced by the Fill opacity setting.' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - gradientMode: value, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: 'Controls line width of the bars.' } }, - withLineWidth(value=1): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle: value, - }, - }, - }, - }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: value, - }, - }, - }, - }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: { - mode: value, - }, - }, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withBarRadius': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['number'] }], help: 'Controls the radius of each bar.' } }, - withBarRadius(value=0): { - options+: { - barRadius: value, - }, - }, - '#withBarWidth': { 'function': { args: [{ default: 0.96999999999999997, enums: null, name: 'value', type: ['number'] }], help: 'Controls the width of bars. 1 = Max width, 0 = Min width.' } }, - withBarWidth(value=0.96999999999999997): { - options+: { - barWidth: value, - }, - }, - '#withColorByField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Use the color value for a sibling field to color each bar value.' } }, - withColorByField(value): { - options+: { - colorByField: value, - }, - }, - '#withFullHighlight': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Enables mode which highlights the entire bar area and shows tooltip when cursor\nhovers over highlighted area' } }, - withFullHighlight(value=true): { - options+: { - fullHighlight: value, - }, - }, - '#withGroupWidth': { 'function': { args: [{ default: 0.69999999999999996, enums: null, name: 'value', type: ['number'] }], help: 'Controls the width of groups. 1 = max with, 0 = min width.' } }, - withGroupWidth(value=0.69999999999999996): { - options+: { - groupWidth: value, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the orientation of the bar chart, either vertical or horizontal.' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'This controls whether values are shown on top or to the left of bars.' } }, - withShowValue(value): { - options+: { - showValue: value, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls whether bars are stacked or not, either normally or in percent mode.' } }, - withStacking(value): { - options+: { - stacking: value, - }, - }, - '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Manually select which field from the dataset to represent the x field.' } }, - withXField(value): { - options+: { - xField: value, - }, - }, - '#withXTickLabelMaxLength': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Sets the max length that a label can have before it is truncated.' } }, - withXTickLabelMaxLength(value): { - options+: { - xTickLabelMaxLength: value, - }, - }, - '#withXTickLabelRotation': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the rotation of the x axis labels.' } }, - withXTickLabelRotation(value=0): { - options+: { - xTickLabelRotation: value, - }, - }, - '#withXTickLabelSpacing': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the spacing between x axis labels.\nnegative values indicate backwards skipping behavior' } }, - withXTickLabelSpacing(value=0): { - options+: { - xTickLabelSpacing: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barGauge.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barGauge.libsonnet deleted file mode 100644 index 6b39987e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/barGauge.libsonnet +++ /dev/null @@ -1,150 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.barGauge', name: 'barGauge' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'bargauge', - }, - }, - options+: - { - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptions(value): { - options+: { - reduceOptions: value, - }, - }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { - options+: { - reduceOptions+: value, - }, - }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { - options+: { - reduceOptions+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { - options+: { - reduceOptions+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { - options+: { - reduceOptions+: { - fields: value, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, - withLimit(value): { - options+: { - reduceOptions+: { - limit: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, - withValues(value=true): { - options+: { - reduceOptions+: { - values: value, - }, - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['basic', 'lcd', 'gradient'], name: 'value', type: ['string'] }], help: 'Enum expressing the possible display modes\nfor the bar gauge component of Grafana UI' } }, - withDisplayMode(value): { - options+: { - displayMode: value, - }, - }, - '#withMinVizHeight': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMinVizHeight(value=10): { - options+: { - minVizHeight: value, - }, - }, - '#withMinVizWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMinVizWidth(value=0): { - options+: { - minVizWidth: value, - }, - }, - '#withShowUnfilled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowUnfilled(value=true): { - options+: { - showUnfilled: value, - }, - }, - '#withValueMode': { 'function': { args: [{ default: null, enums: ['color', 'text', 'hidden'], name: 'value', type: ['string'] }], help: 'Allows for the table cell gauge display type to set the gauge mode.' } }, - withValueMode(value): { - options+: { - valueMode: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/candlestick.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/candlestick.libsonnet deleted file mode 100644 index d62b3ebd9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/candlestick.libsonnet +++ /dev/null @@ -1,19 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.candlestick', name: 'candlestick' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'candlestick', - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/canvas.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/canvas.libsonnet deleted file mode 100644 index 47c799651..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/canvas.libsonnet +++ /dev/null @@ -1,19 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.canvas', name: 'canvas' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'canvas', - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/dashboardList.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/dashboardList.libsonnet deleted file mode 100644 index 0027f10c6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/dashboardList.libsonnet +++ /dev/null @@ -1,94 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.dashboardList', name: 'dashboardList' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'dashlist', - }, - }, - options+: - { - '#withFolderId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withFolderId(value): { - options+: { - folderId: value, - }, - }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIncludeVars(value=true): { - options+: { - includeVars: value, - }, - }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withKeepTime(value=true): { - options+: { - keepTime: value, - }, - }, - '#withMaxItems': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMaxItems(value=10): { - options+: { - maxItems: value, - }, - }, - '#withQuery': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withQuery(value=''): { - options+: { - query: value, - }, - }, - '#withShowHeadings': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowHeadings(value=true): { - options+: { - showHeadings: value, - }, - }, - '#withShowRecentlyViewed': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowRecentlyViewed(value=true): { - options+: { - showRecentlyViewed: value, - }, - }, - '#withShowSearch': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowSearch(value=true): { - options+: { - showSearch: value, - }, - }, - '#withShowStarred': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowStarred(value=true): { - options+: { - showStarred: value, - }, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTags(value): { - options+: { - tags: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTagsMixin(value): { - options+: { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/datagrid.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/datagrid.libsonnet deleted file mode 100644 index 8b205bec0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/datagrid.libsonnet +++ /dev/null @@ -1,28 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.datagrid', name: 'datagrid' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'datagrid', - }, - }, - options+: - { - '#withSelectedSeries': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withSelectedSeries(value=0): { - options+: { - selectedSeries: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/debug.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/debug.libsonnet deleted file mode 100644 index 87d5167bf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/debug.libsonnet +++ /dev/null @@ -1,67 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.debug', name: 'debug' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'debug', - }, - }, - options+: - { - '#withCounters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCounters(value): { - options+: { - counters: value, - }, - }, - '#withCountersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCountersMixin(value): { - options+: { - counters+: value, - }, - }, - counters+: - { - '#withDataChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withDataChanged(value=true): { - options+: { - counters+: { - dataChanged: value, - }, - }, - }, - '#withRender': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withRender(value=true): { - options+: { - counters+: { - render: value, - }, - }, - }, - '#withSchemaChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSchemaChanged(value=true): { - options+: { - counters+: { - schemaChanged: value, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['render', 'events', 'cursor', 'State', 'ThrowError'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - mode: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/gauge.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/gauge.libsonnet deleted file mode 100644 index d78fddcc0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/gauge.libsonnet +++ /dev/null @@ -1,132 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.gauge', name: 'gauge' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'gauge', - }, - }, - options+: - { - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptions(value): { - options+: { - reduceOptions: value, - }, - }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { - options+: { - reduceOptions+: value, - }, - }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { - options+: { - reduceOptions+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { - options+: { - reduceOptions+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { - options+: { - reduceOptions+: { - fields: value, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, - withLimit(value): { - options+: { - reduceOptions+: { - limit: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, - withValues(value=true): { - options+: { - reduceOptions+: { - values: value, - }, - }, - }, - }, - '#withShowThresholdLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowThresholdLabels(value=true): { - options+: { - showThresholdLabels: value, - }, - }, - '#withShowThresholdMarkers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowThresholdMarkers(value=true): { - options+: { - showThresholdMarkers: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/geomap.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/geomap.libsonnet deleted file mode 100644 index df59e6b95..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/geomap.libsonnet +++ /dev/null @@ -1,462 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.geomap', name: 'geomap' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'geomap', - }, - }, - options+: - { - '#withBasemap': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withBasemap(value): { - options+: { - basemap: value, - }, - }, - '#withBasemapMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withBasemapMixin(value): { - options+: { - basemap+: value, - }, - }, - basemap+: - { - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Custom options depending on the type' } }, - withConfig(value): { - options+: { - basemap+: { - config: value, - }, - }, - }, - '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, - withFilterData(value): { - options+: { - basemap+: { - filterData: value, - }, - }, - }, - '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLocation(value): { - options+: { - basemap+: { - location: value, - }, - }, - }, - '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLocationMixin(value): { - options+: { - basemap+: { - location+: value, - }, - }, - }, - location+: - { - '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Path to Gazetteer' } }, - withGazetteer(value): { - options+: { - basemap+: { - location+: { - gazetteer: value, - }, - }, - }, - }, - '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field mappings' } }, - withGeohash(value): { - options+: { - basemap+: { - location+: { - geohash: value, - }, - }, - }, - }, - '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLatitude(value): { - options+: { - basemap+: { - location+: { - latitude: value, - }, - }, - }, - }, - '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLongitude(value): { - options+: { - basemap+: { - location+: { - longitude: value, - }, - }, - }, - }, - '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLookup(value): { - options+: { - basemap+: { - location+: { - lookup: value, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - basemap+: { - location+: { - mode: value, - }, - }, - }, - }, - '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withWkt(value): { - options+: { - basemap+: { - location+: { - wkt: value, - }, - }, - }, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'configured unique display name' } }, - withName(value): { - options+: { - basemap+: { - name: value, - }, - }, - }, - '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, - withOpacity(value): { - options+: { - basemap+: { - opacity: value, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Check tooltip (defaults to true)' } }, - withTooltip(value=true): { - options+: { - basemap+: { - tooltip: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - options+: { - basemap+: { - type: value, - }, - }, - }, - }, - '#withControls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withControls(value): { - options+: { - controls: value, - }, - }, - '#withControlsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withControlsMixin(value): { - options+: { - controls+: value, - }, - }, - controls+: - { - '#withMouseWheelZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'let the mouse wheel zoom' } }, - withMouseWheelZoom(value=true): { - options+: { - controls+: { - mouseWheelZoom: value, - }, - }, - }, - '#withShowAttribution': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Lower right' } }, - withShowAttribution(value=true): { - options+: { - controls+: { - showAttribution: value, - }, - }, - }, - '#withShowDebug': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Show debug' } }, - withShowDebug(value=true): { - options+: { - controls+: { - showDebug: value, - }, - }, - }, - '#withShowMeasure': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Show measure' } }, - withShowMeasure(value=true): { - options+: { - controls+: { - showMeasure: value, - }, - }, - }, - '#withShowScale': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Scale options' } }, - withShowScale(value=true): { - options+: { - controls+: { - showScale: value, - }, - }, - }, - '#withShowZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Zoom (upper left)' } }, - withShowZoom(value=true): { - options+: { - controls+: { - showZoom: value, - }, - }, - }, - }, - '#withLayers': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withLayers(value): { - options+: { - layers: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withLayersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withLayersMixin(value): { - options+: { - layers+: - (if std.isArray(value) - then value - else [value]), - }, - }, - layers+: - { - '#': { help: '', name: 'layers' }, - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Custom options depending on the type' } }, - withConfig(value): { - config: value, - }, - '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, - withFilterData(value): { - filterData: value, - }, - '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLocation(value): { - location: value, - }, - '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLocationMixin(value): { - location+: value, - }, - location+: - { - '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Path to Gazetteer' } }, - withGazetteer(value): { - location+: { - gazetteer: value, - }, - }, - '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field mappings' } }, - withGeohash(value): { - location+: { - geohash: value, - }, - }, - '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLatitude(value): { - location+: { - latitude: value, - }, - }, - '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLongitude(value): { - location+: { - longitude: value, - }, - }, - '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLookup(value): { - location+: { - lookup: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - location+: { - mode: value, - }, - }, - '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withWkt(value): { - location+: { - wkt: value, - }, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'configured unique display name' } }, - withName(value): { - name: value, - }, - '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, - withOpacity(value): { - opacity: value, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Check tooltip (defaults to true)' } }, - withTooltip(value=true): { - tooltip: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - }, - '#withView': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withView(value): { - options+: { - view: value, - }, - }, - '#withViewMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withViewMixin(value): { - options+: { - view+: value, - }, - }, - view+: - { - '#withAllLayers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAllLayers(value=true): { - options+: { - view+: { - allLayers: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: 'zero', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value='zero'): { - options+: { - view+: { - id: value, - }, - }, - }, - '#withLastOnly': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLastOnly(value=true): { - options+: { - view+: { - lastOnly: value, - }, - }, - }, - '#withLat': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLat(value=0): { - options+: { - view+: { - lat: value, - }, - }, - }, - '#withLayer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLayer(value): { - options+: { - view+: { - layer: value, - }, - }, - }, - '#withLon': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLon(value=0): { - options+: { - view+: { - lon: value, - }, - }, - }, - '#withMaxZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMaxZoom(value): { - options+: { - view+: { - maxZoom: value, - }, - }, - }, - '#withMinZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMinZoom(value): { - options+: { - view+: { - minZoom: value, - }, - }, - }, - '#withPadding': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withPadding(value): { - options+: { - view+: { - padding: value, - }, - }, - }, - '#withShared': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShared(value=true): { - options+: { - view+: { - shared: value, - }, - }, - }, - '#withZoom': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withZoom(value=1): { - options+: { - view+: { - zoom: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/heatmap.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/heatmap.libsonnet deleted file mode 100644 index b7d0e0f1e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/heatmap.libsonnet +++ /dev/null @@ -1,864 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.heatmap', name: 'heatmap' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'heatmap', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withCalculate': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the heatmap should be calculated from data' } }, - withCalculate(value=true): { - options+: { - calculate: value, - }, - }, - '#withCalculation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCalculation(value): { - options+: { - calculation: value, - }, - }, - '#withCalculationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCalculationMixin(value): { - options+: { - calculation+: value, - }, - }, - calculation+: - { - '#withXBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withXBuckets(value): { - options+: { - calculation+: { - xBuckets: value, - }, - }, - }, - '#withXBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withXBucketsMixin(value): { - options+: { - calculation+: { - xBuckets+: value, - }, - }, - }, - xBuckets+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - calculation+: { - xBuckets+: { - mode: value, - }, - }, - }, - }, - '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScale(value): { - options+: { - calculation+: { - xBuckets+: { - scale: value, - }, - }, - }, - }, - '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleMixin(value): { - options+: { - calculation+: { - xBuckets+: { - scale+: value, - }, - }, - }, - }, - scale+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - options+: { - calculation+: { - xBuckets+: { - scale+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - options+: { - calculation+: { - xBuckets+: { - scale+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - options+: { - calculation+: { - xBuckets+: { - scale+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The number of buckets to use for the axis in the heatmap' } }, - withValue(value): { - options+: { - calculation+: { - xBuckets+: { - value: value, - }, - }, - }, - }, - }, - '#withYBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withYBuckets(value): { - options+: { - calculation+: { - yBuckets: value, - }, - }, - }, - '#withYBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withYBucketsMixin(value): { - options+: { - calculation+: { - yBuckets+: value, - }, - }, - }, - yBuckets+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - calculation+: { - yBuckets+: { - mode: value, - }, - }, - }, - }, - '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScale(value): { - options+: { - calculation+: { - yBuckets+: { - scale: value, - }, - }, - }, - }, - '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleMixin(value): { - options+: { - calculation+: { - yBuckets+: { - scale+: value, - }, - }, - }, - }, - scale+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - options+: { - calculation+: { - yBuckets+: { - scale+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - options+: { - calculation+: { - yBuckets+: { - scale+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - options+: { - calculation+: { - yBuckets+: { - scale+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The number of buckets to use for the axis in the heatmap' } }, - withValue(value): { - options+: { - calculation+: { - yBuckets+: { - value: value, - }, - }, - }, - }, - }, - }, - '#withCellGap': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: 'Controls gap between cells' } }, - withCellGap(value=1): { - options+: { - cellGap: value, - }, - }, - '#withCellRadius': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls cell radius' } }, - withCellRadius(value): { - options+: { - cellRadius: value, - }, - }, - '#withCellValues': { 'function': { args: [{ default: {}, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value unit' } }, - withCellValues(value={}): { - options+: { - cellValues: value, - }, - }, - '#withCellValuesMixin': { 'function': { args: [{ default: {}, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value unit' } }, - withCellValuesMixin(value): { - options+: { - cellValues+: value, - }, - }, - cellValues+: - { - '#withCellValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value options' } }, - withCellValues(value): { - options+: { - cellValues+: { - CellValues: value, - }, - }, - }, - '#withCellValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value options' } }, - withCellValuesMixin(value): { - options+: { - cellValues+: { - CellValues+: value, - }, - }, - }, - CellValues+: - { - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the number of decimals for cell values' } }, - withDecimals(value): { - options+: { - cellValues+: { - decimals: value, - }, - }, - }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the cell value unit' } }, - withUnit(value): { - options+: { - cellValues+: { - unit: value, - }, - }, - }, - }, - }, - '#withColor': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: ['object'] }], help: 'Controls the color options' } }, - withColor(value={ exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }): { - options+: { - color: value, - }, - }, - '#withColorMixin': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: ['object'] }], help: 'Controls the color options' } }, - withColorMixin(value): { - options+: { - color+: value, - }, - }, - color+: - { - '#withHeatmapColorOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls various color options' } }, - withHeatmapColorOptions(value): { - options+: { - color+: { - HeatmapColorOptions: value, - }, - }, - }, - '#withHeatmapColorOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls various color options' } }, - withHeatmapColorOptionsMixin(value): { - options+: { - color+: { - HeatmapColorOptions+: value, - }, - }, - }, - HeatmapColorOptions+: - { - '#withExponent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the exponent when scale is set to exponential' } }, - withExponent(value): { - options+: { - color+: { - exponent: value, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the color fill when in opacity mode' } }, - withFill(value): { - options+: { - color+: { - fill: value, - }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the maximum value for the color scale' } }, - withMax(value): { - options+: { - color+: { - max: value, - }, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the minimum value for the color scale' } }, - withMin(value): { - options+: { - color+: { - min: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: ['string'] }], help: 'Controls the color mode of the heatmap' } }, - withMode(value): { - options+: { - color+: { - mode: value, - }, - }, - }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Reverses the color scheme' } }, - withReverse(value=true): { - options+: { - color+: { - reverse: value, - }, - }, - }, - '#withScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: ['string'] }], help: 'Controls the color scale of the heatmap' } }, - withScale(value): { - options+: { - color+: { - scale: value, - }, - }, - }, - '#withScheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the color scheme used' } }, - withScheme(value): { - options+: { - color+: { - scheme: value, - }, - }, - }, - '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the number of color steps' } }, - withSteps(value): { - options+: { - color+: { - steps: value, - }, - }, - }, - }, - }, - '#withExemplars': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls exemplar options' } }, - withExemplars(value): { - options+: { - exemplars: value, - }, - }, - '#withExemplarsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls exemplar options' } }, - withExemplarsMixin(value): { - options+: { - exemplars+: value, - }, - }, - exemplars+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the color of the exemplar markers' } }, - withColor(value): { - options+: { - exemplars+: { - color: value, - }, - }, - }, - }, - '#withFilterValues': { 'function': { args: [{ default: { le: 1.0000000000000001e-09 }, enums: null, name: 'value', type: ['object'] }], help: 'Filters values between a given range' } }, - withFilterValues(value={ le: 1.0000000000000001e-09 }): { - options+: { - filterValues: value, - }, - }, - '#withFilterValuesMixin': { 'function': { args: [{ default: { le: 1.0000000000000001e-09 }, enums: null, name: 'value', type: ['object'] }], help: 'Filters values between a given range' } }, - withFilterValuesMixin(value): { - options+: { - filterValues+: value, - }, - }, - filterValues+: - { - '#withFilterValueRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls the value filter range' } }, - withFilterValueRange(value): { - options+: { - filterValues+: { - FilterValueRange: value, - }, - }, - }, - '#withFilterValueRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls the value filter range' } }, - withFilterValueRangeMixin(value): { - options+: { - filterValues+: { - FilterValueRange+: value, - }, - }, - }, - FilterValueRange+: - { - '#withGe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the filter range to values greater than or equal to the given value' } }, - withGe(value): { - options+: { - filterValues+: { - ge: value, - }, - }, - }, - '#withLe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the filter range to values less than or equal to the given value' } }, - withLe(value): { - options+: { - filterValues+: { - le: value, - }, - }, - }, - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls legend options' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls legend options' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the legend is shown' } }, - withShow(value=true): { - options+: { - legend+: { - show: value, - }, - }, - }, - }, - '#withRowsFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls frame rows options' } }, - withRowsFrame(value): { - options+: { - rowsFrame: value, - }, - }, - '#withRowsFrameMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls frame rows options' } }, - withRowsFrameMixin(value): { - options+: { - rowsFrame+: value, - }, - }, - rowsFrame+: - { - '#withLayout': { 'function': { args: [{ default: null, enums: ['le', 'ge', 'unknown', 'auto'], name: 'value', type: ['string'] }], help: '' } }, - withLayout(value): { - options+: { - rowsFrame+: { - layout: value, - }, - }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the name of the cell when not calculating from data' } }, - withValue(value): { - options+: { - rowsFrame+: { - value: value, - }, - }, - }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '| *{\n\tlayout: ui.HeatmapCellLayout & "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' } }, - withShowValue(value): { - options+: { - showValue: value, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls tooltip options' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls tooltip options' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the tooltip is shown' } }, - withShow(value=true): { - options+: { - tooltip+: { - show: value, - }, - }, - }, - '#withYHistogram': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the tooltip shows a histogram of the y-axis values' } }, - withYHistogram(value=true): { - options+: { - tooltip+: { - yHistogram: value, - }, - }, - }, - }, - '#withYAxis': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration options for the yAxis' } }, - withYAxis(value): { - options+: { - yAxis: value, - }, - }, - '#withYAxisMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration options for the yAxis' } }, - withYAxisMixin(value): { - options+: { - yAxis+: value, - }, - }, - yAxis+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - options+: { - yAxis+: { - axisCenteredZero: value, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - options+: { - yAxis+: { - axisColorMode: value, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - options+: { - yAxis+: { - axisGridShow: value, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - options+: { - yAxis+: { - axisLabel: value, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - options+: { - yAxis+: { - axisPlacement: value, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - options+: { - yAxis+: { - axisSoftMax: value, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - options+: { - yAxis+: { - axisSoftMin: value, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - options+: { - yAxis+: { - axisWidth: value, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - options+: { - yAxis+: { - scaleDistribution: value, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - options+: { - yAxis+: { - scaleDistribution+: value, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - options+: { - yAxis+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - options+: { - yAxis+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - options+: { - yAxis+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the number of decimals for yAxis values' } }, - withDecimals(value): { - options+: { - yAxis+: { - decimals: value, - }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the maximum value for the yAxis' } }, - withMax(value): { - options+: { - yAxis+: { - max: value, - }, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the minimum value for the yAxis' } }, - withMin(value): { - options+: { - yAxis+: { - min: value, - }, - }, - }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Reverses the yAxis' } }, - withReverse(value=true): { - options+: { - yAxis+: { - reverse: value, - }, - }, - }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the yAxis unit' } }, - withUnit(value): { - options+: { - yAxis+: { - unit: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/histogram.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/histogram.libsonnet deleted file mode 100644 index b2e9dc2e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/histogram.libsonnet +++ /dev/null @@ -1,407 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.histogram', name: 'histogram' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'histogram', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the fill opacity of the bars.' } }, - withFillOpacity(value=80): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\nGradient appearance is influenced by the Fill opacity setting.' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - gradientMode: value, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: 'Controls line width of the bars.' } }, - withLineWidth(value=1): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withBucketOffset': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Offset buckets by this amount' } }, - withBucketOffset(value=0): { - options+: { - bucketOffset: value, - }, - }, - '#withBucketSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Size of each bucket' } }, - withBucketSize(value): { - options+: { - bucketSize: value, - }, - }, - '#withCombine': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Combines multiple series into a single histogram' } }, - withCombine(value=true): { - options+: { - combine: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/logs.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/logs.libsonnet deleted file mode 100644 index bdcd83d79..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/logs.libsonnet +++ /dev/null @@ -1,70 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.logs', name: 'logs' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'logs', - }, - }, - options+: - { - '#withDedupStrategy': { 'function': { args: [{ default: null, enums: ['none', 'exact', 'numbers', 'signature'], name: 'value', type: ['string'] }], help: '' } }, - withDedupStrategy(value): { - options+: { - dedupStrategy: value, - }, - }, - '#withEnableLogDetails': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withEnableLogDetails(value=true): { - options+: { - enableLogDetails: value, - }, - }, - '#withPrettifyLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withPrettifyLogMessage(value=true): { - options+: { - prettifyLogMessage: value, - }, - }, - '#withShowCommonLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowCommonLabels(value=true): { - options+: { - showCommonLabels: value, - }, - }, - '#withShowLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLabels(value=true): { - options+: { - showLabels: value, - }, - }, - '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowTime(value=true): { - options+: { - showTime: value, - }, - }, - '#withSortOrder': { 'function': { args: [{ default: null, enums: ['Descending', 'Ascending'], name: 'value', type: ['string'] }], help: '' } }, - withSortOrder(value): { - options+: { - sortOrder: value, - }, - }, - '#withWrapLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withWrapLogMessage(value=true): { - options+: { - wrapLogMessage: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/news.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/news.libsonnet deleted file mode 100644 index 429ce092b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/news.libsonnet +++ /dev/null @@ -1,34 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.news', name: 'news' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'news', - }, - }, - options+: - { - '#withFeedUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'empty/missing will default to grafana blog' } }, - withFeedUrl(value): { - options+: { - feedUrl: value, - }, - }, - '#withShowImage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowImage(value=true): { - options+: { - showImage: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/nodeGraph.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/nodeGraph.libsonnet deleted file mode 100644 index bf172a4eb..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/nodeGraph.libsonnet +++ /dev/null @@ -1,118 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.nodeGraph', name: 'nodeGraph' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'nodeGraph', - }, - }, - options+: - { - '#withEdges': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withEdges(value): { - options+: { - edges: value, - }, - }, - '#withEdgesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withEdgesMixin(value): { - options+: { - edges+: value, - }, - }, - edges+: - { - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { - options+: { - edges+: { - mainStatUnit: value, - }, - }, - }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { - options+: { - edges+: { - secondaryStatUnit: value, - }, - }, - }, - }, - '#withNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withNodes(value): { - options+: { - nodes: value, - }, - }, - '#withNodesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withNodesMixin(value): { - options+: { - nodes+: value, - }, - }, - nodes+: - { - '#withArcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcs(value): { - options+: { - nodes+: { - arcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withArcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcsMixin(value): { - options+: { - nodes+: { - arcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - arcs+: - { - '#': { help: '', name: 'arcs' }, - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The color of the arc.' } }, - withColor(value): { - color: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, - withField(value): { - field: value, - }, - }, - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { - options+: { - nodes+: { - mainStatUnit: value, - }, - }, - }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { - options+: { - nodes+: { - secondaryStatUnit: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/pieChart.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/pieChart.libsonnet deleted file mode 100644 index 8f62d8e02..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/pieChart.libsonnet +++ /dev/null @@ -1,364 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.pieChart', name: 'pieChart' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'piechart', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptions(value): { - options+: { - reduceOptions: value, - }, - }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { - options+: { - reduceOptions+: value, - }, - }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { - options+: { - reduceOptions+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { - options+: { - reduceOptions+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { - options+: { - reduceOptions+: { - fields: value, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, - withLimit(value): { - options+: { - reduceOptions+: { - limit: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, - withValues(value=true): { - options+: { - reduceOptions+: { - values: value, - }, - }, - }, - }, - '#withDisplayLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDisplayLabels(value): { - options+: { - displayLabels: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withDisplayLabelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDisplayLabelsMixin(value): { - options+: { - displayLabels+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withValues(value): { - options+: { - legend+: { - values: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withValuesMixin(value): { - options+: { - legend+: { - values+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - '#withPieType': { 'function': { args: [{ default: null, enums: ['pie', 'donut'], name: 'value', type: ['string'] }], help: 'Select the pie chart display style.' } }, - withPieType(value): { - options+: { - pieType: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stat.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stat.libsonnet deleted file mode 100644 index c471f4116..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stat.libsonnet +++ /dev/null @@ -1,144 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.stat', name: 'stat' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'stat', - }, - }, - options+: - { - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptions(value): { - options+: { - reduceOptions: value, - }, - }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { - options+: { - reduceOptions+: value, - }, - }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { - options+: { - reduceOptions+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { - options+: { - reduceOptions+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { - options+: { - reduceOptions+: { - fields: value, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, - withLimit(value): { - options+: { - reduceOptions+: { - limit: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, - withValues(value=true): { - options+: { - reduceOptions+: { - values: value, - }, - }, - }, - }, - '#withColorMode': { 'function': { args: [{ default: null, enums: ['value', 'background', 'background_solid', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withColorMode(value): { - options+: { - colorMode: value, - }, - }, - '#withGraphMode': { 'function': { args: [{ default: null, enums: ['none', 'line', 'area'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGraphMode(value): { - options+: { - graphMode: value, - }, - }, - '#withJustifyMode': { 'function': { args: [{ default: null, enums: ['auto', 'center'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withJustifyMode(value): { - options+: { - justifyMode: value, - }, - }, - '#withTextMode': { 'function': { args: [{ default: null, enums: ['auto', 'value', 'value_and_name', 'name', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withTextMode(value): { - options+: { - textMode: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stateTimeline.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stateTimeline.libsonnet deleted file mode 100644 index f1505daf4..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/stateTimeline.libsonnet +++ /dev/null @@ -1,282 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.stateTimeline', name: 'stateTimeline' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'state-timeline', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withFillOpacity(value=70): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLineWidth(value=0): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezone(value): { - options+: { - timezone: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezoneMixin(value): { - options+: { - timezone+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withAlignValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls value alignment on the timelines' } }, - withAlignValue(value): { - options+: { - alignValue: value, - }, - }, - '#withMergeValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Merge equal consecutive values' } }, - withMergeValues(value=true): { - options+: { - mergeValues: value, - }, - }, - '#withRowHeight': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: ['number'] }], help: 'Controls the row height' } }, - withRowHeight(value=0.90000000000000002): { - options+: { - rowHeight: value, - }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Show timeline values on chart' } }, - withShowValue(value): { - options+: { - showValue: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/statusHistory.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/statusHistory.libsonnet deleted file mode 100644 index 434c224bf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/statusHistory.libsonnet +++ /dev/null @@ -1,276 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.statusHistory', name: 'statusHistory' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'status-history', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withFillOpacity(value=70): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLineWidth(value=1): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezone(value): { - options+: { - timezone: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezoneMixin(value): { - options+: { - timezone+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withColWidth': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: ['number'] }], help: 'Controls the column width' } }, - withColWidth(value=0.90000000000000002): { - options+: { - colWidth: value, - }, - }, - '#withRowHeight': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: ['number'] }], help: 'Set the height of the rows' } }, - withRowHeight(value=0.90000000000000002): { - options+: { - rowHeight: value, - }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Show values on the columns' } }, - withShowValue(value): { - options+: { - showValue: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/table.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/table.libsonnet deleted file mode 100644 index 3ce143880..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/table.libsonnet +++ /dev/null @@ -1,1206 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.table', name: 'table' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'table', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withAlign': { 'function': { args: [{ default: null, enums: ['auto', 'left', 'right', 'center'], name: 'value', type: ['string'] }], help: 'TODO -- should not be table specific! TODO docs' } }, - withAlign(value): { - fieldConfig+: { - defaults+: { - custom+: { - align: value, - }, - }, - }, - }, - '#withCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object', 'object', 'object', 'object', 'object', 'object'] }], help: 'Table cell options. Each cell has a display mode and other potential options for that display.' } }, - withCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions: value, - }, - }, - }, - }, - '#withCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object', 'object', 'object', 'object', 'object', 'object'] }], help: 'Table cell options. Each cell has a display mode and other potential options for that display.' } }, - withCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: value, - }, - }, - }, - }, - cellOptions+: - { - '#withTableAutoCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Auto mode table cell options' } }, - withTableAutoCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableAutoCellOptions: value, - }, - }, - }, - }, - }, - '#withTableAutoCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Auto mode table cell options' } }, - withTableAutoCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableAutoCellOptions+: value, - }, - }, - }, - }, - }, - TableAutoCellOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'auto', - }, - }, - }, - }, - }, - }, - '#withTableSparklineCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Sparkline cell options' } }, - withTableSparklineCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableSparklineCellOptions: value, - }, - }, - }, - }, - }, - '#withTableSparklineCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Sparkline cell options' } }, - withTableSparklineCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableSparklineCellOptions+: value, - }, - }, - }, - }, - }, - TableSparklineCellOptions+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisCenteredZero: value, - }, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['series', 'text'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisColorMode: value, - }, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisGridShow: value, - }, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisLabel: value, - }, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'bottom', 'hidden', 'left', 'right', 'top'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisPlacement: value, - }, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisSoftMax: value, - }, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisSoftMin: value, - }, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisWidth: value, - }, - }, - }, - }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [1, -1, 0], name: 'value', type: ['number'] }], help: 'TODO docs' } }, - withBarAlignment(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - barAlignment: value, - }, - }, - }, - }, - }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarMaxWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - barMaxWidth: value, - }, - }, - }, - }, - }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarWidthFactor(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - barWidthFactor: value, - }, - }, - }, - }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['bars', 'line', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withDrawStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - drawStyle: value, - }, - }, - }, - }, - }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillBelowTo(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - fillBelowTo: value, - }, - }, - }, - }, - }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - fillColor: value, - }, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFillOpacity(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - fillOpacity: value, - }, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['hue', 'none', 'opacity', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - gradientMode: value, - }, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom: value, - }, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom+: value, - }, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLineColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineColor: value, - }, - }, - }, - }, - }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepAfter', 'stepBefore'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLineInterpolation(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineInterpolation: value, - }, - }, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle: value, - }, - }, - }, - }, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle+: value, - }, - }, - }, - }, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle+: { - fill: value, - }, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLineWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineWidth: value, - }, - }, - }, - }, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - pointColor: value, - }, - }, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withPointSize(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - pointSize: value, - }, - }, - }, - }, - }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointSymbol(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - pointSymbol: value, - }, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution: value, - }, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution+: value, - }, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['always', 'auto', 'never'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowPoints(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - showPoints: value, - }, - }, - }, - }, - }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected. When the value is a number, it represents the maximum delta in the X axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - spanNulls: value, - }, - }, - }, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStacking(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - stacking: value, - }, - }, - }, - }, - }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStackingMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - stacking+: value, - }, - }, - }, - }, - }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroup(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - stacking+: { - group: value, - }, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - stacking+: { - mode: value, - }, - }, - }, - }, - }, - }, - }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - thresholdsStyle: value, - }, - }, - }, - }, - }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - thresholdsStyle+: value, - }, - }, - }, - }, - }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['area', 'dashed', 'dashed+area', 'line', 'line+area', 'off', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - thresholdsStyle+: { - mode: value, - }, - }, - }, - }, - }, - }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withTransform(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - transform: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'sparkline', - }, - }, - }, - }, - }, - }, - '#withTableBarGaugeCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Gauge cell options' } }, - withTableBarGaugeCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableBarGaugeCellOptions: value, - }, - }, - }, - }, - }, - '#withTableBarGaugeCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Gauge cell options' } }, - withTableBarGaugeCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableBarGaugeCellOptions+: value, - }, - }, - }, - }, - }, - TableBarGaugeCellOptions+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['basic', 'gradient', 'lcd'], name: 'value', type: ['string'] }], help: 'Enum expressing the possible display modes for the bar gauge component of Grafana UI' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - mode: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'gauge', - }, - }, - }, - }, - }, - '#withValueDisplayMode': { 'function': { args: [{ default: null, enums: ['color', 'hidden', 'text'], name: 'value', type: ['string'] }], help: 'Allows for the table cell gauge display type to set the gauge mode.' } }, - withValueDisplayMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - valueDisplayMode: value, - }, - }, - }, - }, - }, - }, - '#withTableColoredBackgroundCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored background cell options' } }, - withTableColoredBackgroundCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableColoredBackgroundCellOptions: value, - }, - }, - }, - }, - }, - '#withTableColoredBackgroundCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored background cell options' } }, - withTableColoredBackgroundCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableColoredBackgroundCellOptions+: value, - }, - }, - }, - }, - }, - TableColoredBackgroundCellOptions+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['basic', 'gradient'], name: 'value', type: ['string'] }], help: 'Display mode to the "Colored Background" display mode for table cells. Either displays a solid color (basic mode) or a gradient.' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - mode: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'color-background', - }, - }, - }, - }, - }, - }, - '#withTableColorTextCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored text cell options' } }, - withTableColorTextCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableColorTextCellOptions: value, - }, - }, - }, - }, - }, - '#withTableColorTextCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored text cell options' } }, - withTableColorTextCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableColorTextCellOptions+: value, - }, - }, - }, - }, - }, - TableColorTextCellOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'color-text', - }, - }, - }, - }, - }, - }, - '#withTableImageCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, - withTableImageCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableImageCellOptions: value, - }, - }, - }, - }, - }, - '#withTableImageCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, - withTableImageCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableImageCellOptions+: value, - }, - }, - }, - }, - }, - TableImageCellOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'image', - }, - }, - }, - }, - }, - }, - '#withTableJsonViewCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, - withTableJsonViewCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableJsonViewCellOptions: value, - }, - }, - }, - }, - }, - '#withTableJsonViewCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, - withTableJsonViewCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableJsonViewCellOptions+: value, - }, - }, - }, - }, - }, - TableJsonViewCellOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'json-view', - }, - }, - }, - }, - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['auto', 'basic', 'color-background', 'color-background-solid', 'color-text', 'custom', 'gauge', 'gradient-gauge', 'image', 'json-view', 'lcd-gauge', 'sparkline'], name: 'value', type: ['string'] }], help: "Internally, this is the \"type\" of cell that's being displayed in the table such as colored text, JSON, gauge, etc. The color-background-solid, gradient-gauge, and lcd-gauge modes are deprecated in favor of new cell subOptions" } }, - withDisplayMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - displayMode: value, - }, - }, - }, - }, - '#withFilterable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withFilterable(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - filterable: value, - }, - }, - }, - }, - '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHidden(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hidden: value, - }, - }, - }, - }, - '#withHideHeader': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Hides any header for a column, usefull for columns that show some static content or buttons.' } }, - withHideHeader(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideHeader: value, - }, - }, - }, - }, - '#withInspect': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withInspect(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - inspect: value, - }, - }, - }, - }, - '#withMinWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMinWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - minWidth: value, - }, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - width: value, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withCellHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the height of the rows' } }, - withCellHeight(value): { - options+: { - cellHeight: value, - }, - }, - '#withFooter': { 'function': { args: [{ default: { countRows: false, reducer: [], show: false }, enums: null, name: 'value', type: ['object'] }], help: 'Controls footer options' } }, - withFooter(value={ countRows: false, reducer: [], show: false }): { - options+: { - footer: value, - }, - }, - '#withFooterMixin': { 'function': { args: [{ default: { countRows: false, reducer: [], show: false }, enums: null, name: 'value', type: ['object'] }], help: 'Controls footer options' } }, - withFooterMixin(value): { - options+: { - footer+: value, - }, - }, - footer+: - { - '#withTableFooterOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Footer options' } }, - withTableFooterOptions(value): { - options+: { - footer+: { - TableFooterOptions: value, - }, - }, - }, - '#withTableFooterOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Footer options' } }, - withTableFooterOptionsMixin(value): { - options+: { - footer+: { - TableFooterOptions+: value, - }, - }, - }, - TableFooterOptions+: - { - '#withCountRows': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withCountRows(value=true): { - options+: { - footer+: { - countRows: value, - }, - }, - }, - '#withEnablePagination': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withEnablePagination(value=true): { - options+: { - footer+: { - enablePagination: value, - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFields(value): { - options+: { - footer+: { - fields: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFieldsMixin(value): { - options+: { - footer+: { - fields+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withReducer(value): { - options+: { - footer+: { - reducer: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withReducerMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withReducerMixin(value): { - options+: { - footer+: { - reducer+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShow(value=true): { - options+: { - footer+: { - show: value, - }, - }, - }, - }, - }, - '#withFrameIndex': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['number'] }], help: 'Represents the index of the selected frame' } }, - withFrameIndex(value=0): { - options+: { - frameIndex: value, - }, - }, - '#withShowHeader': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls whether the panel should show the header' } }, - withShowHeader(value=true): { - options+: { - showHeader: value, - }, - }, - '#withShowTypeIcons': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls whether the header should show icons for the column types' } }, - withShowTypeIcons(value=true): { - options+: { - showTypeIcons: value, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Used to control row sorting' } }, - withSortBy(value): { - options+: { - sortBy: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withSortByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Used to control row sorting' } }, - withSortByMixin(value): { - options+: { - sortBy+: - (if std.isArray(value) - then value - else [value]), - }, - }, - sortBy+: - { - '#': { help: '', name: 'sortBy' }, - '#withDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Flag used to indicate descending sort order' } }, - withDesc(value=true): { - desc: value, - }, - '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the display name of the field to sort by' } }, - withDisplayName(value): { - displayName: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/text.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/text.libsonnet deleted file mode 100644 index 90cdcee77..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/text.libsonnet +++ /dev/null @@ -1,73 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.text', name: 'text' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'text', - }, - }, - options+: - { - '#withCode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCode(value): { - options+: { - code: value, - }, - }, - '#withCodeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCodeMixin(value): { - options+: { - code+: value, - }, - }, - code+: - { - '#withLanguage': { 'function': { args: [{ default: 'plaintext', enums: ['plaintext', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'json'], name: 'value', type: ['string'] }], help: '' } }, - withLanguage(value='plaintext'): { - options+: { - code+: { - language: value, - }, - }, - }, - '#withShowLineNumbers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLineNumbers(value=true): { - options+: { - code+: { - showLineNumbers: value, - }, - }, - }, - '#withShowMiniMap': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowMiniMap(value=true): { - options+: { - code+: { - showMiniMap: value, - }, - }, - }, - }, - '#withContent': { 'function': { args: [{ default: '# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withContent(value='# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)'): { - options+: { - content: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['html', 'markdown', 'code'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - mode: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/timeSeries.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/timeSeries.libsonnet deleted file mode 100644 index b6f2f432f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/timeSeries.libsonnet +++ /dev/null @@ -1,704 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.timeSeries', name: 'timeSeries' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'timeseries', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLineColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineColor: value, - }, - }, - }, - }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLineInterpolation(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineInterpolation: value, - }, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle: value, - }, - }, - }, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: value, - }, - }, - }, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - fill: value, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLineWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls: value, - }, - }, - }, - }, - '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNullsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls+: value, - }, - }, - }, - }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillBelowTo(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillBelowTo: value, - }, - }, - }, - }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillColor: value, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFillOpacity(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointColor: value, - }, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withPointSize(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize: value, - }, - }, - }, - }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointSymbol(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSymbol: value, - }, - }, - }, - }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowPoints(value): { - fieldConfig+: { - defaults+: { - custom+: { - showPoints: value, - }, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: ['integer'] }], help: 'TODO docs' } }, - withBarAlignment(value): { - fieldConfig+: { - defaults+: { - custom+: { - barAlignment: value, - }, - }, - }, - }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarMaxWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - barMaxWidth: value, - }, - }, - }, - }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarWidthFactor(value): { - fieldConfig+: { - defaults+: { - custom+: { - barWidthFactor: value, - }, - }, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStacking(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking: value, - }, - }, - }, - }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStackingMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: value, - }, - }, - }, - }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroup(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - group: value, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withDrawStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - drawStyle: value, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - gradientMode: value, - }, - }, - }, - }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle: value, - }, - }, - }, - }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: value, - }, - }, - }, - }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withTransform(value): { - fieldConfig+: { - defaults+: { - custom+: { - transform: value, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezone(value): { - options+: { - timezone: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezoneMixin(value): { - options+: { - timezone+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/trend.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/trend.libsonnet deleted file mode 100644 index dded13c8b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/trend.libsonnet +++ /dev/null @@ -1,692 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.trend', name: 'trend' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'trend', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLineColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineColor: value, - }, - }, - }, - }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLineInterpolation(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineInterpolation: value, - }, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle: value, - }, - }, - }, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: value, - }, - }, - }, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - fill: value, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLineWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls: value, - }, - }, - }, - }, - '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNullsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls+: value, - }, - }, - }, - }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillBelowTo(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillBelowTo: value, - }, - }, - }, - }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillColor: value, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFillOpacity(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointColor: value, - }, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withPointSize(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize: value, - }, - }, - }, - }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointSymbol(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSymbol: value, - }, - }, - }, - }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowPoints(value): { - fieldConfig+: { - defaults+: { - custom+: { - showPoints: value, - }, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: ['integer'] }], help: 'TODO docs' } }, - withBarAlignment(value): { - fieldConfig+: { - defaults+: { - custom+: { - barAlignment: value, - }, - }, - }, - }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarMaxWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - barMaxWidth: value, - }, - }, - }, - }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarWidthFactor(value): { - fieldConfig+: { - defaults+: { - custom+: { - barWidthFactor: value, - }, - }, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStacking(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking: value, - }, - }, - }, - }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStackingMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: value, - }, - }, - }, - }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroup(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - group: value, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withDrawStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - drawStyle: value, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - gradientMode: value, - }, - }, - }, - }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle: value, - }, - }, - }, - }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: value, - }, - }, - }, - }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withTransform(value): { - fieldConfig+: { - defaults+: { - custom+: { - transform: value, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the x field to use (defaults to first number)' } }, - withXField(value): { - options+: { - xField: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/xyChart.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/xyChart.libsonnet deleted file mode 100644 index 7e235c66a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/panel/xyChart.libsonnet +++ /dev/null @@ -1,500 +0,0 @@ -// This file is generated, do not manually edit. -(import '../../clean/panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.xyChart', name: 'xyChart' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'xychart', - }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withDims': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDims(value): { - options+: { - dims: value, - }, - }, - '#withDimsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDimsMixin(value): { - options+: { - dims+: value, - }, - }, - dims+: - { - '#withExclude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExclude(value): { - options+: { - dims+: { - exclude: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withExcludeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExcludeMixin(value): { - options+: { - dims+: { - exclude+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withFrame(value): { - options+: { - dims+: { - frame: value, - }, - }, - }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withX(value): { - options+: { - dims+: { - x: value, - }, - }, - }, - }, - '#withSeries': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withSeries(value): { - options+: { - series: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withSeriesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withSeriesMixin(value): { - options+: { - series+: - (if std.isArray(value) - then value - else [value]), - }, - }, - series+: - { - '#': { help: '', name: 'series' }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - hideFrom: value, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - hideFrom+: value, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - hideFrom+: { - legend: value, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - hideFrom+: { - tooltip: value, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - hideFrom+: { - viz: value, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - axisCenteredZero: value, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - axisColorMode: value, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - axisGridShow: value, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - axisLabel: value, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - axisPlacement: value, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - axisSoftMax: value, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - axisSoftMin: value, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - axisWidth: value, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - scaleDistribution: value, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - scaleDistribution+: value, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - scaleDistribution+: { - linearThreshold: value, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - scaleDistribution+: { - log: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - scaleDistribution+: { - type: value, - }, - }, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLabel(value): { - label: value, - }, - '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelValue(value): { - labelValue: value, - }, - '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelValueMixin(value): { - labelValue+: value, - }, - labelValue+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - labelValue+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - labelValue+: { - fixed: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - labelValue+: { - mode: value, - }, - }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLineColor(value): { - lineColor: value, - }, - '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLineColorMixin(value): { - lineColor+: value, - }, - lineColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - lineColor+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - lineColor+: { - fixed: value, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - lineStyle: value, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - lineStyle+: value, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - lineStyle+: { - fill: value, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLineWidth(value): { - lineWidth: value, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointColor(value): { - pointColor: value, - }, - '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointColorMixin(value): { - pointColor+: value, - }, - pointColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - pointColor+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - pointColor+: { - fixed: value, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointSize(value): { - pointSize: value, - }, - '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointSizeMixin(value): { - pointSize+: value, - }, - pointSize+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - pointSize+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFixed(value): { - pointSize+: { - fixed: value, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMax(value): { - pointSize+: { - max: value, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMin(value): { - pointSize+: { - min: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - pointSize+: { - mode: value, - }, - }, - }, - '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: ['string'] }], help: '' } }, - withShow(value): { - show: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withX(value): { - x: value, - }, - '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withY(value): { - y: value, - }, - }, - '#withSeriesMapping': { 'function': { args: [{ default: null, enums: ['auto', 'manual'], name: 'value', type: ['string'] }], help: '' } }, - withSeriesMapping(value): { - options+: { - seriesMapping: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/loki.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/loki.libsonnet deleted file mode 100644 index 3cd023327..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/loki.libsonnet +++ /dev/null @@ -1,49 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.loki', name: 'loki' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: ['string'] }], help: '' } }, - withEditorMode(value): { - editorMode: value, - }, - '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The LogQL query.' } }, - withExpr(value): { - expr: value, - }, - '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '@deprecated, now use queryType.' } }, - withInstant(value=true): { - instant: value, - }, - '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Used to override the name of the series.' } }, - withLegendFormat(value): { - legendFormat: value, - }, - '#withMaxLines': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Used to limit the number of log rows returned.' } }, - withMaxLines(value): { - maxLines: value, - }, - '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '@deprecated, now use queryType.' } }, - withRange(value=true): { - range: value, - }, - '#withResolution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Used to scale the interval value.' } }, - withResolution(value): { - resolution: value, - }, -} -+ (import '../../custom/query/loki.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/prometheus.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/prometheus.libsonnet deleted file mode 100644 index a93ca5670..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/prometheus.libsonnet +++ /dev/null @@ -1,53 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.prometheus', name: 'prometheus' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: ['string'] }], help: '' } }, - withEditorMode(value): { - editorMode: value, - }, - '#withExemplar': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Execute an additional query to identify interesting raw samples relevant for the given expr' } }, - withExemplar(value=true): { - exemplar: value, - }, - '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The actual expression/query that will be evaluated by Prometheus' } }, - withExpr(value): { - expr: value, - }, - '#withFormat': { 'function': { args: [{ default: null, enums: ['time_series', 'table', 'heatmap'], name: 'value', type: ['string'] }], help: '' } }, - withFormat(value): { - format: value, - }, - '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Returns only the latest value that Prometheus has scraped for the requested time series' } }, - withInstant(value=true): { - instant: value, - }, - '#withIntervalFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '@deprecated Used to specify how many times to divide max data points by. We use max data points under query options\nSee https://github.com/grafana/grafana/issues/48081' } }, - withIntervalFactor(value): { - intervalFactor: value, - }, - '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Series name override or template. Ex. {{hostname}} will be replaced with label value for hostname' } }, - withLegendFormat(value): { - legendFormat: value, - }, - '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series' } }, - withRange(value=true): { - range: value, - }, -} -+ (import '../../custom/query/prometheus.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/tempo.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/tempo.libsonnet deleted file mode 100644 index ad3b745a2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/clean/query/tempo.libsonnet +++ /dev/null @@ -1,99 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.tempo', name: 'tempo' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFilters(value): { - filters: - (if std.isArray(value) - then value - else [value]), - }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFiltersMixin(value): { - filters+: - (if std.isArray(value) - then value - else [value]), - }, - filters+: - { - '#': { help: '', name: 'filters' }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Uniquely identify the filter, will not be used in the query generation' } }, - withId(value): { - id: value, - }, - '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The operator that connects the tag to the value, for example: =, >, !=, =~' } }, - withOperator(value): { - operator: value, - }, - '#withScope': { 'function': { args: [{ default: null, enums: ['unscoped', 'resource', 'span'], name: 'value', type: ['string'] }], help: 'static fields are pre-set in the UI, dynamic fields are added by the user' } }, - withScope(value): { - scope: value, - }, - '#withTag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The tag for the search filter, for example: .http.status_code, .service.name, status' } }, - withTag(value): { - tag: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'The value for the search filter' } }, - withValue(value): { - value: value, - }, - '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'The value for the search filter' } }, - withValueMixin(value): { - value+: value, - }, - '#withValueType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query' } }, - withValueType(value): { - valueType: value, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Defines the maximum number of traces that are returned from Tempo' } }, - withLimit(value): { - limit: value, - }, - '#withMaxDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, - withMaxDuration(value): { - maxDuration: value, - }, - '#withMinDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, - withMinDuration(value): { - minDuration: value, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TraceQL query or trace ID' } }, - withQuery(value): { - query: value, - }, - '#withSearch': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true' } }, - withSearch(value): { - search: value, - }, - '#withServiceMapQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}' } }, - withServiceMapQuery(value): { - serviceMapQuery: value, - }, - '#withServiceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Query traces by service name' } }, - withServiceName(value): { - serviceName: value, - }, - '#withSpanName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Query traces by span name' } }, - withSpanName(value): { - spanName: value, - }, -} -+ (import '../../custom/query/tempo.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/contactPoint.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/contactPoint.libsonnet deleted file mode 100644 index 4b8bbf0b5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/contactPoint.libsonnet +++ /dev/null @@ -1,12 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#'+:: { - help+: - ||| - - - **NOTE**: The schemas for all different contact points is under development, this means we can't properly express them in Grafonnet yet. The way this works now may change heavily. - |||, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/muteTiming.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/muteTiming.libsonnet deleted file mode 100644 index 4a2efb360..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/muteTiming.libsonnet +++ /dev/null @@ -1,8 +0,0 @@ -{ - '#withTimeIntervals': { ignore: true }, - '#withIntervals': super['#withTimeIntervals'], - withIntervals: super.withTimeIntervals, - '#withTimeIntervalsMixin': { ignore: true }, - '#withIntervalsMixin': super['#withTimeIntervalsMixin'], - withIntervalsMixin: super.withTimeIntervalsMixin, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/notificationPolicy.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/notificationPolicy.libsonnet deleted file mode 100644 index cf9a2b7dc..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/notificationPolicy.libsonnet +++ /dev/null @@ -1,12 +0,0 @@ -{ - '#withReceiver': { ignore: true }, - '#withContactPoint': super['#withReceiver'], - withContactPoint: super.withReceiver, - - '#withRoutes': { ignore: true }, - '#withPolicy': super['#withRoutes'], - withPolicy: super.withRoutes, - '#withRoutesMixin': { ignore: true }, - '#withPolicyMixin': super['#withRoutesMixin'], - withPolicyMixin: super.withRoutesMixin, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/ruleGroup.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/ruleGroup.libsonnet deleted file mode 100644 index 4ed32afb0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/alerting/ruleGroup.libsonnet +++ /dev/null @@ -1,13 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#withTitle': { ignore: true }, - '#withName': super['#withTitle'], - withName: super.withTitle, - rule+: { - '#':: d.package.newSub('rule', ''), - '#withTitle': { ignore: true }, - '#withName': super['#withTitle'], - withName: super.withTitle, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard.libsonnet deleted file mode 100644 index 1478f3d39..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard.libsonnet +++ /dev/null @@ -1,64 +0,0 @@ -local util = import './util/main.libsonnet'; -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#new':: d.func.new( - 'Creates a new dashboard with a title.', - args=[d.arg('title', d.T.string)] - ), - new(title): - self.withTitle(title) - + self.withSchemaVersion() - + self.withTimezone('utc') - + self.time.withFrom('now-6h') - + self.time.withTo('now'), - - '#withPanels':: d.func.new( - '`withPanels` sets the panels on a dashboard authoratively. It automatically adds IDs to the panels, this can be disabled with `setPanelIDs=false`.', - args=[ - d.arg('panels', d.T.array), - d.arg('setPanelIDs', d.T.bool, default=true), - ] - ), - withPanels(panels, setPanelIDs=true): { - _panels:: if std.isArray(panels) then panels else [panels], - panels: - if setPanelIDs - then util.panel.setPanelIDs(self._panels) - else self._panels, - }, - '#withPanelsMixin':: d.func.new( - '`withPanelsMixin` adds more panels to a dashboard.', - args=[ - d.arg('panels', d.T.array), - d.arg('setPanelIDs', d.T.bool, default=true), - ] - ), - withPanelsMixin(panels, setPanelIDs=true): { - _panels+:: if std.isArray(panels) then panels else [panels], - panels: - if setPanelIDs - then util.panel.setPanelIDs(self._panels) - else self._panels, - }, - - graphTooltip+: { - // 0 - Default - // 1 - Shared crosshair - // 2 - Shared tooltip - '#withSharedCrosshair':: d.func.new( - 'Share crosshair on all panels.', - ), - withSharedCrosshair(): - { graphTooltip: 1 }, - - '#withSharedTooltip':: d.func.new( - 'Share crosshair and tooltip on all panels.', - ), - withSharedTooltip(): - { graphTooltip: 2 }, - }, -} -+ (import './dashboard/annotation.libsonnet') -+ (import './dashboard/link.libsonnet') -+ (import './dashboard/variable.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/annotation.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/annotation.libsonnet deleted file mode 100644 index 02892ab33..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/annotation.libsonnet +++ /dev/null @@ -1,36 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#annotation':: {}, - - '#withAnnotations': - d.func.new( - ||| - `withAnnotations` adds an array of annotations to a dashboard. - - This function appends passed data to existing values - |||, - args=[d.arg('value', d.T.array)] - ), - withAnnotations(value): super.annotation.withList(value), - - '#withAnnotationsMixin': - d.func.new( - ||| - `withAnnotationsMixin` adds an array of annotations to a dashboard. - - This function appends passed data to existing values - |||, - args=[d.arg('value', d.T.array)] - ), - withAnnotationsMixin(value): super.annotation.withListMixin(value), - - annotation: - super.annotation.list - + { - '#':: d.package.newSub( - 'annotation', - '', - ), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/link.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/link.libsonnet deleted file mode 100644 index eb9b2fe9a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/link.libsonnet +++ /dev/null @@ -1,90 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#withLinks':: d.func.new( - ||| - Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. - - `withLinks` takes an array of [link objects](./link.md). - - The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. - - Example: - - ```jsonnet - local g = import 'g.libsonnet'; - local link = g.dashboard.link; - - g.dashboard.new('Title dashboard') - + g.dashboard.withLinks([ - link.link.new('My title', 'https://wikipedia.org/'), - ]) - ``` - |||, - [d.arg('value', d.T.array)], - ), - '#withLinksMixin':: self['#withLinks'], - - link+: { - '#':: d.package.newSub( - 'link', - ||| - Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. - - The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. - - Example: - - ```jsonnet - local g = import 'g.libsonnet'; - local link = g.dashboard.link; - - g.dashboard.new('Title dashboard') - + g.dashboard.withLinks([ - link.link.new('My title', 'https://wikipedia.org/'), - ]) - ``` - |||, - ), - - dashboards+: { - '#new':: d.func.new( - ||| - Create links to dashboards based on `tags`. - |||, - args=[ - d.arg('title', d.T.string), - d.arg('tags', d.T.array), - ] - ), - new(title, tags): - self.withTitle(title) - + self.withType('dashboards') - + self.withTags(tags), - - '#withTitle':: {}, - '#withType':: {}, - '#withTags':: {}, - }, - - link+: { - '#new':: d.func.new( - ||| - Create link to an arbitrary URL. - |||, - args=[ - d.arg('title', d.T.string), - d.arg('url', d.T.string), - ] - ), - new(title, url): - self.withTitle(title) - + self.withType('link') - + self.withUrl(url), - - '#withTitle':: {}, - '#withType':: {}, - '#withUrl':: {}, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/variable.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/variable.libsonnet deleted file mode 100644 index 91ca33f38..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/dashboard/variable.libsonnet +++ /dev/null @@ -1,516 +0,0 @@ -local util = import '../util/main.libsonnet'; -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - local var = super.variable.list, - - '#withVariables': - d.func.new( - ||| - `withVariables` adds an array of variables to a dashboard - |||, - args=[d.arg('value', d.T.array)] - ), - withVariables(value): super.variable.withList(value), - - '#withVariablesMixin': - d.func.new( - ||| - `withVariablesMixin` adds an array of variables to a dashboard. - - This function appends passed data to existing values - |||, - args=[d.arg('value', d.T.array)] - ), - withVariablesMixin(value): super.variable.withListMixin(value), - - variable: { - '#':: d.package.newSub( - 'variable', - ||| - Example usage: - - ```jsonnet - local g = import 'g.libsonnet'; - local var = g.dashboard.variable; - - local customVar = - var.custom.new( - 'myOptions', - values=['a', 'b', 'c', 'd'], - ) - + var.custom.generalOptions.withDescription( - 'This is a variable for my custom options.' - ) - + var.custom.selectionOptions.withMulti(); - - local queryVar = - var.query.new('queryOptions') - + var.query.queryTypes.withLabelValues( - 'up', - 'instance', - ) - + var.query.withDatasource( - type='prometheus', - uid='mimir-prod', - ) - + var.query.selectionOptions.withIncludeAll(); - - - g.dashboard.new('my dashboard') - + g.dashboard.withVariables([ - customVar, - queryVar, - ]) - ``` - |||, - ), - - local generalOptions = { - generalOptions+: - { - - '#withName': var['#withName'], - withName: var.withName, - '#withLabel': var['#withLabel'], - withLabel: var.withLabel, - '#withDescription': var['#withDescription'], - withDescription: var.withDescription, - - showOnDashboard: { - '#withLabelAndValue':: d.func.new(''), - withLabelAndValue(): var.withHide(0), - '#withValueOnly':: d.func.new(''), - withValueOnly(): var.withHide(1), - '#withNothing':: d.func.new(''), - withNothing(): var.withHide(2), - }, - - '#withCurrent':: d.func.new( - ||| - `withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - |||, - args=[ - d.arg('key', d.T.any), - d.arg('value', d.T.any, default=''), - ] - ), - withCurrent(key, value=key): { - local multi(v) = - if std.get(self, 'multi', false) - && !std.isArray(v) - then [v] - else v, - current: { - selected: false, - text: multi(key), - value: multi(value), - }, - }, - }, - }, - - local selectionOptions = - { - selectionOptions: - { - '#withMulti':: d.func.new( - 'Enable selecting multiple values.', - args=[ - d.arg('value', d.T.boolean, default=true), - ] - ), - withMulti(value=true): { - multi: value, - }, - - '#withIncludeAll':: d.func.new( - ||| - `withIncludeAll` enables an option to include all variables. - - Optionally you can set a `customAllValue`. - |||, - args=[ - d.arg('value', d.T.boolean, default=true), - d.arg('customAllValue', d.T.string, default=null), - ] - ), - withIncludeAll(value=true, customAllValue=null): { - includeAll: value, - [if customAllValue != null then 'allValue']: customAllValue, - }, - }, - }, - - query: - generalOptions - + selectionOptions - + { - '#new':: d.func.new( - ||| - Create a query template variable. - - `query` argument is optional, this can also be set with `query.queryTypes`. - |||, - args=[ - d.arg('name', d.T.string), - d.arg('query', d.T.string, default=''), - ] - ), - new(name, query=''): - var.withName(name) - + var.withType('query') - + var.withQuery(query), - - '#withDatasource':: d.func.new( - 'Select a datasource for the variable template query.', - args=[ - d.arg('type', d.T.string), - d.arg('uid', d.T.string), - ] - ), - withDatasource(type, uid): - var.datasource.withType(type) - + var.datasource.withUid(uid), - - '#withDatasourceFromVariable':: d.func.new( - 'Select the datasource from another template variable.', - args=[ - d.arg('variable', d.T.object), - ] - ), - withDatasourceFromVariable(variable): - if variable.type == 'datasource' - then self.withDatasource(variable.query, '${%s}' % variable.name) - else error "`variable` not of type 'datasource'", - - '#withRegex':: d.func.new( - ||| - `withRegex` can extract part of a series name or metric node segment. Named - capture groups can be used to separate the display text and value - ([see examples](https://grafana.com/docs/grafana/latest/variables/filter-variables-with-regex#filter-and-modify-using-named-text-and-value-capture-groups)). - |||, - args=[ - d.arg('value', d.T.string), - ] - ), - withRegex(value): { - regex: value, - }, - - '#withSort':: d.func.new( - ||| - Choose how to sort the values in the dropdown. - - This can be called as `withSort() to use the integer values for each - option. If `i==0` then it will be ignored and the other arguments will take - precedence. - - The numerical values are: - - - 1 - Alphabetical (asc) - - 2 - Alphabetical (desc) - - 3 - Numerical (asc) - - 4 - Numerical (desc) - - 5 - Alphabetical (case-insensitive, asc) - - 6 - Alphabetical (case-insensitive, desc) - |||, - args=[ - d.arg('i', d.T.number, default=0), - d.arg('type', d.T.string, default='alphabetical'), - d.arg('asc', d.T.boolean, default=true), - d.arg('caseInsensitive', d.T.boolean, default=false), - ], - ), - withSort(i=0, type='alphabetical', asc=true, caseInsensitive=false): - if i != 0 // provide fallback to numerical value - then { sort: i } - else - { - local mapping = { - alphabetical: - if !caseInsensitive - then - if asc - then 1 - else 2 - else - if asc - then 5 - else 6, - numerical: - if asc - then 3 - else 4, - }, - sort: mapping[type], - }, - - // TODO: Expand with Query types to match GUI - queryTypes: { - '#withLabelValues':: d.func.new( - 'Construct a Prometheus template variable using `label_values()`.', - args=[ - d.arg('label', d.T.string), - d.arg('metric', d.T.string, default=''), - ] - ), - withLabelValues(label, metric=''): - if metric == '' - then var.withQuery('label_values(%s)' % label) - else var.withQuery('label_values(%s, %s)' % [metric, label]), - }, - - // Deliberately undocumented, use `refresh` below - withRefresh(value): { - // 1 - On dashboard load - // 2 - On time range chagne - refresh: value, - }, - - local withRefresh = self.withRefresh, - refresh+: { - '#onLoad':: d.func.new( - 'Refresh label values on dashboard load.' - ), - onLoad(): withRefresh(1), - - '#onTime':: d.func.new( - 'Refresh label values on time range change.' - ), - onTime(): withRefresh(2), - }, - }, - - custom: - generalOptions - + selectionOptions - + { - '#new':: d.func.new( - ||| - `new` creates a custom template variable. - - The `values` array accepts an object with key/value keys, if it's not an object - then it will be added as a string. - - Example: - ``` - [ - { key: 'mykey', value: 'myvalue' }, - 'myvalue', - 12, - ] - |||, - args=[ - d.arg('name', d.T.string), - d.arg('values', d.T.array), - ] - ), - new(name, values): - var.withName(name) - + var.withType('custom') - + { - // Make values array available in jsonnet - values:: [ - if !std.isObject(item) - then { - key: std.toString(item), - value: std.toString(item), - } - else item - for item in values - ], - - // Render query from values array - query: - std.join(',', [ - std.join(' : ', [item.key, item.value]) - for item in self.values - ]), - - // Set current/options - current: - util.dashboard.getCurrentFromValues( - self.values, - std.get(self, 'multi', false) - ), - options: util.dashboard.getOptionsFromValues(self.values), - }, - - withQuery(query): { - values:: util.dashboard.parseCustomQuery(query), - query: query, - }, - }, - - textbox: - generalOptions - + { - '#new':: d.func.new( - '`new` creates a textbox template variable.', - args=[ - d.arg('name', d.T.string), - d.arg('default', d.T.string, default=''), - ] - ), - new(name, default=''): - var.withName(name) - + var.withType('textbox') - + { - local this = self, - default:: default, - query: self.default, - - // Set current/options - keyvaluedict:: [{ key: this.query, value: this.query }], - current: - util.dashboard.getCurrentFromValues( - self.keyvaluedict, - std.get(self, 'multi', false) - ), - options: util.dashboard.getOptionsFromValues(self.keyvaluedict), - }, - }, - - constant: - generalOptions - + { - '#new':: d.func.new( - '`new` creates a hidden constant template variable.', - args=[ - d.arg('name', d.T.string), - d.arg('value', d.T.string), - ] - ), - new(name, value=''): - var.withName(name) - + var.withType('constant') - + var.withHide(2) - + var.withQuery(value), - }, - - datasource: - generalOptions - + selectionOptions - + { - '#new':: d.func.new( - '`new` creates a datasource template variable.', - args=[ - d.arg('name', d.T.string), - d.arg('type', d.T.string), - ] - ), - new(name, type): - var.withName(name) - + var.withType('datasource') - + var.withQuery(type), - - '#withRegex':: d.func.new( - ||| - `withRegex` filter for which data source instances to choose from in the - variable value list. Example: `/^prod/` - |||, - args=[ - d.arg('value', d.T.string), - ] - ), - withRegex(value): { - regex: value, - }, - }, - - interval: - generalOptions - + { - '#new':: d.func.new( - '`new` creates an interval template variable.', - args=[ - d.arg('name', d.T.string), - d.arg('values', d.T.array), - ] - ), - new(name, values): - var.withName(name) - + var.withType('interval') - + { - // Make values array available in jsonnet - values:: values, - // Render query from values array - query: std.join(',', self.values), - - // Set current/options - keyvaluedict:: [ - { - key: item, - value: item, - } - for item in values - ], - current: - util.dashboard.getCurrentFromValues( - self.keyvaluedict, - std.get(self, 'multi', false) - ), - options: util.dashboard.getOptionsFromValues(self.keyvaluedict), - }, - - - '#withAutoOption':: d.func.new( - ||| - `withAutoOption` adds an options to dynamically calculate interval by dividing - time range by the count specified. - - `minInterval' has to be either unit-less or end with one of the following units: - "y, M, w, d, h, m, s, ms". - |||, - args=[ - d.arg('count', d.T.number), - d.arg('minInterval', d.T.string), - ] - ), - withAutoOption(count=30, minInterval='10s'): { - local this = self, - - auto: true, - auto_count: count, - auto_min: minInterval, - - // Add auto item to current/options - keyvaluedict:: - [{ key: 'auto', value: '$__auto_interval_' + this.name }] - + super.keyvaluedict, - }, - }, - - adhoc: - generalOptions - + { - '#new':: d.func.new( - '`new` creates an adhoc template variable for datasource with `type` and `uid`.', - args=[ - d.arg('name', d.T.string), - d.arg('type', d.T.string), - d.arg('uid', d.T.string), - ] - ), - new(name, type, uid): - var.withName(name) - + var.withType('adhoc') - + var.datasource.withType(type) - + var.datasource.withUid(uid), - - '#newFromDatasourceVariable':: d.func.new( - 'Same as `new` but selecting the datasource from another template variable.', - args=[ - d.arg('name', d.T.string), - d.arg('variable', d.T.object), - ] - ), - newFromDatasourceVariable(name, variable): - if variable.type == 'datasource' - then self.new(name, variable.query, '${%s}' % variable.name) - else error "`variable` not of type 'datasource'", - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/panel.libsonnet deleted file mode 100644 index 240a044ca..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/panel.libsonnet +++ /dev/null @@ -1,171 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -// match name/title to reduce diff in docs -local panelNames = { - alertgroups: 'alertGroups', - annolist: 'annotationsList', - barchart: 'barChart', - bargauge: 'barGauge', - dashlist: 'dashboardList', - nodeGraph: 'nodeGraph', - piechart: 'pieChart', - 'state-timeline': 'stateTimeline', - 'status-history': 'statusHistory', - timeseries: 'timeSeries', - xychart: 'xyChart', -}; - -local getPanelName(type) = - std.get(panelNames, type, type); - -{ - '#new':: d.func.new( - 'Creates a new %s panel with a title.' % getPanelName(self.panelOptions.withType().type), - args=[d.arg('title', d.T.string)] - ), - new(title): - self.panelOptions.withTitle(title) - + self.panelOptions.withType() - + self.panelOptions.withPluginVersion() - // Default to Mixed datasource so panels can be datasource agnostic, this - // requires query targets to explicitly set datasource, which is a lot more - // interesting from a reusability standpoint. - + self.queryOptions.withDatasource('datasource', '-- Mixed --'), - - // Backwards compatible entries, ignored in docs - link+: self.panelOptions.link + { '#':: { ignore: true } }, - thresholdStep+: self.standardOptions.threshold.step + { '#':: { ignore: true } }, - transformation+: self.queryOptions.transformation + { '#':: { ignore: true } }, - valueMapping+: self.standardOptions.mapping + { '#':: { ignore: true } }, - fieldOverride+: self.standardOptions.override + { '#':: { ignore: true } }, - - '#gridPos': {}, // use withGridPos instead, a bit more concise. - local gridPos = self.gridPos, - panelOptions+: { - '#withPluginVersion': {}, - - '#withGridPos': d.func.new( - ||| - `withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - - All arguments default to `null`, which means they will remain unchanged or unset. - |||, - args=[ - d.arg('h', d.T.number, default='null'), - d.arg('w', d.T.number, default='null'), - d.arg('x', d.T.number, default='null'), - d.arg('y', d.T.number, default='null'), - ] - ), - withGridPos(h=null, w=null, x=null, y=null): - (if h != null then gridPos.withH(h) else {}) - + (if w != null then gridPos.withW(w) else {}) - + (if x != null then gridPos.withX(x) else {}) - + (if y != null then gridPos.withY(y) else {}), - }, - - '#datasource':: {}, // use withDatasource instead, bit more concise - local datasource = self.datasource, - queryOptions+: { - '#withDatasource':: d.func.new( - ||| - `withDatasource` sets the datasource for all queries in a panel. - - The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - |||, - args=[ - d.arg('type', d.T.string), - d.arg('uid', d.T.string), - ] - ), - withDatasource(type, uid): - datasource.withType(type) - + datasource.withUid(uid), - }, - - standardOptions+: { - threshold+: { step+: { '#':: d.package.newSub('threshold.step', '') } }, - - local overrides = super.override, - local commonOverrideFunctions = { - '#new':: d.fn( - '`new` creates a new override of type `%s`.' % self.type, - args=[ - d.arg('value', d.T.string), - ] - ), - new(value): - overrides.matcher.withId(self.type) - + overrides.matcher.withOptions(value), - - '#withProperty':: d.fn( - ||| - `withProperty` adds a property that needs to be overridden. This function can - be called multiple time, adding more properties. - |||, - args=[ - d.arg('id', d.T.string), - d.arg('value', d.T.any), - ] - ), - withProperty(id, value): - overrides.withPropertiesMixin([ - overrides.properties.withId(id) - + overrides.properties.withValue(value), - ]), - - '#withPropertiesFromOptions':: d.fn( - ||| - `withPropertiesFromOptions` takes an object with properties that need to be - overridden. See example code above. - |||, - args=[ - d.arg('options', d.T.object), - ] - ), - withPropertiesFromOptions(options): - local infunc(input, path=[]) = - std.foldl( - function(acc, p) - acc + ( - if p == 'custom' - then infunc(input[p], path=path + [p]) - else - overrides.withPropertiesMixin([ - overrides.properties.withId(std.join('.', path + [p])) - + overrides.properties.withValue(input[p]), - ]) - ), - std.objectFields(input), - {} - ); - infunc(options.fieldConfig.defaults), - }, - - override: - { - '#':: d.package.newSub( - 'override', - ||| - Overrides allow you to customize visualization settings for specific fields or - series. This is accomplished by adding an override rule that targets - a particular set of fields and that can each define multiple options. - - ```jsonnet - override.byType.new('number') - + override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') - ) - ``` - ||| - ), - byName: commonOverrideFunctions + { type:: 'byName' }, - byRegexp: commonOverrideFunctions + { type:: 'byRegexp' }, - byType: commonOverrideFunctions + { type:: 'byType' }, - byQuery: commonOverrideFunctions + { type:: 'byFrameRefID' }, - // TODO: byValue takes more complex `options` than string - byValue: commonOverrideFunctions + { type:: 'byValue' }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/loki.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/loki.libsonnet deleted file mode 100644 index 9c19f8351..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/loki.libsonnet +++ /dev/null @@ -1,27 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#new':: d.func.new( - 'Creates a new loki query target for panels.', - args=[ - d.arg('datasource', d.T.string), - d.arg('expr', d.T.string), - ] - ), - new(datasource, expr): - self.withDatasource(datasource) - + self.withExpr(expr), - - '#withDatasource':: d.func.new( - 'Set the datasource for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withDatasource(value): { - datasource+: { - type: 'loki', - uid: value, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/prometheus.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/prometheus.libsonnet deleted file mode 100644 index 3abe22128..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/prometheus.libsonnet +++ /dev/null @@ -1,47 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#new':: d.func.new( - 'Creates a new prometheus query target for panels.', - args=[ - d.arg('datasource', d.T.string), - d.arg('expr', d.T.string), - ] - ), - new(datasource, expr): - self.withDatasource(datasource) - + self.withExpr(expr), - - '#withIntervalFactor':: d.func.new( - 'Set the interval factor for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withIntervalFactor(value): { - intervalFactor: value, - }, - - '#withLegendFormat':: d.func.new( - 'Set the legend format for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withLegendFormat(value): { - legendFormat: value, - }, - - '#withDatasource':: d.func.new( - 'Set the datasource for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withDatasource(value): { - datasource+: { - type: 'prometheus', - uid: value, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/tempo.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/tempo.libsonnet deleted file mode 100644 index debcb73aa..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/query/tempo.libsonnet +++ /dev/null @@ -1,29 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#new':: d.func.new( - 'Creates a new tempo query target for panels.', - args=[ - d.arg('datasource', d.T.string), - d.arg('query', d.T.string), - d.arg('filters', d.T.array), - ] - ), - new(datasource, query, filters): - self.withDatasource(datasource) - + self.withQuery(query) - + self.withFilters(filters), - - '#withDatasource':: d.func.new( - 'Set the datasource for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withDatasource(value): { - datasource+: { - type: 'tempo', - uid: value, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/row.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/row.libsonnet deleted file mode 100644 index 049537e23..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/row.libsonnet +++ /dev/null @@ -1,26 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#new':: d.func.new( - 'Creates a new row panel with a title.', - args=[d.arg('title', d.T.string)] - ), - new(title): - self.withTitle(title) - + self.withType() - + self.withCollapsed(false) - + self.gridPos.withX(0) - + self.gridPos.withH(1) - + self.gridPos.withW(24), - - '#gridPos':: {}, // use withGridPos instead - '#withGridPos':: d.func.new( - '`withGridPos` sets the Y-axis on a row panel. x, width and height are fixed values.', - args=[d.arg('y', d.T.number)] - ), - withGridPos(y): - self.gridPos.withX(0) - + self.gridPos.withY(y) - + self.gridPos.withH(1) - + self.gridPos.withW(24), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/dashboard.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/dashboard.libsonnet deleted file mode 100644 index da7b2c8d0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/dashboard.libsonnet +++ /dev/null @@ -1,55 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; -local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet'; - -{ - local root = self, - - '#getOptionsForCustomQuery':: d.func.new( - ||| - `getOptionsForCustomQuery` provides values for the `options` and `current` fields. - These are required for template variables of type 'custom'but do not automatically - get populated by Grafana when importing a dashboard from JSON. - - This is a bit of a hack and should always be called on functions that set `type` on - a template variable. Ideally Grafana populates these fields from the `query` value - but this provides a backwards compatible solution. - |||, - args=[d.arg('query', d.T.string)], - ), - getOptionsForCustomQuery(query, multi): { - local values = root.parseCustomQuery(query), - current: root.getCurrentFromValues(values, multi), - options: root.getOptionsFromValues(values), - }, - - getCurrentFromValues(values, multi): { - selected: false, - text: if multi then [values[0].key] else values[0].key, - value: if multi then [values[0].value] else values[0].value, - }, - - getOptionsFromValues(values): - std.mapWithIndex( - function(i, item) { - selected: i == 0, - text: item.key, - value: item.value, - }, - values - ), - - parseCustomQuery(query): - std.map( - function(v) - // Split items into key:value pairs - local split = std.splitLimit(v, ' : ', 1); - { - key: std.stripChars(split[0], ' '), - value: - if std.length(split) == 2 - then std.stripChars(split[1], ' ') - else self.key, - }, - xtd.string.splitEscape(query, ',') // Split query by comma, unless the comma is escaped - ), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/grid.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/grid.libsonnet deleted file mode 100644 index 90a7ec8b7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/grid.libsonnet +++ /dev/null @@ -1,173 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; -local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet'; - -local panelUtil = import './panel.libsonnet'; - -{ - local root = self, - - local gridWidth = 24, - - '#makeGrid':: d.func.new( - ||| - `makeGrid` returns an array of `panels` organized in a grid with equal `panelWidth` - and `panelHeight`. Row panels are used as "linebreaks", if a Row panel is collapsed, - then all panels below it will be folded into the row. - - This function will use the full grid of 24 columns, setting `panelWidth` to a value - that can divide 24 into equal parts will fill up the page nicely. (1, 2, 3, 4, 6, 8, 12) - Other value for `panelWidth` will leave a gap on the far right. - - Optional `startY` can be provided to place generated grid above or below existing panels. - |||, - args=[ - d.arg('panels', d.T.array), - d.arg('panelWidth', d.T.number), - d.arg('panelHeight', d.T.number), - d.arg('startY', d.T.number), - ], - ), - makeGrid(panels, panelWidth=8, panelHeight=8, startY=0): - local sanitizePanels(ps) = std.map( - function(p) - local sanePanel = panelUtil.sanitizePanel(p); - ( - if p.type == 'row' - then sanePanel + { - panels: sanitizePanels(sanePanel.panels), - } - else sanePanel + { - gridPos+: { - h: panelHeight, - w: panelWidth, - }, - } - ), - ps - ); - - local sanitizedPanels = sanitizePanels(panels); - - local grouped = panelUtil.groupPanelsInRows(sanitizedPanels); - - local panelsBeforeRows = panelUtil.getPanelsBeforeNextRow(grouped); - local rowPanels = - std.filter( - function(p) p.type == 'row', - grouped - ); - - local CalculateXforPanel(index, panel) = - local panelsPerRow = std.floor(gridWidth / panelWidth); - local col = std.mod(index, panelsPerRow); - panel + { gridPos+: { x: panelWidth * col } }; - - local panelsBeforeRowsWithX = std.mapWithIndex(CalculateXforPanel, panelsBeforeRows); - - local rowPanelsWithX = - std.map( - function(row) - row + { panels: std.mapWithIndex(CalculateXforPanel, row.panels) }, - rowPanels - ); - - local uncollapsed = panelUtil.resolveCollapsedFlagOnRows(panelsBeforeRowsWithX + rowPanelsWithX); - - local normalized = panelUtil.normalizeY(uncollapsed); - - std.map(function(p) p + { gridPos+: { y+: startY } }, normalized), - - '#wrapPanels':: d.func.new( - ||| - `wrapPanels` returns an array of `panels` organized in a grid, wrapping up to next 'row' if total width exceeds full grid of 24 columns. - 'panelHeight' and 'panelWidth' are used unless panels already have height and width defined. - |||, - args=[ - d.arg('panels', d.T.array), - d.arg('panelWidth', d.T.number), - d.arg('panelHeight', d.T.number), - d.arg('startY', d.T.number), - ], - ), - wrapPanels(panels, panelWidth=8, panelHeight=8, startY=0): - std.foldl( - function(acc, panel) - if panel.type == 'row' - then - // when type=row, start new row immediatly and shift Y of new row by max height recorded - acc + { - panels+: [ - panel + { - gridPos+: - { - x: acc.cursor.x, - y: acc.cursor.y + acc.cursor.maxH, - w: 0, - h: 1, - }, - }, - ], - cursor:: { - x: 0, - y: acc.cursor.y + acc.cursor.maxH + 1, - maxH: 0, - }, - } - else - // handle regular panel - local gridPos = std.get(panel, 'gridPos', {}); - local width = std.get(gridPos, 'w', panelWidth); - local height = std.get(gridPos, 'h', panelHeight); - if acc.cursor.x + width > gridWidth - then - // start new row as width exceeds gridWidth - acc + { - panels+: [ - panel + { - gridPos+: - { - x: 0, - y: acc.cursor.y + height, - w: width, - h: height, - }, - }, - ], - cursor+:: { - x: 0 + width, - y: acc.cursor.y + height, - maxH: if height > super.maxH then height else super.maxH, - }, - } - else - // enough width, place panel on current row - acc + { - panels+: [ - panel + { - gridPos+: - { - x: acc.cursor.x, - y: acc.cursor.y, - w: width, - h: height, - }, - }, - ], - cursor+:: { - x: acc.cursor.x + width, - y: acc.cursor.y, - maxH: if height > super.maxH then height else super.maxH, - }, - }, - panels, - // Initial value for acc - { - panels: [], - cursor:: { - x: 0, - y: startY, - maxH: 0, // max height of current 'row' - }, - } - ).panels, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/main.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/main.libsonnet deleted file mode 100644 index 78fe95fc2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/main.libsonnet +++ /dev/null @@ -1,9 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#': d.package.newSub('util', 'Helper functions that work well with Grafonnet.'), - dashboard: (import './dashboard.libsonnet'), - grid: (import './grid.libsonnet'), - panel: (import './panel.libsonnet'), - string: (import './string.libsonnet'), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/panel.libsonnet deleted file mode 100644 index 8d81cdab3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/panel.libsonnet +++ /dev/null @@ -1,321 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; -local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet'; - -{ - local this = self, - - // used in ../dashboard.libsonnet - '#setPanelIDs':: d.func.new( - ||| - `setPanelIDs` ensures that all `panels` have a unique ID, this function is used in `dashboard.withPanels` and `dashboard.withPanelsMixin` to provide a consistent experience. - - `overrideExistingIDs` can be set to not replace existing IDs, consider validating the IDs with `validatePanelIDs()` to ensure there are no duplicate IDs. - |||, - args=[ - d.arg('panels', d.T.array), - d.arg('overrideExistingIDs', d.T.bool, default=true), - ] - ), - setPanelIDs(panels, overrideExistingIDs=true): - local infunc(panels, start=1) = - std.foldl( - function(acc, panel) - acc + { - index: // Track the index to ensure no duplicates exist. - acc.index - + 1 - + (if panel.type == 'row' - && 'panels' in panel - then std.length(panel.panels) - else 0), - - panels+: [ - panel - + ( - if overrideExistingIDs - || std.get(panel, 'id', null) == null - then { id: acc.index } - else {} - ) - + ( - if panel.type == 'row' - && 'panels' in panel - then { - panels: - infunc( - panel.panels, - acc.index + 1 - ), - } - else {} - ), - ], - }, - panels, - { index: start, panels: [] } - ).panels; - infunc(panels), - - '#getPanelIDs':: d.func.new( - ||| - `getPanelIDs` returns an array with all panel IDs including IDs from panels in rows. - |||, - args=[ - d.arg('panels', d.T.array), - ] - ), - getPanelIDs(panels): - std.flattenArrays( - std.map( - function(panel) - [panel.id] - + (if panel.type == 'row' - then this.getPanelIDs(std.get(panel, 'panels', [])) - else []), - panels - ) - ), - - '#validatePanelIDs':: d.func.new( - ||| - `validatePanelIDs` validates returns `false` if there are duplicate panel IDs in `panels`. - |||, - args=[ - d.arg('panels', d.T.array), - ] - ), - validatePanelIDs(panels): - local ids = this.getPanelIDs(panels); - std.set(ids) == std.sort(ids), - - '#sanitizePanel':: d.func.new( - ||| - `sanitizePanel` ensures the panel has a valid `gridPos` and row panels have `collapsed` and `panels`. This function is recursively applied to panels inside row panels. - - The default values for x,y,h,w are only applied if not already set. - |||, - [ - d.arg('panel', d.T.object), - d.arg('defaultX', d.T.number, default=0), - d.arg('defaultY', d.T.number, default=0), - d.arg('defaultHeight', d.T.number, default=8), - d.arg('defaultWidth', d.T.number, default=8), - ] - ), - sanitizePanel(panel, defaultX=0, defaultY=0, defaultHeight=8, defaultWidth=8): - local infunc(panel) = - panel - + ( - local gridPos = std.get(panel, 'gridPos', {}); - if panel.type == 'row' - then { - collapsed: std.get(panel, 'collapsed', false), - panels: std.map(infunc, std.get(panel, 'panels', [])), - gridPos: { // x, h, w are fixed - x: 0, - y: std.get(gridPos, 'y', defaultY), - h: 1, - w: 24, - }, - } - else { - gridPos: { - x: std.get(gridPos, 'x', defaultX), - y: std.get(gridPos, 'y', defaultY), - h: std.get(gridPos, 'h', defaultHeight), - w: std.get(gridPos, 'w', defaultWidth), - }, - } - ); - infunc(panel), - - '#sortPanelsByXY':: d.func.new( - ||| - `sortPanelsByXY` applies a simple sorting algorithm, first by x then again by y. This does not take width and height into account. - |||, - [ - d.arg('panels', d.T.array), - ] - ), - sortPanelsByXY(panels): - std.sort( - std.sort( - panels, - function(panel) - panel.gridPos.x - ), - function(panel) - panel.gridPos.y - ), - - '#sortPanelsInRow':: d.func.new( - ||| - `sortPanelsInRow` applies `sortPanelsByXY` on the panels in a rowPanel. - |||, - [ - d.arg('rowPanel', d.T.object), - ] - ), - sortPanelsInRow(rowPanel): - rowPanel + { panels: this.sortPanelsByXY(rowPanel.panels) }, - - '#groupPanelsInRows':: d.func.new( - ||| - `groupPanelsInRows` ensures that panels that come after a row panel in an array are added to the `row.panels` attribute. This can be useful to apply intermediate functions to only the panels that belong to a row. Finally the panel array should get processed by `resolveCollapsedFlagOnRows` to "unfold" the rows that are not collapsed into the main array. - |||, - [ - d.arg('panels', d.T.array), - ] - ), - groupPanelsInRows(panels): - // Add panels that come after a row to row.panels - local grouped = - xtd.array.filterMapWithIndex( - function(i, p) p.type == 'row', - function(i, p) - p + { - panels+: - this.getPanelsBeforeNextRow(panels[i + 1:]), - }, - panels, - ); - - // Get panels that come before the rowGroups - local panelsBeforeRowGroups = this.getPanelsBeforeNextRow(panels); - - panelsBeforeRowGroups + grouped, - - '#getPanelsBeforeNextRow':: d.func.new( - ||| - `getPanelsBeforeNextRow` returns all panels in an array up until a row has been found. Used in `groupPanelsInRows`. - |||, - [ - d.arg('panels', d.T.array), - ] - ), - getPanelsBeforeNextRow(panels): - local rowIndexes = - xtd.array.filterMapWithIndex( - function(i, p) p.type == 'row', - function(i, p) i, - panels, - ); - if std.length(rowIndexes) != 0 - then panels[0:rowIndexes[0]] - else panels[0:], // if no row panels found, return all remaining panels - - '#resolveCollapsedFlagOnRows':: d.func.new( - ||| - `resolveCollapsedFlagOnRows` should be applied to the final panel array to "unfold" the rows that are not collapsed into the main array. - |||, - [ - d.arg('panels', d.T.array), - ] - ), - resolveCollapsedFlagOnRows(panels): - std.foldl( - function(acc, panel) - acc + ( - if panel.type == 'row' - && !panel.collapsed - then // If not collapsed, then move panels to main array below the row panel - [panel + { panels: [] }] - + panel.panels - else [panel] - ), - panels, - [], - ), - - '#normalizeY':: d.func.new( - ||| - `normalizeY` applies negative gravity on the inverted Y axis. This mimics the behavior of Grafana: when a panel is created without panel above it, then it'll float upward. - - This is strictly not required as Grafana will do this on dashboard load, however it might be helpful when used when calculating the correct `gridPos`. - |||, - [ - d.arg('panels', d.T.array), - ] - ), - normalizeY(panels): - std.foldl( - function(acc, i) - acc + [ - panels[i] + { - gridPos+: { - y: this.calculateLowestYforPanel(panels[i], acc), - }, - }, - ], - std.range(0, std.length(panels) - 1), - [] - ), - - '#calculateLowestYforPanel':: d.func.new( - ||| - `calculateLowestYforPanel` calculates Y for a given `panel` from the `gridPos` of an array of `panels`. This function is used in `normalizeY`. - |||, - [ - d.arg('panel', d.T.object), - d.arg('panels', d.T.array), - ] - ), - calculateLowestYforPanel(panel, panels): - xtd.number.maxInArray( // the new position is highest value (max) on the Y-scale - std.filterMap( - function(p) // find panels that overlap on X-scale - local v1 = panel.gridPos.x; - local v2 = panel.gridPos.x + panel.gridPos.w; - local x1 = p.gridPos.x; - local x2 = p.gridPos.x + p.gridPos.w; - (v1 >= x1 && v1 < x2) - || (v2 >= x1 && v2 < x2), - function(p) // return new position on Y-scale - p.gridPos.y + p.gridPos.h, - panels, - ), - ), - - '#normalizeYInRow':: d.func.new( - ||| - `normalizeYInRow` applies `normalizeY` to the panels in a row panel. - |||, - [ - d.arg('rowPanel', d.T.object), - ] - ), - normalizeYInRow(rowPanel): - rowPanel + { - panels: - std.map( - function(p) - p + { - gridPos+: { - y: // Increase panel Y with the row Y to put them below the row when not collapsed. - p.gridPos.y - + rowPanel.gridPos.y - + rowPanel.gridPos.h, - }, - }, - this.normalizeY(rowPanel.panels) - ), - }, - - '#mapToRows':: d.func.new( - ||| - `mapToRows` is a little helper function that applies `func` to all row panels in an array. Other panels in that array are returned ad verbatim. - |||, - [ - d.arg('func', d.T.func), - d.arg('panels', d.T.array), - ] - ), - mapToRows(func, panels): - std.map( - function(p) - if p.type == 'row' - then func(p) - else p, - panels - ), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/string.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/string.libsonnet deleted file mode 100644 index ec5a66e42..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/custom/util/string.libsonnet +++ /dev/null @@ -1,27 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; -local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet'; - -{ - '#slugify':: d.func.new( - ||| - `slugify` will create a simple slug from `string`, keeping only alphanumeric - characters and replacing spaces with dashes. - |||, - args=[d.arg('string', d.T.string)] - ), - slugify(string): - std.strReplace( - std.asciiLower( - std.join('', [ - string[i] - for i in std.range(0, std.length(string) - 1) - if xtd.ascii.isUpper(string[i]) - || xtd.ascii.isLower(string[i]) - || xtd.ascii.isNumber(string[i]) - || string[i] == ' ' - ]) - ), - ' ', - '-', - ), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/README.md deleted file mode 100644 index 161f1e434..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# grafonnet - -Jsonnet library for rendering Grafana resources -## Install - -``` -jb install github.com/grafana/grafonnet/gen/grafonnet-v10.0.0@main -``` - -## Usage - -```jsonnet -local grafonnet = import "github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet" -``` - - -## Subpackages - -* [alerting](alerting/index.md) -* [dashboard](dashboard/index.md) -* [librarypanel](librarypanel.md) -* [panel](panel/index.md) -* [playlist](playlist/index.md) -* [preferences](preferences.md) -* [publicdashboard](publicdashboard.md) -* [query](query/index.md) -* [serviceaccount](serviceaccount.md) -* [team](team.md) -* [util](util.md) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/contactPoint.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/contactPoint.md deleted file mode 100644 index b796b0c1b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/contactPoint.md +++ /dev/null @@ -1,100 +0,0 @@ -# contactPoint - -grafonnet.alerting.contactPoint - -**NOTE**: The schemas for all different contact points is under development, this means we can't properly express them in Grafonnet yet. The way this works now may change heavily. - - -## Index - -* [`fn withDisableResolveMessage(value=true)`](#fn-withdisableresolvemessage) -* [`fn withName(value)`](#fn-withname) -* [`fn withProvenance(value)`](#fn-withprovenance) -* [`fn withSettings(value)`](#fn-withsettings) -* [`fn withSettingsMixin(value)`](#fn-withsettingsmixin) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUid(value)`](#fn-withuid) - -## Fields - -### fn withDisableResolveMessage - -```jsonnet -withDisableResolveMessage(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name is used as grouping key in the UI. Contact points with the -same name will be grouped in the UI. -### fn withProvenance - -```jsonnet -withProvenance(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withSettings - -```jsonnet -withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withSettingsMixin - -```jsonnet -withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"alertmanager"`, `" dingding"`, `" discord"`, `" email"`, `" googlechat"`, `" kafka"`, `" line"`, `" opsgenie"`, `" pagerduty"`, `" pushover"`, `" sensugo"`, `" slack"`, `" teams"`, `" telegram"`, `" threema"`, `" victorops"`, `" webhook"`, `" wecom"` - - -### fn withUid - -```jsonnet -withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -UID is the unique identifier of the contact point. The UID can be -set by the user. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/index.md deleted file mode 100644 index b77a82d09..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/index.md +++ /dev/null @@ -1,11 +0,0 @@ -# alerting - -grafonnet.alerting - -## Subpackages - -* [contactPoint](contactPoint.md) -* [messageTemplate](messageTemplate.md) -* [muteTiming](muteTiming/index.md) -* [notificationPolicy](notificationPolicy/index.md) -* [ruleGroup](ruleGroup/index.md) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/messageTemplate.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/messageTemplate.md deleted file mode 100644 index df7c23336..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/messageTemplate.md +++ /dev/null @@ -1,32 +0,0 @@ -# messageTemplate - -grafonnet.alerting.messageTemplate - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withTemplate(value)`](#fn-withtemplate) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTemplate - -```jsonnet -withTemplate(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/muteTiming/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/muteTiming/index.md deleted file mode 100644 index 3aee846bb..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/muteTiming/index.md +++ /dev/null @@ -1,48 +0,0 @@ -# muteTiming - -grafonnet.alerting.muteTiming - -## Subpackages - -* [interval](interval/index.md) - -## Index - -* [`fn withIntervals(value)`](#fn-withintervals) -* [`fn withIntervalsMixin(value)`](#fn-withintervalsmixin) -* [`fn withName(value)`](#fn-withname) - -## Fields - -### fn withIntervals - -```jsonnet -withIntervals(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withIntervalsMixin - -```jsonnet -withIntervalsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/muteTiming/interval/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/muteTiming/interval/index.md deleted file mode 100644 index aecdd1d92..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/muteTiming/interval/index.md +++ /dev/null @@ -1,144 +0,0 @@ -# interval - - - -## Subpackages - -* [times](times.md) - -## Index - -* [`fn withDaysOfMonth(value)`](#fn-withdaysofmonth) -* [`fn withDaysOfMonthMixin(value)`](#fn-withdaysofmonthmixin) -* [`fn withLocation(value)`](#fn-withlocation) -* [`fn withMonths(value)`](#fn-withmonths) -* [`fn withMonthsMixin(value)`](#fn-withmonthsmixin) -* [`fn withTimes(value)`](#fn-withtimes) -* [`fn withTimesMixin(value)`](#fn-withtimesmixin) -* [`fn withWeekdays(value)`](#fn-withweekdays) -* [`fn withWeekdaysMixin(value)`](#fn-withweekdaysmixin) -* [`fn withYears(value)`](#fn-withyears) -* [`fn withYearsMixin(value)`](#fn-withyearsmixin) - -## Fields - -### fn withDaysOfMonth - -```jsonnet -withDaysOfMonth(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withDaysOfMonthMixin - -```jsonnet -withDaysOfMonthMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withLocation - -```jsonnet -withLocation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withMonths - -```jsonnet -withMonths(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withMonthsMixin - -```jsonnet -withMonthsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTimes - -```jsonnet -withTimes(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTimesMixin - -```jsonnet -withTimesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withWeekdays - -```jsonnet -withWeekdays(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withWeekdaysMixin - -```jsonnet -withWeekdaysMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withYears - -```jsonnet -withYears(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withYearsMixin - -```jsonnet -withYearsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/muteTiming/interval/times.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/muteTiming/interval/times.md deleted file mode 100644 index 43f7b3fe9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/muteTiming/interval/times.md +++ /dev/null @@ -1,32 +0,0 @@ -# times - - - -## Index - -* [`fn withFrom(value)`](#fn-withfrom) -* [`fn withTo(value)`](#fn-withto) - -## Fields - -### fn withFrom - -```jsonnet -withFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTo - -```jsonnet -withTo(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/notificationPolicy/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/notificationPolicy/index.md deleted file mode 100644 index cb4aa0a98..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/notificationPolicy/index.md +++ /dev/null @@ -1,173 +0,0 @@ -# notificationPolicy - -grafonnet.alerting.notificationPolicy - -## Subpackages - -* [matcher](matcher.md) - -## Index - -* [`fn withContactPoint(value)`](#fn-withcontactpoint) -* [`fn withContinue(value=true)`](#fn-withcontinue) -* [`fn withGroupBy(value)`](#fn-withgroupby) -* [`fn withGroupByMixin(value)`](#fn-withgroupbymixin) -* [`fn withGroupInterval(value)`](#fn-withgroupinterval) -* [`fn withGroupWait(value)`](#fn-withgroupwait) -* [`fn withMatchers(value)`](#fn-withmatchers) -* [`fn withMatchersMixin(value)`](#fn-withmatchersmixin) -* [`fn withMuteTimeIntervals(value)`](#fn-withmutetimeintervals) -* [`fn withMuteTimeIntervalsMixin(value)`](#fn-withmutetimeintervalsmixin) -* [`fn withPolicy(value)`](#fn-withpolicy) -* [`fn withPolicyMixin(value)`](#fn-withpolicymixin) -* [`fn withRepeatInterval(value)`](#fn-withrepeatinterval) - -## Fields - -### fn withContactPoint - -```jsonnet -withContactPoint(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withContinue - -```jsonnet -withContinue(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withGroupBy - -```jsonnet -withGroupBy(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withGroupByMixin - -```jsonnet -withGroupByMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withGroupInterval - -```jsonnet -withGroupInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withGroupWait - -```jsonnet -withGroupWait(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withMatchers - -```jsonnet -withMatchers(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Matchers is a slice of Matchers that is sortable, implements Stringer, and -provides a Matches method to match a LabelSet against all Matchers in the -slice. Note that some users of Matchers might require it to be sorted. -### fn withMatchersMixin - -```jsonnet -withMatchersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Matchers is a slice of Matchers that is sortable, implements Stringer, and -provides a Matches method to match a LabelSet against all Matchers in the -slice. Note that some users of Matchers might require it to be sorted. -### fn withMuteTimeIntervals - -```jsonnet -withMuteTimeIntervals(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withMuteTimeIntervalsMixin - -```jsonnet -withMuteTimeIntervalsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withPolicy - -```jsonnet -withPolicy(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withPolicyMixin - -```jsonnet -withPolicyMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withRepeatInterval - -```jsonnet -withRepeatInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/notificationPolicy/matcher.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/notificationPolicy/matcher.md deleted file mode 100644 index f31b1d85b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/notificationPolicy/matcher.md +++ /dev/null @@ -1,45 +0,0 @@ -# matcher - - - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withType(value)`](#fn-withtype) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"="`, `"!="`, `"=~"`, `"!~"` - -MatchType is an enum for label matching types. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/ruleGroup/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/ruleGroup/index.md deleted file mode 100644 index 21d94b5fa..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/ruleGroup/index.md +++ /dev/null @@ -1,72 +0,0 @@ -# ruleGroup - -grafonnet.alerting.ruleGroup - -## Subpackages - -* [rule](rule/index.md) - -## Index - -* [`fn withFolderUid(value)`](#fn-withfolderuid) -* [`fn withInterval(value)`](#fn-withinterval) -* [`fn withName(value)`](#fn-withname) -* [`fn withRules(value)`](#fn-withrules) -* [`fn withRulesMixin(value)`](#fn-withrulesmixin) - -## Fields - -### fn withFolderUid - -```jsonnet -withFolderUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withInterval - -```jsonnet -withInterval(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withRules - -```jsonnet -withRules(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withRulesMixin - -```jsonnet -withRulesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/ruleGroup/rule/data.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/ruleGroup/rule/data.md deleted file mode 100644 index 0c6052003..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/ruleGroup/rule/data.md +++ /dev/null @@ -1,128 +0,0 @@ -# data - - - -## Index - -* [`fn withDatasourceUid(value)`](#fn-withdatasourceuid) -* [`fn withModel(value)`](#fn-withmodel) -* [`fn withModelMixin(value)`](#fn-withmodelmixin) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withRelativeTimeRange(value)`](#fn-withrelativetimerange) -* [`fn withRelativeTimeRangeMixin(value)`](#fn-withrelativetimerangemixin) -* [`obj relativeTimeRange`](#obj-relativetimerange) - * [`fn withFrom(value)`](#fn-relativetimerangewithfrom) - * [`fn withTo(value)`](#fn-relativetimerangewithto) - -## Fields - -### fn withDatasourceUid - -```jsonnet -withDatasourceUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation. -### fn withModel - -```jsonnet -withModel(value) -``` - -PARAMETERS: - -* **value** (`object`) - -JSON is the raw JSON query and includes the above properties as well as custom properties. -### fn withModelMixin - -```jsonnet -withModelMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -JSON is the raw JSON query and includes the above properties as well as custom properties. -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -QueryType is an optional identifier for the type of query. -It can be used to distinguish different types of queries. -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -RefID is the unique identifier of the query, set by the frontend call. -### fn withRelativeTimeRange - -```jsonnet -withRelativeTimeRange(value) -``` - -PARAMETERS: - -* **value** (`object`) - -RelativeTimeRange is the per query start and end time -for requests. -### fn withRelativeTimeRangeMixin - -```jsonnet -withRelativeTimeRangeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -RelativeTimeRange is the per query start and end time -for requests. -### obj relativeTimeRange - - -#### fn relativeTimeRange.withFrom - -```jsonnet -relativeTimeRange.withFrom(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -A Duration represents the elapsed time between two instants -as an int64 nanosecond count. The representation limits the -largest representable duration to approximately 290 years. -#### fn relativeTimeRange.withTo - -```jsonnet -relativeTimeRange.withTo(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -A Duration represents the elapsed time between two instants -as an int64 nanosecond count. The representation limits the -largest representable duration to approximately 290 years. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/ruleGroup/rule/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/ruleGroup/rule/index.md deleted file mode 100644 index e93787c02..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/alerting/ruleGroup/rule/index.md +++ /dev/null @@ -1,161 +0,0 @@ -# rule - - - -## Subpackages - -* [data](data.md) - -## Index - -* [`fn withAnnotations(value)`](#fn-withannotations) -* [`fn withAnnotationsMixin(value)`](#fn-withannotationsmixin) -* [`fn withCondition(value)`](#fn-withcondition) -* [`fn withData(value)`](#fn-withdata) -* [`fn withDataMixin(value)`](#fn-withdatamixin) -* [`fn withExecErrState(value)`](#fn-withexecerrstate) -* [`fn withFor(value)`](#fn-withfor) -* [`fn withIsPaused(value=true)`](#fn-withispaused) -* [`fn withLabels(value)`](#fn-withlabels) -* [`fn withLabelsMixin(value)`](#fn-withlabelsmixin) -* [`fn withName(value)`](#fn-withname) -* [`fn withNoDataState(value)`](#fn-withnodatastate) - -## Fields - -### fn withAnnotations - -```jsonnet -withAnnotations(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withAnnotationsMixin - -```jsonnet -withAnnotationsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withCondition - -```jsonnet -withCondition(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withData - -```jsonnet -withData(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withDataMixin - -```jsonnet -withDataMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withExecErrState - -```jsonnet -withExecErrState(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"OK"`, `"Alerting"`, `"Error"` - - -### fn withFor - -```jsonnet -withFor(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -A Duration represents the elapsed time between two instants -as an int64 nanosecond count. The representation limits the -largest representable duration to approximately 290 years. -### fn withIsPaused - -```jsonnet -withIsPaused(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withLabels - -```jsonnet -withLabels(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLabelsMixin - -```jsonnet -withLabelsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withNoDataState - -```jsonnet -withNoDataState(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"Alerting"`, `"NoData"`, `"OK"` - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/annotation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/annotation.md deleted file mode 100644 index d486ab0fb..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/annotation.md +++ /dev/null @@ -1,285 +0,0 @@ -# annotation - - - -## Index - -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) -* [`fn withEnable(value=true)`](#fn-withenable) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withIconColor(value)`](#fn-withiconcolor) -* [`fn withName(value)`](#fn-withname) -* [`fn withTarget(value)`](#fn-withtarget) -* [`fn withTargetMixin(value)`](#fn-withtargetmixin) -* [`fn withType(value)`](#fn-withtype) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj filter`](#obj-filter) - * [`fn withExclude(value=true)`](#fn-filterwithexclude) - * [`fn withIds(value)`](#fn-filterwithids) - * [`fn withIdsMixin(value)`](#fn-filterwithidsmixin) -* [`obj target`](#obj-target) - * [`fn withLimit(value)`](#fn-targetwithlimit) - * [`fn withMatchAny(value=true)`](#fn-targetwithmatchany) - * [`fn withTags(value)`](#fn-targetwithtags) - * [`fn withTagsMixin(value)`](#fn-targetwithtagsmixin) - * [`fn withType(value)`](#fn-targetwithtype) - -## Fields - -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO: Should be DataSourceRef -### fn withDatasourceMixin - -```jsonnet -withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO: Should be DataSourceRef -### fn withEnable - -```jsonnet -withEnable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -When enabled the annotation query is issued with every dashboard refresh -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Annotation queries can be toggled on or off at the top of the dashboard. -When hide is true, the toggle is not shown in the dashboard. -### fn withIconColor - -```jsonnet -withIconColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color to use for the annotation event markers -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of annotation. -### fn withTarget - -```jsonnet -withTarget(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO: this should be a regular DataQuery that depends on the selected dashboard -these match the properties of the "grafana" datasouce that is default in most dashboards -### fn withTargetMixin - -```jsonnet -withTargetMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO: this should be a regular DataQuery that depends on the selected dashboard -these match the properties of the "grafana" datasouce that is default in most dashboards -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO -- this should not exist here, it is based on the --grafana-- datasource -### obj datasource - - -#### fn datasource.withType - -```jsonnet -datasource.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn datasource.withUid - -```jsonnet -datasource.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj filter - - -#### fn filter.withExclude - -```jsonnet -filter.withExclude(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Should the specified panels be included or excluded -#### fn filter.withIds - -```jsonnet -filter.withIds(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel IDs that should be included or excluded -#### fn filter.withIdsMixin - -```jsonnet -filter.withIdsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel IDs that should be included or excluded -### obj target - - -#### fn target.withLimit - -```jsonnet -target.withLimit(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Only required/valid for the grafana datasource... -but code+tests is already depending on it so hard to change -#### fn target.withMatchAny - -```jsonnet -target.withMatchAny(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Only required/valid for the grafana datasource... -but code+tests is already depending on it so hard to change -#### fn target.withTags - -```jsonnet -target.withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Only required/valid for the grafana datasource... -but code+tests is already depending on it so hard to change -#### fn target.withTagsMixin - -```jsonnet -target.withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Only required/valid for the grafana datasource... -but code+tests is already depending on it so hard to change -#### fn target.withType - -```jsonnet -target.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Only required/valid for the grafana datasource... -but code+tests is already depending on it so hard to change \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/index.md deleted file mode 100644 index 51ba567b8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/index.md +++ /dev/null @@ -1,495 +0,0 @@ -# dashboard - -grafonnet.dashboard - -## Subpackages - -* [annotation](annotation.md) -* [link](link.md) -* [variable](variable.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`fn withAnnotations(value)`](#fn-withannotations) -* [`fn withAnnotationsMixin(value)`](#fn-withannotationsmixin) -* [`fn withDescription(value)`](#fn-withdescription) -* [`fn withEditable(value=true)`](#fn-witheditable) -* [`fn withFiscalYearStartMonth(value=0)`](#fn-withfiscalyearstartmonth) -* [`fn withLinks(value)`](#fn-withlinks) -* [`fn withLinksMixin(value)`](#fn-withlinksmixin) -* [`fn withLiveNow(value=true)`](#fn-withlivenow) -* [`fn withPanels(panels, setPanelIDs=true)`](#fn-withpanels) -* [`fn withPanelsMixin(panels, setPanelIDs=true)`](#fn-withpanelsmixin) -* [`fn withRefresh(value)`](#fn-withrefresh) -* [`fn withSchemaVersion(value=36)`](#fn-withschemaversion) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTemplating(value)`](#fn-withtemplating) -* [`fn withTemplatingMixin(value)`](#fn-withtemplatingmixin) -* [`fn withTimezone(value="browser")`](#fn-withtimezone) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withUid(value)`](#fn-withuid) -* [`fn withVariables(value)`](#fn-withvariables) -* [`fn withVariablesMixin(value)`](#fn-withvariablesmixin) -* [`fn withWeekStart(value)`](#fn-withweekstart) -* [`obj graphTooltip`](#obj-graphtooltip) - * [`fn withSharedCrosshair()`](#fn-graphtooltipwithsharedcrosshair) - * [`fn withSharedTooltip()`](#fn-graphtooltipwithsharedtooltip) -* [`obj time`](#obj-time) - * [`fn withFrom(value="now-6h")`](#fn-timewithfrom) - * [`fn withTo(value="now")`](#fn-timewithto) -* [`obj timepicker`](#obj-timepicker) - * [`fn withCollapse(value=true)`](#fn-timepickerwithcollapse) - * [`fn withEnable(value=true)`](#fn-timepickerwithenable) - * [`fn withHidden(value=true)`](#fn-timepickerwithhidden) - * [`fn withRefreshIntervals(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"])`](#fn-timepickerwithrefreshintervals) - * [`fn withRefreshIntervalsMixin(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"])`](#fn-timepickerwithrefreshintervalsmixin) - * [`fn withTimeOptions(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"])`](#fn-timepickerwithtimeoptions) - * [`fn withTimeOptionsMixin(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"])`](#fn-timepickerwithtimeoptionsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new dashboard with a title. -### fn withAnnotations - -```jsonnet -withAnnotations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -`withAnnotations` adds an array of annotations to a dashboard. - -This function appends passed data to existing values - -### fn withAnnotationsMixin - -```jsonnet -withAnnotationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -`withAnnotationsMixin` adds an array of annotations to a dashboard. - -This function appends passed data to existing values - -### fn withDescription - -```jsonnet -withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description of dashboard. -### fn withEditable - -```jsonnet -withEditable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether a dashboard is editable or not. -### fn withFiscalYearStartMonth - -```jsonnet -withFiscalYearStartMonth(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - -The month that the fiscal year starts on. 0 = January, 11 = December -### fn withLinks - -```jsonnet -withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. - -`withLinks` takes an array of [link objects](./link.md). - -The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. - -Example: - -```jsonnet -local g = import 'g.libsonnet'; -local link = g.dashboard.link; - -g.dashboard.new('Title dashboard') -+ g.dashboard.withLinks([ - link.link.new('My title', 'https://wikipedia.org/'), -]) -``` - -### fn withLinksMixin - -```jsonnet -withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. - -`withLinks` takes an array of [link objects](./link.md). - -The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. - -Example: - -```jsonnet -local g = import 'g.libsonnet'; -local link = g.dashboard.link; - -g.dashboard.new('Title dashboard') -+ g.dashboard.withLinks([ - link.link.new('My title', 'https://wikipedia.org/'), -]) -``` - -### fn withLiveNow - -```jsonnet -withLiveNow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -When set to true, the dashboard will redraw panels at an interval matching the pixel width. -This will keep data "moving left" regardless of the query refresh rate. This setting helps -avoid dashboards presenting stale live data -### fn withPanels - -```jsonnet -withPanels(panels, setPanelIDs=true) -``` - -PARAMETERS: - -* **panels** (`array`) -* **setPanelIDs** (`bool`) - - default value: `true` - -`withPanels` sets the panels on a dashboard authoratively. It automatically adds IDs to the panels, this can be disabled with `setPanelIDs=false`. -### fn withPanelsMixin - -```jsonnet -withPanelsMixin(panels, setPanelIDs=true) -``` - -PARAMETERS: - -* **panels** (`array`) -* **setPanelIDs** (`bool`) - - default value: `true` - -`withPanelsMixin` adds more panels to a dashboard. -### fn withRefresh - -```jsonnet -withRefresh(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d". -### fn withSchemaVersion - -```jsonnet -withSchemaVersion(value=36) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `36` - -Version of the JSON schema, incremented each time a Grafana update brings -changes to said schema. -TODO this is the existing schema numbering system. It will be replaced by Thema's themaVersion -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Tags associated with dashboard. -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Tags associated with dashboard. -### fn withTemplating - -```jsonnet -withTemplating(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withTemplatingMixin - -```jsonnet -withTemplatingMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withTimezone - -```jsonnet -withTimezone(value="browser") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"browser"` - -Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc". -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title of dashboard. -### fn withUid - -```jsonnet -withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique dashboard identifier that can be generated by anyone. string (8-40) -### fn withVariables - -```jsonnet -withVariables(value) -``` - -PARAMETERS: - -* **value** (`array`) - -`withVariables` adds an array of variables to a dashboard - -### fn withVariablesMixin - -```jsonnet -withVariablesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -`withVariablesMixin` adds an array of variables to a dashboard. - -This function appends passed data to existing values - -### fn withWeekStart - -```jsonnet -withWeekStart(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### obj graphTooltip - - -#### fn graphTooltip.withSharedCrosshair - -```jsonnet -graphTooltip.withSharedCrosshair() -``` - - -Share crosshair on all panels. -#### fn graphTooltip.withSharedTooltip - -```jsonnet -graphTooltip.withSharedTooltip() -``` - - -Share crosshair and tooltip on all panels. -### obj time - - -#### fn time.withFrom - -```jsonnet -time.withFrom(value="now-6h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now-6h"` - - -#### fn time.withTo - -```jsonnet -time.withTo(value="now") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now"` - - -### obj timepicker - - -#### fn timepicker.withCollapse - -```jsonnet -timepicker.withCollapse(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether timepicker is collapsed or not. -#### fn timepicker.withEnable - -```jsonnet -timepicker.withEnable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether timepicker is enabled or not. -#### fn timepicker.withHidden - -```jsonnet -timepicker.withHidden(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether timepicker is visible or not. -#### fn timepicker.withRefreshIntervals - -```jsonnet -timepicker.withRefreshIntervals(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]` - -Selectable intervals for auto-refresh. -#### fn timepicker.withRefreshIntervalsMixin - -```jsonnet -timepicker.withRefreshIntervalsMixin(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]` - -Selectable intervals for auto-refresh. -#### fn timepicker.withTimeOptions - -```jsonnet -timepicker.withTimeOptions(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `["5m","15m","1h","6h","12h","24h","2d","7d","30d"]` - -TODO docs -#### fn timepicker.withTimeOptionsMixin - -```jsonnet -timepicker.withTimeOptionsMixin(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `["5m","15m","1h","6h","12h","24h","2d","7d","30d"]` - -TODO docs \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/link.md deleted file mode 100644 index 75072e581..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/link.md +++ /dev/null @@ -1,195 +0,0 @@ -# link - -Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. - -The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. - -Example: - -```jsonnet -local g = import 'g.libsonnet'; -local link = g.dashboard.link; - -g.dashboard.new('Title dashboard') -+ g.dashboard.withLinks([ - link.link.new('My title', 'https://wikipedia.org/'), -]) -``` - - -## Index - -* [`obj dashboards`](#obj-dashboards) - * [`fn new(title, tags)`](#fn-dashboardsnew) - * [`obj options`](#obj-dashboardsoptions) - * [`fn withAsDropdown(value=true)`](#fn-dashboardsoptionswithasdropdown) - * [`fn withIncludeVars(value=true)`](#fn-dashboardsoptionswithincludevars) - * [`fn withKeepTime(value=true)`](#fn-dashboardsoptionswithkeeptime) - * [`fn withTargetBlank(value=true)`](#fn-dashboardsoptionswithtargetblank) -* [`obj link`](#obj-link) - * [`fn new(title, url)`](#fn-linknew) - * [`fn withIcon(value)`](#fn-linkwithicon) - * [`fn withTooltip(value)`](#fn-linkwithtooltip) - * [`obj options`](#obj-linkoptions) - * [`fn withAsDropdown(value=true)`](#fn-linkoptionswithasdropdown) - * [`fn withIncludeVars(value=true)`](#fn-linkoptionswithincludevars) - * [`fn withKeepTime(value=true)`](#fn-linkoptionswithkeeptime) - * [`fn withTargetBlank(value=true)`](#fn-linkoptionswithtargetblank) - -## Fields - -### obj dashboards - - -#### fn dashboards.new - -```jsonnet -dashboards.new(title, tags) -``` - -PARAMETERS: - -* **title** (`string`) -* **tags** (`array`) - -Create links to dashboards based on `tags`. - -#### obj dashboards.options - - -##### fn dashboards.options.withAsDropdown - -```jsonnet -dashboards.options.withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn dashboards.options.withIncludeVars - -```jsonnet -dashboards.options.withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn dashboards.options.withKeepTime - -```jsonnet -dashboards.options.withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn dashboards.options.withTargetBlank - -```jsonnet -dashboards.options.withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj link - - -#### fn link.new - -```jsonnet -link.new(title, url) -``` - -PARAMETERS: - -* **title** (`string`) -* **url** (`string`) - -Create link to an arbitrary URL. - -#### fn link.withIcon - -```jsonnet -link.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn link.withTooltip - -```jsonnet -link.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj link.options - - -##### fn link.options.withAsDropdown - -```jsonnet -link.options.withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn link.options.withIncludeVars - -```jsonnet -link.options.withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn link.options.withKeepTime - -```jsonnet -link.options.withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn link.options.withTargetBlank - -```jsonnet -link.options.withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/variable.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/variable.md deleted file mode 100644 index c081ccf87..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/dashboard/variable.md +++ /dev/null @@ -1,1042 +0,0 @@ -# variable - -Example usage: - -```jsonnet -local g = import 'g.libsonnet'; -local var = g.dashboard.variable; - -local customVar = - var.custom.new( - 'myOptions', - values=['a', 'b', 'c', 'd'], - ) - + var.custom.generalOptions.withDescription( - 'This is a variable for my custom options.' - ) - + var.custom.selectionOptions.withMulti(); - -local queryVar = - var.query.new('queryOptions') - + var.query.queryTypes.withLabelValues( - 'up', - 'instance', - ) - + var.query.withDatasource( - type='prometheus', - uid='mimir-prod', - ) - + var.query.selectionOptions.withIncludeAll(); - - -g.dashboard.new('my dashboard') -+ g.dashboard.withVariables([ - customVar, - queryVar, -]) -``` - - -## Index - -* [`obj adhoc`](#obj-adhoc) - * [`fn new(name, type, uid)`](#fn-adhocnew) - * [`fn newFromDatasourceVariable(name, variable)`](#fn-adhocnewfromdatasourcevariable) - * [`obj generalOptions`](#obj-adhocgeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-adhocgeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-adhocgeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-adhocgeneraloptionswithlabel) - * [`fn withName(value)`](#fn-adhocgeneraloptionswithname) - * [`obj showOnDashboard`](#obj-adhocgeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-adhocgeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-adhocgeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-adhocgeneraloptionsshowondashboardwithvalueonly) -* [`obj constant`](#obj-constant) - * [`fn new(name, value)`](#fn-constantnew) - * [`obj generalOptions`](#obj-constantgeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-constantgeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-constantgeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-constantgeneraloptionswithlabel) - * [`fn withName(value)`](#fn-constantgeneraloptionswithname) - * [`obj showOnDashboard`](#obj-constantgeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-constantgeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-constantgeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-constantgeneraloptionsshowondashboardwithvalueonly) -* [`obj custom`](#obj-custom) - * [`fn new(name, values)`](#fn-customnew) - * [`obj generalOptions`](#obj-customgeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-customgeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-customgeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-customgeneraloptionswithlabel) - * [`fn withName(value)`](#fn-customgeneraloptionswithname) - * [`obj showOnDashboard`](#obj-customgeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-customgeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-customgeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-customgeneraloptionsshowondashboardwithvalueonly) - * [`obj selectionOptions`](#obj-customselectionoptions) - * [`fn withIncludeAll(value=true, customAllValue)`](#fn-customselectionoptionswithincludeall) - * [`fn withMulti(value=true)`](#fn-customselectionoptionswithmulti) -* [`obj datasource`](#obj-datasource) - * [`fn new(name, type)`](#fn-datasourcenew) - * [`fn withRegex(value)`](#fn-datasourcewithregex) - * [`obj generalOptions`](#obj-datasourcegeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-datasourcegeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-datasourcegeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-datasourcegeneraloptionswithlabel) - * [`fn withName(value)`](#fn-datasourcegeneraloptionswithname) - * [`obj showOnDashboard`](#obj-datasourcegeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-datasourcegeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-datasourcegeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-datasourcegeneraloptionsshowondashboardwithvalueonly) - * [`obj selectionOptions`](#obj-datasourceselectionoptions) - * [`fn withIncludeAll(value=true, customAllValue)`](#fn-datasourceselectionoptionswithincludeall) - * [`fn withMulti(value=true)`](#fn-datasourceselectionoptionswithmulti) -* [`obj interval`](#obj-interval) - * [`fn new(name, values)`](#fn-intervalnew) - * [`fn withAutoOption(count, minInterval)`](#fn-intervalwithautooption) - * [`obj generalOptions`](#obj-intervalgeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-intervalgeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-intervalgeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-intervalgeneraloptionswithlabel) - * [`fn withName(value)`](#fn-intervalgeneraloptionswithname) - * [`obj showOnDashboard`](#obj-intervalgeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-intervalgeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-intervalgeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-intervalgeneraloptionsshowondashboardwithvalueonly) -* [`obj query`](#obj-query) - * [`fn new(name, query="")`](#fn-querynew) - * [`fn withDatasource(type, uid)`](#fn-querywithdatasource) - * [`fn withDatasourceFromVariable(variable)`](#fn-querywithdatasourcefromvariable) - * [`fn withRegex(value)`](#fn-querywithregex) - * [`fn withSort(i=0, type="alphabetical", asc=true, caseInsensitive=false)`](#fn-querywithsort) - * [`obj generalOptions`](#obj-querygeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-querygeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-querygeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-querygeneraloptionswithlabel) - * [`fn withName(value)`](#fn-querygeneraloptionswithname) - * [`obj showOnDashboard`](#obj-querygeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-querygeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-querygeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-querygeneraloptionsshowondashboardwithvalueonly) - * [`obj queryTypes`](#obj-queryquerytypes) - * [`fn withLabelValues(label, metric="")`](#fn-queryquerytypeswithlabelvalues) - * [`obj refresh`](#obj-queryrefresh) - * [`fn onLoad()`](#fn-queryrefreshonload) - * [`fn onTime()`](#fn-queryrefreshontime) - * [`obj selectionOptions`](#obj-queryselectionoptions) - * [`fn withIncludeAll(value=true, customAllValue)`](#fn-queryselectionoptionswithincludeall) - * [`fn withMulti(value=true)`](#fn-queryselectionoptionswithmulti) -* [`obj textbox`](#obj-textbox) - * [`fn new(name, default="")`](#fn-textboxnew) - * [`obj generalOptions`](#obj-textboxgeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-textboxgeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-textboxgeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-textboxgeneraloptionswithlabel) - * [`fn withName(value)`](#fn-textboxgeneraloptionswithname) - * [`obj showOnDashboard`](#obj-textboxgeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-textboxgeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-textboxgeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-textboxgeneraloptionsshowondashboardwithvalueonly) - -## Fields - -### obj adhoc - - -#### fn adhoc.new - -```jsonnet -adhoc.new(name, type, uid) -``` - -PARAMETERS: - -* **name** (`string`) -* **type** (`string`) -* **uid** (`string`) - -`new` creates an adhoc template variable for datasource with `type` and `uid`. -#### fn adhoc.newFromDatasourceVariable - -```jsonnet -adhoc.newFromDatasourceVariable(name, variable) -``` - -PARAMETERS: - -* **name** (`string`) -* **variable** (`object`) - -Same as `new` but selecting the datasource from another template variable. -#### obj adhoc.generalOptions - - -##### fn adhoc.generalOptions.withCurrent - -```jsonnet -adhoc.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn adhoc.generalOptions.withDescription - -```jsonnet -adhoc.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn adhoc.generalOptions.withLabel - -```jsonnet -adhoc.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn adhoc.generalOptions.withName - -```jsonnet -adhoc.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj adhoc.generalOptions.showOnDashboard - - -###### fn adhoc.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -adhoc.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn adhoc.generalOptions.showOnDashboard.withNothing - -```jsonnet -adhoc.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn adhoc.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -adhoc.generalOptions.showOnDashboard.withValueOnly() -``` - - - -### obj constant - - -#### fn constant.new - -```jsonnet -constant.new(name, value) -``` - -PARAMETERS: - -* **name** (`string`) -* **value** (`string`) - -`new` creates a hidden constant template variable. -#### obj constant.generalOptions - - -##### fn constant.generalOptions.withCurrent - -```jsonnet -constant.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn constant.generalOptions.withDescription - -```jsonnet -constant.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn constant.generalOptions.withLabel - -```jsonnet -constant.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn constant.generalOptions.withName - -```jsonnet -constant.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj constant.generalOptions.showOnDashboard - - -###### fn constant.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -constant.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn constant.generalOptions.showOnDashboard.withNothing - -```jsonnet -constant.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn constant.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -constant.generalOptions.showOnDashboard.withValueOnly() -``` - - - -### obj custom - - -#### fn custom.new - -```jsonnet -custom.new(name, values) -``` - -PARAMETERS: - -* **name** (`string`) -* **values** (`array`) - -`new` creates a custom template variable. - -The `values` array accepts an object with key/value keys, if it's not an object -then it will be added as a string. - -Example: -``` -[ - { key: 'mykey', value: 'myvalue' }, - 'myvalue', - 12, -] - -#### obj custom.generalOptions - - -##### fn custom.generalOptions.withCurrent - -```jsonnet -custom.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn custom.generalOptions.withDescription - -```jsonnet -custom.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn custom.generalOptions.withLabel - -```jsonnet -custom.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn custom.generalOptions.withName - -```jsonnet -custom.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj custom.generalOptions.showOnDashboard - - -###### fn custom.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -custom.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn custom.generalOptions.showOnDashboard.withNothing - -```jsonnet -custom.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn custom.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -custom.generalOptions.showOnDashboard.withValueOnly() -``` - - - -#### obj custom.selectionOptions - - -##### fn custom.selectionOptions.withIncludeAll - -```jsonnet -custom.selectionOptions.withIncludeAll(value=true, customAllValue) -``` - -PARAMETERS: - -* **value** (`bool`) - - default value: `true` -* **customAllValue** (`string`) - -`withIncludeAll` enables an option to include all variables. - -Optionally you can set a `customAllValue`. - -##### fn custom.selectionOptions.withMulti - -```jsonnet -custom.selectionOptions.withMulti(value=true) -``` - -PARAMETERS: - -* **value** (`bool`) - - default value: `true` - -Enable selecting multiple values. -### obj datasource - - -#### fn datasource.new - -```jsonnet -datasource.new(name, type) -``` - -PARAMETERS: - -* **name** (`string`) -* **type** (`string`) - -`new` creates a datasource template variable. -#### fn datasource.withRegex - -```jsonnet -datasource.withRegex(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`withRegex` filter for which data source instances to choose from in the -variable value list. Example: `/^prod/` - -#### obj datasource.generalOptions - - -##### fn datasource.generalOptions.withCurrent - -```jsonnet -datasource.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn datasource.generalOptions.withDescription - -```jsonnet -datasource.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn datasource.generalOptions.withLabel - -```jsonnet -datasource.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn datasource.generalOptions.withName - -```jsonnet -datasource.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj datasource.generalOptions.showOnDashboard - - -###### fn datasource.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -datasource.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn datasource.generalOptions.showOnDashboard.withNothing - -```jsonnet -datasource.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn datasource.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -datasource.generalOptions.showOnDashboard.withValueOnly() -``` - - - -#### obj datasource.selectionOptions - - -##### fn datasource.selectionOptions.withIncludeAll - -```jsonnet -datasource.selectionOptions.withIncludeAll(value=true, customAllValue) -``` - -PARAMETERS: - -* **value** (`bool`) - - default value: `true` -* **customAllValue** (`string`) - -`withIncludeAll` enables an option to include all variables. - -Optionally you can set a `customAllValue`. - -##### fn datasource.selectionOptions.withMulti - -```jsonnet -datasource.selectionOptions.withMulti(value=true) -``` - -PARAMETERS: - -* **value** (`bool`) - - default value: `true` - -Enable selecting multiple values. -### obj interval - - -#### fn interval.new - -```jsonnet -interval.new(name, values) -``` - -PARAMETERS: - -* **name** (`string`) -* **values** (`array`) - -`new` creates an interval template variable. -#### fn interval.withAutoOption - -```jsonnet -interval.withAutoOption(count, minInterval) -``` - -PARAMETERS: - -* **count** (`number`) -* **minInterval** (`string`) - -`withAutoOption` adds an options to dynamically calculate interval by dividing -time range by the count specified. - -`minInterval' has to be either unit-less or end with one of the following units: -"y, M, w, d, h, m, s, ms". - -#### obj interval.generalOptions - - -##### fn interval.generalOptions.withCurrent - -```jsonnet -interval.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn interval.generalOptions.withDescription - -```jsonnet -interval.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn interval.generalOptions.withLabel - -```jsonnet -interval.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn interval.generalOptions.withName - -```jsonnet -interval.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj interval.generalOptions.showOnDashboard - - -###### fn interval.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -interval.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn interval.generalOptions.showOnDashboard.withNothing - -```jsonnet -interval.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn interval.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -interval.generalOptions.showOnDashboard.withValueOnly() -``` - - - -### obj query - - -#### fn query.new - -```jsonnet -query.new(name, query="") -``` - -PARAMETERS: - -* **name** (`string`) -* **query** (`string`) - - default value: `""` - -Create a query template variable. - -`query` argument is optional, this can also be set with `query.queryTypes`. - -#### fn query.withDatasource - -```jsonnet -query.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -Select a datasource for the variable template query. -#### fn query.withDatasourceFromVariable - -```jsonnet -query.withDatasourceFromVariable(variable) -``` - -PARAMETERS: - -* **variable** (`object`) - -Select the datasource from another template variable. -#### fn query.withRegex - -```jsonnet -query.withRegex(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`withRegex` can extract part of a series name or metric node segment. Named -capture groups can be used to separate the display text and value -([see examples](https://grafana.com/docs/grafana/latest/variables/filter-variables-with-regex#filter-and-modify-using-named-text-and-value-capture-groups)). - -#### fn query.withSort - -```jsonnet -query.withSort(i=0, type="alphabetical", asc=true, caseInsensitive=false) -``` - -PARAMETERS: - -* **i** (`number`) - - default value: `0` -* **type** (`string`) - - default value: `"alphabetical"` -* **asc** (`bool`) - - default value: `true` -* **caseInsensitive** (`bool`) - - default value: `false` - -Choose how to sort the values in the dropdown. - -This can be called as `withSort() to use the integer values for each -option. If `i==0` then it will be ignored and the other arguments will take -precedence. - -The numerical values are: - -- 1 - Alphabetical (asc) -- 2 - Alphabetical (desc) -- 3 - Numerical (asc) -- 4 - Numerical (desc) -- 5 - Alphabetical (case-insensitive, asc) -- 6 - Alphabetical (case-insensitive, desc) - -#### obj query.generalOptions - - -##### fn query.generalOptions.withCurrent - -```jsonnet -query.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn query.generalOptions.withDescription - -```jsonnet -query.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn query.generalOptions.withLabel - -```jsonnet -query.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn query.generalOptions.withName - -```jsonnet -query.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj query.generalOptions.showOnDashboard - - -###### fn query.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -query.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn query.generalOptions.showOnDashboard.withNothing - -```jsonnet -query.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn query.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -query.generalOptions.showOnDashboard.withValueOnly() -``` - - - -#### obj query.queryTypes - - -##### fn query.queryTypes.withLabelValues - -```jsonnet -query.queryTypes.withLabelValues(label, metric="") -``` - -PARAMETERS: - -* **label** (`string`) -* **metric** (`string`) - - default value: `""` - -Construct a Prometheus template variable using `label_values()`. -#### obj query.refresh - - -##### fn query.refresh.onLoad - -```jsonnet -query.refresh.onLoad() -``` - - -Refresh label values on dashboard load. -##### fn query.refresh.onTime - -```jsonnet -query.refresh.onTime() -``` - - -Refresh label values on time range change. -#### obj query.selectionOptions - - -##### fn query.selectionOptions.withIncludeAll - -```jsonnet -query.selectionOptions.withIncludeAll(value=true, customAllValue) -``` - -PARAMETERS: - -* **value** (`bool`) - - default value: `true` -* **customAllValue** (`string`) - -`withIncludeAll` enables an option to include all variables. - -Optionally you can set a `customAllValue`. - -##### fn query.selectionOptions.withMulti - -```jsonnet -query.selectionOptions.withMulti(value=true) -``` - -PARAMETERS: - -* **value** (`bool`) - - default value: `true` - -Enable selecting multiple values. -### obj textbox - - -#### fn textbox.new - -```jsonnet -textbox.new(name, default="") -``` - -PARAMETERS: - -* **name** (`string`) -* **default** (`string`) - - default value: `""` - -`new` creates a textbox template variable. -#### obj textbox.generalOptions - - -##### fn textbox.generalOptions.withCurrent - -```jsonnet -textbox.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn textbox.generalOptions.withDescription - -```jsonnet -textbox.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn textbox.generalOptions.withLabel - -```jsonnet -textbox.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn textbox.generalOptions.withName - -```jsonnet -textbox.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj textbox.generalOptions.showOnDashboard - - -###### fn textbox.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -textbox.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn textbox.generalOptions.showOnDashboard.withNothing - -```jsonnet -textbox.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn textbox.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -textbox.generalOptions.showOnDashboard.withValueOnly() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/librarypanel.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/librarypanel.md deleted file mode 100644 index c4244ce4b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/librarypanel.md +++ /dev/null @@ -1,334 +0,0 @@ -# librarypanel - -grafonnet.librarypanel - -## Index - -* [`fn withDescription(value)`](#fn-withdescription) -* [`fn withFolderUid(value)`](#fn-withfolderuid) -* [`fn withMeta(value)`](#fn-withmeta) -* [`fn withMetaMixin(value)`](#fn-withmetamixin) -* [`fn withModel(value)`](#fn-withmodel) -* [`fn withModelMixin(value)`](#fn-withmodelmixin) -* [`fn withName(value)`](#fn-withname) -* [`fn withSchemaVersion(value)`](#fn-withschemaversion) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUid(value)`](#fn-withuid) -* [`fn withVersion(value)`](#fn-withversion) -* [`obj meta`](#obj-meta) - * [`fn withConnectedDashboards(value)`](#fn-metawithconnecteddashboards) - * [`fn withCreated(value)`](#fn-metawithcreated) - * [`fn withCreatedBy(value)`](#fn-metawithcreatedby) - * [`fn withCreatedByMixin(value)`](#fn-metawithcreatedbymixin) - * [`fn withFolderName(value)`](#fn-metawithfoldername) - * [`fn withFolderUid(value)`](#fn-metawithfolderuid) - * [`fn withUpdated(value)`](#fn-metawithupdated) - * [`fn withUpdatedBy(value)`](#fn-metawithupdatedby) - * [`fn withUpdatedByMixin(value)`](#fn-metawithupdatedbymixin) - * [`obj createdBy`](#obj-metacreatedby) - * [`fn withAvatarUrl(value)`](#fn-metacreatedbywithavatarurl) - * [`fn withId(value)`](#fn-metacreatedbywithid) - * [`fn withName(value)`](#fn-metacreatedbywithname) - * [`obj updatedBy`](#obj-metaupdatedby) - * [`fn withAvatarUrl(value)`](#fn-metaupdatedbywithavatarurl) - * [`fn withId(value)`](#fn-metaupdatedbywithid) - * [`fn withName(value)`](#fn-metaupdatedbywithname) - -## Fields - -### fn withDescription - -```jsonnet -withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description -### fn withFolderUid - -```jsonnet -withFolderUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Folder UID -### fn withMeta - -```jsonnet -withMeta(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withMetaMixin - -```jsonnet -withMetaMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withModel - -```jsonnet -withModel(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO: should be the same panel schema defined in dashboard -Typescript: Omit; -### fn withModelMixin - -```jsonnet -withModelMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO: should be the same panel schema defined in dashboard -Typescript: Omit; -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel name (also saved in the model) -### fn withSchemaVersion - -```jsonnet -withSchemaVersion(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Dashboard version when this was saved (zero if unknown) -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The panel type (from inside the model) -### fn withUid - -```jsonnet -withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library element UID -### fn withVersion - -```jsonnet -withVersion(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -panel version, incremented each time the dashboard is updated. -### obj meta - - -#### fn meta.withConnectedDashboards - -```jsonnet -meta.withConnectedDashboards(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn meta.withCreated - -```jsonnet -meta.withCreated(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn meta.withCreatedBy - -```jsonnet -meta.withCreatedBy(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn meta.withCreatedByMixin - -```jsonnet -meta.withCreatedByMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn meta.withFolderName - -```jsonnet -meta.withFolderName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn meta.withFolderUid - -```jsonnet -meta.withFolderUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn meta.withUpdated - -```jsonnet -meta.withUpdated(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn meta.withUpdatedBy - -```jsonnet -meta.withUpdatedBy(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn meta.withUpdatedByMixin - -```jsonnet -meta.withUpdatedByMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### obj meta.createdBy - - -##### fn meta.createdBy.withAvatarUrl - -```jsonnet -meta.createdBy.withAvatarUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn meta.createdBy.withId - -```jsonnet -meta.createdBy.withId(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -##### fn meta.createdBy.withName - -```jsonnet -meta.createdBy.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj meta.updatedBy - - -##### fn meta.updatedBy.withAvatarUrl - -```jsonnet -meta.updatedBy.withAvatarUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn meta.updatedBy.withId - -```jsonnet -meta.updatedBy.withId(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -##### fn meta.updatedBy.withName - -```jsonnet -meta.updatedBy.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/index.md deleted file mode 100644 index 1c3e3945d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/index.md +++ /dev/null @@ -1,605 +0,0 @@ -# alertGroups - -grafonnet.panel.alertGroups - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withAlertmanager(value)`](#fn-optionswithalertmanager) - * [`fn withExpandAll(value=true)`](#fn-optionswithexpandall) - * [`fn withLabels(value)`](#fn-optionswithlabels) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new alertGroups panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withAlertmanager - -```jsonnet -options.withAlertmanager(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the alertmanager used as a source for alerts -#### fn options.withExpandAll - -```jsonnet -options.withExpandAll(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Expand all alert groups by default -#### fn options.withLabels - -```jsonnet -options.withLabels(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Comma-separated list of values used to filter alert results -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertGroups/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/index.md deleted file mode 100644 index e02b39b6c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/index.md +++ /dev/null @@ -1,1136 +0,0 @@ -# alertList - -grafonnet.panel.alertList - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withAlertListOptions(value)`](#fn-optionswithalertlistoptions) - * [`fn withAlertListOptionsMixin(value)`](#fn-optionswithalertlistoptionsmixin) - * [`fn withUnifiedAlertListOptions(value)`](#fn-optionswithunifiedalertlistoptions) - * [`fn withUnifiedAlertListOptionsMixin(value)`](#fn-optionswithunifiedalertlistoptionsmixin) - * [`obj AlertListOptions`](#obj-optionsalertlistoptions) - * [`fn withAlertName(value)`](#fn-optionsalertlistoptionswithalertname) - * [`fn withDashboardAlerts(value=true)`](#fn-optionsalertlistoptionswithdashboardalerts) - * [`fn withDashboardTitle(value)`](#fn-optionsalertlistoptionswithdashboardtitle) - * [`fn withFolderId(value)`](#fn-optionsalertlistoptionswithfolderid) - * [`fn withMaxItems(value)`](#fn-optionsalertlistoptionswithmaxitems) - * [`fn withShowOptions(value)`](#fn-optionsalertlistoptionswithshowoptions) - * [`fn withSortOrder(value)`](#fn-optionsalertlistoptionswithsortorder) - * [`fn withStateFilter(value)`](#fn-optionsalertlistoptionswithstatefilter) - * [`fn withStateFilterMixin(value)`](#fn-optionsalertlistoptionswithstatefiltermixin) - * [`fn withTags(value)`](#fn-optionsalertlistoptionswithtags) - * [`fn withTagsMixin(value)`](#fn-optionsalertlistoptionswithtagsmixin) - * [`obj stateFilter`](#obj-optionsalertlistoptionsstatefilter) - * [`fn withAlerting(value=true)`](#fn-optionsalertlistoptionsstatefilterwithalerting) - * [`fn withExecutionError(value=true)`](#fn-optionsalertlistoptionsstatefilterwithexecutionerror) - * [`fn withNoData(value=true)`](#fn-optionsalertlistoptionsstatefilterwithnodata) - * [`fn withOk(value=true)`](#fn-optionsalertlistoptionsstatefilterwithok) - * [`fn withPaused(value=true)`](#fn-optionsalertlistoptionsstatefilterwithpaused) - * [`fn withPending(value=true)`](#fn-optionsalertlistoptionsstatefilterwithpending) - * [`obj UnifiedAlertListOptions`](#obj-optionsunifiedalertlistoptions) - * [`fn withAlertInstanceLabelFilter(value)`](#fn-optionsunifiedalertlistoptionswithalertinstancelabelfilter) - * [`fn withAlertName(value)`](#fn-optionsunifiedalertlistoptionswithalertname) - * [`fn withDashboardAlerts(value=true)`](#fn-optionsunifiedalertlistoptionswithdashboardalerts) - * [`fn withDatasource(value)`](#fn-optionsunifiedalertlistoptionswithdatasource) - * [`fn withFolder(value)`](#fn-optionsunifiedalertlistoptionswithfolder) - * [`fn withFolderMixin(value)`](#fn-optionsunifiedalertlistoptionswithfoldermixin) - * [`fn withGroupBy(value)`](#fn-optionsunifiedalertlistoptionswithgroupby) - * [`fn withGroupByMixin(value)`](#fn-optionsunifiedalertlistoptionswithgroupbymixin) - * [`fn withGroupMode(value)`](#fn-optionsunifiedalertlistoptionswithgroupmode) - * [`fn withMaxItems(value)`](#fn-optionsunifiedalertlistoptionswithmaxitems) - * [`fn withShowInstances(value=true)`](#fn-optionsunifiedalertlistoptionswithshowinstances) - * [`fn withSortOrder(value)`](#fn-optionsunifiedalertlistoptionswithsortorder) - * [`fn withStateFilter(value)`](#fn-optionsunifiedalertlistoptionswithstatefilter) - * [`fn withStateFilterMixin(value)`](#fn-optionsunifiedalertlistoptionswithstatefiltermixin) - * [`fn withViewMode(value)`](#fn-optionsunifiedalertlistoptionswithviewmode) - * [`obj folder`](#obj-optionsunifiedalertlistoptionsfolder) - * [`fn withId(value)`](#fn-optionsunifiedalertlistoptionsfolderwithid) - * [`fn withTitle(value)`](#fn-optionsunifiedalertlistoptionsfolderwithtitle) - * [`obj stateFilter`](#obj-optionsunifiedalertlistoptionsstatefilter) - * [`fn withError(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwitherror) - * [`fn withFiring(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithfiring) - * [`fn withInactive(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithinactive) - * [`fn withNoData(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithnodata) - * [`fn withNormal(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithnormal) - * [`fn withPending(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithpending) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new alertlist panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withAlertListOptions - -```jsonnet -options.withAlertListOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withAlertListOptionsMixin - -```jsonnet -options.withAlertListOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withUnifiedAlertListOptions - -```jsonnet -options.withUnifiedAlertListOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withUnifiedAlertListOptionsMixin - -```jsonnet -options.withUnifiedAlertListOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### obj options.AlertListOptions - - -##### fn options.AlertListOptions.withAlertName - -```jsonnet -options.AlertListOptions.withAlertName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.AlertListOptions.withDashboardAlerts - -```jsonnet -options.AlertListOptions.withDashboardAlerts(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.AlertListOptions.withDashboardTitle - -```jsonnet -options.AlertListOptions.withDashboardTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.AlertListOptions.withFolderId - -```jsonnet -options.AlertListOptions.withFolderId(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.AlertListOptions.withMaxItems - -```jsonnet -options.AlertListOptions.withMaxItems(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.AlertListOptions.withShowOptions - -```jsonnet -options.AlertListOptions.withShowOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"current"`, `"changes"` - - -##### fn options.AlertListOptions.withSortOrder - -```jsonnet -options.AlertListOptions.withSortOrder(value) -``` - -PARAMETERS: - -* **value** (`number`) - - valid values: `1`, `2`, `3`, `4`, `5` - - -##### fn options.AlertListOptions.withStateFilter - -```jsonnet -options.AlertListOptions.withStateFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.AlertListOptions.withStateFilterMixin - -```jsonnet -options.AlertListOptions.withStateFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.AlertListOptions.withTags - -```jsonnet -options.AlertListOptions.withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.AlertListOptions.withTagsMixin - -```jsonnet -options.AlertListOptions.withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### obj options.AlertListOptions.stateFilter - - -###### fn options.AlertListOptions.stateFilter.withAlerting - -```jsonnet -options.AlertListOptions.stateFilter.withAlerting(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.AlertListOptions.stateFilter.withExecutionError - -```jsonnet -options.AlertListOptions.stateFilter.withExecutionError(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.AlertListOptions.stateFilter.withNoData - -```jsonnet -options.AlertListOptions.stateFilter.withNoData(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.AlertListOptions.stateFilter.withOk - -```jsonnet -options.AlertListOptions.stateFilter.withOk(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.AlertListOptions.stateFilter.withPaused - -```jsonnet -options.AlertListOptions.stateFilter.withPaused(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.AlertListOptions.stateFilter.withPending - -```jsonnet -options.AlertListOptions.stateFilter.withPending(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### obj options.UnifiedAlertListOptions - - -##### fn options.UnifiedAlertListOptions.withAlertInstanceLabelFilter - -```jsonnet -options.UnifiedAlertListOptions.withAlertInstanceLabelFilter(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.UnifiedAlertListOptions.withAlertName - -```jsonnet -options.UnifiedAlertListOptions.withAlertName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.UnifiedAlertListOptions.withDashboardAlerts - -```jsonnet -options.UnifiedAlertListOptions.withDashboardAlerts(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.UnifiedAlertListOptions.withDatasource - -```jsonnet -options.UnifiedAlertListOptions.withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.UnifiedAlertListOptions.withFolder - -```jsonnet -options.UnifiedAlertListOptions.withFolder(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.UnifiedAlertListOptions.withFolderMixin - -```jsonnet -options.UnifiedAlertListOptions.withFolderMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.UnifiedAlertListOptions.withGroupBy - -```jsonnet -options.UnifiedAlertListOptions.withGroupBy(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.UnifiedAlertListOptions.withGroupByMixin - -```jsonnet -options.UnifiedAlertListOptions.withGroupByMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.UnifiedAlertListOptions.withGroupMode - -```jsonnet -options.UnifiedAlertListOptions.withGroupMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"default"`, `"custom"` - - -##### fn options.UnifiedAlertListOptions.withMaxItems - -```jsonnet -options.UnifiedAlertListOptions.withMaxItems(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.UnifiedAlertListOptions.withShowInstances - -```jsonnet -options.UnifiedAlertListOptions.withShowInstances(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.UnifiedAlertListOptions.withSortOrder - -```jsonnet -options.UnifiedAlertListOptions.withSortOrder(value) -``` - -PARAMETERS: - -* **value** (`number`) - - valid values: `1`, `2`, `3`, `4`, `5` - - -##### fn options.UnifiedAlertListOptions.withStateFilter - -```jsonnet -options.UnifiedAlertListOptions.withStateFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.UnifiedAlertListOptions.withStateFilterMixin - -```jsonnet -options.UnifiedAlertListOptions.withStateFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.UnifiedAlertListOptions.withViewMode - -```jsonnet -options.UnifiedAlertListOptions.withViewMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"stat"` - - -##### obj options.UnifiedAlertListOptions.folder - - -###### fn options.UnifiedAlertListOptions.folder.withId - -```jsonnet -options.UnifiedAlertListOptions.folder.withId(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn options.UnifiedAlertListOptions.folder.withTitle - -```jsonnet -options.UnifiedAlertListOptions.folder.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj options.UnifiedAlertListOptions.stateFilter - - -###### fn options.UnifiedAlertListOptions.stateFilter.withError - -```jsonnet -options.UnifiedAlertListOptions.stateFilter.withError(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.UnifiedAlertListOptions.stateFilter.withFiring - -```jsonnet -options.UnifiedAlertListOptions.stateFilter.withFiring(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.UnifiedAlertListOptions.stateFilter.withInactive - -```jsonnet -options.UnifiedAlertListOptions.stateFilter.withInactive(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.UnifiedAlertListOptions.stateFilter.withNoData - -```jsonnet -options.UnifiedAlertListOptions.stateFilter.withNoData(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.UnifiedAlertListOptions.stateFilter.withNormal - -```jsonnet -options.UnifiedAlertListOptions.stateFilter.withNormal(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.UnifiedAlertListOptions.stateFilter.withPending - -```jsonnet -options.UnifiedAlertListOptions.stateFilter.withPending(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/alertList/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/index.md deleted file mode 100644 index dc21cba61..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/index.md +++ /dev/null @@ -1,709 +0,0 @@ -# annotationsList - -grafonnet.panel.annotationsList - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withLimit(value=10)`](#fn-optionswithlimit) - * [`fn withNavigateAfter(value="10m")`](#fn-optionswithnavigateafter) - * [`fn withNavigateBefore(value="10m")`](#fn-optionswithnavigatebefore) - * [`fn withNavigateToPanel(value=true)`](#fn-optionswithnavigatetopanel) - * [`fn withOnlyFromThisDashboard(value=true)`](#fn-optionswithonlyfromthisdashboard) - * [`fn withOnlyInTimeRange(value=true)`](#fn-optionswithonlyintimerange) - * [`fn withShowTags(value=true)`](#fn-optionswithshowtags) - * [`fn withShowTime(value=true)`](#fn-optionswithshowtime) - * [`fn withShowUser(value=true)`](#fn-optionswithshowuser) - * [`fn withTags(value)`](#fn-optionswithtags) - * [`fn withTagsMixin(value)`](#fn-optionswithtagsmixin) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new annotationsList panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withLimit - -```jsonnet -options.withLimit(value=10) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `10` - - -#### fn options.withNavigateAfter - -```jsonnet -options.withNavigateAfter(value="10m") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"10m"` - - -#### fn options.withNavigateBefore - -```jsonnet -options.withNavigateBefore(value="10m") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"10m"` - - -#### fn options.withNavigateToPanel - -```jsonnet -options.withNavigateToPanel(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withOnlyFromThisDashboard - -```jsonnet -options.withOnlyFromThisDashboard(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withOnlyInTimeRange - -```jsonnet -options.withOnlyInTimeRange(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowTags - -```jsonnet -options.withShowTags(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowTime - -```jsonnet -options.withShowTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowUser - -```jsonnet -options.withShowUser(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withTags - -```jsonnet -options.withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTagsMixin - -```jsonnet -options.withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/annotationsList/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/index.md deleted file mode 100644 index 8eaa9bd99..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/index.md +++ /dev/null @@ -1,1305 +0,0 @@ -# barChart - -grafonnet.panel.barChart - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withFillOpacity(value=80)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) - * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) - * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withBarRadius(value=0)`](#fn-optionswithbarradius) - * [`fn withBarWidth(value=0.97)`](#fn-optionswithbarwidth) - * [`fn withColorByField(value)`](#fn-optionswithcolorbyfield) - * [`fn withFullHighlight(value=true)`](#fn-optionswithfullhighlight) - * [`fn withGroupWidth(value=0.7)`](#fn-optionswithgroupwidth) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withShowValue(value)`](#fn-optionswithshowvalue) - * [`fn withStacking(value)`](#fn-optionswithstacking) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`fn withXField(value)`](#fn-optionswithxfield) - * [`fn withXTickLabelMaxLength(value)`](#fn-optionswithxticklabelmaxlength) - * [`fn withXTickLabelRotation(value=0)`](#fn-optionswithxticklabelrotation) - * [`fn withXTickLabelSpacing(value=0)`](#fn-optionswithxticklabelspacing) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new barChart panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```jsonnet -fieldConfig.defaults.custom.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```jsonnet -fieldConfig.defaults.custom.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```jsonnet -fieldConfig.defaults.custom.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```jsonnet -fieldConfig.defaults.custom.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```jsonnet -fieldConfig.defaults.custom.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```jsonnet -fieldConfig.defaults.custom.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.withFillOpacity(value=80) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `80` - -Controls the fill opacity of the bars. -###### fn fieldConfig.defaults.custom.withGradientMode - -```jsonnet -fieldConfig.defaults.custom.withGradientMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option. -Gradient appearance is influenced by the Fill opacity setting. -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value=1) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `1` - -Controls line width of the bars. -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyle - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -###### obj fieldConfig.defaults.custom.thresholdsStyle - - -####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode - -```jsonnet -fieldConfig.defaults.custom.thresholdsStyle.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"off"`, `"line"`, `"dashed"`, `"area"`, `"line+area"`, `"dashed+area"`, `"series"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withBarRadius - -```jsonnet -options.withBarRadius(value=0) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0` - -Controls the radius of each bar. -#### fn options.withBarWidth - -```jsonnet -options.withBarWidth(value=0.97) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0.97` - -Controls the width of bars. 1 = Max width, 0 = Min width. -#### fn options.withColorByField - -```jsonnet -options.withColorByField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Use the color value for a sibling field to color each bar value. -#### fn options.withFullHighlight - -```jsonnet -options.withFullHighlight(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Enables mode which highlights the entire bar area and shows tooltip when cursor -hovers over highlighted area -#### fn options.withGroupWidth - -```jsonnet -options.withGroupWidth(value=0.7) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0.7` - -Controls the width of groups. 1 = max with, 0 = min width. -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withOrientation - -```jsonnet -options.withOrientation(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Controls the orientation of the bar chart, either vertical or horizontal. -#### fn options.withShowValue - -```jsonnet -options.withShowValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -This controls whether values are shown on top or to the left of bars. -#### fn options.withStacking - -```jsonnet -options.withStacking(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Controls whether bars are stacked or not, either normally or in percent mode. -#### fn options.withText - -```jsonnet -options.withText(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTextMixin - -```jsonnet -options.withTextMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withXField - -```jsonnet -options.withXField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Manually select which field from the dataset to represent the x field. -#### fn options.withXTickLabelMaxLength - -```jsonnet -options.withXTickLabelMaxLength(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Sets the max length that a label can have before it is truncated. -#### fn options.withXTickLabelRotation - -```jsonnet -options.withXTickLabelRotation(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - -Controls the rotation of the x axis labels. -#### fn options.withXTickLabelSpacing - -```jsonnet -options.withXTickLabelSpacing(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - -Controls the spacing between x axis labels. -negative values indicate backwards skipping behavior -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.text - - -##### fn options.text.withTitleSize - -```jsonnet -options.text.withTitleSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit title text size -##### fn options.text.withValueSize - -```jsonnet -options.text.withValueSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit value text size -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barChart/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/index.md deleted file mode 100644 index c9f8277d7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/index.md +++ /dev/null @@ -1,788 +0,0 @@ -# barGauge - -grafonnet.panel.barGauge - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withDisplayMode(value)`](#fn-optionswithdisplaymode) - * [`fn withMinVizHeight(value=10)`](#fn-optionswithminvizheight) - * [`fn withMinVizWidth(value=0)`](#fn-optionswithminvizwidth) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) - * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) - * [`fn withShowUnfilled(value=true)`](#fn-optionswithshowunfilled) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`fn withValueMode(value)`](#fn-optionswithvaluemode) - * [`obj reduceOptions`](#obj-optionsreduceoptions) - * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) - * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) - * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) - * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new barGauge panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withDisplayMode - -```jsonnet -options.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"basic"`, `"lcd"`, `"gradient"` - -Enum expressing the possible display modes -for the bar gauge component of Grafana UI -#### fn options.withMinVizHeight - -```jsonnet -options.withMinVizHeight(value=10) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `10` - - -#### fn options.withMinVizWidth - -```jsonnet -options.withMinVizWidth(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - - -#### fn options.withOrientation - -```jsonnet -options.withOrientation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"vertical"`, `"horizontal"` - -TODO docs -#### fn options.withReduceOptions - -```jsonnet -options.withReduceOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withReduceOptionsMixin - -```jsonnet -options.withReduceOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withShowUnfilled - -```jsonnet -options.withShowUnfilled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withText - -```jsonnet -options.withText(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTextMixin - -```jsonnet -options.withTextMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withValueMode - -```jsonnet -options.withValueMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"color"`, `"text"`, `"hidden"` - -Allows for the table cell gauge display type to set the gauge mode. -#### obj options.reduceOptions - - -##### fn options.reduceOptions.withCalcs - -```jsonnet -options.reduceOptions.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withCalcsMixin - -```jsonnet -options.reduceOptions.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withFields - -```jsonnet -options.reduceOptions.withFields(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Which fields to show. By default this is only numeric fields -##### fn options.reduceOptions.withLimit - -```jsonnet -options.reduceOptions.withLimit(value) -``` - -PARAMETERS: - -* **value** (`number`) - -if showing all values limit -##### fn options.reduceOptions.withValues - -```jsonnet -options.reduceOptions.withValues(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true show each row value -#### obj options.text - - -##### fn options.text.withTitleSize - -```jsonnet -options.text.withTitleSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit title text size -##### fn options.text.withValueSize - -```jsonnet -options.text.withValueSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit value text size -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/barGauge/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/index.md deleted file mode 100644 index fc422189d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/index.md +++ /dev/null @@ -1,564 +0,0 @@ -# candlestick - -grafonnet.panel.candlestick - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new candlestick panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/candlestick/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/index.md deleted file mode 100644 index cffebcaf5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/index.md +++ /dev/null @@ -1,564 +0,0 @@ -# canvas - -grafonnet.panel.canvas - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new canvas panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/canvas/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/index.md deleted file mode 100644 index 39ddeedc0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/index.md +++ /dev/null @@ -1,708 +0,0 @@ -# dashboardList - -grafonnet.panel.dashboardList - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withFolderId(value)`](#fn-optionswithfolderid) - * [`fn withIncludeVars(value=true)`](#fn-optionswithincludevars) - * [`fn withKeepTime(value=true)`](#fn-optionswithkeeptime) - * [`fn withMaxItems(value=10)`](#fn-optionswithmaxitems) - * [`fn withQuery(value="")`](#fn-optionswithquery) - * [`fn withShowHeadings(value=true)`](#fn-optionswithshowheadings) - * [`fn withShowRecentlyViewed(value=true)`](#fn-optionswithshowrecentlyviewed) - * [`fn withShowSearch(value=true)`](#fn-optionswithshowsearch) - * [`fn withShowStarred(value=true)`](#fn-optionswithshowstarred) - * [`fn withTags(value)`](#fn-optionswithtags) - * [`fn withTagsMixin(value)`](#fn-optionswithtagsmixin) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new dashboardList panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withFolderId - -```jsonnet -options.withFolderId(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn options.withIncludeVars - -```jsonnet -options.withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withKeepTime - -```jsonnet -options.withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withMaxItems - -```jsonnet -options.withMaxItems(value=10) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `10` - - -#### fn options.withQuery - -```jsonnet -options.withQuery(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn options.withShowHeadings - -```jsonnet -options.withShowHeadings(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowRecentlyViewed - -```jsonnet -options.withShowRecentlyViewed(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowSearch - -```jsonnet -options.withShowSearch(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowStarred - -```jsonnet -options.withShowStarred(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withTags - -```jsonnet -options.withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTagsMixin - -```jsonnet -options.withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/dashboardList/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/index.md deleted file mode 100644 index 27438c0a7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/index.md +++ /dev/null @@ -1,581 +0,0 @@ -# datagrid - -grafonnet.panel.datagrid - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withSelectedSeries(value=0)`](#fn-optionswithselectedseries) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new datagrid panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withSelectedSeries - -```jsonnet -options.withSelectedSeries(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/datagrid/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/index.md deleted file mode 100644 index edf7a291e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/index.md +++ /dev/null @@ -1,648 +0,0 @@ -# debug - -grafonnet.panel.debug - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withCounters(value)`](#fn-optionswithcounters) - * [`fn withCountersMixin(value)`](#fn-optionswithcountersmixin) - * [`fn withMode(value)`](#fn-optionswithmode) - * [`obj counters`](#obj-optionscounters) - * [`fn withDataChanged(value=true)`](#fn-optionscounterswithdatachanged) - * [`fn withRender(value=true)`](#fn-optionscounterswithrender) - * [`fn withSchemaChanged(value=true)`](#fn-optionscounterswithschemachanged) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new debug panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withCounters - -```jsonnet -options.withCounters(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withCountersMixin - -```jsonnet -options.withCountersMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withMode - -```jsonnet -options.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"render"`, `"events"`, `"cursor"`, `"State"`, `"ThrowError"` - - -#### obj options.counters - - -##### fn options.counters.withDataChanged - -```jsonnet -options.counters.withDataChanged(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.counters.withRender - -```jsonnet -options.counters.withRender(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.counters.withSchemaChanged - -```jsonnet -options.counters.withSchemaChanged(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/debug/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/index.md deleted file mode 100644 index b766519f7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/index.md +++ /dev/null @@ -1,748 +0,0 @@ -# gauge - -grafonnet.panel.gauge - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) - * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) - * [`fn withShowThresholdLabels(value=true)`](#fn-optionswithshowthresholdlabels) - * [`fn withShowThresholdMarkers(value=true)`](#fn-optionswithshowthresholdmarkers) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`obj reduceOptions`](#obj-optionsreduceoptions) - * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) - * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) - * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) - * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new gauge panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withOrientation - -```jsonnet -options.withOrientation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"vertical"`, `"horizontal"` - -TODO docs -#### fn options.withReduceOptions - -```jsonnet -options.withReduceOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withReduceOptionsMixin - -```jsonnet -options.withReduceOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withShowThresholdLabels - -```jsonnet -options.withShowThresholdLabels(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowThresholdMarkers - -```jsonnet -options.withShowThresholdMarkers(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withText - -```jsonnet -options.withText(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTextMixin - -```jsonnet -options.withTextMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.reduceOptions - - -##### fn options.reduceOptions.withCalcs - -```jsonnet -options.reduceOptions.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withCalcsMixin - -```jsonnet -options.reduceOptions.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withFields - -```jsonnet -options.reduceOptions.withFields(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Which fields to show. By default this is only numeric fields -##### fn options.reduceOptions.withLimit - -```jsonnet -options.reduceOptions.withLimit(value) -``` - -PARAMETERS: - -* **value** (`number`) - -if showing all values limit -##### fn options.reduceOptions.withValues - -```jsonnet -options.reduceOptions.withValues(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true show each row value -#### obj options.text - - -##### fn options.text.withTitleSize - -```jsonnet -options.text.withTitleSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit title text size -##### fn options.text.withValueSize - -```jsonnet -options.text.withValueSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit value text size -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/gauge/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/index.md deleted file mode 100644 index 39c74bd8f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/index.md +++ /dev/null @@ -1,1123 +0,0 @@ -# geomap - -grafonnet.panel.geomap - -## Subpackages - -* [options.layers](options/layers.md) -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withBasemap(value)`](#fn-optionswithbasemap) - * [`fn withBasemapMixin(value)`](#fn-optionswithbasemapmixin) - * [`fn withControls(value)`](#fn-optionswithcontrols) - * [`fn withControlsMixin(value)`](#fn-optionswithcontrolsmixin) - * [`fn withLayers(value)`](#fn-optionswithlayers) - * [`fn withLayersMixin(value)`](#fn-optionswithlayersmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`fn withView(value)`](#fn-optionswithview) - * [`fn withViewMixin(value)`](#fn-optionswithviewmixin) - * [`obj basemap`](#obj-optionsbasemap) - * [`fn withConfig(value)`](#fn-optionsbasemapwithconfig) - * [`fn withFilterData(value)`](#fn-optionsbasemapwithfilterdata) - * [`fn withLocation(value)`](#fn-optionsbasemapwithlocation) - * [`fn withLocationMixin(value)`](#fn-optionsbasemapwithlocationmixin) - * [`fn withName(value)`](#fn-optionsbasemapwithname) - * [`fn withOpacity(value)`](#fn-optionsbasemapwithopacity) - * [`fn withTooltip(value=true)`](#fn-optionsbasemapwithtooltip) - * [`fn withType(value)`](#fn-optionsbasemapwithtype) - * [`obj location`](#obj-optionsbasemaplocation) - * [`fn withGazetteer(value)`](#fn-optionsbasemaplocationwithgazetteer) - * [`fn withGeohash(value)`](#fn-optionsbasemaplocationwithgeohash) - * [`fn withLatitude(value)`](#fn-optionsbasemaplocationwithlatitude) - * [`fn withLongitude(value)`](#fn-optionsbasemaplocationwithlongitude) - * [`fn withLookup(value)`](#fn-optionsbasemaplocationwithlookup) - * [`fn withMode(value)`](#fn-optionsbasemaplocationwithmode) - * [`fn withWkt(value)`](#fn-optionsbasemaplocationwithwkt) - * [`obj controls`](#obj-optionscontrols) - * [`fn withMouseWheelZoom(value=true)`](#fn-optionscontrolswithmousewheelzoom) - * [`fn withShowAttribution(value=true)`](#fn-optionscontrolswithshowattribution) - * [`fn withShowDebug(value=true)`](#fn-optionscontrolswithshowdebug) - * [`fn withShowMeasure(value=true)`](#fn-optionscontrolswithshowmeasure) - * [`fn withShowScale(value=true)`](#fn-optionscontrolswithshowscale) - * [`fn withShowZoom(value=true)`](#fn-optionscontrolswithshowzoom) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`obj view`](#obj-optionsview) - * [`fn withAllLayers(value=true)`](#fn-optionsviewwithalllayers) - * [`fn withId(value="zero")`](#fn-optionsviewwithid) - * [`fn withLastOnly(value=true)`](#fn-optionsviewwithlastonly) - * [`fn withLat(value=0)`](#fn-optionsviewwithlat) - * [`fn withLayer(value)`](#fn-optionsviewwithlayer) - * [`fn withLon(value=0)`](#fn-optionsviewwithlon) - * [`fn withMaxZoom(value)`](#fn-optionsviewwithmaxzoom) - * [`fn withMinZoom(value)`](#fn-optionsviewwithminzoom) - * [`fn withPadding(value)`](#fn-optionsviewwithpadding) - * [`fn withShared(value=true)`](#fn-optionsviewwithshared) - * [`fn withZoom(value=1)`](#fn-optionsviewwithzoom) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new geomap panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withBasemap - -```jsonnet -options.withBasemap(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withBasemapMixin - -```jsonnet -options.withBasemapMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withControls - -```jsonnet -options.withControls(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withControlsMixin - -```jsonnet -options.withControlsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withLayers - -```jsonnet -options.withLayers(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withLayersMixin - -```jsonnet -options.withLayersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withView - -```jsonnet -options.withView(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withViewMixin - -```jsonnet -options.withViewMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### obj options.basemap - - -##### fn options.basemap.withConfig - -```jsonnet -options.basemap.withConfig(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Custom options depending on the type -##### fn options.basemap.withFilterData - -```jsonnet -options.basemap.withFilterData(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Defines a frame MatcherConfig that may filter data for the given layer -##### fn options.basemap.withLocation - -```jsonnet -options.basemap.withLocation(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.basemap.withLocationMixin - -```jsonnet -options.basemap.withLocationMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.basemap.withName - -```jsonnet -options.basemap.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -configured unique display name -##### fn options.basemap.withOpacity - -```jsonnet -options.basemap.withOpacity(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Common properties: -https://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html -Layer opacity (0-1) -##### fn options.basemap.withTooltip - -```jsonnet -options.basemap.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Check tooltip (defaults to true) -##### fn options.basemap.withType - -```jsonnet -options.basemap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj options.basemap.location - - -###### fn options.basemap.location.withGazetteer - -```jsonnet -options.basemap.location.withGazetteer(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Path to Gazetteer -###### fn options.basemap.location.withGeohash - -```jsonnet -options.basemap.location.withGeohash(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Field mappings -###### fn options.basemap.location.withLatitude - -```jsonnet -options.basemap.location.withLatitude(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn options.basemap.location.withLongitude - -```jsonnet -options.basemap.location.withLongitude(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn options.basemap.location.withLookup - -```jsonnet -options.basemap.location.withLookup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn options.basemap.location.withMode - -```jsonnet -options.basemap.location.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"geohash"`, `"coords"`, `"lookup"` - - -###### fn options.basemap.location.withWkt - -```jsonnet -options.basemap.location.withWkt(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj options.controls - - -##### fn options.controls.withMouseWheelZoom - -```jsonnet -options.controls.withMouseWheelZoom(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -let the mouse wheel zoom -##### fn options.controls.withShowAttribution - -```jsonnet -options.controls.withShowAttribution(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Lower right -##### fn options.controls.withShowDebug - -```jsonnet -options.controls.withShowDebug(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Show debug -##### fn options.controls.withShowMeasure - -```jsonnet -options.controls.withShowMeasure(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Show measure -##### fn options.controls.withShowScale - -```jsonnet -options.controls.withShowScale(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Scale options -##### fn options.controls.withShowZoom - -```jsonnet -options.controls.withShowZoom(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Zoom (upper left) -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"details"` - - -#### obj options.view - - -##### fn options.view.withAllLayers - -```jsonnet -options.view.withAllLayers(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.view.withId - -```jsonnet -options.view.withId(value="zero") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"zero"` - - -##### fn options.view.withLastOnly - -```jsonnet -options.view.withLastOnly(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.view.withLat - -```jsonnet -options.view.withLat(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - - -##### fn options.view.withLayer - -```jsonnet -options.view.withLayer(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.view.withLon - -```jsonnet -options.view.withLon(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - - -##### fn options.view.withMaxZoom - -```jsonnet -options.view.withMaxZoom(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -##### fn options.view.withMinZoom - -```jsonnet -options.view.withMinZoom(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -##### fn options.view.withPadding - -```jsonnet -options.view.withPadding(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -##### fn options.view.withShared - -```jsonnet -options.view.withShared(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.view.withZoom - -```jsonnet -options.view.withZoom(value=1) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `1` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/options/layers.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/options/layers.md deleted file mode 100644 index d65f7c605..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/options/layers.md +++ /dev/null @@ -1,196 +0,0 @@ -# layers - - - -## Index - -* [`fn withConfig(value)`](#fn-withconfig) -* [`fn withFilterData(value)`](#fn-withfilterdata) -* [`fn withLocation(value)`](#fn-withlocation) -* [`fn withLocationMixin(value)`](#fn-withlocationmixin) -* [`fn withName(value)`](#fn-withname) -* [`fn withOpacity(value)`](#fn-withopacity) -* [`fn withTooltip(value=true)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`obj location`](#obj-location) - * [`fn withGazetteer(value)`](#fn-locationwithgazetteer) - * [`fn withGeohash(value)`](#fn-locationwithgeohash) - * [`fn withLatitude(value)`](#fn-locationwithlatitude) - * [`fn withLongitude(value)`](#fn-locationwithlongitude) - * [`fn withLookup(value)`](#fn-locationwithlookup) - * [`fn withMode(value)`](#fn-locationwithmode) - * [`fn withWkt(value)`](#fn-locationwithwkt) - -## Fields - -### fn withConfig - -```jsonnet -withConfig(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Custom options depending on the type -### fn withFilterData - -```jsonnet -withFilterData(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Defines a frame MatcherConfig that may filter data for the given layer -### fn withLocation - -```jsonnet -withLocation(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLocationMixin - -```jsonnet -withLocationMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -configured unique display name -### fn withOpacity - -```jsonnet -withOpacity(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Common properties: -https://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html -Layer opacity (0-1) -### fn withTooltip - -```jsonnet -withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Check tooltip (defaults to true) -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj location - - -#### fn location.withGazetteer - -```jsonnet -location.withGazetteer(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Path to Gazetteer -#### fn location.withGeohash - -```jsonnet -location.withGeohash(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Field mappings -#### fn location.withLatitude - -```jsonnet -location.withLatitude(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn location.withLongitude - -```jsonnet -location.withLongitude(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn location.withLookup - -```jsonnet -location.withLookup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn location.withMode - -```jsonnet -location.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"geohash"`, `"coords"`, `"lookup"` - - -#### fn location.withWkt - -```jsonnet -location.withWkt(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/geomap/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/index.md deleted file mode 100644 index 04322da2d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/index.md +++ /dev/null @@ -1,1804 +0,0 @@ -# heatmap - -grafonnet.panel.heatmap - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withCalculate(value=true)`](#fn-optionswithcalculate) - * [`fn withCalculation(value)`](#fn-optionswithcalculation) - * [`fn withCalculationMixin(value)`](#fn-optionswithcalculationmixin) - * [`fn withCellGap(value=1)`](#fn-optionswithcellgap) - * [`fn withCellRadius(value)`](#fn-optionswithcellradius) - * [`fn withCellValues(value={})`](#fn-optionswithcellvalues) - * [`fn withCellValuesMixin(value={})`](#fn-optionswithcellvaluesmixin) - * [`fn withColor(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64})`](#fn-optionswithcolor) - * [`fn withColorMixin(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64})`](#fn-optionswithcolormixin) - * [`fn withExemplars(value)`](#fn-optionswithexemplars) - * [`fn withExemplarsMixin(value)`](#fn-optionswithexemplarsmixin) - * [`fn withFilterValues(value={"le": 0.000000001})`](#fn-optionswithfiltervalues) - * [`fn withFilterValuesMixin(value={"le": 0.000000001})`](#fn-optionswithfiltervaluesmixin) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withRowsFrame(value)`](#fn-optionswithrowsframe) - * [`fn withRowsFrameMixin(value)`](#fn-optionswithrowsframemixin) - * [`fn withShowValue(value)`](#fn-optionswithshowvalue) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`fn withYAxis(value)`](#fn-optionswithyaxis) - * [`fn withYAxisMixin(value)`](#fn-optionswithyaxismixin) - * [`obj calculation`](#obj-optionscalculation) - * [`fn withXBuckets(value)`](#fn-optionscalculationwithxbuckets) - * [`fn withXBucketsMixin(value)`](#fn-optionscalculationwithxbucketsmixin) - * [`fn withYBuckets(value)`](#fn-optionscalculationwithybuckets) - * [`fn withYBucketsMixin(value)`](#fn-optionscalculationwithybucketsmixin) - * [`obj xBuckets`](#obj-optionscalculationxbuckets) - * [`fn withMode(value)`](#fn-optionscalculationxbucketswithmode) - * [`fn withScale(value)`](#fn-optionscalculationxbucketswithscale) - * [`fn withScaleMixin(value)`](#fn-optionscalculationxbucketswithscalemixin) - * [`fn withValue(value)`](#fn-optionscalculationxbucketswithvalue) - * [`obj scale`](#obj-optionscalculationxbucketsscale) - * [`fn withLinearThreshold(value)`](#fn-optionscalculationxbucketsscalewithlinearthreshold) - * [`fn withLog(value)`](#fn-optionscalculationxbucketsscalewithlog) - * [`fn withType(value)`](#fn-optionscalculationxbucketsscalewithtype) - * [`obj yBuckets`](#obj-optionscalculationybuckets) - * [`fn withMode(value)`](#fn-optionscalculationybucketswithmode) - * [`fn withScale(value)`](#fn-optionscalculationybucketswithscale) - * [`fn withScaleMixin(value)`](#fn-optionscalculationybucketswithscalemixin) - * [`fn withValue(value)`](#fn-optionscalculationybucketswithvalue) - * [`obj scale`](#obj-optionscalculationybucketsscale) - * [`fn withLinearThreshold(value)`](#fn-optionscalculationybucketsscalewithlinearthreshold) - * [`fn withLog(value)`](#fn-optionscalculationybucketsscalewithlog) - * [`fn withType(value)`](#fn-optionscalculationybucketsscalewithtype) - * [`obj cellValues`](#obj-optionscellvalues) - * [`fn withCellValues(value)`](#fn-optionscellvalueswithcellvalues) - * [`fn withCellValuesMixin(value)`](#fn-optionscellvalueswithcellvaluesmixin) - * [`obj CellValues`](#obj-optionscellvaluescellvalues) - * [`fn withDecimals(value)`](#fn-optionscellvaluescellvalueswithdecimals) - * [`fn withUnit(value)`](#fn-optionscellvaluescellvalueswithunit) - * [`obj color`](#obj-optionscolor) - * [`fn withHeatmapColorOptions(value)`](#fn-optionscolorwithheatmapcoloroptions) - * [`fn withHeatmapColorOptionsMixin(value)`](#fn-optionscolorwithheatmapcoloroptionsmixin) - * [`obj HeatmapColorOptions`](#obj-optionscolorheatmapcoloroptions) - * [`fn withExponent(value)`](#fn-optionscolorheatmapcoloroptionswithexponent) - * [`fn withFill(value)`](#fn-optionscolorheatmapcoloroptionswithfill) - * [`fn withMax(value)`](#fn-optionscolorheatmapcoloroptionswithmax) - * [`fn withMin(value)`](#fn-optionscolorheatmapcoloroptionswithmin) - * [`fn withMode(value)`](#fn-optionscolorheatmapcoloroptionswithmode) - * [`fn withReverse(value=true)`](#fn-optionscolorheatmapcoloroptionswithreverse) - * [`fn withScale(value)`](#fn-optionscolorheatmapcoloroptionswithscale) - * [`fn withScheme(value)`](#fn-optionscolorheatmapcoloroptionswithscheme) - * [`fn withSteps(value)`](#fn-optionscolorheatmapcoloroptionswithsteps) - * [`obj exemplars`](#obj-optionsexemplars) - * [`fn withColor(value)`](#fn-optionsexemplarswithcolor) - * [`obj filterValues`](#obj-optionsfiltervalues) - * [`fn withFilterValueRange(value)`](#fn-optionsfiltervalueswithfiltervaluerange) - * [`fn withFilterValueRangeMixin(value)`](#fn-optionsfiltervalueswithfiltervaluerangemixin) - * [`obj FilterValueRange`](#obj-optionsfiltervaluesfiltervaluerange) - * [`fn withGe(value)`](#fn-optionsfiltervaluesfiltervaluerangewithge) - * [`fn withLe(value)`](#fn-optionsfiltervaluesfiltervaluerangewithle) - * [`obj legend`](#obj-optionslegend) - * [`fn withShow(value=true)`](#fn-optionslegendwithshow) - * [`obj rowsFrame`](#obj-optionsrowsframe) - * [`fn withLayout(value)`](#fn-optionsrowsframewithlayout) - * [`fn withValue(value)`](#fn-optionsrowsframewithvalue) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withShow(value=true)`](#fn-optionstooltipwithshow) - * [`fn withYHistogram(value=true)`](#fn-optionstooltipwithyhistogram) - * [`obj yAxis`](#obj-optionsyaxis) - * [`fn withAxisCenteredZero(value=true)`](#fn-optionsyaxiswithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-optionsyaxiswithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-optionsyaxiswithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-optionsyaxiswithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-optionsyaxiswithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-optionsyaxiswithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-optionsyaxiswithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-optionsyaxiswithaxiswidth) - * [`fn withDecimals(value)`](#fn-optionsyaxiswithdecimals) - * [`fn withMax(value)`](#fn-optionsyaxiswithmax) - * [`fn withMin(value)`](#fn-optionsyaxiswithmin) - * [`fn withReverse(value=true)`](#fn-optionsyaxiswithreverse) - * [`fn withScaleDistribution(value)`](#fn-optionsyaxiswithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-optionsyaxiswithscaledistributionmixin) - * [`fn withUnit(value)`](#fn-optionsyaxiswithunit) - * [`obj scaleDistribution`](#obj-optionsyaxisscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-optionsyaxisscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-optionsyaxisscaledistributionwithlog) - * [`fn withType(value)`](#fn-optionsyaxisscaledistributionwithtype) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new heatmap panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withCalculate - -```jsonnet -options.withCalculate(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the heatmap should be calculated from data -#### fn options.withCalculation - -```jsonnet -options.withCalculation(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withCalculationMixin - -```jsonnet -options.withCalculationMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withCellGap - -```jsonnet -options.withCellGap(value=1) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `1` - -Controls gap between cells -#### fn options.withCellRadius - -```jsonnet -options.withCellRadius(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Controls cell radius -#### fn options.withCellValues - -```jsonnet -options.withCellValues(value={}) -``` - -PARAMETERS: - -* **value** (`object`) - - default value: `{}` - -Controls cell value unit -#### fn options.withCellValuesMixin - -```jsonnet -options.withCellValuesMixin(value={}) -``` - -PARAMETERS: - -* **value** (`object`) - - default value: `{}` - -Controls cell value unit -#### fn options.withColor - -```jsonnet -options.withColor(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64}) -``` - -PARAMETERS: - -* **value** (`object`) - - default value: `{"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64}` - -Controls the color options -#### fn options.withColorMixin - -```jsonnet -options.withColorMixin(value={"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64}) -``` - -PARAMETERS: - -* **value** (`object`) - - default value: `{"exponent": 0.5,"fill": "dark-orange","reverse": false,"scheme": "Oranges","steps": 64}` - -Controls the color options -#### fn options.withExemplars - -```jsonnet -options.withExemplars(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls exemplar options -#### fn options.withExemplarsMixin - -```jsonnet -options.withExemplarsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls exemplar options -#### fn options.withFilterValues - -```jsonnet -options.withFilterValues(value={"le": 0.000000001}) -``` - -PARAMETERS: - -* **value** (`object`) - - default value: `{"le": 0.000000001}` - -Filters values between a given range -#### fn options.withFilterValuesMixin - -```jsonnet -options.withFilterValuesMixin(value={"le": 0.000000001}) -``` - -PARAMETERS: - -* **value** (`object`) - - default value: `{"le": 0.000000001}` - -Filters values between a given range -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls legend options -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls legend options -#### fn options.withRowsFrame - -```jsonnet -options.withRowsFrame(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls frame rows options -#### fn options.withRowsFrameMixin - -```jsonnet -options.withRowsFrameMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls frame rows options -#### fn options.withShowValue - -```jsonnet -options.withShowValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -| *{ - layout: ui.HeatmapCellLayout & "auto" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed -} -Controls the display of the value in the cell -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls tooltip options -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls tooltip options -#### fn options.withYAxis - -```jsonnet -options.withYAxis(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Configuration options for the yAxis -#### fn options.withYAxisMixin - -```jsonnet -options.withYAxisMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Configuration options for the yAxis -#### obj options.calculation - - -##### fn options.calculation.withXBuckets - -```jsonnet -options.calculation.withXBuckets(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.calculation.withXBucketsMixin - -```jsonnet -options.calculation.withXBucketsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.calculation.withYBuckets - -```jsonnet -options.calculation.withYBuckets(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.calculation.withYBucketsMixin - -```jsonnet -options.calculation.withYBucketsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### obj options.calculation.xBuckets - - -###### fn options.calculation.xBuckets.withMode - -```jsonnet -options.calculation.xBuckets.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"size"`, `"count"` - - -###### fn options.calculation.xBuckets.withScale - -```jsonnet -options.calculation.xBuckets.withScale(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn options.calculation.xBuckets.withScaleMixin - -```jsonnet -options.calculation.xBuckets.withScaleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn options.calculation.xBuckets.withValue - -```jsonnet -options.calculation.xBuckets.withValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The number of buckets to use for the axis in the heatmap -###### obj options.calculation.xBuckets.scale - - -####### fn options.calculation.xBuckets.scale.withLinearThreshold - -```jsonnet -options.calculation.xBuckets.scale.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn options.calculation.xBuckets.scale.withLog - -```jsonnet -options.calculation.xBuckets.scale.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn options.calculation.xBuckets.scale.withType - -```jsonnet -options.calculation.xBuckets.scale.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -##### obj options.calculation.yBuckets - - -###### fn options.calculation.yBuckets.withMode - -```jsonnet -options.calculation.yBuckets.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"size"`, `"count"` - - -###### fn options.calculation.yBuckets.withScale - -```jsonnet -options.calculation.yBuckets.withScale(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn options.calculation.yBuckets.withScaleMixin - -```jsonnet -options.calculation.yBuckets.withScaleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn options.calculation.yBuckets.withValue - -```jsonnet -options.calculation.yBuckets.withValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The number of buckets to use for the axis in the heatmap -###### obj options.calculation.yBuckets.scale - - -####### fn options.calculation.yBuckets.scale.withLinearThreshold - -```jsonnet -options.calculation.yBuckets.scale.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn options.calculation.yBuckets.scale.withLog - -```jsonnet -options.calculation.yBuckets.scale.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn options.calculation.yBuckets.scale.withType - -```jsonnet -options.calculation.yBuckets.scale.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -#### obj options.cellValues - - -##### fn options.cellValues.withCellValues - -```jsonnet -options.cellValues.withCellValues(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls cell value options -##### fn options.cellValues.withCellValuesMixin - -```jsonnet -options.cellValues.withCellValuesMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls cell value options -##### obj options.cellValues.CellValues - - -###### fn options.cellValues.CellValues.withDecimals - -```jsonnet -options.cellValues.CellValues.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Controls the number of decimals for cell values -###### fn options.cellValues.CellValues.withUnit - -```jsonnet -options.cellValues.CellValues.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Controls the cell value unit -#### obj options.color - - -##### fn options.color.withHeatmapColorOptions - -```jsonnet -options.color.withHeatmapColorOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls various color options -##### fn options.color.withHeatmapColorOptionsMixin - -```jsonnet -options.color.withHeatmapColorOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls various color options -##### obj options.color.HeatmapColorOptions - - -###### fn options.color.HeatmapColorOptions.withExponent - -```jsonnet -options.color.HeatmapColorOptions.withExponent(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Controls the exponent when scale is set to exponential -###### fn options.color.HeatmapColorOptions.withFill - -```jsonnet -options.color.HeatmapColorOptions.withFill(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Controls the color fill when in opacity mode -###### fn options.color.HeatmapColorOptions.withMax - -```jsonnet -options.color.HeatmapColorOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Sets the maximum value for the color scale -###### fn options.color.HeatmapColorOptions.withMin - -```jsonnet -options.color.HeatmapColorOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Sets the minimum value for the color scale -###### fn options.color.HeatmapColorOptions.withMode - -```jsonnet -options.color.HeatmapColorOptions.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"opacity"`, `"scheme"` - -Controls the color mode of the heatmap -###### fn options.color.HeatmapColorOptions.withReverse - -```jsonnet -options.color.HeatmapColorOptions.withReverse(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Reverses the color scheme -###### fn options.color.HeatmapColorOptions.withScale - -```jsonnet -options.color.HeatmapColorOptions.withScale(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"exponential"` - -Controls the color scale of the heatmap -###### fn options.color.HeatmapColorOptions.withScheme - -```jsonnet -options.color.HeatmapColorOptions.withScheme(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Controls the color scheme used -###### fn options.color.HeatmapColorOptions.withSteps - -```jsonnet -options.color.HeatmapColorOptions.withSteps(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Controls the number of color steps -#### obj options.exemplars - - -##### fn options.exemplars.withColor - -```jsonnet -options.exemplars.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Sets the color of the exemplar markers -#### obj options.filterValues - - -##### fn options.filterValues.withFilterValueRange - -```jsonnet -options.filterValues.withFilterValueRange(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls the value filter range -##### fn options.filterValues.withFilterValueRangeMixin - -```jsonnet -options.filterValues.withFilterValueRangeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls the value filter range -##### obj options.filterValues.FilterValueRange - - -###### fn options.filterValues.FilterValueRange.withGe - -```jsonnet -options.filterValues.FilterValueRange.withGe(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Sets the filter range to values greater than or equal to the given value -###### fn options.filterValues.FilterValueRange.withLe - -```jsonnet -options.filterValues.FilterValueRange.withLe(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Sets the filter range to values less than or equal to the given value -#### obj options.legend - - -##### fn options.legend.withShow - -```jsonnet -options.legend.withShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the legend is shown -#### obj options.rowsFrame - - -##### fn options.rowsFrame.withLayout - -```jsonnet -options.rowsFrame.withLayout(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"le"`, `"ge"`, `"unknown"`, `"auto"` - - -##### fn options.rowsFrame.withValue - -```jsonnet -options.rowsFrame.withValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Sets the name of the cell when not calculating from data -#### obj options.tooltip - - -##### fn options.tooltip.withShow - -```jsonnet -options.tooltip.withShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the tooltip is shown -##### fn options.tooltip.withYHistogram - -```jsonnet -options.tooltip.withYHistogram(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the tooltip shows a histogram of the y-axis values -#### obj options.yAxis - - -##### fn options.yAxis.withAxisCenteredZero - -```jsonnet -options.yAxis.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.yAxis.withAxisColorMode - -```jsonnet -options.yAxis.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -##### fn options.yAxis.withAxisGridShow - -```jsonnet -options.yAxis.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.yAxis.withAxisLabel - -```jsonnet -options.yAxis.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.yAxis.withAxisPlacement - -```jsonnet -options.yAxis.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -##### fn options.yAxis.withAxisSoftMax - -```jsonnet -options.yAxis.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.yAxis.withAxisSoftMin - -```jsonnet -options.yAxis.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.yAxis.withAxisWidth - -```jsonnet -options.yAxis.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.yAxis.withDecimals - -```jsonnet -options.yAxis.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Controls the number of decimals for yAxis values -##### fn options.yAxis.withMax - -```jsonnet -options.yAxis.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Sets the maximum value for the yAxis -##### fn options.yAxis.withMin - -```jsonnet -options.yAxis.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Sets the minimum value for the yAxis -##### fn options.yAxis.withReverse - -```jsonnet -options.yAxis.withReverse(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Reverses the yAxis -##### fn options.yAxis.withScaleDistribution - -```jsonnet -options.yAxis.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn options.yAxis.withScaleDistributionMixin - -```jsonnet -options.yAxis.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn options.yAxis.withUnit - -```jsonnet -options.yAxis.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Sets the yAxis unit -##### obj options.yAxis.scaleDistribution - - -###### fn options.yAxis.scaleDistribution.withLinearThreshold - -```jsonnet -options.yAxis.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn options.yAxis.scaleDistribution.withLog - -```jsonnet -options.yAxis.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn options.yAxis.scaleDistribution.withType - -```jsonnet -options.yAxis.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/heatmap/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/index.md deleted file mode 100644 index 48daae8ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/index.md +++ /dev/null @@ -1,1098 +0,0 @@ -# histogram - -grafonnet.panel.histogram - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withFillOpacity(value=80)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withBucketOffset(value=0)`](#fn-optionswithbucketoffset) - * [`fn withBucketSize(value)`](#fn-optionswithbucketsize) - * [`fn withCombine(value=true)`](#fn-optionswithcombine) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new histogram panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```jsonnet -fieldConfig.defaults.custom.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```jsonnet -fieldConfig.defaults.custom.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```jsonnet -fieldConfig.defaults.custom.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```jsonnet -fieldConfig.defaults.custom.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```jsonnet -fieldConfig.defaults.custom.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```jsonnet -fieldConfig.defaults.custom.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.withFillOpacity(value=80) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `80` - -Controls the fill opacity of the bars. -###### fn fieldConfig.defaults.custom.withGradientMode - -```jsonnet -fieldConfig.defaults.custom.withGradientMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option. -Gradient appearance is influenced by the Fill opacity setting. -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value=1) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `1` - -Controls line width of the bars. -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withBucketOffset - -```jsonnet -options.withBucketOffset(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - -Offset buckets by this amount -#### fn options.withBucketSize - -```jsonnet -options.withBucketSize(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Size of each bucket -#### fn options.withCombine - -```jsonnet -options.withCombine(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Combines multiple series into a single histogram -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/histogram/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/index.md deleted file mode 100644 index d29f1572a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/index.md +++ /dev/null @@ -1,33 +0,0 @@ -# panel - -grafonnet.panel - -## Subpackages - -* [alertGroups](alertGroups/index.md) -* [alertList](alertList/index.md) -* [annotationsList](annotationsList/index.md) -* [barChart](barChart/index.md) -* [barGauge](barGauge/index.md) -* [candlestick](candlestick/index.md) -* [canvas](canvas/index.md) -* [dashboardList](dashboardList/index.md) -* [datagrid](datagrid/index.md) -* [debug](debug/index.md) -* [gauge](gauge/index.md) -* [geomap](geomap/index.md) -* [heatmap](heatmap/index.md) -* [histogram](histogram/index.md) -* [logs](logs/index.md) -* [news](news/index.md) -* [nodeGraph](nodeGraph/index.md) -* [pieChart](pieChart/index.md) -* [row](row.md) -* [stat](stat/index.md) -* [stateTimeline](stateTimeline/index.md) -* [statusHistory](statusHistory/index.md) -* [table](table/index.md) -* [text](text/index.md) -* [timeSeries](timeSeries/index.md) -* [trend](trend/index.md) -* [xyChart](xyChart/index.md) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/index.md deleted file mode 100644 index 4d1f3ad2b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/index.md +++ /dev/null @@ -1,672 +0,0 @@ -# logs - -grafonnet.panel.logs - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withDedupStrategy(value)`](#fn-optionswithdedupstrategy) - * [`fn withEnableLogDetails(value=true)`](#fn-optionswithenablelogdetails) - * [`fn withPrettifyLogMessage(value=true)`](#fn-optionswithprettifylogmessage) - * [`fn withShowCommonLabels(value=true)`](#fn-optionswithshowcommonlabels) - * [`fn withShowLabels(value=true)`](#fn-optionswithshowlabels) - * [`fn withShowTime(value=true)`](#fn-optionswithshowtime) - * [`fn withSortOrder(value)`](#fn-optionswithsortorder) - * [`fn withWrapLogMessage(value=true)`](#fn-optionswithwraplogmessage) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new logs panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withDedupStrategy - -```jsonnet -options.withDedupStrategy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"exact"`, `"numbers"`, `"signature"` - - -#### fn options.withEnableLogDetails - -```jsonnet -options.withEnableLogDetails(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withPrettifyLogMessage - -```jsonnet -options.withPrettifyLogMessage(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowCommonLabels - -```jsonnet -options.withShowCommonLabels(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowLabels - -```jsonnet -options.withShowLabels(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowTime - -```jsonnet -options.withShowTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withSortOrder - -```jsonnet -options.withSortOrder(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"Descending"`, `"Ascending"` - - -#### fn options.withWrapLogMessage - -```jsonnet -options.withWrapLogMessage(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/logs/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/index.md deleted file mode 100644 index bdad9a6e8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/index.md +++ /dev/null @@ -1,593 +0,0 @@ -# news - -grafonnet.panel.news - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withFeedUrl(value)`](#fn-optionswithfeedurl) - * [`fn withShowImage(value=true)`](#fn-optionswithshowimage) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new news panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withFeedUrl - -```jsonnet -options.withFeedUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -empty/missing will default to grafana blog -#### fn options.withShowImage - -```jsonnet -options.withShowImage(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/news/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/index.md deleted file mode 100644 index 694775f66..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/index.md +++ /dev/null @@ -1,697 +0,0 @@ -# nodeGraph - -grafonnet.panel.nodeGraph - -## Subpackages - -* [options.nodes.arcs](options/nodes/arcs.md) -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withEdges(value)`](#fn-optionswithedges) - * [`fn withEdgesMixin(value)`](#fn-optionswithedgesmixin) - * [`fn withNodes(value)`](#fn-optionswithnodes) - * [`fn withNodesMixin(value)`](#fn-optionswithnodesmixin) - * [`obj edges`](#obj-optionsedges) - * [`fn withMainStatUnit(value)`](#fn-optionsedgeswithmainstatunit) - * [`fn withSecondaryStatUnit(value)`](#fn-optionsedgeswithsecondarystatunit) - * [`obj nodes`](#obj-optionsnodes) - * [`fn withArcs(value)`](#fn-optionsnodeswitharcs) - * [`fn withArcsMixin(value)`](#fn-optionsnodeswitharcsmixin) - * [`fn withMainStatUnit(value)`](#fn-optionsnodeswithmainstatunit) - * [`fn withSecondaryStatUnit(value)`](#fn-optionsnodeswithsecondarystatunit) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new nodeGraph panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withEdges - -```jsonnet -options.withEdges(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withEdgesMixin - -```jsonnet -options.withEdgesMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withNodes - -```jsonnet -options.withNodes(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withNodesMixin - -```jsonnet -options.withNodesMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### obj options.edges - - -##### fn options.edges.withMainStatUnit - -```jsonnet -options.edges.withMainStatUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit for the main stat to override what ever is set in the data frame. -##### fn options.edges.withSecondaryStatUnit - -```jsonnet -options.edges.withSecondaryStatUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit for the secondary stat to override what ever is set in the data frame. -#### obj options.nodes - - -##### fn options.nodes.withArcs - -```jsonnet -options.nodes.withArcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Define which fields are shown as part of the node arc (colored circle around the node). -##### fn options.nodes.withArcsMixin - -```jsonnet -options.nodes.withArcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Define which fields are shown as part of the node arc (colored circle around the node). -##### fn options.nodes.withMainStatUnit - -```jsonnet -options.nodes.withMainStatUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit for the main stat to override what ever is set in the data frame. -##### fn options.nodes.withSecondaryStatUnit - -```jsonnet -options.nodes.withSecondaryStatUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit for the secondary stat to override what ever is set in the data frame. -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/options/nodes/arcs.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/options/nodes/arcs.md deleted file mode 100644 index f80fe2413..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/options/nodes/arcs.md +++ /dev/null @@ -1,33 +0,0 @@ -# arcs - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withField(value)`](#fn-withfield) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The color of the arc. -### fn withField - -```jsonnet -withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Field from which to get the value. Values should be less than 1, representing fraction of a circle. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/nodeGraph/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/index.md deleted file mode 100644 index b431d7427..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/index.md +++ /dev/null @@ -1,1071 +0,0 @@ -# pieChart - -grafonnet.panel.pieChart - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withDisplayLabels(value)`](#fn-optionswithdisplaylabels) - * [`fn withDisplayLabelsMixin(value)`](#fn-optionswithdisplaylabelsmixin) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withPieType(value)`](#fn-optionswithpietype) - * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) - * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withValues(value)`](#fn-optionslegendwithvalues) - * [`fn withValuesMixin(value)`](#fn-optionslegendwithvaluesmixin) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj reduceOptions`](#obj-optionsreduceoptions) - * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) - * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) - * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) - * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new pieChart panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withDisplayLabels - -```jsonnet -options.withDisplayLabels(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withDisplayLabelsMixin - -```jsonnet -options.withDisplayLabelsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withOrientation - -```jsonnet -options.withOrientation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"vertical"`, `"horizontal"` - -TODO docs -#### fn options.withPieType - -```jsonnet -options.withPieType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"pie"`, `"donut"` - -Select the pie chart display style. -#### fn options.withReduceOptions - -```jsonnet -options.withReduceOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withReduceOptionsMixin - -```jsonnet -options.withReduceOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withText - -```jsonnet -options.withText(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTextMixin - -```jsonnet -options.withTextMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withValues - -```jsonnet -options.legend.withValues(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withValuesMixin - -```jsonnet -options.legend.withValuesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.reduceOptions - - -##### fn options.reduceOptions.withCalcs - -```jsonnet -options.reduceOptions.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withCalcsMixin - -```jsonnet -options.reduceOptions.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withFields - -```jsonnet -options.reduceOptions.withFields(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Which fields to show. By default this is only numeric fields -##### fn options.reduceOptions.withLimit - -```jsonnet -options.reduceOptions.withLimit(value) -``` - -PARAMETERS: - -* **value** (`number`) - -if showing all values limit -##### fn options.reduceOptions.withValues - -```jsonnet -options.reduceOptions.withValues(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true show each row value -#### obj options.text - - -##### fn options.text.withTitleSize - -```jsonnet -options.text.withTitleSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit title text size -##### fn options.text.withValueSize - -```jsonnet -options.text.withValueSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit value text size -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/pieChart/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/row.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/row.md deleted file mode 100644 index 18c860078..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/row.md +++ /dev/null @@ -1,178 +0,0 @@ -# row - -grafonnet.panel.row - -## Index - -* [`fn new(title)`](#fn-new) -* [`fn withCollapsed(value=true)`](#fn-withcollapsed) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) -* [`fn withGridPos(y)`](#fn-withgridpos) -* [`fn withGridPosMixin(value)`](#fn-withgridposmixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withPanels(value)`](#fn-withpanels) -* [`fn withPanelsMixin(value)`](#fn-withpanelsmixin) -* [`fn withRepeat(value)`](#fn-withrepeat) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withType()`](#fn-withtype) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new row panel with a title. -### fn withCollapsed - -```jsonnet -withCollapsed(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Name of default datasource. -### fn withDatasourceMixin - -```jsonnet -withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Name of default datasource. -### fn withGridPos - -```jsonnet -withGridPos(y) -``` - -PARAMETERS: - -* **y** (`number`) - -`withGridPos` sets the Y-axis on a row panel. x, width and height are fixed values. -### fn withGridPosMixin - -```jsonnet -withGridPosMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### fn withPanels - -```jsonnet -withPanels(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withPanelsMixin - -```jsonnet -withPanelsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withRepeat - -```jsonnet -withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType() -``` - - - -### obj datasource - - -#### fn datasource.withType - -```jsonnet -datasource.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn datasource.withUid - -```jsonnet -datasource.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/index.md deleted file mode 100644 index a76b1af08..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/index.md +++ /dev/null @@ -1,774 +0,0 @@ -# stat - -grafonnet.panel.stat - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withColorMode(value)`](#fn-optionswithcolormode) - * [`fn withGraphMode(value)`](#fn-optionswithgraphmode) - * [`fn withJustifyMode(value)`](#fn-optionswithjustifymode) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) - * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`fn withTextMode(value)`](#fn-optionswithtextmode) - * [`obj reduceOptions`](#obj-optionsreduceoptions) - * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) - * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) - * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) - * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new stat panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withColorMode - -```jsonnet -options.withColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"value"`, `"background"`, `"background_solid"`, `"none"` - -TODO docs -#### fn options.withGraphMode - -```jsonnet -options.withGraphMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"line"`, `"area"` - -TODO docs -#### fn options.withJustifyMode - -```jsonnet -options.withJustifyMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"center"` - -TODO docs -#### fn options.withOrientation - -```jsonnet -options.withOrientation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"vertical"`, `"horizontal"` - -TODO docs -#### fn options.withReduceOptions - -```jsonnet -options.withReduceOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withReduceOptionsMixin - -```jsonnet -options.withReduceOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withText - -```jsonnet -options.withText(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTextMixin - -```jsonnet -options.withTextMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTextMode - -```jsonnet -options.withTextMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"value"`, `"value_and_name"`, `"name"`, `"none"` - -TODO docs -#### obj options.reduceOptions - - -##### fn options.reduceOptions.withCalcs - -```jsonnet -options.reduceOptions.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withCalcsMixin - -```jsonnet -options.reduceOptions.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withFields - -```jsonnet -options.reduceOptions.withFields(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Which fields to show. By default this is only numeric fields -##### fn options.reduceOptions.withLimit - -```jsonnet -options.reduceOptions.withLimit(value) -``` - -PARAMETERS: - -* **value** (`number`) - -if showing all values limit -##### fn options.reduceOptions.withValues - -```jsonnet -options.reduceOptions.withValues(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true show each row value -#### obj options.text - - -##### fn options.text.withTitleSize - -```jsonnet -options.text.withTitleSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit title text size -##### fn options.text.withValueSize - -```jsonnet -options.text.withValueSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit value text size -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stat/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/index.md deleted file mode 100644 index 091ed33bd..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/index.md +++ /dev/null @@ -1,956 +0,0 @@ -# stateTimeline - -grafonnet.panel.stateTimeline - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withFillOpacity(value=70)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineWidth(value=0)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withAlignValue(value)`](#fn-optionswithalignvalue) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withMergeValues(value=true)`](#fn-optionswithmergevalues) - * [`fn withRowHeight(value=0.9)`](#fn-optionswithrowheight) - * [`fn withShowValue(value)`](#fn-optionswithshowvalue) - * [`fn withTimezone(value)`](#fn-optionswithtimezone) - * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new stateTimeline panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.withFillOpacity(value=70) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `70` - - -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - - -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withAlignValue - -```jsonnet -options.withAlignValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Controls value alignment on the timelines -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withMergeValues - -```jsonnet -options.withMergeValues(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Merge equal consecutive values -#### fn options.withRowHeight - -```jsonnet -options.withRowHeight(value=0.9) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0.9` - -Controls the row height -#### fn options.withShowValue - -```jsonnet -options.withShowValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Show timeline values on chart -#### fn options.withTimezone - -```jsonnet -options.withTimezone(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTimezoneMixin - -```jsonnet -options.withTimezoneMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/stateTimeline/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/index.md deleted file mode 100644 index c0b81780d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/index.md +++ /dev/null @@ -1,944 +0,0 @@ -# statusHistory - -grafonnet.panel.statusHistory - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withFillOpacity(value=70)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withColWidth(value=0.9)`](#fn-optionswithcolwidth) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withRowHeight(value=0.9)`](#fn-optionswithrowheight) - * [`fn withShowValue(value)`](#fn-optionswithshowvalue) - * [`fn withTimezone(value)`](#fn-optionswithtimezone) - * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new statusHistory panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.withFillOpacity(value=70) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `70` - - -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value=1) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `1` - - -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withColWidth - -```jsonnet -options.withColWidth(value=0.9) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0.9` - -Controls the column width -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withRowHeight - -```jsonnet -options.withRowHeight(value=0.9) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0.9` - -Set the height of the rows -#### fn options.withShowValue - -```jsonnet -options.withShowValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Show values on the columns -#### fn options.withTimezone - -```jsonnet -options.withTimezone(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTimezoneMixin - -```jsonnet -options.withTimezoneMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/statusHistory/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/index.md deleted file mode 100644 index 85e4b8a71..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/index.md +++ /dev/null @@ -1,1830 +0,0 @@ -# table - -grafonnet.panel.table - -## Subpackages - -* [options.sortBy](options/sortBy.md) -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAlign(value)`](#fn-fieldconfigdefaultscustomwithalign) - * [`fn withCellOptions(value)`](#fn-fieldconfigdefaultscustomwithcelloptions) - * [`fn withCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomwithcelloptionsmixin) - * [`fn withDisplayMode(value)`](#fn-fieldconfigdefaultscustomwithdisplaymode) - * [`fn withFilterable(value=true)`](#fn-fieldconfigdefaultscustomwithfilterable) - * [`fn withHidden(value=true)`](#fn-fieldconfigdefaultscustomwithhidden) - * [`fn withHideHeader(value=true)`](#fn-fieldconfigdefaultscustomwithhideheader) - * [`fn withInspect(value=true)`](#fn-fieldconfigdefaultscustomwithinspect) - * [`fn withMinWidth(value)`](#fn-fieldconfigdefaultscustomwithminwidth) - * [`fn withWidth(value)`](#fn-fieldconfigdefaultscustomwithwidth) - * [`obj cellOptions`](#obj-fieldconfigdefaultscustomcelloptions) - * [`fn withTableAutoCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtableautocelloptions) - * [`fn withTableAutoCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtableautocelloptionsmixin) - * [`fn withTableBarGaugeCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablebargaugecelloptions) - * [`fn withTableBarGaugeCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablebargaugecelloptionsmixin) - * [`fn withTableColorTextCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablecolortextcelloptions) - * [`fn withTableColorTextCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablecolortextcelloptionsmixin) - * [`fn withTableColoredBackgroundCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablecoloredbackgroundcelloptions) - * [`fn withTableColoredBackgroundCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablecoloredbackgroundcelloptionsmixin) - * [`fn withTableImageCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtableimagecelloptions) - * [`fn withTableImageCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtableimagecelloptionsmixin) - * [`fn withTableJsonViewCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablejsonviewcelloptions) - * [`fn withTableJsonViewCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablejsonviewcelloptionsmixin) - * [`fn withTableSparklineCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablesparklinecelloptions) - * [`fn withTableSparklineCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablesparklinecelloptionsmixin) - * [`obj TableAutoCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstableautocelloptions) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstableautocelloptionswithtype) - * [`obj TableBarGaugeCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablebargaugecelloptions) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablebargaugecelloptionswithmode) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablebargaugecelloptionswithtype) - * [`fn withValueDisplayMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablebargaugecelloptionswithvaluedisplaymode) - * [`obj TableColorTextCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablecolortextcelloptions) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablecolortextcelloptionswithtype) - * [`obj TableColoredBackgroundCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablecoloredbackgroundcelloptions) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablecoloredbackgroundcelloptionswithmode) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablecoloredbackgroundcelloptionswithtype) - * [`obj TableImageCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstableimagecelloptions) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstableimagecelloptionswithtype) - * [`obj TableJsonViewCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablejsonviewcelloptions) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablejsonviewcelloptionswithtype) - * [`obj TableSparklineCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptions) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxiswidth) - * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithbaralignment) - * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithbarmaxwidth) - * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithbarwidthfactor) - * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithdrawstyle) - * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithfillbelowto) - * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithfillcolor) - * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithhidefrommixin) - * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlinecolor) - * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlineinterpolation) - * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlinestyle) - * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlinestylemixin) - * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlinewidth) - * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithpointcolor) - * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithpointsize) - * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithpointsymbol) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithscaledistributionmixin) - * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithshowpoints) - * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithspannulls) - * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithstacking) - * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithstackingmixin) - * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswiththresholdsstyle) - * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswiththresholdsstylemixin) - * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithtransform) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithtype) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionshidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionshidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionshidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionshidefromwithviz) - * [`obj lineStyle`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionslinestyle) - * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionslinestylewithdash) - * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionslinestylewithdashmixin) - * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionslinestylewithfill) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsscaledistributionwithtype) - * [`obj stacking`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsstacking) - * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsstackingwithgroup) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsstackingwithmode) - * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsthresholdsstyle) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsthresholdsstylewithmode) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withCellHeight(value)`](#fn-optionswithcellheight) - * [`fn withFooter(value={"countRows": false,"reducer": [],"show": false})`](#fn-optionswithfooter) - * [`fn withFooterMixin(value={"countRows": false,"reducer": [],"show": false})`](#fn-optionswithfootermixin) - * [`fn withFrameIndex(value=0)`](#fn-optionswithframeindex) - * [`fn withShowHeader(value=true)`](#fn-optionswithshowheader) - * [`fn withShowTypeIcons(value=true)`](#fn-optionswithshowtypeicons) - * [`fn withSortBy(value)`](#fn-optionswithsortby) - * [`fn withSortByMixin(value)`](#fn-optionswithsortbymixin) - * [`obj footer`](#obj-optionsfooter) - * [`fn withTableFooterOptions(value)`](#fn-optionsfooterwithtablefooteroptions) - * [`fn withTableFooterOptionsMixin(value)`](#fn-optionsfooterwithtablefooteroptionsmixin) - * [`obj TableFooterOptions`](#obj-optionsfootertablefooteroptions) - * [`fn withCountRows(value=true)`](#fn-optionsfootertablefooteroptionswithcountrows) - * [`fn withEnablePagination(value=true)`](#fn-optionsfootertablefooteroptionswithenablepagination) - * [`fn withFields(value)`](#fn-optionsfootertablefooteroptionswithfields) - * [`fn withFieldsMixin(value)`](#fn-optionsfootertablefooteroptionswithfieldsmixin) - * [`fn withReducer(value)`](#fn-optionsfootertablefooteroptionswithreducer) - * [`fn withReducerMixin(value)`](#fn-optionsfootertablefooteroptionswithreducermixin) - * [`fn withShow(value=true)`](#fn-optionsfootertablefooteroptionswithshow) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new table panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAlign - -```jsonnet -fieldConfig.defaults.custom.withAlign(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"left"`, `"right"`, `"center"` - -TODO -- should not be table specific! TODO docs -###### fn fieldConfig.defaults.custom.withCellOptions - -```jsonnet -fieldConfig.defaults.custom.withCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Table cell options. Each cell has a display mode and other potential options for that display. -###### fn fieldConfig.defaults.custom.withCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.withCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Table cell options. Each cell has a display mode and other potential options for that display. -###### fn fieldConfig.defaults.custom.withDisplayMode - -```jsonnet -fieldConfig.defaults.custom.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"basic"`, `"color-background"`, `"color-background-solid"`, `"color-text"`, `"custom"`, `"gauge"`, `"gradient-gauge"`, `"image"`, `"json-view"`, `"lcd-gauge"`, `"sparkline"` - -Internally, this is the "type" of cell that's being displayed in the table such as colored text, JSON, gauge, etc. The color-background-solid, gradient-gauge, and lcd-gauge modes are deprecated in favor of new cell subOptions -###### fn fieldConfig.defaults.custom.withFilterable - -```jsonnet -fieldConfig.defaults.custom.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withHidden - -```jsonnet -fieldConfig.defaults.custom.withHidden(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withHideHeader - -```jsonnet -fieldConfig.defaults.custom.withHideHeader(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Hides any header for a column, usefull for columns that show some static content or buttons. -###### fn fieldConfig.defaults.custom.withInspect - -```jsonnet -fieldConfig.defaults.custom.withInspect(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withMinWidth - -```jsonnet -fieldConfig.defaults.custom.withMinWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withWidth - -```jsonnet -fieldConfig.defaults.custom.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### obj fieldConfig.defaults.custom.cellOptions - - -####### fn fieldConfig.defaults.custom.cellOptions.withTableAutoCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableAutoCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Auto mode table cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableAutoCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableAutoCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Auto mode table cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableBarGaugeCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableBarGaugeCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Gauge cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableBarGaugeCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableBarGaugeCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Gauge cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableColorTextCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableColorTextCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Colored text cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableColorTextCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableColorTextCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Colored text cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableColoredBackgroundCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableColoredBackgroundCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Colored background cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableColoredBackgroundCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableColoredBackgroundCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Colored background cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableImageCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableImageCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Json view cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableImageCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableImageCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Json view cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableJsonViewCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableJsonViewCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Json view cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableJsonViewCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableJsonViewCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Json view cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableSparklineCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableSparklineCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Sparkline cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableSparklineCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableSparklineCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Sparkline cell options -####### obj fieldConfig.defaults.custom.cellOptions.TableAutoCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableAutoCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableAutoCellOptions.withType() -``` - - - -####### obj fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"basic"`, `"gradient"`, `"lcd"` - -Enum expressing the possible display modes for the bar gauge component of Grafana UI -######## fn fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withType() -``` - - - -######## fn fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withValueDisplayMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withValueDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"color"`, `"hidden"`, `"text"` - -Allows for the table cell gauge display type to set the gauge mode. -####### obj fieldConfig.defaults.custom.cellOptions.TableColorTextCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableColorTextCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableColorTextCellOptions.withType() -``` - - - -####### obj fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"basic"`, `"gradient"` - -Display mode to the "Colored Background" display mode for table cells. Either displays a solid color (basic mode) or a gradient. -######## fn fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withType() -``` - - - -####### obj fieldConfig.defaults.custom.cellOptions.TableImageCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableImageCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableImageCellOptions.withType() -``` - - - -####### obj fieldConfig.defaults.custom.cellOptions.TableJsonViewCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableJsonViewCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableJsonViewCellOptions.withType() -``` - - - -####### obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisCenteredZero - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisColorMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"text"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisGridShow - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisLabel - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisPlacement - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"bottom"`, `"hidden"`, `"left"`, `"right"`, `"top"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisSoftMax - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisSoftMin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisWidth - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarAlignment - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarAlignment(value) -``` - -PARAMETERS: - -* **value** (`number`) - - valid values: `1`, `-1`, `0` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarMaxWidth - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarWidthFactor - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarWidthFactor(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withDrawStyle - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withDrawStyle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bars"`, `"line"`, `"points"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillBelowTo - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillBelowTo(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillColor - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillOpacity(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withGradientMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withGradientMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"hue"`, `"none"`, `"opacity"`, `"scheme"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineColor - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineInterpolation - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineInterpolation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"smooth"`, `"stepAfter"`, `"stepBefore"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineStyle - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineStyleMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointColor - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointSize - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointSymbol - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointSymbol(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withShowPoints - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withShowPoints(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"always"`, `"auto"`, `"never"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withSpanNulls - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withSpanNulls(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`number`) - -Indicate if null values should be treated as gaps or connected. When the value is a number, it represents the maximum delta in the X axis that should be considered connected. For timeseries, this is milliseconds -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withStacking - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withStacking(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withStackingMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withStackingMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withThresholdsStyle - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withThresholdsStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withThresholdsStyleMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withThresholdsStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withTransform - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withTransform(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"constant"`, `"negative-Y"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withType() -``` - - - -######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withDash - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withDash(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withDashMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withDashMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withFill - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withFill(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` - - -######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking.withGroup - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking.withGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking.withMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"normal"`, `"percent"` - -TODO docs -######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.thresholdsStyle - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.thresholdsStyle.withMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.thresholdsStyle.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"area"`, `"dashed"`, `"dashed+area"`, `"line"`, `"line+area"`, `"off"`, `"series"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withCellHeight - -```jsonnet -options.withCellHeight(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Controls the height of the rows -#### fn options.withFooter - -```jsonnet -options.withFooter(value={"countRows": false,"reducer": [],"show": false}) -``` - -PARAMETERS: - -* **value** (`object`) - - default value: `{"countRows": false,"reducer": [],"show": false}` - -Controls footer options -#### fn options.withFooterMixin - -```jsonnet -options.withFooterMixin(value={"countRows": false,"reducer": [],"show": false}) -``` - -PARAMETERS: - -* **value** (`object`) - - default value: `{"countRows": false,"reducer": [],"show": false}` - -Controls footer options -#### fn options.withFrameIndex - -```jsonnet -options.withFrameIndex(value=0) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0` - -Represents the index of the selected frame -#### fn options.withShowHeader - -```jsonnet -options.withShowHeader(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls whether the panel should show the header -#### fn options.withShowTypeIcons - -```jsonnet -options.withShowTypeIcons(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls whether the header should show icons for the column types -#### fn options.withSortBy - -```jsonnet -options.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Used to control row sorting -#### fn options.withSortByMixin - -```jsonnet -options.withSortByMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Used to control row sorting -#### obj options.footer - - -##### fn options.footer.withTableFooterOptions - -```jsonnet -options.footer.withTableFooterOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Footer options -##### fn options.footer.withTableFooterOptionsMixin - -```jsonnet -options.footer.withTableFooterOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Footer options -##### obj options.footer.TableFooterOptions - - -###### fn options.footer.TableFooterOptions.withCountRows - -```jsonnet -options.footer.TableFooterOptions.withCountRows(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.footer.TableFooterOptions.withEnablePagination - -```jsonnet -options.footer.TableFooterOptions.withEnablePagination(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.footer.TableFooterOptions.withFields - -```jsonnet -options.footer.TableFooterOptions.withFields(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn options.footer.TableFooterOptions.withFieldsMixin - -```jsonnet -options.footer.TableFooterOptions.withFieldsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn options.footer.TableFooterOptions.withReducer - -```jsonnet -options.footer.TableFooterOptions.withReducer(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn options.footer.TableFooterOptions.withReducerMixin - -```jsonnet -options.footer.TableFooterOptions.withReducerMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn options.footer.TableFooterOptions.withShow - -```jsonnet -options.footer.TableFooterOptions.withShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/options/sortBy.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/options/sortBy.md deleted file mode 100644 index 20748dc80..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/options/sortBy.md +++ /dev/null @@ -1,34 +0,0 @@ -# sortBy - - - -## Index - -* [`fn withDesc(value=true)`](#fn-withdesc) -* [`fn withDisplayName(value)`](#fn-withdisplayname) - -## Fields - -### fn withDesc - -```jsonnet -withDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Flag used to indicate descending sort order -### fn withDisplayName - -```jsonnet -withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Sets the display name of the field to sort by \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/table/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/index.md deleted file mode 100644 index b70ade3ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/index.md +++ /dev/null @@ -1,662 +0,0 @@ -# text - -grafonnet.panel.text - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withCode(value)`](#fn-optionswithcode) - * [`fn withCodeMixin(value)`](#fn-optionswithcodemixin) - * [`fn withContent(value="# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)")`](#fn-optionswithcontent) - * [`fn withMode(value)`](#fn-optionswithmode) - * [`obj code`](#obj-optionscode) - * [`fn withLanguage(value="plaintext")`](#fn-optionscodewithlanguage) - * [`fn withShowLineNumbers(value=true)`](#fn-optionscodewithshowlinenumbers) - * [`fn withShowMiniMap(value=true)`](#fn-optionscodewithshowminimap) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new text panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withCode - -```jsonnet -options.withCode(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withCodeMixin - -```jsonnet -options.withCodeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withContent - -```jsonnet -options.withContent(value="# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)"` - - -#### fn options.withMode - -```jsonnet -options.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"html"`, `"markdown"`, `"code"` - - -#### obj options.code - - -##### fn options.code.withLanguage - -```jsonnet -options.code.withLanguage(value="plaintext") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"plaintext"` - - valid values: `"plaintext"`, `"yaml"`, `"xml"`, `"typescript"`, `"sql"`, `"go"`, `"markdown"`, `"html"`, `"json"` - - -##### fn options.code.withShowLineNumbers - -```jsonnet -options.code.withShowLineNumbers(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.code.withShowMiniMap - -```jsonnet -options.code.withShowMiniMap(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/text/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/index.md deleted file mode 100644 index b6713908a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/index.md +++ /dev/null @@ -1,1430 +0,0 @@ -# timeSeries - -grafonnet.panel.timeSeries - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomwithbaralignment) - * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomwithbarmaxwidth) - * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomwithbarwidthfactor) - * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomwithdrawstyle) - * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomwithfillbelowto) - * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomwithfillcolor) - * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) - * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomwithlineinterpolation) - * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) - * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) - * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) - * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) - * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomwithpointsymbol) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomwithshowpoints) - * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomwithspannulls) - * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithspannullsmixin) - * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) - * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) - * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) - * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) - * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomwithtransform) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) - * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) - * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) - * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) - * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) - * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) - * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withTimezone(value)`](#fn-optionswithtimezone) - * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new timeSeries panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```jsonnet -fieldConfig.defaults.custom.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```jsonnet -fieldConfig.defaults.custom.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```jsonnet -fieldConfig.defaults.custom.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```jsonnet -fieldConfig.defaults.custom.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```jsonnet -fieldConfig.defaults.custom.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```jsonnet -fieldConfig.defaults.custom.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withBarAlignment - -```jsonnet -fieldConfig.defaults.custom.withBarAlignment(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - valid values: `-1`, `0`, `1` - -TODO docs -###### fn fieldConfig.defaults.custom.withBarMaxWidth - -```jsonnet -fieldConfig.defaults.custom.withBarMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withBarWidthFactor - -```jsonnet -fieldConfig.defaults.custom.withBarWidthFactor(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withDrawStyle - -```jsonnet -fieldConfig.defaults.custom.withDrawStyle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"line"`, `"bars"`, `"points"` - -TODO docs -###### fn fieldConfig.defaults.custom.withFillBelowTo - -```jsonnet -fieldConfig.defaults.custom.withFillBelowTo(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withFillColor - -```jsonnet -fieldConfig.defaults.custom.withFillColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.withFillOpacity(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withGradientMode - -```jsonnet -fieldConfig.defaults.custom.withGradientMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineColor - -```jsonnet -fieldConfig.defaults.custom.withLineColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withLineInterpolation - -```jsonnet -fieldConfig.defaults.custom.withLineInterpolation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"smooth"`, `"stepBefore"`, `"stepAfter"` - -TODO docs -###### fn fieldConfig.defaults.custom.withLineStyle - -```jsonnet -fieldConfig.defaults.custom.withLineStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineStyleMixin - -```jsonnet -fieldConfig.defaults.custom.withLineStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withPointColor - -```jsonnet -fieldConfig.defaults.custom.withPointColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withPointSize - -```jsonnet -fieldConfig.defaults.custom.withPointSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withPointSymbol - -```jsonnet -fieldConfig.defaults.custom.withPointSymbol(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withShowPoints - -```jsonnet -fieldConfig.defaults.custom.withShowPoints(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"never"`, `"always"` - -TODO docs -###### fn fieldConfig.defaults.custom.withSpanNulls - -```jsonnet -fieldConfig.defaults.custom.withSpanNulls(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`number`) - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds -###### fn fieldConfig.defaults.custom.withSpanNullsMixin - -```jsonnet -fieldConfig.defaults.custom.withSpanNullsMixin(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`number`) - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds -###### fn fieldConfig.defaults.custom.withStacking - -```jsonnet -fieldConfig.defaults.custom.withStacking(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withStackingMixin - -```jsonnet -fieldConfig.defaults.custom.withStackingMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyle - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withTransform - -```jsonnet -fieldConfig.defaults.custom.withTransform(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"constant"`, `"negative-Y"` - -TODO docs -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### obj fieldConfig.defaults.custom.lineStyle - - -####### fn fieldConfig.defaults.custom.lineStyle.withDash - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withDash(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withDashMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn fieldConfig.defaults.custom.lineStyle.withFill - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withFill(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -###### obj fieldConfig.defaults.custom.stacking - - -####### fn fieldConfig.defaults.custom.stacking.withGroup - -```jsonnet -fieldConfig.defaults.custom.stacking.withGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -####### fn fieldConfig.defaults.custom.stacking.withMode - -```jsonnet -fieldConfig.defaults.custom.stacking.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"normal"`, `"percent"` - -TODO docs -###### obj fieldConfig.defaults.custom.thresholdsStyle - - -####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode - -```jsonnet -fieldConfig.defaults.custom.thresholdsStyle.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"off"`, `"line"`, `"dashed"`, `"area"`, `"line+area"`, `"dashed+area"`, `"series"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTimezone - -```jsonnet -options.withTimezone(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTimezoneMixin - -```jsonnet -options.withTimezoneMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/timeSeries/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/index.md deleted file mode 100644 index 6edc78201..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/index.md +++ /dev/null @@ -1,1418 +0,0 @@ -# trend - -grafonnet.panel.trend - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomwithbaralignment) - * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomwithbarmaxwidth) - * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomwithbarwidthfactor) - * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomwithdrawstyle) - * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomwithfillbelowto) - * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomwithfillcolor) - * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) - * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomwithlineinterpolation) - * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) - * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) - * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) - * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) - * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomwithpointsymbol) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomwithshowpoints) - * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomwithspannulls) - * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithspannullsmixin) - * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) - * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) - * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) - * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) - * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomwithtransform) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) - * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) - * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) - * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) - * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) - * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) - * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`fn withXField(value)`](#fn-optionswithxfield) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new trend panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```jsonnet -fieldConfig.defaults.custom.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```jsonnet -fieldConfig.defaults.custom.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```jsonnet -fieldConfig.defaults.custom.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```jsonnet -fieldConfig.defaults.custom.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```jsonnet -fieldConfig.defaults.custom.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```jsonnet -fieldConfig.defaults.custom.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withBarAlignment - -```jsonnet -fieldConfig.defaults.custom.withBarAlignment(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - valid values: `-1`, `0`, `1` - -TODO docs -###### fn fieldConfig.defaults.custom.withBarMaxWidth - -```jsonnet -fieldConfig.defaults.custom.withBarMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withBarWidthFactor - -```jsonnet -fieldConfig.defaults.custom.withBarWidthFactor(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withDrawStyle - -```jsonnet -fieldConfig.defaults.custom.withDrawStyle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"line"`, `"bars"`, `"points"` - -TODO docs -###### fn fieldConfig.defaults.custom.withFillBelowTo - -```jsonnet -fieldConfig.defaults.custom.withFillBelowTo(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withFillColor - -```jsonnet -fieldConfig.defaults.custom.withFillColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.withFillOpacity(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withGradientMode - -```jsonnet -fieldConfig.defaults.custom.withGradientMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineColor - -```jsonnet -fieldConfig.defaults.custom.withLineColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withLineInterpolation - -```jsonnet -fieldConfig.defaults.custom.withLineInterpolation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"smooth"`, `"stepBefore"`, `"stepAfter"` - -TODO docs -###### fn fieldConfig.defaults.custom.withLineStyle - -```jsonnet -fieldConfig.defaults.custom.withLineStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineStyleMixin - -```jsonnet -fieldConfig.defaults.custom.withLineStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withPointColor - -```jsonnet -fieldConfig.defaults.custom.withPointColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withPointSize - -```jsonnet -fieldConfig.defaults.custom.withPointSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withPointSymbol - -```jsonnet -fieldConfig.defaults.custom.withPointSymbol(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withShowPoints - -```jsonnet -fieldConfig.defaults.custom.withShowPoints(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"never"`, `"always"` - -TODO docs -###### fn fieldConfig.defaults.custom.withSpanNulls - -```jsonnet -fieldConfig.defaults.custom.withSpanNulls(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`number`) - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds -###### fn fieldConfig.defaults.custom.withSpanNullsMixin - -```jsonnet -fieldConfig.defaults.custom.withSpanNullsMixin(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`number`) - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds -###### fn fieldConfig.defaults.custom.withStacking - -```jsonnet -fieldConfig.defaults.custom.withStacking(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withStackingMixin - -```jsonnet -fieldConfig.defaults.custom.withStackingMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyle - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withTransform - -```jsonnet -fieldConfig.defaults.custom.withTransform(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"constant"`, `"negative-Y"` - -TODO docs -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### obj fieldConfig.defaults.custom.lineStyle - - -####### fn fieldConfig.defaults.custom.lineStyle.withDash - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withDash(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withDashMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn fieldConfig.defaults.custom.lineStyle.withFill - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withFill(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -###### obj fieldConfig.defaults.custom.stacking - - -####### fn fieldConfig.defaults.custom.stacking.withGroup - -```jsonnet -fieldConfig.defaults.custom.stacking.withGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -####### fn fieldConfig.defaults.custom.stacking.withMode - -```jsonnet -fieldConfig.defaults.custom.stacking.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"normal"`, `"percent"` - -TODO docs -###### obj fieldConfig.defaults.custom.thresholdsStyle - - -####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode - -```jsonnet -fieldConfig.defaults.custom.thresholdsStyle.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"off"`, `"line"`, `"dashed"`, `"area"`, `"line+area"`, `"dashed+area"`, `"series"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withXField - -```jsonnet -options.withXField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the x field to use (defaults to first number) -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/trend/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/index.md deleted file mode 100644 index 9f89ebce5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/index.md +++ /dev/null @@ -1,891 +0,0 @@ -# xyChart - -grafonnet.panel.xyChart - -## Subpackages - -* [options.series](options/series.md) -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withDims(value)`](#fn-optionswithdims) - * [`fn withDimsMixin(value)`](#fn-optionswithdimsmixin) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withSeries(value)`](#fn-optionswithseries) - * [`fn withSeriesMapping(value)`](#fn-optionswithseriesmapping) - * [`fn withSeriesMixin(value)`](#fn-optionswithseriesmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj dims`](#obj-optionsdims) - * [`fn withExclude(value)`](#fn-optionsdimswithexclude) - * [`fn withExcludeMixin(value)`](#fn-optionsdimswithexcludemixin) - * [`fn withFrame(value)`](#fn-optionsdimswithframe) - * [`fn withX(value)`](#fn-optionsdimswithx) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new xyChart panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj options - - -#### fn options.withDims - -```jsonnet -options.withDims(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withDimsMixin - -```jsonnet -options.withDimsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withSeries - -```jsonnet -options.withSeries(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withSeriesMapping - -```jsonnet -options.withSeriesMapping(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"manual"` - - -#### fn options.withSeriesMixin - -```jsonnet -options.withSeriesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.dims - - -##### fn options.dims.withExclude - -```jsonnet -options.dims.withExclude(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.dims.withExcludeMixin - -```jsonnet -options.dims.withExcludeMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.dims.withFrame - -```jsonnet -options.dims.withFrame(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -##### fn options.dims.withX - -```jsonnet -options.dims.withX(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -TODO fill this out - seems there are a couple variants? -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -"h" for horizontal, "v" for vertical. -TODO this is probably optional -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource used in all targets. -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TODO docs -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO tighter constraint -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Significant digits (for display) -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Numeric Options -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Stores the fixed color value if mode is fixed -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The main color scheme mode -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -TODO docs -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - - -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/options/series.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/options/series.md deleted file mode 100644 index 00891ab5d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/options/series.md +++ /dev/null @@ -1,638 +0,0 @@ -# series - - - -## Index - -* [`fn withAxisCenteredZero(value=true)`](#fn-withaxiscenteredzero) -* [`fn withAxisColorMode(value)`](#fn-withaxiscolormode) -* [`fn withAxisGridShow(value=true)`](#fn-withaxisgridshow) -* [`fn withAxisLabel(value)`](#fn-withaxislabel) -* [`fn withAxisPlacement(value)`](#fn-withaxisplacement) -* [`fn withAxisSoftMax(value)`](#fn-withaxissoftmax) -* [`fn withAxisSoftMin(value)`](#fn-withaxissoftmin) -* [`fn withAxisWidth(value)`](#fn-withaxiswidth) -* [`fn withHideFrom(value)`](#fn-withhidefrom) -* [`fn withHideFromMixin(value)`](#fn-withhidefrommixin) -* [`fn withLabel(value)`](#fn-withlabel) -* [`fn withLabelValue(value)`](#fn-withlabelvalue) -* [`fn withLabelValueMixin(value)`](#fn-withlabelvaluemixin) -* [`fn withLineColor(value)`](#fn-withlinecolor) -* [`fn withLineColorMixin(value)`](#fn-withlinecolormixin) -* [`fn withLineStyle(value)`](#fn-withlinestyle) -* [`fn withLineStyleMixin(value)`](#fn-withlinestylemixin) -* [`fn withLineWidth(value)`](#fn-withlinewidth) -* [`fn withName(value)`](#fn-withname) -* [`fn withPointColor(value)`](#fn-withpointcolor) -* [`fn withPointColorMixin(value)`](#fn-withpointcolormixin) -* [`fn withPointSize(value)`](#fn-withpointsize) -* [`fn withPointSizeMixin(value)`](#fn-withpointsizemixin) -* [`fn withScaleDistribution(value)`](#fn-withscaledistribution) -* [`fn withScaleDistributionMixin(value)`](#fn-withscaledistributionmixin) -* [`fn withShow(value)`](#fn-withshow) -* [`fn withX(value)`](#fn-withx) -* [`fn withY(value)`](#fn-withy) -* [`obj hideFrom`](#obj-hidefrom) - * [`fn withLegend(value=true)`](#fn-hidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-hidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-hidefromwithviz) -* [`obj labelValue`](#obj-labelvalue) - * [`fn withField(value)`](#fn-labelvaluewithfield) - * [`fn withFixed(value)`](#fn-labelvaluewithfixed) - * [`fn withMode(value)`](#fn-labelvaluewithmode) -* [`obj lineColor`](#obj-linecolor) - * [`fn withField(value)`](#fn-linecolorwithfield) - * [`fn withFixed(value)`](#fn-linecolorwithfixed) -* [`obj lineStyle`](#obj-linestyle) - * [`fn withDash(value)`](#fn-linestylewithdash) - * [`fn withDashMixin(value)`](#fn-linestylewithdashmixin) - * [`fn withFill(value)`](#fn-linestylewithfill) -* [`obj pointColor`](#obj-pointcolor) - * [`fn withField(value)`](#fn-pointcolorwithfield) - * [`fn withFixed(value)`](#fn-pointcolorwithfixed) -* [`obj pointSize`](#obj-pointsize) - * [`fn withField(value)`](#fn-pointsizewithfield) - * [`fn withFixed(value)`](#fn-pointsizewithfixed) - * [`fn withMax(value)`](#fn-pointsizewithmax) - * [`fn withMin(value)`](#fn-pointsizewithmin) - * [`fn withMode(value)`](#fn-pointsizewithmode) -* [`obj scaleDistribution`](#obj-scaledistribution) - * [`fn withLinearThreshold(value)`](#fn-scaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-scaledistributionwithlog) - * [`fn withType(value)`](#fn-scaledistributionwithtype) - -## Fields - -### fn withAxisCenteredZero - -```jsonnet -withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withAxisColorMode - -```jsonnet -withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -### fn withAxisGridShow - -```jsonnet -withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withAxisLabel - -```jsonnet -withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withAxisPlacement - -```jsonnet -withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -### fn withAxisSoftMax - -```jsonnet -withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### fn withAxisSoftMin - -```jsonnet -withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### fn withAxisWidth - -```jsonnet -withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### fn withHideFrom - -```jsonnet -withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withHideFromMixin - -```jsonnet -withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withLabel - -```jsonnet -withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"never"`, `"always"` - -TODO docs -### fn withLabelValue - -```jsonnet -withLabelValue(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLabelValueMixin - -```jsonnet -withLabelValueMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLineColor - -```jsonnet -withLineColor(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLineColorMixin - -```jsonnet -withLineColorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLineStyle - -```jsonnet -withLineStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withLineStyleMixin - -```jsonnet -withLineStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withLineWidth - -```jsonnet -withLineWidth(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withPointColor - -```jsonnet -withPointColor(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withPointColorMixin - -```jsonnet -withPointColorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withPointSize - -```jsonnet -withPointSize(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withPointSizeMixin - -```jsonnet -withPointSizeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withScaleDistribution - -```jsonnet -withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withScaleDistributionMixin - -```jsonnet -withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withShow - -```jsonnet -withShow(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"points"`, `"lines"`, `"points+lines"` - - -### fn withX - -```jsonnet -withX(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withY - -```jsonnet -withY(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj hideFrom - - -#### fn hideFrom.withLegend - -```jsonnet -hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn hideFrom.withTooltip - -```jsonnet -hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn hideFrom.withViz - -```jsonnet -hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj labelValue - - -#### fn labelValue.withField - -```jsonnet -labelValue.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -#### fn labelValue.withFixed - -```jsonnet -labelValue.withFixed(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn labelValue.withMode - -```jsonnet -labelValue.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"fixed"`, `"field"`, `"template"` - - -### obj lineColor - - -#### fn lineColor.withField - -```jsonnet -lineColor.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -#### fn lineColor.withFixed - -```jsonnet -lineColor.withFixed(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj lineStyle - - -#### fn lineStyle.withDash - -```jsonnet -lineStyle.withDash(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn lineStyle.withDashMixin - -```jsonnet -lineStyle.withDashMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn lineStyle.withFill - -```jsonnet -lineStyle.withFill(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` - - -### obj pointColor - - -#### fn pointColor.withField - -```jsonnet -pointColor.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -#### fn pointColor.withFixed - -```jsonnet -pointColor.withFixed(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj pointSize - - -#### fn pointSize.withField - -```jsonnet -pointSize.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -#### fn pointSize.withFixed - -```jsonnet -pointSize.withFixed(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn pointSize.withMax - -```jsonnet -pointSize.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn pointSize.withMin - -```jsonnet -pointSize.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn pointSize.withMode - -```jsonnet -pointSize.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"quad"` - - -### obj scaleDistribution - - -#### fn scaleDistribution.withLinearThreshold - -```jsonnet -scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn scaleDistribution.withLog - -```jsonnet -scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn scaleDistribution.withType - -```jsonnet -scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/panelOptions/link.md deleted file mode 100644 index 106f9d2ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/panelOptions/link.md +++ /dev/null @@ -1,145 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -TODO docs -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/queryOptions/transformation.md deleted file mode 100644 index dc832f653..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/queryOptions/transformation.md +++ /dev/null @@ -1,99 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/standardOptions/mapping.md deleted file mode 100644 index 93296972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/standardOptions/mapping.md +++ /dev/null @@ -1,469 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType(value)`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType(value)`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType(value)`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withPattern(value)`](#fn-specialvaluemapoptionswithpattern) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType(value)`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -to and from are `number | null` in current ts, really not sure what to do -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"` - - -##### fn SpecialValueMap.options.withPattern - -```jsonnet -SpecialValueMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/standardOptions/threshold/step.md deleted file mode 100644 index dd2dd227f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/panel/xyChart/standardOptions/threshold/step.md +++ /dev/null @@ -1,60 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withIndex(value)`](#fn-withindex) -* [`fn withState(value)`](#fn-withstate) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -### fn withIndex - -```jsonnet -withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Threshold index, an old property that is not needed an should only appear in older dashboards -### fn withState - -```jsonnet -withState(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO docs -TODO are the values here enumerable into a disjunction? -Some seem to be listed in typescript comment -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -TODO docs -FIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/playlist/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/playlist/index.md deleted file mode 100644 index 27624b512..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/playlist/index.md +++ /dev/null @@ -1,78 +0,0 @@ -# playlist - -grafonnet.playlist - -## Subpackages - -* [items](items.md) - -## Index - -* [`fn withInterval(value="5m")`](#fn-withinterval) -* [`fn withItems(value)`](#fn-withitems) -* [`fn withItemsMixin(value)`](#fn-withitemsmixin) -* [`fn withName(value)`](#fn-withname) -* [`fn withUid(value)`](#fn-withuid) - -## Fields - -### fn withInterval - -```jsonnet -withInterval(value="5m") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"5m"` - -Interval sets the time between switching views in a playlist. -FIXME: Is this based on a standardized format or what options are available? Can datemath be used? -### fn withItems - -```jsonnet -withItems(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The ordered list of items that the playlist will iterate over. -FIXME! This should not be optional, but changing it makes the godegen awkward -### fn withItemsMixin - -```jsonnet -withItemsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The ordered list of items that the playlist will iterate over. -FIXME! This should not be optional, but changing it makes the godegen awkward -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the playlist. -### fn withUid - -```jsonnet -withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique playlist identifier. Generated on creation, either by the -creator of the playlist of by the application. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/playlist/items.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/playlist/items.md deleted file mode 100644 index 836176435..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/playlist/items.md +++ /dev/null @@ -1,53 +0,0 @@ -# items - - - -## Index - -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withType(value)`](#fn-withtype) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title is an unused property -- it will be removed in the future -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"dashboard_by_uid"`, `"dashboard_by_id"`, `"dashboard_by_tag"` - -Type of the item. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Value depends on type and describes the playlist item. - - - dashboard_by_id: The value is an internal numerical identifier set by Grafana. This - is not portable as the numerical identifier is non-deterministic between different instances. - Will be replaced by dashboard_by_uid in the future. (deprecated) - - dashboard_by_tag: The value is a tag which is set on any number of dashboards. All - dashboards behind the tag will be added to the playlist. - - dashboard_by_uid: The value is the dashboard UID \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/preferences.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/preferences.md deleted file mode 100644 index 7f6f9d5e1..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/preferences.md +++ /dev/null @@ -1,110 +0,0 @@ -# preferences - -grafonnet.preferences - -## Index - -* [`fn withHomeDashboardUID(value)`](#fn-withhomedashboarduid) -* [`fn withLanguage(value)`](#fn-withlanguage) -* [`fn withQueryHistory(value)`](#fn-withqueryhistory) -* [`fn withQueryHistoryMixin(value)`](#fn-withqueryhistorymixin) -* [`fn withTheme(value)`](#fn-withtheme) -* [`fn withTimezone(value)`](#fn-withtimezone) -* [`fn withWeekStart(value)`](#fn-withweekstart) -* [`obj queryHistory`](#obj-queryhistory) - * [`fn withHomeTab(value)`](#fn-queryhistorywithhometab) - -## Fields - -### fn withHomeDashboardUID - -```jsonnet -withHomeDashboardUID(value) -``` - -PARAMETERS: - -* **value** (`string`) - -UID for the home dashboard -### fn withLanguage - -```jsonnet -withLanguage(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Selected language (beta) -### fn withQueryHistory - -```jsonnet -withQueryHistory(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withQueryHistoryMixin - -```jsonnet -withQueryHistoryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withTheme - -```jsonnet -withTheme(value) -``` - -PARAMETERS: - -* **value** (`string`) - -light, dark, empty is default -### fn withTimezone - -```jsonnet -withTimezone(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The timezone selection -TODO: this should use the timezone defined in common -### fn withWeekStart - -```jsonnet -withWeekStart(value) -``` - -PARAMETERS: - -* **value** (`string`) - -day of the week (sunday, monday, etc) -### obj queryHistory - - -#### fn queryHistory.withHomeTab - -```jsonnet -queryHistory.withHomeTab(value) -``` - -PARAMETERS: - -* **value** (`string`) - -one of: '' | 'query' | 'starred'; \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/publicdashboard.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/publicdashboard.md deleted file mode 100644 index 9cb78fbd5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/publicdashboard.md +++ /dev/null @@ -1,84 +0,0 @@ -# publicdashboard - -grafonnet.publicdashboard - -## Index - -* [`fn withAccessToken(value)`](#fn-withaccesstoken) -* [`fn withAnnotationsEnabled(value=true)`](#fn-withannotationsenabled) -* [`fn withDashboardUid(value)`](#fn-withdashboarduid) -* [`fn withIsEnabled(value=true)`](#fn-withisenabled) -* [`fn withTimeSelectionEnabled(value=true)`](#fn-withtimeselectionenabled) -* [`fn withUid(value)`](#fn-withuid) - -## Fields - -### fn withAccessToken - -```jsonnet -withAccessToken(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique public access token -### fn withAnnotationsEnabled - -```jsonnet -withAnnotationsEnabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Flag that indicates if annotations are enabled -### fn withDashboardUid - -```jsonnet -withDashboardUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Dashboard unique identifier referenced by this public dashboard -### fn withIsEnabled - -```jsonnet -withIsEnabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Flag that indicates if the public dashboard is enabled -### fn withTimeSelectionEnabled - -```jsonnet -withTimeSelectionEnabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Flag that indicates if the time range picker is enabled -### fn withUid - -```jsonnet -withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique public dashboard identifier \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/azureMonitor/dimensionFilters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/azureMonitor/dimensionFilters.md deleted file mode 100644 index 43b6cf550..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/azureMonitor/dimensionFilters.md +++ /dev/null @@ -1,69 +0,0 @@ -# dimensionFilters - - - -## Index - -* [`fn withDimension(value)`](#fn-withdimension) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilters(value)`](#fn-withfilters) -* [`fn withFiltersMixin(value)`](#fn-withfiltersmixin) -* [`fn withOperator(value)`](#fn-withoperator) - -## Fields - -### fn withDimension - -```jsonnet -withDimension(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of Dimension to be filtered on. -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated filter is deprecated in favour of filters to support multiselect. -### fn withFilters - -```jsonnet -withFilters(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Values to match with the filter. -### fn withFiltersMixin - -```jsonnet -withFiltersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Values to match with the filter. -### fn withOperator - -```jsonnet -withOperator(value) -``` - -PARAMETERS: - -* **value** (`string`) - -String denoting the filter operation. Supports 'eq' - equals,'ne' - not equals, 'sw' - starts with. Note that some dimensions may not support all operators. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/azureMonitor/resources.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/azureMonitor/resources.md deleted file mode 100644 index 18bb633af..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/azureMonitor/resources.md +++ /dev/null @@ -1,68 +0,0 @@ -# resources - - - -## Index - -* [`fn withMetricNamespace(value)`](#fn-withmetricnamespace) -* [`fn withRegion(value)`](#fn-withregion) -* [`fn withResourceGroup(value)`](#fn-withresourcegroup) -* [`fn withResourceName(value)`](#fn-withresourcename) -* [`fn withSubscription(value)`](#fn-withsubscription) - -## Fields - -### fn withMetricNamespace - -```jsonnet -withMetricNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withRegion - -```jsonnet -withRegion(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withResourceGroup - -```jsonnet -withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withResourceName - -```jsonnet -withResourceName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withSubscription - -```jsonnet -withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/azureTraces/filters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/azureTraces/filters.md deleted file mode 100644 index 0c5c7182a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/azureTraces/filters.md +++ /dev/null @@ -1,57 +0,0 @@ -# filters - - - -## Index - -* [`fn withFilters(value)`](#fn-withfilters) -* [`fn withFiltersMixin(value)`](#fn-withfiltersmixin) -* [`fn withOperation(value)`](#fn-withoperation) -* [`fn withProperty(value)`](#fn-withproperty) - -## Fields - -### fn withFilters - -```jsonnet -withFilters(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Values to filter by. -### fn withFiltersMixin - -```jsonnet -withFiltersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Values to filter by. -### fn withOperation - -```jsonnet -withOperation(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Comparison operator to use. Either equals or not equals. -### fn withProperty - -```jsonnet -withProperty(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Property name, auto-populated based on available traces. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/index.md deleted file mode 100644 index b836b44e3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/azureMonitor/index.md +++ /dev/null @@ -1,1502 +0,0 @@ -# azureMonitor - -grafonnet.query.azureMonitor - -## Subpackages - -* [azureMonitor.dimensionFilters](azureMonitor/dimensionFilters.md) -* [azureMonitor.resources](azureMonitor/resources.md) -* [azureTraces.filters](azureTraces/filters.md) - -## Index - -* [`fn withAzureLogAnalytics(value)`](#fn-withazureloganalytics) -* [`fn withAzureLogAnalyticsMixin(value)`](#fn-withazureloganalyticsmixin) -* [`fn withAzureMonitor(value)`](#fn-withazuremonitor) -* [`fn withAzureMonitorMixin(value)`](#fn-withazuremonitormixin) -* [`fn withAzureResourceGraph(value)`](#fn-withazureresourcegraph) -* [`fn withAzureResourceGraphMixin(value)`](#fn-withazureresourcegraphmixin) -* [`fn withAzureTraces(value)`](#fn-withazuretraces) -* [`fn withAzureTracesMixin(value)`](#fn-withazuretracesmixin) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withGrafanaTemplateVariableFn(value)`](#fn-withgrafanatemplatevariablefn) -* [`fn withGrafanaTemplateVariableFnMixin(value)`](#fn-withgrafanatemplatevariablefnmixin) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withNamespace(value)`](#fn-withnamespace) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withRegion(value)`](#fn-withregion) -* [`fn withResource(value)`](#fn-withresource) -* [`fn withResourceGroup(value)`](#fn-withresourcegroup) -* [`fn withSubscription(value)`](#fn-withsubscription) -* [`fn withSubscriptions(value)`](#fn-withsubscriptions) -* [`fn withSubscriptionsMixin(value)`](#fn-withsubscriptionsmixin) -* [`obj azureLogAnalytics`](#obj-azureloganalytics) - * [`fn withQuery(value)`](#fn-azureloganalyticswithquery) - * [`fn withResource(value)`](#fn-azureloganalyticswithresource) - * [`fn withResources(value)`](#fn-azureloganalyticswithresources) - * [`fn withResourcesMixin(value)`](#fn-azureloganalyticswithresourcesmixin) - * [`fn withResultFormat(value)`](#fn-azureloganalyticswithresultformat) - * [`fn withWorkspace(value)`](#fn-azureloganalyticswithworkspace) -* [`obj azureMonitor`](#obj-azuremonitor) - * [`fn withAggregation(value)`](#fn-azuremonitorwithaggregation) - * [`fn withAlias(value)`](#fn-azuremonitorwithalias) - * [`fn withAllowedTimeGrainsMs(value)`](#fn-azuremonitorwithallowedtimegrainsms) - * [`fn withAllowedTimeGrainsMsMixin(value)`](#fn-azuremonitorwithallowedtimegrainsmsmixin) - * [`fn withCustomNamespace(value)`](#fn-azuremonitorwithcustomnamespace) - * [`fn withDimension(value)`](#fn-azuremonitorwithdimension) - * [`fn withDimensionFilter(value)`](#fn-azuremonitorwithdimensionfilter) - * [`fn withDimensionFilters(value)`](#fn-azuremonitorwithdimensionfilters) - * [`fn withDimensionFiltersMixin(value)`](#fn-azuremonitorwithdimensionfiltersmixin) - * [`fn withMetricDefinition(value)`](#fn-azuremonitorwithmetricdefinition) - * [`fn withMetricName(value)`](#fn-azuremonitorwithmetricname) - * [`fn withMetricNamespace(value)`](#fn-azuremonitorwithmetricnamespace) - * [`fn withRegion(value)`](#fn-azuremonitorwithregion) - * [`fn withResourceGroup(value)`](#fn-azuremonitorwithresourcegroup) - * [`fn withResourceName(value)`](#fn-azuremonitorwithresourcename) - * [`fn withResourceUri(value)`](#fn-azuremonitorwithresourceuri) - * [`fn withResources(value)`](#fn-azuremonitorwithresources) - * [`fn withResourcesMixin(value)`](#fn-azuremonitorwithresourcesmixin) - * [`fn withTimeGrain(value)`](#fn-azuremonitorwithtimegrain) - * [`fn withTimeGrainUnit(value)`](#fn-azuremonitorwithtimegrainunit) - * [`fn withTop(value)`](#fn-azuremonitorwithtop) -* [`obj azureResourceGraph`](#obj-azureresourcegraph) - * [`fn withQuery(value)`](#fn-azureresourcegraphwithquery) - * [`fn withResultFormat(value)`](#fn-azureresourcegraphwithresultformat) -* [`obj azureTraces`](#obj-azuretraces) - * [`fn withFilters(value)`](#fn-azuretraceswithfilters) - * [`fn withFiltersMixin(value)`](#fn-azuretraceswithfiltersmixin) - * [`fn withOperationId(value)`](#fn-azuretraceswithoperationid) - * [`fn withQuery(value)`](#fn-azuretraceswithquery) - * [`fn withResources(value)`](#fn-azuretraceswithresources) - * [`fn withResourcesMixin(value)`](#fn-azuretraceswithresourcesmixin) - * [`fn withResultFormat(value)`](#fn-azuretraceswithresultformat) - * [`fn withTraceTypes(value)`](#fn-azuretraceswithtracetypes) - * [`fn withTraceTypesMixin(value)`](#fn-azuretraceswithtracetypesmixin) -* [`obj grafanaTemplateVariableFn`](#obj-grafanatemplatevariablefn) - * [`fn withAppInsightsGroupByQuery(value)`](#fn-grafanatemplatevariablefnwithappinsightsgroupbyquery) - * [`fn withAppInsightsGroupByQueryMixin(value)`](#fn-grafanatemplatevariablefnwithappinsightsgroupbyquerymixin) - * [`fn withAppInsightsMetricNameQuery(value)`](#fn-grafanatemplatevariablefnwithappinsightsmetricnamequery) - * [`fn withAppInsightsMetricNameQueryMixin(value)`](#fn-grafanatemplatevariablefnwithappinsightsmetricnamequerymixin) - * [`fn withMetricDefinitionsQuery(value)`](#fn-grafanatemplatevariablefnwithmetricdefinitionsquery) - * [`fn withMetricDefinitionsQueryMixin(value)`](#fn-grafanatemplatevariablefnwithmetricdefinitionsquerymixin) - * [`fn withMetricNamesQuery(value)`](#fn-grafanatemplatevariablefnwithmetricnamesquery) - * [`fn withMetricNamesQueryMixin(value)`](#fn-grafanatemplatevariablefnwithmetricnamesquerymixin) - * [`fn withMetricNamespaceQuery(value)`](#fn-grafanatemplatevariablefnwithmetricnamespacequery) - * [`fn withMetricNamespaceQueryMixin(value)`](#fn-grafanatemplatevariablefnwithmetricnamespacequerymixin) - * [`fn withResourceGroupsQuery(value)`](#fn-grafanatemplatevariablefnwithresourcegroupsquery) - * [`fn withResourceGroupsQueryMixin(value)`](#fn-grafanatemplatevariablefnwithresourcegroupsquerymixin) - * [`fn withResourceNamesQuery(value)`](#fn-grafanatemplatevariablefnwithresourcenamesquery) - * [`fn withResourceNamesQueryMixin(value)`](#fn-grafanatemplatevariablefnwithresourcenamesquerymixin) - * [`fn withSubscriptionsQuery(value)`](#fn-grafanatemplatevariablefnwithsubscriptionsquery) - * [`fn withSubscriptionsQueryMixin(value)`](#fn-grafanatemplatevariablefnwithsubscriptionsquerymixin) - * [`fn withUnknownQuery(value)`](#fn-grafanatemplatevariablefnwithunknownquery) - * [`fn withUnknownQueryMixin(value)`](#fn-grafanatemplatevariablefnwithunknownquerymixin) - * [`fn withWorkspacesQuery(value)`](#fn-grafanatemplatevariablefnwithworkspacesquery) - * [`fn withWorkspacesQueryMixin(value)`](#fn-grafanatemplatevariablefnwithworkspacesquerymixin) - * [`obj AppInsightsGroupByQuery`](#obj-grafanatemplatevariablefnappinsightsgroupbyquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnappinsightsgroupbyquerywithkind) - * [`fn withMetricName(value)`](#fn-grafanatemplatevariablefnappinsightsgroupbyquerywithmetricname) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnappinsightsgroupbyquerywithrawquery) - * [`obj AppInsightsMetricNameQuery`](#obj-grafanatemplatevariablefnappinsightsmetricnamequery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnappinsightsmetricnamequerywithkind) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnappinsightsmetricnamequerywithrawquery) - * [`obj MetricDefinitionsQuery`](#obj-grafanatemplatevariablefnmetricdefinitionsquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithkind) - * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithmetricnamespace) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithrawquery) - * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithresourcegroup) - * [`fn withResourceName(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithresourcename) - * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithsubscription) - * [`obj MetricNamesQuery`](#obj-grafanatemplatevariablefnmetricnamesquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithkind) - * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithmetricnamespace) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithrawquery) - * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithresourcegroup) - * [`fn withResourceName(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithresourcename) - * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithsubscription) - * [`obj MetricNamespaceQuery`](#obj-grafanatemplatevariablefnmetricnamespacequery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithkind) - * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithmetricnamespace) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithrawquery) - * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithresourcegroup) - * [`fn withResourceName(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithresourcename) - * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithsubscription) - * [`obj ResourceGroupsQuery`](#obj-grafanatemplatevariablefnresourcegroupsquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnresourcegroupsquerywithkind) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnresourcegroupsquerywithrawquery) - * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnresourcegroupsquerywithsubscription) - * [`obj ResourceNamesQuery`](#obj-grafanatemplatevariablefnresourcenamesquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithkind) - * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithmetricnamespace) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithrawquery) - * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithresourcegroup) - * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithsubscription) - * [`obj SubscriptionsQuery`](#obj-grafanatemplatevariablefnsubscriptionsquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnsubscriptionsquerywithkind) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnsubscriptionsquerywithrawquery) - * [`obj UnknownQuery`](#obj-grafanatemplatevariablefnunknownquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnunknownquerywithkind) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnunknownquerywithrawquery) - * [`obj WorkspacesQuery`](#obj-grafanatemplatevariablefnworkspacesquery) - * [`fn withKind(value)`](#fn-grafanatemplatevariablefnworkspacesquerywithkind) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnworkspacesquerywithrawquery) - * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnworkspacesquerywithsubscription) - -## Fields - -### fn withAzureLogAnalytics - -```jsonnet -withAzureLogAnalytics(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Azure Monitor Logs sub-query properties -### fn withAzureLogAnalyticsMixin - -```jsonnet -withAzureLogAnalyticsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Azure Monitor Logs sub-query properties -### fn withAzureMonitor - -```jsonnet -withAzureMonitor(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withAzureMonitorMixin - -```jsonnet -withAzureMonitorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withAzureResourceGraph - -```jsonnet -withAzureResourceGraph(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withAzureResourceGraphMixin - -```jsonnet -withAzureResourceGraphMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withAzureTraces - -```jsonnet -withAzureTraces(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Application Insights Traces sub-query properties -### fn withAzureTracesMixin - -```jsonnet -withAzureTracesMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Application Insights Traces sub-query properties -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null -### fn withGrafanaTemplateVariableFn - -```jsonnet -withGrafanaTemplateVariableFn(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withGrafanaTemplateVariableFnMixin - -```jsonnet -withGrafanaTemplateVariableFnMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withNamespace - -```jsonnet -withNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -### fn withRegion - -```jsonnet -withRegion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Azure Monitor query type. -queryType: #AzureQueryType -### fn withResource - -```jsonnet -withResource(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withResourceGroup - -```jsonnet -withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Template variables params. These exist for backwards compatiblity with legacy template variables. -### fn withSubscription - -```jsonnet -withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Azure subscription containing the resource(s) to be queried. -### fn withSubscriptions - -```jsonnet -withSubscriptions(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Subscriptions to be queried via Azure Resource Graph. -### fn withSubscriptionsMixin - -```jsonnet -withSubscriptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Subscriptions to be queried via Azure Resource Graph. -### obj azureLogAnalytics - - -#### fn azureLogAnalytics.withQuery - -```jsonnet -azureLogAnalytics.withQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - -KQL query to be executed. -#### fn azureLogAnalytics.withResource - -```jsonnet -azureLogAnalytics.withResource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Use resources instead -#### fn azureLogAnalytics.withResources - -```jsonnet -azureLogAnalytics.withResources(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of resource URIs to be queried. -#### fn azureLogAnalytics.withResourcesMixin - -```jsonnet -azureLogAnalytics.withResourcesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of resource URIs to be queried. -#### fn azureLogAnalytics.withResultFormat - -```jsonnet -azureLogAnalytics.withResultFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"table"`, `"time_series"`, `"trace"` - - -#### fn azureLogAnalytics.withWorkspace - -```jsonnet -azureLogAnalytics.withWorkspace(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Workspace ID. This was removed in Grafana 8, but remains for backwards compat -### obj azureMonitor - - -#### fn azureMonitor.withAggregation - -```jsonnet -azureMonitor.withAggregation(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The aggregation to be used within the query. Defaults to the primaryAggregationType defined by the metric. -#### fn azureMonitor.withAlias - -```jsonnet -azureMonitor.withAlias(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Aliases can be set to modify the legend labels. e.g. {{ resourceGroup }}. See docs for more detail. -#### fn azureMonitor.withAllowedTimeGrainsMs - -```jsonnet -azureMonitor.withAllowedTimeGrainsMs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Time grains that are supported by the metric. -#### fn azureMonitor.withAllowedTimeGrainsMsMixin - -```jsonnet -azureMonitor.withAllowedTimeGrainsMsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Time grains that are supported by the metric. -#### fn azureMonitor.withCustomNamespace - -```jsonnet -azureMonitor.withCustomNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Used as the value for the metricNamespace property when it's different from the resource namespace. -#### fn azureMonitor.withDimension - -```jsonnet -azureMonitor.withDimension(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration -#### fn azureMonitor.withDimensionFilter - -```jsonnet -azureMonitor.withDimensionFilter(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration -#### fn azureMonitor.withDimensionFilters - -```jsonnet -azureMonitor.withDimensionFilters(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric. -#### fn azureMonitor.withDimensionFiltersMixin - -```jsonnet -azureMonitor.withDimensionFiltersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric. -#### fn azureMonitor.withMetricDefinition - -```jsonnet -azureMonitor.withMetricDefinition(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Use metricNamespace instead -#### fn azureMonitor.withMetricName - -```jsonnet -azureMonitor.withMetricName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The metric to query data for within the specified metricNamespace. e.g. UsedCapacity -#### fn azureMonitor.withMetricNamespace - -```jsonnet -azureMonitor.withMetricNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - -metricNamespace is used as the resource type (or resource namespace). -It's usually equal to the target metric namespace. e.g. microsoft.storage/storageaccounts -Kept the name of the variable as metricNamespace to avoid backward incompatibility issues. -#### fn azureMonitor.withRegion - -```jsonnet -azureMonitor.withRegion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The Azure region containing the resource(s). -#### fn azureMonitor.withResourceGroup - -```jsonnet -azureMonitor.withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Use resources instead -#### fn azureMonitor.withResourceName - -```jsonnet -azureMonitor.withResourceName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Use resources instead -#### fn azureMonitor.withResourceUri - -```jsonnet -azureMonitor.withResourceUri(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Use resourceGroup, resourceName and metricNamespace instead -#### fn azureMonitor.withResources - -```jsonnet -azureMonitor.withResources(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of resource URIs to be queried. -#### fn azureMonitor.withResourcesMixin - -```jsonnet -azureMonitor.withResourcesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of resource URIs to be queried. -#### fn azureMonitor.withTimeGrain - -```jsonnet -azureMonitor.withTimeGrain(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The granularity of data points to be queried. Defaults to auto. -#### fn azureMonitor.withTimeGrainUnit - -```jsonnet -azureMonitor.withTimeGrainUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated -#### fn azureMonitor.withTop - -```jsonnet -azureMonitor.withTop(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Maximum number of records to return. Defaults to 10. -### obj azureResourceGraph - - -#### fn azureResourceGraph.withQuery - -```jsonnet -azureResourceGraph.withQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Azure Resource Graph KQL query to be executed. -#### fn azureResourceGraph.withResultFormat - -```jsonnet -azureResourceGraph.withResultFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specifies the format results should be returned as. Defaults to table. -### obj azureTraces - - -#### fn azureTraces.withFilters - -```jsonnet -azureTraces.withFilters(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Filters for property values. -#### fn azureTraces.withFiltersMixin - -```jsonnet -azureTraces.withFiltersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Filters for property values. -#### fn azureTraces.withOperationId - -```jsonnet -azureTraces.withOperationId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Operation ID. Used only for Traces queries. -#### fn azureTraces.withQuery - -```jsonnet -azureTraces.withQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - -KQL query to be executed. -#### fn azureTraces.withResources - -```jsonnet -azureTraces.withResources(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of resource URIs to be queried. -#### fn azureTraces.withResourcesMixin - -```jsonnet -azureTraces.withResourcesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of resource URIs to be queried. -#### fn azureTraces.withResultFormat - -```jsonnet -azureTraces.withResultFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"table"`, `"time_series"`, `"trace"` - - -#### fn azureTraces.withTraceTypes - -```jsonnet -azureTraces.withTraceTypes(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Types of events to filter by. -#### fn azureTraces.withTraceTypesMixin - -```jsonnet -azureTraces.withTraceTypesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Types of events to filter by. -### obj grafanaTemplateVariableFn - - -#### fn grafanaTemplateVariableFn.withAppInsightsGroupByQuery - -```jsonnet -grafanaTemplateVariableFn.withAppInsightsGroupByQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withAppInsightsGroupByQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withAppInsightsGroupByQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withAppInsightsMetricNameQuery - -```jsonnet -grafanaTemplateVariableFn.withAppInsightsMetricNameQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withAppInsightsMetricNameQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withAppInsightsMetricNameQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withMetricDefinitionsQuery - -```jsonnet -grafanaTemplateVariableFn.withMetricDefinitionsQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - -@deprecated Use MetricNamespaceQuery instead -#### fn grafanaTemplateVariableFn.withMetricDefinitionsQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withMetricDefinitionsQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -@deprecated Use MetricNamespaceQuery instead -#### fn grafanaTemplateVariableFn.withMetricNamesQuery - -```jsonnet -grafanaTemplateVariableFn.withMetricNamesQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withMetricNamesQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withMetricNamesQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withMetricNamespaceQuery - -```jsonnet -grafanaTemplateVariableFn.withMetricNamespaceQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withMetricNamespaceQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withMetricNamespaceQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withResourceGroupsQuery - -```jsonnet -grafanaTemplateVariableFn.withResourceGroupsQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withResourceGroupsQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withResourceGroupsQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withResourceNamesQuery - -```jsonnet -grafanaTemplateVariableFn.withResourceNamesQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withResourceNamesQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withResourceNamesQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withSubscriptionsQuery - -```jsonnet -grafanaTemplateVariableFn.withSubscriptionsQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withSubscriptionsQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withSubscriptionsQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withUnknownQuery - -```jsonnet -grafanaTemplateVariableFn.withUnknownQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withUnknownQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withUnknownQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withWorkspacesQuery - -```jsonnet -grafanaTemplateVariableFn.withWorkspacesQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withWorkspacesQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withWorkspacesQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### obj grafanaTemplateVariableFn.AppInsightsGroupByQuery - - -##### fn grafanaTemplateVariableFn.AppInsightsGroupByQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.AppInsightsGroupByQuery.withKind(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"AppInsightsGroupByQuery"` - - -##### fn grafanaTemplateVariableFn.AppInsightsGroupByQuery.withMetricName - -```jsonnet -grafanaTemplateVariableFn.AppInsightsGroupByQuery.withMetricName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.AppInsightsGroupByQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.AppInsightsGroupByQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.AppInsightsMetricNameQuery - - -##### fn grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withKind(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"AppInsightsMetricNameQuery"` - - -##### fn grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.MetricDefinitionsQuery - - -##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.MetricDefinitionsQuery.withKind(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"MetricDefinitionsQuery"` - - -##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withMetricNamespace - -```jsonnet -grafanaTemplateVariableFn.MetricDefinitionsQuery.withMetricNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.MetricDefinitionsQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceGroup - -```jsonnet -grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceName - -```jsonnet -grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withSubscription - -```jsonnet -grafanaTemplateVariableFn.MetricDefinitionsQuery.withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.MetricNamesQuery - - -##### fn grafanaTemplateVariableFn.MetricNamesQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.MetricNamesQuery.withKind(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"MetricNamesQuery"` - - -##### fn grafanaTemplateVariableFn.MetricNamesQuery.withMetricNamespace - -```jsonnet -grafanaTemplateVariableFn.MetricNamesQuery.withMetricNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamesQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.MetricNamesQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamesQuery.withResourceGroup - -```jsonnet -grafanaTemplateVariableFn.MetricNamesQuery.withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamesQuery.withResourceName - -```jsonnet -grafanaTemplateVariableFn.MetricNamesQuery.withResourceName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamesQuery.withSubscription - -```jsonnet -grafanaTemplateVariableFn.MetricNamesQuery.withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.MetricNamespaceQuery - - -##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.MetricNamespaceQuery.withKind(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"MetricNamespaceQuery"` - - -##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withMetricNamespace - -```jsonnet -grafanaTemplateVariableFn.MetricNamespaceQuery.withMetricNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.MetricNamespaceQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceGroup - -```jsonnet -grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceName - -```jsonnet -grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withSubscription - -```jsonnet -grafanaTemplateVariableFn.MetricNamespaceQuery.withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.ResourceGroupsQuery - - -##### fn grafanaTemplateVariableFn.ResourceGroupsQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.ResourceGroupsQuery.withKind(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"ResourceGroupsQuery"` - - -##### fn grafanaTemplateVariableFn.ResourceGroupsQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.ResourceGroupsQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.ResourceGroupsQuery.withSubscription - -```jsonnet -grafanaTemplateVariableFn.ResourceGroupsQuery.withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.ResourceNamesQuery - - -##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.ResourceNamesQuery.withKind(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"ResourceNamesQuery"` - - -##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withMetricNamespace - -```jsonnet -grafanaTemplateVariableFn.ResourceNamesQuery.withMetricNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.ResourceNamesQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withResourceGroup - -```jsonnet -grafanaTemplateVariableFn.ResourceNamesQuery.withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withSubscription - -```jsonnet -grafanaTemplateVariableFn.ResourceNamesQuery.withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.SubscriptionsQuery - - -##### fn grafanaTemplateVariableFn.SubscriptionsQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.SubscriptionsQuery.withKind(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"SubscriptionsQuery"` - - -##### fn grafanaTemplateVariableFn.SubscriptionsQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.SubscriptionsQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.UnknownQuery - - -##### fn grafanaTemplateVariableFn.UnknownQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.UnknownQuery.withKind(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"UnknownQuery"` - - -##### fn grafanaTemplateVariableFn.UnknownQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.UnknownQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.WorkspacesQuery - - -##### fn grafanaTemplateVariableFn.WorkspacesQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.WorkspacesQuery.withKind(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"WorkspacesQuery"` - - -##### fn grafanaTemplateVariableFn.WorkspacesQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.WorkspacesQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.WorkspacesQuery.withSubscription - -```jsonnet -grafanaTemplateVariableFn.WorkspacesQuery.withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchLogsQuery/logGroups.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchLogsQuery/logGroups.md deleted file mode 100644 index a59d7777b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchLogsQuery/logGroups.md +++ /dev/null @@ -1,57 +0,0 @@ -# logGroups - - - -## Index - -* [`fn withAccountId(value)`](#fn-withaccountid) -* [`fn withAccountLabel(value)`](#fn-withaccountlabel) -* [`fn withArn(value)`](#fn-witharn) -* [`fn withName(value)`](#fn-withname) - -## Fields - -### fn withAccountId - -```jsonnet -withAccountId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -AccountId of the log group -### fn withAccountLabel - -```jsonnet -withAccountLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Label of the log group -### fn withArn - -```jsonnet -withArn(value) -``` - -PARAMETERS: - -* **value** (`string`) - -ARN of the log group -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the log group \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md deleted file mode 100644 index a7f040201..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md +++ /dev/null @@ -1,32 +0,0 @@ -# parameters - - - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withType(value)`](#fn-withtype) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/orderBy/parameters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/orderBy/parameters.md deleted file mode 100644 index a7f040201..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/orderBy/parameters.md +++ /dev/null @@ -1,32 +0,0 @@ -# parameters - - - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withType(value)`](#fn-withtype) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/select/parameters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/select/parameters.md deleted file mode 100644 index a7f040201..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/select/parameters.md +++ /dev/null @@ -1,32 +0,0 @@ -# parameters - - - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withType(value)`](#fn-withtype) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/index.md deleted file mode 100644 index 36cc72198..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/cloudWatch/index.md +++ /dev/null @@ -1,1272 +0,0 @@ -# cloudWatch - -grafonnet.query.cloudWatch - -## Subpackages - -* [CloudWatchLogsQuery.logGroups](CloudWatchLogsQuery/logGroups.md) -* [CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.parameters](CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md) -* [CloudWatchMetricsQuery.sql.orderBy.parameters](CloudWatchMetricsQuery/sql/orderBy/parameters.md) -* [CloudWatchMetricsQuery.sql.select.parameters](CloudWatchMetricsQuery/sql/select/parameters.md) - -## Index - -* [`obj CloudWatchAnnotationQuery`](#obj-cloudwatchannotationquery) - * [`fn withAccountId(value)`](#fn-cloudwatchannotationquerywithaccountid) - * [`fn withActionPrefix(value)`](#fn-cloudwatchannotationquerywithactionprefix) - * [`fn withAlarmNamePrefix(value)`](#fn-cloudwatchannotationquerywithalarmnameprefix) - * [`fn withDatasource(value)`](#fn-cloudwatchannotationquerywithdatasource) - * [`fn withDimensions(value)`](#fn-cloudwatchannotationquerywithdimensions) - * [`fn withDimensionsMixin(value)`](#fn-cloudwatchannotationquerywithdimensionsmixin) - * [`fn withHide(value=true)`](#fn-cloudwatchannotationquerywithhide) - * [`fn withMatchExact(value=true)`](#fn-cloudwatchannotationquerywithmatchexact) - * [`fn withMetricName(value)`](#fn-cloudwatchannotationquerywithmetricname) - * [`fn withNamespace(value)`](#fn-cloudwatchannotationquerywithnamespace) - * [`fn withPeriod(value)`](#fn-cloudwatchannotationquerywithperiod) - * [`fn withPrefixMatching(value=true)`](#fn-cloudwatchannotationquerywithprefixmatching) - * [`fn withQueryMode(value)`](#fn-cloudwatchannotationquerywithquerymode) - * [`fn withQueryType(value)`](#fn-cloudwatchannotationquerywithquerytype) - * [`fn withRefId(value)`](#fn-cloudwatchannotationquerywithrefid) - * [`fn withRegion(value)`](#fn-cloudwatchannotationquerywithregion) - * [`fn withStatistic(value)`](#fn-cloudwatchannotationquerywithstatistic) - * [`fn withStatistics(value)`](#fn-cloudwatchannotationquerywithstatistics) - * [`fn withStatisticsMixin(value)`](#fn-cloudwatchannotationquerywithstatisticsmixin) -* [`obj CloudWatchLogsQuery`](#obj-cloudwatchlogsquery) - * [`fn withDatasource(value)`](#fn-cloudwatchlogsquerywithdatasource) - * [`fn withExpression(value)`](#fn-cloudwatchlogsquerywithexpression) - * [`fn withHide(value=true)`](#fn-cloudwatchlogsquerywithhide) - * [`fn withId(value)`](#fn-cloudwatchlogsquerywithid) - * [`fn withLogGroupNames(value)`](#fn-cloudwatchlogsquerywithloggroupnames) - * [`fn withLogGroupNamesMixin(value)`](#fn-cloudwatchlogsquerywithloggroupnamesmixin) - * [`fn withLogGroups(value)`](#fn-cloudwatchlogsquerywithloggroups) - * [`fn withLogGroupsMixin(value)`](#fn-cloudwatchlogsquerywithloggroupsmixin) - * [`fn withQueryMode(value)`](#fn-cloudwatchlogsquerywithquerymode) - * [`fn withQueryType(value)`](#fn-cloudwatchlogsquerywithquerytype) - * [`fn withRefId(value)`](#fn-cloudwatchlogsquerywithrefid) - * [`fn withRegion(value)`](#fn-cloudwatchlogsquerywithregion) - * [`fn withStatsGroups(value)`](#fn-cloudwatchlogsquerywithstatsgroups) - * [`fn withStatsGroupsMixin(value)`](#fn-cloudwatchlogsquerywithstatsgroupsmixin) -* [`obj CloudWatchMetricsQuery`](#obj-cloudwatchmetricsquery) - * [`fn withAccountId(value)`](#fn-cloudwatchmetricsquerywithaccountid) - * [`fn withAlias(value)`](#fn-cloudwatchmetricsquerywithalias) - * [`fn withDatasource(value)`](#fn-cloudwatchmetricsquerywithdatasource) - * [`fn withDimensions(value)`](#fn-cloudwatchmetricsquerywithdimensions) - * [`fn withDimensionsMixin(value)`](#fn-cloudwatchmetricsquerywithdimensionsmixin) - * [`fn withExpression(value)`](#fn-cloudwatchmetricsquerywithexpression) - * [`fn withHide(value=true)`](#fn-cloudwatchmetricsquerywithhide) - * [`fn withId(value)`](#fn-cloudwatchmetricsquerywithid) - * [`fn withLabel(value)`](#fn-cloudwatchmetricsquerywithlabel) - * [`fn withMatchExact(value=true)`](#fn-cloudwatchmetricsquerywithmatchexact) - * [`fn withMetricEditorMode(value)`](#fn-cloudwatchmetricsquerywithmetriceditormode) - * [`fn withMetricName(value)`](#fn-cloudwatchmetricsquerywithmetricname) - * [`fn withMetricQueryType(value)`](#fn-cloudwatchmetricsquerywithmetricquerytype) - * [`fn withNamespace(value)`](#fn-cloudwatchmetricsquerywithnamespace) - * [`fn withPeriod(value)`](#fn-cloudwatchmetricsquerywithperiod) - * [`fn withQueryMode(value)`](#fn-cloudwatchmetricsquerywithquerymode) - * [`fn withQueryType(value)`](#fn-cloudwatchmetricsquerywithquerytype) - * [`fn withRefId(value)`](#fn-cloudwatchmetricsquerywithrefid) - * [`fn withRegion(value)`](#fn-cloudwatchmetricsquerywithregion) - * [`fn withSql(value)`](#fn-cloudwatchmetricsquerywithsql) - * [`fn withSqlExpression(value)`](#fn-cloudwatchmetricsquerywithsqlexpression) - * [`fn withSqlMixin(value)`](#fn-cloudwatchmetricsquerywithsqlmixin) - * [`fn withStatistic(value)`](#fn-cloudwatchmetricsquerywithstatistic) - * [`fn withStatistics(value)`](#fn-cloudwatchmetricsquerywithstatistics) - * [`fn withStatisticsMixin(value)`](#fn-cloudwatchmetricsquerywithstatisticsmixin) - * [`obj sql`](#obj-cloudwatchmetricsquerysql) - * [`fn withFrom(value)`](#fn-cloudwatchmetricsquerysqlwithfrom) - * [`fn withFromMixin(value)`](#fn-cloudwatchmetricsquerysqlwithfrommixin) - * [`fn withGroupBy(value)`](#fn-cloudwatchmetricsquerysqlwithgroupby) - * [`fn withGroupByMixin(value)`](#fn-cloudwatchmetricsquerysqlwithgroupbymixin) - * [`fn withLimit(value)`](#fn-cloudwatchmetricsquerysqlwithlimit) - * [`fn withOrderBy(value)`](#fn-cloudwatchmetricsquerysqlwithorderby) - * [`fn withOrderByDirection(value)`](#fn-cloudwatchmetricsquerysqlwithorderbydirection) - * [`fn withOrderByMixin(value)`](#fn-cloudwatchmetricsquerysqlwithorderbymixin) - * [`fn withSelect(value)`](#fn-cloudwatchmetricsquerysqlwithselect) - * [`fn withSelectMixin(value)`](#fn-cloudwatchmetricsquerysqlwithselectmixin) - * [`fn withWhere(value)`](#fn-cloudwatchmetricsquerysqlwithwhere) - * [`fn withWhereMixin(value)`](#fn-cloudwatchmetricsquerysqlwithwheremixin) - * [`obj from`](#obj-cloudwatchmetricsquerysqlfrom) - * [`fn withQueryEditorFunctionExpression(value)`](#fn-cloudwatchmetricsquerysqlfromwithqueryeditorfunctionexpression) - * [`fn withQueryEditorFunctionExpressionMixin(value)`](#fn-cloudwatchmetricsquerysqlfromwithqueryeditorfunctionexpressionmixin) - * [`fn withQueryEditorPropertyExpression(value)`](#fn-cloudwatchmetricsquerysqlfromwithqueryeditorpropertyexpression) - * [`fn withQueryEditorPropertyExpressionMixin(value)`](#fn-cloudwatchmetricsquerysqlfromwithqueryeditorpropertyexpressionmixin) - * [`obj QueryEditorFunctionExpression`](#obj-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpression) - * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithname) - * [`fn withParameters(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithparameters) - * [`fn withParametersMixin(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithparametersmixin) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithtype) - * [`obj QueryEditorPropertyExpression`](#obj-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpression) - * [`fn withProperty(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionwithproperty) - * [`fn withPropertyMixin(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionwithpropertymixin) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionwithtype) - * [`obj property`](#obj-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionproperty) - * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionpropertywithname) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionpropertywithtype) - * [`obj groupBy`](#obj-cloudwatchmetricsquerysqlgroupby) - * [`fn withExpressions(value)`](#fn-cloudwatchmetricsquerysqlgroupbywithexpressions) - * [`fn withExpressionsMixin(value)`](#fn-cloudwatchmetricsquerysqlgroupbywithexpressionsmixin) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlgroupbywithtype) - * [`obj orderBy`](#obj-cloudwatchmetricsquerysqlorderby) - * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlorderbywithname) - * [`fn withParameters(value)`](#fn-cloudwatchmetricsquerysqlorderbywithparameters) - * [`fn withParametersMixin(value)`](#fn-cloudwatchmetricsquerysqlorderbywithparametersmixin) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlorderbywithtype) - * [`obj select`](#obj-cloudwatchmetricsquerysqlselect) - * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlselectwithname) - * [`fn withParameters(value)`](#fn-cloudwatchmetricsquerysqlselectwithparameters) - * [`fn withParametersMixin(value)`](#fn-cloudwatchmetricsquerysqlselectwithparametersmixin) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlselectwithtype) - * [`obj where`](#obj-cloudwatchmetricsquerysqlwhere) - * [`fn withExpressions(value)`](#fn-cloudwatchmetricsquerysqlwherewithexpressions) - * [`fn withExpressionsMixin(value)`](#fn-cloudwatchmetricsquerysqlwherewithexpressionsmixin) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlwherewithtype) - -## Fields - -### obj CloudWatchAnnotationQuery - - -#### fn CloudWatchAnnotationQuery.withAccountId - -```jsonnet -CloudWatchAnnotationQuery.withAccountId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query. -#### fn CloudWatchAnnotationQuery.withActionPrefix - -```jsonnet -CloudWatchAnnotationQuery.withActionPrefix(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Use this parameter to filter the results of the operation to only those alarms -that use a certain alarm action. For example, you could specify the ARN of -an SNS topic to find all alarms that send notifications to that topic. -e.g. `arn:aws:sns:us-east-1:123456789012:my-app-` would match `arn:aws:sns:us-east-1:123456789012:my-app-action` -but not match `arn:aws:sns:us-east-1:123456789012:your-app-action` -#### fn CloudWatchAnnotationQuery.withAlarmNamePrefix - -```jsonnet -CloudWatchAnnotationQuery.withAlarmNamePrefix(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An alarm name prefix. If you specify this parameter, you receive information -about all alarms that have names that start with this prefix. -e.g. `my-team-service-` would match `my-team-service-high-cpu` but not match `your-team-service-high-cpu` -#### fn CloudWatchAnnotationQuery.withDatasource - -```jsonnet -CloudWatchAnnotationQuery.withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null -#### fn CloudWatchAnnotationQuery.withDimensions - -```jsonnet -CloudWatchAnnotationQuery.withDimensions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. -#### fn CloudWatchAnnotationQuery.withDimensionsMixin - -```jsonnet -CloudWatchAnnotationQuery.withDimensionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. -#### fn CloudWatchAnnotationQuery.withHide - -```jsonnet -CloudWatchAnnotationQuery.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -#### fn CloudWatchAnnotationQuery.withMatchExact - -```jsonnet -CloudWatchAnnotationQuery.withMatchExact(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Only show metrics that exactly match all defined dimension names. -#### fn CloudWatchAnnotationQuery.withMetricName - -```jsonnet -CloudWatchAnnotationQuery.withMetricName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the metric -#### fn CloudWatchAnnotationQuery.withNamespace - -```jsonnet -CloudWatchAnnotationQuery.withNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace. -#### fn CloudWatchAnnotationQuery.withPeriod - -```jsonnet -CloudWatchAnnotationQuery.withPeriod(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes -#### fn CloudWatchAnnotationQuery.withPrefixMatching - -```jsonnet -CloudWatchAnnotationQuery.withPrefixMatching(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Enable matching on the prefix of the action name or alarm name, specify the prefixes with actionPrefix and/or alarmNamePrefix -#### fn CloudWatchAnnotationQuery.withQueryMode - -```jsonnet -CloudWatchAnnotationQuery.withQueryMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"Metrics"`, `"Logs"`, `"Annotations"` - - -#### fn CloudWatchAnnotationQuery.withQueryType - -```jsonnet -CloudWatchAnnotationQuery.withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -#### fn CloudWatchAnnotationQuery.withRefId - -```jsonnet -CloudWatchAnnotationQuery.withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -#### fn CloudWatchAnnotationQuery.withRegion - -```jsonnet -CloudWatchAnnotationQuery.withRegion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -AWS region to query for the metric -#### fn CloudWatchAnnotationQuery.withStatistic - -```jsonnet -CloudWatchAnnotationQuery.withStatistic(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html. -#### fn CloudWatchAnnotationQuery.withStatistics - -```jsonnet -CloudWatchAnnotationQuery.withStatistics(value) -``` - -PARAMETERS: - -* **value** (`array`) - -@deprecated use statistic -#### fn CloudWatchAnnotationQuery.withStatisticsMixin - -```jsonnet -CloudWatchAnnotationQuery.withStatisticsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -@deprecated use statistic -### obj CloudWatchLogsQuery - - -#### fn CloudWatchLogsQuery.withDatasource - -```jsonnet -CloudWatchLogsQuery.withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null -#### fn CloudWatchLogsQuery.withExpression - -```jsonnet -CloudWatchLogsQuery.withExpression(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The CloudWatch Logs Insights query to execute -#### fn CloudWatchLogsQuery.withHide - -```jsonnet -CloudWatchLogsQuery.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -#### fn CloudWatchLogsQuery.withId - -```jsonnet -CloudWatchLogsQuery.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn CloudWatchLogsQuery.withLogGroupNames - -```jsonnet -CloudWatchLogsQuery.withLogGroupNames(value) -``` - -PARAMETERS: - -* **value** (`array`) - -@deprecated use logGroups -#### fn CloudWatchLogsQuery.withLogGroupNamesMixin - -```jsonnet -CloudWatchLogsQuery.withLogGroupNamesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -@deprecated use logGroups -#### fn CloudWatchLogsQuery.withLogGroups - -```jsonnet -CloudWatchLogsQuery.withLogGroups(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Log groups to query -#### fn CloudWatchLogsQuery.withLogGroupsMixin - -```jsonnet -CloudWatchLogsQuery.withLogGroupsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Log groups to query -#### fn CloudWatchLogsQuery.withQueryMode - -```jsonnet -CloudWatchLogsQuery.withQueryMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"Metrics"`, `"Logs"`, `"Annotations"` - - -#### fn CloudWatchLogsQuery.withQueryType - -```jsonnet -CloudWatchLogsQuery.withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -#### fn CloudWatchLogsQuery.withRefId - -```jsonnet -CloudWatchLogsQuery.withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -#### fn CloudWatchLogsQuery.withRegion - -```jsonnet -CloudWatchLogsQuery.withRegion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -AWS region to query for the logs -#### fn CloudWatchLogsQuery.withStatsGroups - -```jsonnet -CloudWatchLogsQuery.withStatsGroups(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Fields to group the results by, this field is automatically populated whenever the query is updated -#### fn CloudWatchLogsQuery.withStatsGroupsMixin - -```jsonnet -CloudWatchLogsQuery.withStatsGroupsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Fields to group the results by, this field is automatically populated whenever the query is updated -### obj CloudWatchMetricsQuery - - -#### fn CloudWatchMetricsQuery.withAccountId - -```jsonnet -CloudWatchMetricsQuery.withAccountId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query. -#### fn CloudWatchMetricsQuery.withAlias - -```jsonnet -CloudWatchMetricsQuery.withAlias(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Deprecated: use label -@deprecated use label -#### fn CloudWatchMetricsQuery.withDatasource - -```jsonnet -CloudWatchMetricsQuery.withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null -#### fn CloudWatchMetricsQuery.withDimensions - -```jsonnet -CloudWatchMetricsQuery.withDimensions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. -#### fn CloudWatchMetricsQuery.withDimensionsMixin - -```jsonnet -CloudWatchMetricsQuery.withDimensionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. -#### fn CloudWatchMetricsQuery.withExpression - -```jsonnet -CloudWatchMetricsQuery.withExpression(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Math expression query -#### fn CloudWatchMetricsQuery.withHide - -```jsonnet -CloudWatchMetricsQuery.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -#### fn CloudWatchMetricsQuery.withId - -```jsonnet -CloudWatchMetricsQuery.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -ID can be used to reference other queries in math expressions. The ID can include numbers, letters, and underscore, and must start with a lowercase letter. -#### fn CloudWatchMetricsQuery.withLabel - -```jsonnet -CloudWatchMetricsQuery.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Change the time series legend names using dynamic labels. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html for more details. -#### fn CloudWatchMetricsQuery.withMatchExact - -```jsonnet -CloudWatchMetricsQuery.withMatchExact(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Only show metrics that exactly match all defined dimension names. -#### fn CloudWatchMetricsQuery.withMetricEditorMode - -```jsonnet -CloudWatchMetricsQuery.withMetricEditorMode(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - valid values: `0`, `1` - - -#### fn CloudWatchMetricsQuery.withMetricName - -```jsonnet -CloudWatchMetricsQuery.withMetricName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the metric -#### fn CloudWatchMetricsQuery.withMetricQueryType - -```jsonnet -CloudWatchMetricsQuery.withMetricQueryType(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - valid values: `0`, `1` - - -#### fn CloudWatchMetricsQuery.withNamespace - -```jsonnet -CloudWatchMetricsQuery.withNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace. -#### fn CloudWatchMetricsQuery.withPeriod - -```jsonnet -CloudWatchMetricsQuery.withPeriod(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes -#### fn CloudWatchMetricsQuery.withQueryMode - -```jsonnet -CloudWatchMetricsQuery.withQueryMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"Metrics"`, `"Logs"`, `"Annotations"` - - -#### fn CloudWatchMetricsQuery.withQueryType - -```jsonnet -CloudWatchMetricsQuery.withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -#### fn CloudWatchMetricsQuery.withRefId - -```jsonnet -CloudWatchMetricsQuery.withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -#### fn CloudWatchMetricsQuery.withRegion - -```jsonnet -CloudWatchMetricsQuery.withRegion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -AWS region to query for the metric -#### fn CloudWatchMetricsQuery.withSql - -```jsonnet -CloudWatchMetricsQuery.withSql(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn CloudWatchMetricsQuery.withSqlExpression - -```jsonnet -CloudWatchMetricsQuery.withSqlExpression(value) -``` - -PARAMETERS: - -* **value** (`string`) - -When the metric query type is `metricQueryType` is set to `Query`, this field is used to specify the query string. -#### fn CloudWatchMetricsQuery.withSqlMixin - -```jsonnet -CloudWatchMetricsQuery.withSqlMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn CloudWatchMetricsQuery.withStatistic - -```jsonnet -CloudWatchMetricsQuery.withStatistic(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html. -#### fn CloudWatchMetricsQuery.withStatistics - -```jsonnet -CloudWatchMetricsQuery.withStatistics(value) -``` - -PARAMETERS: - -* **value** (`array`) - -@deprecated use statistic -#### fn CloudWatchMetricsQuery.withStatisticsMixin - -```jsonnet -CloudWatchMetricsQuery.withStatisticsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -@deprecated use statistic -#### obj CloudWatchMetricsQuery.sql - - -##### fn CloudWatchMetricsQuery.sql.withFrom - -```jsonnet -CloudWatchMetricsQuery.sql.withFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -FROM part of the SQL expression -##### fn CloudWatchMetricsQuery.sql.withFromMixin - -```jsonnet -CloudWatchMetricsQuery.sql.withFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -FROM part of the SQL expression -##### fn CloudWatchMetricsQuery.sql.withGroupBy - -```jsonnet -CloudWatchMetricsQuery.sql.withGroupBy(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withGroupByMixin - -```jsonnet -CloudWatchMetricsQuery.sql.withGroupByMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withLimit - -```jsonnet -CloudWatchMetricsQuery.sql.withLimit(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -LIMIT part of the SQL expression -##### fn CloudWatchMetricsQuery.sql.withOrderBy - -```jsonnet -CloudWatchMetricsQuery.sql.withOrderBy(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withOrderByDirection - -```jsonnet -CloudWatchMetricsQuery.sql.withOrderByDirection(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The sort order of the SQL expression, `ASC` or `DESC` -##### fn CloudWatchMetricsQuery.sql.withOrderByMixin - -```jsonnet -CloudWatchMetricsQuery.sql.withOrderByMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withSelect - -```jsonnet -CloudWatchMetricsQuery.sql.withSelect(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withSelectMixin - -```jsonnet -CloudWatchMetricsQuery.sql.withSelectMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withWhere - -```jsonnet -CloudWatchMetricsQuery.sql.withWhere(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withWhereMixin - -```jsonnet -CloudWatchMetricsQuery.sql.withWhereMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### obj CloudWatchMetricsQuery.sql.from - - -###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpression - -```jsonnet -CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpression(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpressionMixin - -```jsonnet -CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpressionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpression - -```jsonnet -CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpression(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpressionMixin - -```jsonnet -CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpressionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### obj CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withName - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParameters - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParameters(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParametersMixin - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParametersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withType - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### obj CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withProperty - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withProperty(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withPropertyMixin - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withPropertyMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withType - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -####### obj CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property - - -######## fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withName - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withType - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"string"` - - -##### obj CloudWatchMetricsQuery.sql.groupBy - - -###### fn CloudWatchMetricsQuery.sql.groupBy.withExpressions - -```jsonnet -CloudWatchMetricsQuery.sql.groupBy.withExpressions(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.groupBy.withExpressionsMixin - -```jsonnet -CloudWatchMetricsQuery.sql.groupBy.withExpressionsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.groupBy.withType - -```jsonnet -CloudWatchMetricsQuery.sql.groupBy.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"and"`, `"or"` - - -##### obj CloudWatchMetricsQuery.sql.orderBy - - -###### fn CloudWatchMetricsQuery.sql.orderBy.withName - -```jsonnet -CloudWatchMetricsQuery.sql.orderBy.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn CloudWatchMetricsQuery.sql.orderBy.withParameters - -```jsonnet -CloudWatchMetricsQuery.sql.orderBy.withParameters(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.orderBy.withParametersMixin - -```jsonnet -CloudWatchMetricsQuery.sql.orderBy.withParametersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.orderBy.withType - -```jsonnet -CloudWatchMetricsQuery.sql.orderBy.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj CloudWatchMetricsQuery.sql.select - - -###### fn CloudWatchMetricsQuery.sql.select.withName - -```jsonnet -CloudWatchMetricsQuery.sql.select.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn CloudWatchMetricsQuery.sql.select.withParameters - -```jsonnet -CloudWatchMetricsQuery.sql.select.withParameters(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.select.withParametersMixin - -```jsonnet -CloudWatchMetricsQuery.sql.select.withParametersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.select.withType - -```jsonnet -CloudWatchMetricsQuery.sql.select.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj CloudWatchMetricsQuery.sql.where - - -###### fn CloudWatchMetricsQuery.sql.where.withExpressions - -```jsonnet -CloudWatchMetricsQuery.sql.where.withExpressions(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.where.withExpressionsMixin - -```jsonnet -CloudWatchMetricsQuery.sql.where.withExpressionsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.where.withType - -```jsonnet -CloudWatchMetricsQuery.sql.where.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"and"`, `"or"` - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/bucketAggs/Filters/settings/filters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/bucketAggs/Filters/settings/filters.md deleted file mode 100644 index 34d28192c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/bucketAggs/Filters/settings/filters.md +++ /dev/null @@ -1,32 +0,0 @@ -# filters - - - -## Index - -* [`fn withLabel(value)`](#fn-withlabel) -* [`fn withQuery(value)`](#fn-withquery) - -## Fields - -### fn withLabel - -```jsonnet -withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withQuery - -```jsonnet -withQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/bucketAggs/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/bucketAggs/index.md deleted file mode 100644 index 07316dbca..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/bucketAggs/index.md +++ /dev/null @@ -1,585 +0,0 @@ -# bucketAggs - - - -## Subpackages - -* [Filters.settings.filters](Filters/settings/filters.md) - -## Index - -* [`obj DateHistogram`](#obj-datehistogram) - * [`fn withField(value)`](#fn-datehistogramwithfield) - * [`fn withId(value)`](#fn-datehistogramwithid) - * [`fn withSettings(value)`](#fn-datehistogramwithsettings) - * [`fn withSettingsMixin(value)`](#fn-datehistogramwithsettingsmixin) - * [`fn withType(value)`](#fn-datehistogramwithtype) - * [`obj settings`](#obj-datehistogramsettings) - * [`fn withInterval(value)`](#fn-datehistogramsettingswithinterval) - * [`fn withMinDocCount(value)`](#fn-datehistogramsettingswithmindoccount) - * [`fn withOffset(value)`](#fn-datehistogramsettingswithoffset) - * [`fn withTimeZone(value)`](#fn-datehistogramsettingswithtimezone) - * [`fn withTrimEdges(value)`](#fn-datehistogramsettingswithtrimedges) -* [`obj Filters`](#obj-filters) - * [`fn withId(value)`](#fn-filterswithid) - * [`fn withSettings(value)`](#fn-filterswithsettings) - * [`fn withSettingsMixin(value)`](#fn-filterswithsettingsmixin) - * [`fn withType(value)`](#fn-filterswithtype) - * [`obj settings`](#obj-filterssettings) - * [`fn withFilters(value)`](#fn-filterssettingswithfilters) - * [`fn withFiltersMixin(value)`](#fn-filterssettingswithfiltersmixin) -* [`obj GeoHashGrid`](#obj-geohashgrid) - * [`fn withField(value)`](#fn-geohashgridwithfield) - * [`fn withId(value)`](#fn-geohashgridwithid) - * [`fn withSettings(value)`](#fn-geohashgridwithsettings) - * [`fn withSettingsMixin(value)`](#fn-geohashgridwithsettingsmixin) - * [`fn withType(value)`](#fn-geohashgridwithtype) - * [`obj settings`](#obj-geohashgridsettings) - * [`fn withPrecision(value)`](#fn-geohashgridsettingswithprecision) -* [`obj Histogram`](#obj-histogram) - * [`fn withField(value)`](#fn-histogramwithfield) - * [`fn withId(value)`](#fn-histogramwithid) - * [`fn withSettings(value)`](#fn-histogramwithsettings) - * [`fn withSettingsMixin(value)`](#fn-histogramwithsettingsmixin) - * [`fn withType(value)`](#fn-histogramwithtype) - * [`obj settings`](#obj-histogramsettings) - * [`fn withInterval(value)`](#fn-histogramsettingswithinterval) - * [`fn withMinDocCount(value)`](#fn-histogramsettingswithmindoccount) -* [`obj Nested`](#obj-nested) - * [`fn withField(value)`](#fn-nestedwithfield) - * [`fn withId(value)`](#fn-nestedwithid) - * [`fn withSettings(value)`](#fn-nestedwithsettings) - * [`fn withSettingsMixin(value)`](#fn-nestedwithsettingsmixin) - * [`fn withType(value)`](#fn-nestedwithtype) -* [`obj Terms`](#obj-terms) - * [`fn withField(value)`](#fn-termswithfield) - * [`fn withId(value)`](#fn-termswithid) - * [`fn withSettings(value)`](#fn-termswithsettings) - * [`fn withSettingsMixin(value)`](#fn-termswithsettingsmixin) - * [`fn withType(value)`](#fn-termswithtype) - * [`obj settings`](#obj-termssettings) - * [`fn withMinDocCount(value)`](#fn-termssettingswithmindoccount) - * [`fn withMissing(value)`](#fn-termssettingswithmissing) - * [`fn withOrder(value)`](#fn-termssettingswithorder) - * [`fn withOrderBy(value)`](#fn-termssettingswithorderby) - * [`fn withSize(value)`](#fn-termssettingswithsize) - -## Fields - -### obj DateHistogram - - -#### fn DateHistogram.withField - -```jsonnet -DateHistogram.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn DateHistogram.withId - -```jsonnet -DateHistogram.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn DateHistogram.withSettings - -```jsonnet -DateHistogram.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn DateHistogram.withSettingsMixin - -```jsonnet -DateHistogram.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn DateHistogram.withType - -```jsonnet -DateHistogram.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj DateHistogram.settings - - -##### fn DateHistogram.settings.withInterval - -```jsonnet -DateHistogram.settings.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn DateHistogram.settings.withMinDocCount - -```jsonnet -DateHistogram.settings.withMinDocCount(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn DateHistogram.settings.withOffset - -```jsonnet -DateHistogram.settings.withOffset(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn DateHistogram.settings.withTimeZone - -```jsonnet -DateHistogram.settings.withTimeZone(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn DateHistogram.settings.withTrimEdges - -```jsonnet -DateHistogram.settings.withTrimEdges(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj Filters - - -#### fn Filters.withId - -```jsonnet -Filters.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Filters.withSettings - -```jsonnet -Filters.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Filters.withSettingsMixin - -```jsonnet -Filters.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Filters.withType - -```jsonnet -Filters.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj Filters.settings - - -##### fn Filters.settings.withFilters - -```jsonnet -Filters.settings.withFilters(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn Filters.settings.withFiltersMixin - -```jsonnet -Filters.settings.withFiltersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj GeoHashGrid - - -#### fn GeoHashGrid.withField - -```jsonnet -GeoHashGrid.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn GeoHashGrid.withId - -```jsonnet -GeoHashGrid.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn GeoHashGrid.withSettings - -```jsonnet -GeoHashGrid.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn GeoHashGrid.withSettingsMixin - -```jsonnet -GeoHashGrid.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn GeoHashGrid.withType - -```jsonnet -GeoHashGrid.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj GeoHashGrid.settings - - -##### fn GeoHashGrid.settings.withPrecision - -```jsonnet -GeoHashGrid.settings.withPrecision(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj Histogram - - -#### fn Histogram.withField - -```jsonnet -Histogram.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Histogram.withId - -```jsonnet -Histogram.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Histogram.withSettings - -```jsonnet -Histogram.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Histogram.withSettingsMixin - -```jsonnet -Histogram.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Histogram.withType - -```jsonnet -Histogram.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj Histogram.settings - - -##### fn Histogram.settings.withInterval - -```jsonnet -Histogram.settings.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn Histogram.settings.withMinDocCount - -```jsonnet -Histogram.settings.withMinDocCount(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj Nested - - -#### fn Nested.withField - -```jsonnet -Nested.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Nested.withId - -```jsonnet -Nested.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Nested.withSettings - -```jsonnet -Nested.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Nested.withSettingsMixin - -```jsonnet -Nested.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Nested.withType - -```jsonnet -Nested.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj Terms - - -#### fn Terms.withField - -```jsonnet -Terms.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Terms.withId - -```jsonnet -Terms.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Terms.withSettings - -```jsonnet -Terms.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Terms.withSettingsMixin - -```jsonnet -Terms.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Terms.withType - -```jsonnet -Terms.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj Terms.settings - - -##### fn Terms.settings.withMinDocCount - -```jsonnet -Terms.settings.withMinDocCount(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn Terms.settings.withMissing - -```jsonnet -Terms.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn Terms.settings.withOrder - -```jsonnet -Terms.settings.withOrder(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"desc"`, `"asc"` - - -##### fn Terms.settings.withOrderBy - -```jsonnet -Terms.settings.withOrderBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn Terms.settings.withSize - -```jsonnet -Terms.settings.withSize(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/index.md deleted file mode 100644 index b5926b0b0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/index.md +++ /dev/null @@ -1,155 +0,0 @@ -# elasticsearch - -grafonnet.query.elasticsearch - -## Subpackages - -* [bucketAggs](bucketAggs/index.md) -* [metrics](metrics/index.md) - -## Index - -* [`fn withAlias(value)`](#fn-withalias) -* [`fn withBucketAggs(value)`](#fn-withbucketaggs) -* [`fn withBucketAggsMixin(value)`](#fn-withbucketaggsmixin) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withMetrics(value)`](#fn-withmetrics) -* [`fn withMetricsMixin(value)`](#fn-withmetricsmixin) -* [`fn withQuery(value)`](#fn-withquery) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withTimeField(value)`](#fn-withtimefield) - -## Fields - -### fn withAlias - -```jsonnet -withAlias(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alias pattern -### fn withBucketAggs - -```jsonnet -withBucketAggs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of bucket aggregations -### fn withBucketAggsMixin - -```jsonnet -withBucketAggsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of bucket aggregations -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withMetrics - -```jsonnet -withMetrics(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of metric aggregations -### fn withMetricsMixin - -```jsonnet -withMetricsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of metric aggregations -### fn withQuery - -```jsonnet -withQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Lucene query -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -### fn withTimeField - -```jsonnet -withTimeField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of time field \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/metrics/MetricAggregationWithSettings/BucketScript/pipelineVariables.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/metrics/MetricAggregationWithSettings/BucketScript/pipelineVariables.md deleted file mode 100644 index 98f895241..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/metrics/MetricAggregationWithSettings/BucketScript/pipelineVariables.md +++ /dev/null @@ -1,32 +0,0 @@ -# pipelineVariables - - - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withPipelineAgg(value)`](#fn-withpipelineagg) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withPipelineAgg - -```jsonnet -withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/metrics/PipelineMetricAggregation/BucketScript/pipelineVariables.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/metrics/PipelineMetricAggregation/BucketScript/pipelineVariables.md deleted file mode 100644 index 98f895241..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/metrics/PipelineMetricAggregation/BucketScript/pipelineVariables.md +++ /dev/null @@ -1,32 +0,0 @@ -# pipelineVariables - - - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withPipelineAgg(value)`](#fn-withpipelineagg) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withPipelineAgg - -```jsonnet -withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/metrics/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/metrics/index.md deleted file mode 100644 index 60a0291e3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/elasticsearch/metrics/index.md +++ /dev/null @@ -1,2616 +0,0 @@ -# metrics - - - -## Subpackages - -* [MetricAggregationWithSettings.BucketScript.pipelineVariables](MetricAggregationWithSettings/BucketScript/pipelineVariables.md) -* [PipelineMetricAggregation.BucketScript.pipelineVariables](PipelineMetricAggregation/BucketScript/pipelineVariables.md) - -## Index - -* [`obj Count`](#obj-count) - * [`fn withHide(value=true)`](#fn-countwithhide) - * [`fn withId(value)`](#fn-countwithid) - * [`fn withType(value)`](#fn-countwithtype) -* [`obj MetricAggregationWithSettings`](#obj-metricaggregationwithsettings) - * [`obj Average`](#obj-metricaggregationwithsettingsaverage) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsaveragewithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsaveragewithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsaveragewithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsaveragewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsaveragewithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingsaveragewithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsaveragesettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsaveragesettingswithmissing) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingsaveragesettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsaveragesettingswithscriptmixin) - * [`obj script`](#obj-metricaggregationwithsettingsaveragesettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingsaveragesettingsscriptwithinline) - * [`obj BucketScript`](#obj-metricaggregationwithsettingsbucketscript) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsbucketscriptwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsbucketscriptwithid) - * [`fn withPipelineVariables(value)`](#fn-metricaggregationwithsettingsbucketscriptwithpipelinevariables) - * [`fn withPipelineVariablesMixin(value)`](#fn-metricaggregationwithsettingsbucketscriptwithpipelinevariablesmixin) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsbucketscriptwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsbucketscriptwithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingsbucketscriptwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsbucketscriptsettings) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingsbucketscriptsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsbucketscriptsettingswithscriptmixin) - * [`obj script`](#obj-metricaggregationwithsettingsbucketscriptsettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingsbucketscriptsettingsscriptwithinline) - * [`obj CumulativeSum`](#obj-metricaggregationwithsettingscumulativesum) - * [`fn withField(value)`](#fn-metricaggregationwithsettingscumulativesumwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingscumulativesumwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingscumulativesumwithid) - * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingscumulativesumwithpipelineagg) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingscumulativesumwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingscumulativesumwithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingscumulativesumwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingscumulativesumsettings) - * [`fn withFormat(value)`](#fn-metricaggregationwithsettingscumulativesumsettingswithformat) - * [`obj Derivative`](#obj-metricaggregationwithsettingsderivative) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsderivativewithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsderivativewithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsderivativewithid) - * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingsderivativewithpipelineagg) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsderivativewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsderivativewithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingsderivativewithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsderivativesettings) - * [`fn withUnit(value)`](#fn-metricaggregationwithsettingsderivativesettingswithunit) - * [`obj ExtendedStats`](#obj-metricaggregationwithsettingsextendedstats) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsextendedstatswithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsextendedstatswithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsextendedstatswithid) - * [`fn withMeta(value)`](#fn-metricaggregationwithsettingsextendedstatswithmeta) - * [`fn withMetaMixin(value)`](#fn-metricaggregationwithsettingsextendedstatswithmetamixin) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsextendedstatswithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsextendedstatswithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingsextendedstatswithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsextendedstatssettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsextendedstatssettingswithmissing) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingsextendedstatssettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsextendedstatssettingswithscriptmixin) - * [`fn withSigma(value)`](#fn-metricaggregationwithsettingsextendedstatssettingswithsigma) - * [`obj script`](#obj-metricaggregationwithsettingsextendedstatssettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingsextendedstatssettingsscriptwithinline) - * [`obj Logs`](#obj-metricaggregationwithsettingslogs) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingslogswithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingslogswithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingslogswithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingslogswithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingslogswithtype) - * [`obj settings`](#obj-metricaggregationwithsettingslogssettings) - * [`fn withLimit(value)`](#fn-metricaggregationwithsettingslogssettingswithlimit) - * [`obj Max`](#obj-metricaggregationwithsettingsmax) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsmaxwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsmaxwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsmaxwithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsmaxwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsmaxwithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingsmaxwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsmaxsettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsmaxsettingswithmissing) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingsmaxsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsmaxsettingswithscriptmixin) - * [`obj script`](#obj-metricaggregationwithsettingsmaxsettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingsmaxsettingsscriptwithinline) - * [`obj Min`](#obj-metricaggregationwithsettingsmin) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsminwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsminwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsminwithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsminwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsminwithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingsminwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsminsettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsminsettingswithmissing) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingsminsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsminsettingswithscriptmixin) - * [`obj script`](#obj-metricaggregationwithsettingsminsettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingsminsettingsscriptwithinline) - * [`obj MovingAverage`](#obj-metricaggregationwithsettingsmovingaverage) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsmovingaveragewithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsmovingaveragewithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsmovingaveragewithid) - * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingsmovingaveragewithpipelineagg) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsmovingaveragewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsmovingaveragewithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingsmovingaveragewithtype) - * [`obj MovingFunction`](#obj-metricaggregationwithsettingsmovingfunction) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsmovingfunctionwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithid) - * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithpipelineagg) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsmovingfunctionsettings) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingswithscriptmixin) - * [`fn withShift(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingswithshift) - * [`fn withWindow(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingswithwindow) - * [`obj script`](#obj-metricaggregationwithsettingsmovingfunctionsettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingsscriptwithinline) - * [`obj Percentiles`](#obj-metricaggregationwithsettingspercentiles) - * [`fn withField(value)`](#fn-metricaggregationwithsettingspercentileswithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingspercentileswithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingspercentileswithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingspercentileswithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingspercentileswithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingspercentileswithtype) - * [`obj settings`](#obj-metricaggregationwithsettingspercentilessettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingspercentilessettingswithmissing) - * [`fn withPercents(value)`](#fn-metricaggregationwithsettingspercentilessettingswithpercents) - * [`fn withPercentsMixin(value)`](#fn-metricaggregationwithsettingspercentilessettingswithpercentsmixin) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingspercentilessettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingspercentilessettingswithscriptmixin) - * [`obj script`](#obj-metricaggregationwithsettingspercentilessettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingspercentilessettingsscriptwithinline) - * [`obj Rate`](#obj-metricaggregationwithsettingsrate) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsratewithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsratewithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsratewithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsratewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsratewithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingsratewithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsratesettings) - * [`fn withMode(value)`](#fn-metricaggregationwithsettingsratesettingswithmode) - * [`fn withUnit(value)`](#fn-metricaggregationwithsettingsratesettingswithunit) - * [`obj RawData`](#obj-metricaggregationwithsettingsrawdata) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsrawdatawithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsrawdatawithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsrawdatawithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsrawdatawithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingsrawdatawithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsrawdatasettings) - * [`fn withSize(value)`](#fn-metricaggregationwithsettingsrawdatasettingswithsize) - * [`obj RawDocument`](#obj-metricaggregationwithsettingsrawdocument) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsrawdocumentwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsrawdocumentwithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsrawdocumentwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsrawdocumentwithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingsrawdocumentwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsrawdocumentsettings) - * [`fn withSize(value)`](#fn-metricaggregationwithsettingsrawdocumentsettingswithsize) - * [`obj SerialDiff`](#obj-metricaggregationwithsettingsserialdiff) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsserialdiffwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsserialdiffwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsserialdiffwithid) - * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingsserialdiffwithpipelineagg) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsserialdiffwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsserialdiffwithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingsserialdiffwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsserialdiffsettings) - * [`fn withLag(value)`](#fn-metricaggregationwithsettingsserialdiffsettingswithlag) - * [`obj Sum`](#obj-metricaggregationwithsettingssum) - * [`fn withField(value)`](#fn-metricaggregationwithsettingssumwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingssumwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingssumwithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingssumwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingssumwithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingssumwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingssumsettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingssumsettingswithmissing) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingssumsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingssumsettingswithscriptmixin) - * [`obj script`](#obj-metricaggregationwithsettingssumsettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingssumsettingsscriptwithinline) - * [`obj TopMetrics`](#obj-metricaggregationwithsettingstopmetrics) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingstopmetricswithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingstopmetricswithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingstopmetricswithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingstopmetricswithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingstopmetricswithtype) - * [`obj settings`](#obj-metricaggregationwithsettingstopmetricssettings) - * [`fn withMetrics(value)`](#fn-metricaggregationwithsettingstopmetricssettingswithmetrics) - * [`fn withMetricsMixin(value)`](#fn-metricaggregationwithsettingstopmetricssettingswithmetricsmixin) - * [`fn withOrder(value)`](#fn-metricaggregationwithsettingstopmetricssettingswithorder) - * [`fn withOrderBy(value)`](#fn-metricaggregationwithsettingstopmetricssettingswithorderby) - * [`obj UniqueCount`](#obj-metricaggregationwithsettingsuniquecount) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsuniquecountwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsuniquecountwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsuniquecountwithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsuniquecountwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsuniquecountwithsettingsmixin) - * [`fn withType(value)`](#fn-metricaggregationwithsettingsuniquecountwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsuniquecountsettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsuniquecountsettingswithmissing) - * [`fn withPrecisionThreshold(value)`](#fn-metricaggregationwithsettingsuniquecountsettingswithprecisionthreshold) -* [`obj PipelineMetricAggregation`](#obj-pipelinemetricaggregation) - * [`obj BucketScript`](#obj-pipelinemetricaggregationbucketscript) - * [`fn withHide(value=true)`](#fn-pipelinemetricaggregationbucketscriptwithhide) - * [`fn withId(value)`](#fn-pipelinemetricaggregationbucketscriptwithid) - * [`fn withPipelineVariables(value)`](#fn-pipelinemetricaggregationbucketscriptwithpipelinevariables) - * [`fn withPipelineVariablesMixin(value)`](#fn-pipelinemetricaggregationbucketscriptwithpipelinevariablesmixin) - * [`fn withSettings(value)`](#fn-pipelinemetricaggregationbucketscriptwithsettings) - * [`fn withSettingsMixin(value)`](#fn-pipelinemetricaggregationbucketscriptwithsettingsmixin) - * [`fn withType(value)`](#fn-pipelinemetricaggregationbucketscriptwithtype) - * [`obj settings`](#obj-pipelinemetricaggregationbucketscriptsettings) - * [`fn withScript(value)`](#fn-pipelinemetricaggregationbucketscriptsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-pipelinemetricaggregationbucketscriptsettingswithscriptmixin) - * [`obj script`](#obj-pipelinemetricaggregationbucketscriptsettingsscript) - * [`fn withInline(value)`](#fn-pipelinemetricaggregationbucketscriptsettingsscriptwithinline) - * [`obj CumulativeSum`](#obj-pipelinemetricaggregationcumulativesum) - * [`fn withField(value)`](#fn-pipelinemetricaggregationcumulativesumwithfield) - * [`fn withHide(value=true)`](#fn-pipelinemetricaggregationcumulativesumwithhide) - * [`fn withId(value)`](#fn-pipelinemetricaggregationcumulativesumwithid) - * [`fn withPipelineAgg(value)`](#fn-pipelinemetricaggregationcumulativesumwithpipelineagg) - * [`fn withSettings(value)`](#fn-pipelinemetricaggregationcumulativesumwithsettings) - * [`fn withSettingsMixin(value)`](#fn-pipelinemetricaggregationcumulativesumwithsettingsmixin) - * [`fn withType(value)`](#fn-pipelinemetricaggregationcumulativesumwithtype) - * [`obj settings`](#obj-pipelinemetricaggregationcumulativesumsettings) - * [`fn withFormat(value)`](#fn-pipelinemetricaggregationcumulativesumsettingswithformat) - * [`obj Derivative`](#obj-pipelinemetricaggregationderivative) - * [`fn withField(value)`](#fn-pipelinemetricaggregationderivativewithfield) - * [`fn withHide(value=true)`](#fn-pipelinemetricaggregationderivativewithhide) - * [`fn withId(value)`](#fn-pipelinemetricaggregationderivativewithid) - * [`fn withPipelineAgg(value)`](#fn-pipelinemetricaggregationderivativewithpipelineagg) - * [`fn withSettings(value)`](#fn-pipelinemetricaggregationderivativewithsettings) - * [`fn withSettingsMixin(value)`](#fn-pipelinemetricaggregationderivativewithsettingsmixin) - * [`fn withType(value)`](#fn-pipelinemetricaggregationderivativewithtype) - * [`obj settings`](#obj-pipelinemetricaggregationderivativesettings) - * [`fn withUnit(value)`](#fn-pipelinemetricaggregationderivativesettingswithunit) - * [`obj MovingAverage`](#obj-pipelinemetricaggregationmovingaverage) - * [`fn withField(value)`](#fn-pipelinemetricaggregationmovingaveragewithfield) - * [`fn withHide(value=true)`](#fn-pipelinemetricaggregationmovingaveragewithhide) - * [`fn withId(value)`](#fn-pipelinemetricaggregationmovingaveragewithid) - * [`fn withPipelineAgg(value)`](#fn-pipelinemetricaggregationmovingaveragewithpipelineagg) - * [`fn withSettings(value)`](#fn-pipelinemetricaggregationmovingaveragewithsettings) - * [`fn withSettingsMixin(value)`](#fn-pipelinemetricaggregationmovingaveragewithsettingsmixin) - * [`fn withType(value)`](#fn-pipelinemetricaggregationmovingaveragewithtype) - -## Fields - -### obj Count - - -#### fn Count.withHide - -```jsonnet -Count.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn Count.withId - -```jsonnet -Count.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Count.withType - -```jsonnet -Count.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj MetricAggregationWithSettings - - -#### obj MetricAggregationWithSettings.Average - - -##### fn MetricAggregationWithSettings.Average.withField - -```jsonnet -MetricAggregationWithSettings.Average.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Average.withHide - -```jsonnet -MetricAggregationWithSettings.Average.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Average.withId - -```jsonnet -MetricAggregationWithSettings.Average.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Average.withSettings - -```jsonnet -MetricAggregationWithSettings.Average.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Average.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Average.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Average.withType - -```jsonnet -MetricAggregationWithSettings.Average.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.Average.settings - - -###### fn MetricAggregationWithSettings.Average.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.Average.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.Average.settings.withScript - -```jsonnet -MetricAggregationWithSettings.Average.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.Average.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.Average.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj MetricAggregationWithSettings.Average.settings.script - - -####### fn MetricAggregationWithSettings.Average.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.Average.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.BucketScript - - -##### fn MetricAggregationWithSettings.BucketScript.withHide - -```jsonnet -MetricAggregationWithSettings.BucketScript.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.BucketScript.withId - -```jsonnet -MetricAggregationWithSettings.BucketScript.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.BucketScript.withPipelineVariables - -```jsonnet -MetricAggregationWithSettings.BucketScript.withPipelineVariables(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn MetricAggregationWithSettings.BucketScript.withPipelineVariablesMixin - -```jsonnet -MetricAggregationWithSettings.BucketScript.withPipelineVariablesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn MetricAggregationWithSettings.BucketScript.withSettings - -```jsonnet -MetricAggregationWithSettings.BucketScript.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.BucketScript.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.BucketScript.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.BucketScript.withType - -```jsonnet -MetricAggregationWithSettings.BucketScript.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.BucketScript.settings - - -###### fn MetricAggregationWithSettings.BucketScript.settings.withScript - -```jsonnet -MetricAggregationWithSettings.BucketScript.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.BucketScript.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.BucketScript.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj MetricAggregationWithSettings.BucketScript.settings.script - - -####### fn MetricAggregationWithSettings.BucketScript.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.BucketScript.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.CumulativeSum - - -##### fn MetricAggregationWithSettings.CumulativeSum.withField - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.CumulativeSum.withHide - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.CumulativeSum.withId - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.CumulativeSum.withPipelineAgg - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.CumulativeSum.withSettings - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.CumulativeSum.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.CumulativeSum.withType - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.CumulativeSum.settings - - -###### fn MetricAggregationWithSettings.CumulativeSum.settings.withFormat - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.settings.withFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Derivative - - -##### fn MetricAggregationWithSettings.Derivative.withField - -```jsonnet -MetricAggregationWithSettings.Derivative.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Derivative.withHide - -```jsonnet -MetricAggregationWithSettings.Derivative.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Derivative.withId - -```jsonnet -MetricAggregationWithSettings.Derivative.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Derivative.withPipelineAgg - -```jsonnet -MetricAggregationWithSettings.Derivative.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Derivative.withSettings - -```jsonnet -MetricAggregationWithSettings.Derivative.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Derivative.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Derivative.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Derivative.withType - -```jsonnet -MetricAggregationWithSettings.Derivative.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.Derivative.settings - - -###### fn MetricAggregationWithSettings.Derivative.settings.withUnit - -```jsonnet -MetricAggregationWithSettings.Derivative.settings.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.ExtendedStats - - -##### fn MetricAggregationWithSettings.ExtendedStats.withField - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.ExtendedStats.withHide - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.ExtendedStats.withId - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.ExtendedStats.withMeta - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withMeta(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.ExtendedStats.withMetaMixin - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withMetaMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.ExtendedStats.withSettings - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.ExtendedStats.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.ExtendedStats.withType - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.ExtendedStats.settings - - -###### fn MetricAggregationWithSettings.ExtendedStats.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.ExtendedStats.settings.withScript - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.ExtendedStats.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.ExtendedStats.settings.withSigma - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.settings.withSigma(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### obj MetricAggregationWithSettings.ExtendedStats.settings.script - - -####### fn MetricAggregationWithSettings.ExtendedStats.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Logs - - -##### fn MetricAggregationWithSettings.Logs.withHide - -```jsonnet -MetricAggregationWithSettings.Logs.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Logs.withId - -```jsonnet -MetricAggregationWithSettings.Logs.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Logs.withSettings - -```jsonnet -MetricAggregationWithSettings.Logs.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Logs.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Logs.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Logs.withType - -```jsonnet -MetricAggregationWithSettings.Logs.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.Logs.settings - - -###### fn MetricAggregationWithSettings.Logs.settings.withLimit - -```jsonnet -MetricAggregationWithSettings.Logs.settings.withLimit(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Max - - -##### fn MetricAggregationWithSettings.Max.withField - -```jsonnet -MetricAggregationWithSettings.Max.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Max.withHide - -```jsonnet -MetricAggregationWithSettings.Max.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Max.withId - -```jsonnet -MetricAggregationWithSettings.Max.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Max.withSettings - -```jsonnet -MetricAggregationWithSettings.Max.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Max.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Max.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Max.withType - -```jsonnet -MetricAggregationWithSettings.Max.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.Max.settings - - -###### fn MetricAggregationWithSettings.Max.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.Max.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.Max.settings.withScript - -```jsonnet -MetricAggregationWithSettings.Max.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.Max.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.Max.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj MetricAggregationWithSettings.Max.settings.script - - -####### fn MetricAggregationWithSettings.Max.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.Max.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Min - - -##### fn MetricAggregationWithSettings.Min.withField - -```jsonnet -MetricAggregationWithSettings.Min.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Min.withHide - -```jsonnet -MetricAggregationWithSettings.Min.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Min.withId - -```jsonnet -MetricAggregationWithSettings.Min.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Min.withSettings - -```jsonnet -MetricAggregationWithSettings.Min.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Min.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Min.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Min.withType - -```jsonnet -MetricAggregationWithSettings.Min.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.Min.settings - - -###### fn MetricAggregationWithSettings.Min.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.Min.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.Min.settings.withScript - -```jsonnet -MetricAggregationWithSettings.Min.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.Min.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.Min.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj MetricAggregationWithSettings.Min.settings.script - - -####### fn MetricAggregationWithSettings.Min.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.Min.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.MovingAverage - - -##### fn MetricAggregationWithSettings.MovingAverage.withField - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.MovingAverage.withHide - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.MovingAverage.withId - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.MovingAverage.withPipelineAgg - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.MovingAverage.withSettings - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.MovingAverage.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.MovingAverage.withType - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.MovingFunction - - -##### fn MetricAggregationWithSettings.MovingFunction.withField - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.MovingFunction.withHide - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.MovingFunction.withId - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.MovingFunction.withPipelineAgg - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.MovingFunction.withSettings - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.MovingFunction.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.MovingFunction.withType - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.MovingFunction.settings - - -###### fn MetricAggregationWithSettings.MovingFunction.settings.withScript - -```jsonnet -MetricAggregationWithSettings.MovingFunction.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.MovingFunction.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.MovingFunction.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.MovingFunction.settings.withShift - -```jsonnet -MetricAggregationWithSettings.MovingFunction.settings.withShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.MovingFunction.settings.withWindow - -```jsonnet -MetricAggregationWithSettings.MovingFunction.settings.withWindow(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### obj MetricAggregationWithSettings.MovingFunction.settings.script - - -####### fn MetricAggregationWithSettings.MovingFunction.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.MovingFunction.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Percentiles - - -##### fn MetricAggregationWithSettings.Percentiles.withField - -```jsonnet -MetricAggregationWithSettings.Percentiles.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Percentiles.withHide - -```jsonnet -MetricAggregationWithSettings.Percentiles.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Percentiles.withId - -```jsonnet -MetricAggregationWithSettings.Percentiles.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Percentiles.withSettings - -```jsonnet -MetricAggregationWithSettings.Percentiles.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Percentiles.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Percentiles.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Percentiles.withType - -```jsonnet -MetricAggregationWithSettings.Percentiles.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.Percentiles.settings - - -###### fn MetricAggregationWithSettings.Percentiles.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.Percentiles.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.Percentiles.settings.withPercents - -```jsonnet -MetricAggregationWithSettings.Percentiles.settings.withPercents(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn MetricAggregationWithSettings.Percentiles.settings.withPercentsMixin - -```jsonnet -MetricAggregationWithSettings.Percentiles.settings.withPercentsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn MetricAggregationWithSettings.Percentiles.settings.withScript - -```jsonnet -MetricAggregationWithSettings.Percentiles.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.Percentiles.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.Percentiles.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj MetricAggregationWithSettings.Percentiles.settings.script - - -####### fn MetricAggregationWithSettings.Percentiles.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.Percentiles.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Rate - - -##### fn MetricAggregationWithSettings.Rate.withField - -```jsonnet -MetricAggregationWithSettings.Rate.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Rate.withHide - -```jsonnet -MetricAggregationWithSettings.Rate.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Rate.withId - -```jsonnet -MetricAggregationWithSettings.Rate.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Rate.withSettings - -```jsonnet -MetricAggregationWithSettings.Rate.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Rate.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Rate.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Rate.withType - -```jsonnet -MetricAggregationWithSettings.Rate.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.Rate.settings - - -###### fn MetricAggregationWithSettings.Rate.settings.withMode - -```jsonnet -MetricAggregationWithSettings.Rate.settings.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.Rate.settings.withUnit - -```jsonnet -MetricAggregationWithSettings.Rate.settings.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.RawData - - -##### fn MetricAggregationWithSettings.RawData.withHide - -```jsonnet -MetricAggregationWithSettings.RawData.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.RawData.withId - -```jsonnet -MetricAggregationWithSettings.RawData.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.RawData.withSettings - -```jsonnet -MetricAggregationWithSettings.RawData.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.RawData.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.RawData.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.RawData.withType - -```jsonnet -MetricAggregationWithSettings.RawData.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.RawData.settings - - -###### fn MetricAggregationWithSettings.RawData.settings.withSize - -```jsonnet -MetricAggregationWithSettings.RawData.settings.withSize(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.RawDocument - - -##### fn MetricAggregationWithSettings.RawDocument.withHide - -```jsonnet -MetricAggregationWithSettings.RawDocument.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.RawDocument.withId - -```jsonnet -MetricAggregationWithSettings.RawDocument.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.RawDocument.withSettings - -```jsonnet -MetricAggregationWithSettings.RawDocument.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.RawDocument.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.RawDocument.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.RawDocument.withType - -```jsonnet -MetricAggregationWithSettings.RawDocument.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.RawDocument.settings - - -###### fn MetricAggregationWithSettings.RawDocument.settings.withSize - -```jsonnet -MetricAggregationWithSettings.RawDocument.settings.withSize(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.SerialDiff - - -##### fn MetricAggregationWithSettings.SerialDiff.withField - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.SerialDiff.withHide - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.SerialDiff.withId - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.SerialDiff.withPipelineAgg - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.SerialDiff.withSettings - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.SerialDiff.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.SerialDiff.withType - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.SerialDiff.settings - - -###### fn MetricAggregationWithSettings.SerialDiff.settings.withLag - -```jsonnet -MetricAggregationWithSettings.SerialDiff.settings.withLag(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Sum - - -##### fn MetricAggregationWithSettings.Sum.withField - -```jsonnet -MetricAggregationWithSettings.Sum.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Sum.withHide - -```jsonnet -MetricAggregationWithSettings.Sum.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Sum.withId - -```jsonnet -MetricAggregationWithSettings.Sum.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Sum.withSettings - -```jsonnet -MetricAggregationWithSettings.Sum.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Sum.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Sum.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Sum.withType - -```jsonnet -MetricAggregationWithSettings.Sum.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.Sum.settings - - -###### fn MetricAggregationWithSettings.Sum.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.Sum.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.Sum.settings.withScript - -```jsonnet -MetricAggregationWithSettings.Sum.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.Sum.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.Sum.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj MetricAggregationWithSettings.Sum.settings.script - - -####### fn MetricAggregationWithSettings.Sum.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.Sum.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.TopMetrics - - -##### fn MetricAggregationWithSettings.TopMetrics.withHide - -```jsonnet -MetricAggregationWithSettings.TopMetrics.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.TopMetrics.withId - -```jsonnet -MetricAggregationWithSettings.TopMetrics.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.TopMetrics.withSettings - -```jsonnet -MetricAggregationWithSettings.TopMetrics.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.TopMetrics.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.TopMetrics.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.TopMetrics.withType - -```jsonnet -MetricAggregationWithSettings.TopMetrics.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.TopMetrics.settings - - -###### fn MetricAggregationWithSettings.TopMetrics.settings.withMetrics - -```jsonnet -MetricAggregationWithSettings.TopMetrics.settings.withMetrics(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn MetricAggregationWithSettings.TopMetrics.settings.withMetricsMixin - -```jsonnet -MetricAggregationWithSettings.TopMetrics.settings.withMetricsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn MetricAggregationWithSettings.TopMetrics.settings.withOrder - -```jsonnet -MetricAggregationWithSettings.TopMetrics.settings.withOrder(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.TopMetrics.settings.withOrderBy - -```jsonnet -MetricAggregationWithSettings.TopMetrics.settings.withOrderBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.UniqueCount - - -##### fn MetricAggregationWithSettings.UniqueCount.withField - -```jsonnet -MetricAggregationWithSettings.UniqueCount.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.UniqueCount.withHide - -```jsonnet -MetricAggregationWithSettings.UniqueCount.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.UniqueCount.withId - -```jsonnet -MetricAggregationWithSettings.UniqueCount.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.UniqueCount.withSettings - -```jsonnet -MetricAggregationWithSettings.UniqueCount.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.UniqueCount.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.UniqueCount.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.UniqueCount.withType - -```jsonnet -MetricAggregationWithSettings.UniqueCount.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj MetricAggregationWithSettings.UniqueCount.settings - - -###### fn MetricAggregationWithSettings.UniqueCount.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.UniqueCount.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.UniqueCount.settings.withPrecisionThreshold - -```jsonnet -MetricAggregationWithSettings.UniqueCount.settings.withPrecisionThreshold(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj PipelineMetricAggregation - - -#### obj PipelineMetricAggregation.BucketScript - - -##### fn PipelineMetricAggregation.BucketScript.withHide - -```jsonnet -PipelineMetricAggregation.BucketScript.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn PipelineMetricAggregation.BucketScript.withId - -```jsonnet -PipelineMetricAggregation.BucketScript.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.BucketScript.withPipelineVariables - -```jsonnet -PipelineMetricAggregation.BucketScript.withPipelineVariables(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn PipelineMetricAggregation.BucketScript.withPipelineVariablesMixin - -```jsonnet -PipelineMetricAggregation.BucketScript.withPipelineVariablesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn PipelineMetricAggregation.BucketScript.withSettings - -```jsonnet -PipelineMetricAggregation.BucketScript.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.BucketScript.withSettingsMixin - -```jsonnet -PipelineMetricAggregation.BucketScript.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.BucketScript.withType - -```jsonnet -PipelineMetricAggregation.BucketScript.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj PipelineMetricAggregation.BucketScript.settings - - -###### fn PipelineMetricAggregation.BucketScript.settings.withScript - -```jsonnet -PipelineMetricAggregation.BucketScript.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn PipelineMetricAggregation.BucketScript.settings.withScriptMixin - -```jsonnet -PipelineMetricAggregation.BucketScript.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj PipelineMetricAggregation.BucketScript.settings.script - - -####### fn PipelineMetricAggregation.BucketScript.settings.script.withInline - -```jsonnet -PipelineMetricAggregation.BucketScript.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj PipelineMetricAggregation.CumulativeSum - - -##### fn PipelineMetricAggregation.CumulativeSum.withField - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.CumulativeSum.withHide - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn PipelineMetricAggregation.CumulativeSum.withId - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.CumulativeSum.withPipelineAgg - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.CumulativeSum.withSettings - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.CumulativeSum.withSettingsMixin - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.CumulativeSum.withType - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj PipelineMetricAggregation.CumulativeSum.settings - - -###### fn PipelineMetricAggregation.CumulativeSum.settings.withFormat - -```jsonnet -PipelineMetricAggregation.CumulativeSum.settings.withFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj PipelineMetricAggregation.Derivative - - -##### fn PipelineMetricAggregation.Derivative.withField - -```jsonnet -PipelineMetricAggregation.Derivative.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.Derivative.withHide - -```jsonnet -PipelineMetricAggregation.Derivative.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn PipelineMetricAggregation.Derivative.withId - -```jsonnet -PipelineMetricAggregation.Derivative.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.Derivative.withPipelineAgg - -```jsonnet -PipelineMetricAggregation.Derivative.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.Derivative.withSettings - -```jsonnet -PipelineMetricAggregation.Derivative.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.Derivative.withSettingsMixin - -```jsonnet -PipelineMetricAggregation.Derivative.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.Derivative.withType - -```jsonnet -PipelineMetricAggregation.Derivative.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj PipelineMetricAggregation.Derivative.settings - - -###### fn PipelineMetricAggregation.Derivative.settings.withUnit - -```jsonnet -PipelineMetricAggregation.Derivative.settings.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj PipelineMetricAggregation.MovingAverage - - -##### fn PipelineMetricAggregation.MovingAverage.withField - -```jsonnet -PipelineMetricAggregation.MovingAverage.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.MovingAverage.withHide - -```jsonnet -PipelineMetricAggregation.MovingAverage.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn PipelineMetricAggregation.MovingAverage.withId - -```jsonnet -PipelineMetricAggregation.MovingAverage.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.MovingAverage.withPipelineAgg - -```jsonnet -PipelineMetricAggregation.MovingAverage.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.MovingAverage.withSettings - -```jsonnet -PipelineMetricAggregation.MovingAverage.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.MovingAverage.withSettingsMixin - -```jsonnet -PipelineMetricAggregation.MovingAverage.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.MovingAverage.withType - -```jsonnet -PipelineMetricAggregation.MovingAverage.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/grafanaPyroscope.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/grafanaPyroscope.md deleted file mode 100644 index 69779d913..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/grafanaPyroscope.md +++ /dev/null @@ -1,127 +0,0 @@ -# grafanaPyroscope - -grafonnet.query.grafanaPyroscope - -## Index - -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withGroupBy(value)`](#fn-withgroupby) -* [`fn withGroupByMixin(value)`](#fn-withgroupbymixin) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withLabelSelector(value="{}")`](#fn-withlabelselector) -* [`fn withMaxNodes(value)`](#fn-withmaxnodes) -* [`fn withProfileTypeId(value)`](#fn-withprofiletypeid) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) - -## Fields - -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null -### fn withGroupBy - -```jsonnet -withGroupBy(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Allows to group the results. -### fn withGroupByMixin - -```jsonnet -withGroupByMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Allows to group the results. -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withLabelSelector - -```jsonnet -withLabelSelector(value="{}") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"{}"` - -Specifies the query label selectors. -### fn withMaxNodes - -```jsonnet -withMaxNodes(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Sets the maximum number of nodes in the flamegraph. -### fn withProfileTypeId - -```jsonnet -withProfileTypeId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specifies the type of profile to query. -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/index.md deleted file mode 100644 index f1f6ee6c0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/index.md +++ /dev/null @@ -1,15 +0,0 @@ -# query - -grafonnet.query - -## Subpackages - -* [azureMonitor](azureMonitor/index.md) -* [cloudWatch](cloudWatch/index.md) -* [elasticsearch](elasticsearch/index.md) -* [grafanaPyroscope](grafanaPyroscope.md) -* [loki](loki.md) -* [parca](parca.md) -* [prometheus](prometheus.md) -* [tempo](tempo/index.md) -* [testData](testData/index.md) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/loki.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/loki.md deleted file mode 100644 index 99fd4081b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/loki.md +++ /dev/null @@ -1,163 +0,0 @@ -# loki - -grafonnet.query.loki - -## Index - -* [`fn new(datasource, expr)`](#fn-new) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withEditorMode(value)`](#fn-witheditormode) -* [`fn withExpr(value)`](#fn-withexpr) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withInstant(value=true)`](#fn-withinstant) -* [`fn withLegendFormat(value)`](#fn-withlegendformat) -* [`fn withMaxLines(value)`](#fn-withmaxlines) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRange(value=true)`](#fn-withrange) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withResolution(value)`](#fn-withresolution) - -## Fields - -### fn new - -```jsonnet -new(datasource, expr) -``` - -PARAMETERS: - -* **datasource** (`string`) -* **expr** (`string`) - -Creates a new loki query target for panels. -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -### fn withEditorMode - -```jsonnet -withEditorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"code"`, `"builder"` - - -### fn withExpr - -```jsonnet -withExpr(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The LogQL query. -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withInstant - -```jsonnet -withInstant(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -@deprecated, now use queryType. -### fn withLegendFormat - -```jsonnet -withLegendFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Used to override the name of the series. -### fn withMaxLines - -```jsonnet -withMaxLines(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Used to limit the number of log rows returned. -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRange - -```jsonnet -withRange(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -@deprecated, now use queryType. -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -### fn withResolution - -```jsonnet -withResolution(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Used to scale the interval value. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/parca.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/parca.md deleted file mode 100644 index 6edbee5f4..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/parca.md +++ /dev/null @@ -1,91 +0,0 @@ -# parca - -grafonnet.query.parca - -## Index - -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withLabelSelector(value="{}")`](#fn-withlabelselector) -* [`fn withProfileTypeId(value)`](#fn-withprofiletypeid) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) - -## Fields - -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withLabelSelector - -```jsonnet -withLabelSelector(value="{}") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"{}"` - -Specifies the query label selectors. -### fn withProfileTypeId - -```jsonnet -withProfileTypeId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specifies the type of profile to query. -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/prometheus.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/prometheus.md deleted file mode 100644 index d21152949..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/prometheus.md +++ /dev/null @@ -1,177 +0,0 @@ -# prometheus - -grafonnet.query.prometheus - -## Index - -* [`fn new(datasource, expr)`](#fn-new) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withEditorMode(value)`](#fn-witheditormode) -* [`fn withExemplar(value=true)`](#fn-withexemplar) -* [`fn withExpr(value)`](#fn-withexpr) -* [`fn withFormat(value)`](#fn-withformat) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withInstant(value=true)`](#fn-withinstant) -* [`fn withIntervalFactor(value)`](#fn-withintervalfactor) -* [`fn withLegendFormat(value)`](#fn-withlegendformat) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRange(value=true)`](#fn-withrange) -* [`fn withRefId(value)`](#fn-withrefid) - -## Fields - -### fn new - -```jsonnet -new(datasource, expr) -``` - -PARAMETERS: - -* **datasource** (`string`) -* **expr** (`string`) - -Creates a new prometheus query target for panels. -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -### fn withEditorMode - -```jsonnet -withEditorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"code"`, `"builder"` - - -### fn withExemplar - -```jsonnet -withExemplar(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Execute an additional query to identify interesting raw samples relevant for the given expr -### fn withExpr - -```jsonnet -withExpr(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The actual expression/query that will be evaluated by Prometheus -### fn withFormat - -```jsonnet -withFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"time_series"`, `"table"`, `"heatmap"` - - -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withInstant - -```jsonnet -withInstant(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Returns only the latest value that Prometheus has scraped for the requested time series -### fn withIntervalFactor - -```jsonnet -withIntervalFactor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the interval factor for this query. -### fn withLegendFormat - -```jsonnet -withLegendFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the legend format for this query. -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRange - -```jsonnet -withRange(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/tempo/filters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/tempo/filters.md deleted file mode 100644 index 488112b46..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/tempo/filters.md +++ /dev/null @@ -1,94 +0,0 @@ -# filters - - - -## Index - -* [`fn withId(value)`](#fn-withid) -* [`fn withOperator(value)`](#fn-withoperator) -* [`fn withScope(value)`](#fn-withscope) -* [`fn withTag(value)`](#fn-withtag) -* [`fn withValue(value)`](#fn-withvalue) -* [`fn withValueMixin(value)`](#fn-withvaluemixin) -* [`fn withValueType(value)`](#fn-withvaluetype) - -## Fields - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Uniquely identify the filter, will not be used in the query generation -### fn withOperator - -```jsonnet -withOperator(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The operator that connects the tag to the value, for example: =, >, !=, =~ -### fn withScope - -```jsonnet -withScope(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"unscoped"`, `"resource"`, `"span"` - -static fields are pre-set in the UI, dynamic fields are added by the user -### fn withTag - -```jsonnet -withTag(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The tag for the search filter, for example: .http.status_code, .service.name, status -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`array`,`string`) - -The value for the search filter -### fn withValueMixin - -```jsonnet -withValueMixin(value) -``` - -PARAMETERS: - -* **value** (`array`,`string`) - -The value for the search filter -### fn withValueType - -```jsonnet -withValueType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/tempo/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/tempo/index.md deleted file mode 100644 index 9949daae0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/tempo/index.md +++ /dev/null @@ -1,201 +0,0 @@ -# tempo - -grafonnet.query.tempo - -## Subpackages - -* [filters](filters.md) - -## Index - -* [`fn new(datasource, query, filters)`](#fn-new) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withFilters(value)`](#fn-withfilters) -* [`fn withFiltersMixin(value)`](#fn-withfiltersmixin) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withLimit(value)`](#fn-withlimit) -* [`fn withMaxDuration(value)`](#fn-withmaxduration) -* [`fn withMinDuration(value)`](#fn-withminduration) -* [`fn withQuery(value)`](#fn-withquery) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withSearch(value)`](#fn-withsearch) -* [`fn withServiceMapQuery(value)`](#fn-withservicemapquery) -* [`fn withServiceName(value)`](#fn-withservicename) -* [`fn withSpanName(value)`](#fn-withspanname) - -## Fields - -### fn new - -```jsonnet -new(datasource, query, filters) -``` - -PARAMETERS: - -* **datasource** (`string`) -* **query** (`string`) -* **filters** (`array`) - -Creates a new tempo query target for panels. -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -### fn withFilters - -```jsonnet -withFilters(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withFiltersMixin - -```jsonnet -withFiltersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withLimit - -```jsonnet -withLimit(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Defines the maximum number of traces that are returned from Tempo -### fn withMaxDuration - -```jsonnet -withMaxDuration(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms -### fn withMinDuration - -```jsonnet -withMinDuration(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms -### fn withQuery - -```jsonnet -withQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TraceQL query or trace ID -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -### fn withSearch - -```jsonnet -withSearch(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true -### fn withServiceMapQuery - -```jsonnet -withServiceMapQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"} -### fn withServiceName - -```jsonnet -withServiceName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Query traces by service name -### fn withSpanName - -```jsonnet -withSpanName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Query traces by span name \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/testData/csvWave.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/testData/csvWave.md deleted file mode 100644 index 8927e1ccd..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/testData/csvWave.md +++ /dev/null @@ -1,56 +0,0 @@ -# csvWave - - - -## Index - -* [`fn withLabels(value)`](#fn-withlabels) -* [`fn withName(value)`](#fn-withname) -* [`fn withTimeStep(value)`](#fn-withtimestep) -* [`fn withValuesCSV(value)`](#fn-withvaluescsv) - -## Fields - -### fn withLabels - -```jsonnet -withLabels(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTimeStep - -```jsonnet -withTimeStep(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### fn withValuesCSV - -```jsonnet -withValuesCSV(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/testData/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/testData/index.md deleted file mode 100644 index 5387d1995..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/query/testData/index.md +++ /dev/null @@ -1,760 +0,0 @@ -# testData - -grafonnet.query.testData - -## Subpackages - -* [csvWave](csvWave.md) - -## Index - -* [`fn withAlias(value)`](#fn-withalias) -* [`fn withChannel(value)`](#fn-withchannel) -* [`fn withCsvContent(value)`](#fn-withcsvcontent) -* [`fn withCsvFileName(value)`](#fn-withcsvfilename) -* [`fn withCsvWave(value)`](#fn-withcsvwave) -* [`fn withCsvWaveMixin(value)`](#fn-withcsvwavemixin) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withErrorType(value)`](#fn-witherrortype) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withLabels(value)`](#fn-withlabels) -* [`fn withLevelColumn(value=true)`](#fn-withlevelcolumn) -* [`fn withLines(value)`](#fn-withlines) -* [`fn withNodes(value)`](#fn-withnodes) -* [`fn withNodesMixin(value)`](#fn-withnodesmixin) -* [`fn withPoints(value)`](#fn-withpoints) -* [`fn withPointsMixin(value)`](#fn-withpointsmixin) -* [`fn withPulseWave(value)`](#fn-withpulsewave) -* [`fn withPulseWaveMixin(value)`](#fn-withpulsewavemixin) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRawFrameContent(value)`](#fn-withrawframecontent) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withScenarioId(value)`](#fn-withscenarioid) -* [`fn withSeriesCount(value)`](#fn-withseriescount) -* [`fn withSim(value)`](#fn-withsim) -* [`fn withSimMixin(value)`](#fn-withsimmixin) -* [`fn withSpanCount(value)`](#fn-withspancount) -* [`fn withStream(value)`](#fn-withstream) -* [`fn withStreamMixin(value)`](#fn-withstreammixin) -* [`fn withStringInput(value)`](#fn-withstringinput) -* [`fn withUsa(value)`](#fn-withusa) -* [`fn withUsaMixin(value)`](#fn-withusamixin) -* [`obj nodes`](#obj-nodes) - * [`fn withCount(value)`](#fn-nodeswithcount) - * [`fn withType(value)`](#fn-nodeswithtype) -* [`obj pulseWave`](#obj-pulsewave) - * [`fn withOffCount(value)`](#fn-pulsewavewithoffcount) - * [`fn withOffValue(value)`](#fn-pulsewavewithoffvalue) - * [`fn withOnCount(value)`](#fn-pulsewavewithoncount) - * [`fn withOnValue(value)`](#fn-pulsewavewithonvalue) - * [`fn withTimeStep(value)`](#fn-pulsewavewithtimestep) -* [`obj sim`](#obj-sim) - * [`fn withConfig(value)`](#fn-simwithconfig) - * [`fn withConfigMixin(value)`](#fn-simwithconfigmixin) - * [`fn withKey(value)`](#fn-simwithkey) - * [`fn withKeyMixin(value)`](#fn-simwithkeymixin) - * [`fn withLast(value=true)`](#fn-simwithlast) - * [`fn withStream(value=true)`](#fn-simwithstream) - * [`obj key`](#obj-simkey) - * [`fn withTick(value)`](#fn-simkeywithtick) - * [`fn withType(value)`](#fn-simkeywithtype) - * [`fn withUid(value)`](#fn-simkeywithuid) -* [`obj stream`](#obj-stream) - * [`fn withBands(value)`](#fn-streamwithbands) - * [`fn withNoise(value)`](#fn-streamwithnoise) - * [`fn withSpeed(value)`](#fn-streamwithspeed) - * [`fn withSpread(value)`](#fn-streamwithspread) - * [`fn withType(value)`](#fn-streamwithtype) - * [`fn withUrl(value)`](#fn-streamwithurl) -* [`obj usa`](#obj-usa) - * [`fn withFields(value)`](#fn-usawithfields) - * [`fn withFieldsMixin(value)`](#fn-usawithfieldsmixin) - * [`fn withMode(value)`](#fn-usawithmode) - * [`fn withPeriod(value)`](#fn-usawithperiod) - * [`fn withStates(value)`](#fn-usawithstates) - * [`fn withStatesMixin(value)`](#fn-usawithstatesmixin) - -## Fields - -### fn withAlias - -```jsonnet -withAlias(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withChannel - -```jsonnet -withChannel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withCsvContent - -```jsonnet -withCsvContent(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withCsvFileName - -```jsonnet -withCsvFileName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withCsvWave - -```jsonnet -withCsvWave(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withCsvWaveMixin - -```jsonnet -withCsvWaveMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -For mixed data sources the selected datasource is on the query level. -For non mixed scenarios this is undefined. -TODO find a better way to do this ^ that's friendly to schema -TODO this shouldn't be unknown but DataSourceRef | null -### fn withErrorType - -```jsonnet -withErrorType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"server_panic"`, `"frontend_exception"`, `"frontend_observable"` - - -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -Note this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withLabels - -```jsonnet -withLabels(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withLevelColumn - -```jsonnet -withLevelColumn(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withLines - -```jsonnet -withLines(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### fn withNodes - -```jsonnet -withNodes(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withNodesMixin - -```jsonnet -withNodesMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withPoints - -```jsonnet -withPoints(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withPointsMixin - -```jsonnet -withPointsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withPulseWave - -```jsonnet -withPulseWave(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withPulseWaveMixin - -```jsonnet -withPulseWaveMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRawFrameContent - -```jsonnet -withRawFrameContent(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -### fn withScenarioId - -```jsonnet -withScenarioId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"random_walk"`, `"slow_query"`, `"random_walk_with_error"`, `"random_walk_table"`, `"exponential_heatmap_bucket_data"`, `"linear_heatmap_bucket_data"`, `"no_data_points"`, `"datapoints_outside_range"`, `"csv_metric_values"`, `"predictable_pulse"`, `"predictable_csv_wave"`, `"streaming_client"`, `"simulation"`, `"usa"`, `"live"`, `"grafana_api"`, `"arrow"`, `"annotations"`, `"table_static"`, `"server_error_500"`, `"logs"`, `"node_graph"`, `"flame_graph"`, `"raw_frame"`, `"csv_file"`, `"csv_content"`, `"trace"`, `"manual_entry"`, `"variables-query"` - - -### fn withSeriesCount - -```jsonnet -withSeriesCount(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### fn withSim - -```jsonnet -withSim(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withSimMixin - -```jsonnet -withSimMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withSpanCount - -```jsonnet -withSpanCount(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### fn withStream - -```jsonnet -withStream(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withStreamMixin - -```jsonnet -withStreamMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withStringInput - -```jsonnet -withStringInput(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withUsa - -```jsonnet -withUsa(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withUsaMixin - -```jsonnet -withUsaMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### obj nodes - - -#### fn nodes.withCount - -```jsonnet -nodes.withCount(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn nodes.withType - -```jsonnet -nodes.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"random"`, `"response"`, `"random edges"` - - -### obj pulseWave - - -#### fn pulseWave.withOffCount - -```jsonnet -pulseWave.withOffCount(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn pulseWave.withOffValue - -```jsonnet -pulseWave.withOffValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn pulseWave.withOnCount - -```jsonnet -pulseWave.withOnCount(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn pulseWave.withOnValue - -```jsonnet -pulseWave.withOnValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn pulseWave.withTimeStep - -```jsonnet -pulseWave.withTimeStep(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### obj sim - - -#### fn sim.withConfig - -```jsonnet -sim.withConfig(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn sim.withConfigMixin - -```jsonnet -sim.withConfigMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn sim.withKey - -```jsonnet -sim.withKey(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn sim.withKeyMixin - -```jsonnet -sim.withKeyMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn sim.withLast - -```jsonnet -sim.withLast(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn sim.withStream - -```jsonnet -sim.withStream(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### obj sim.key - - -##### fn sim.key.withTick - -```jsonnet -sim.key.withTick(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn sim.key.withType - -```jsonnet -sim.key.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn sim.key.withUid - -```jsonnet -sim.key.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj stream - - -#### fn stream.withBands - -```jsonnet -stream.withBands(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn stream.withNoise - -```jsonnet -stream.withNoise(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn stream.withSpeed - -```jsonnet -stream.withSpeed(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn stream.withSpread - -```jsonnet -stream.withSpread(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn stream.withType - -```jsonnet -stream.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"signal"`, `"logs"`, `"fetch"` - - -#### fn stream.withUrl - -```jsonnet -stream.withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj usa - - -#### fn usa.withFields - -```jsonnet -usa.withFields(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn usa.withFieldsMixin - -```jsonnet -usa.withFieldsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn usa.withMode - -```jsonnet -usa.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn usa.withPeriod - -```jsonnet -usa.withPeriod(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn usa.withStates - -```jsonnet -usa.withStates(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn usa.withStatesMixin - -```jsonnet -usa.withStatesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/serviceaccount.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/serviceaccount.md deleted file mode 100644 index 0e83b435a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/serviceaccount.md +++ /dev/null @@ -1,157 +0,0 @@ -# serviceaccount - -grafonnet.serviceaccount - -## Index - -* [`fn withAccessControl(value)`](#fn-withaccesscontrol) -* [`fn withAccessControlMixin(value)`](#fn-withaccesscontrolmixin) -* [`fn withAvatarUrl(value)`](#fn-withavatarurl) -* [`fn withId(value)`](#fn-withid) -* [`fn withIsDisabled(value=true)`](#fn-withisdisabled) -* [`fn withLogin(value)`](#fn-withlogin) -* [`fn withName(value)`](#fn-withname) -* [`fn withOrgId(value)`](#fn-withorgid) -* [`fn withRole(value)`](#fn-withrole) -* [`fn withTeams(value)`](#fn-withteams) -* [`fn withTeamsMixin(value)`](#fn-withteamsmixin) -* [`fn withTokens(value)`](#fn-withtokens) - -## Fields - -### fn withAccessControl - -```jsonnet -withAccessControl(value) -``` - -PARAMETERS: - -* **value** (`object`) - -AccessControl metadata associated with a given resource. -### fn withAccessControlMixin - -```jsonnet -withAccessControlMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -AccessControl metadata associated with a given resource. -### fn withAvatarUrl - -```jsonnet -withAvatarUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -AvatarUrl is the service account's avatar URL. It allows the frontend to display a picture in front -of the service account. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -ID is the unique identifier of the service account in the database. -### fn withIsDisabled - -```jsonnet -withIsDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -IsDisabled indicates if the service account is disabled. -### fn withLogin - -```jsonnet -withLogin(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Login of the service account. -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the service account. -### fn withOrgId - -```jsonnet -withOrgId(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -OrgId is the ID of an organisation the service account belongs to. -### fn withRole - -```jsonnet -withRole(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"Admin"`, `"Editor"`, `"Viewer"` - -OrgRole is a Grafana Organization Role which can be 'Viewer', 'Editor', 'Admin'. -### fn withTeams - -```jsonnet -withTeams(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Teams is a list of teams the service account belongs to. -### fn withTeamsMixin - -```jsonnet -withTeamsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Teams is a list of teams the service account belongs to. -### fn withTokens - -```jsonnet -withTokens(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Tokens is the number of active tokens for the service account. -Tokens are used to authenticate the service account against Grafana. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/team.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/team.md deleted file mode 100644 index c15a0cd98..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/team.md +++ /dev/null @@ -1,105 +0,0 @@ -# team - -grafonnet.team - -## Index - -* [`fn withAccessControl(value)`](#fn-withaccesscontrol) -* [`fn withAccessControlMixin(value)`](#fn-withaccesscontrolmixin) -* [`fn withAvatarUrl(value)`](#fn-withavatarurl) -* [`fn withEmail(value)`](#fn-withemail) -* [`fn withMemberCount(value)`](#fn-withmembercount) -* [`fn withName(value)`](#fn-withname) -* [`fn withOrgId(value)`](#fn-withorgid) -* [`fn withPermission(value)`](#fn-withpermission) - -## Fields - -### fn withAccessControl - -```jsonnet -withAccessControl(value) -``` - -PARAMETERS: - -* **value** (`object`) - -AccessControl metadata associated with a given resource. -### fn withAccessControlMixin - -```jsonnet -withAccessControlMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -AccessControl metadata associated with a given resource. -### fn withAvatarUrl - -```jsonnet -withAvatarUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -AvatarUrl is the team's avatar URL. -### fn withEmail - -```jsonnet -withEmail(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Email of the team. -### fn withMemberCount - -```jsonnet -withMemberCount(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -MemberCount is the number of the team members. -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the team. -### fn withOrgId - -```jsonnet -withOrgId(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -OrgId is the ID of an organisation the team belongs to. -### fn withPermission - -```jsonnet -withPermission(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - valid values: `0`, `1`, `2`, `4` - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/util.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/util.md deleted file mode 100644 index 286e93c0d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/docs/util.md +++ /dev/null @@ -1,285 +0,0 @@ -# util - -Helper functions that work well with Grafonnet. - -## Index - -* [`obj dashboard`](#obj-dashboard) - * [`fn getOptionsForCustomQuery(query)`](#fn-dashboardgetoptionsforcustomquery) -* [`obj grid`](#obj-grid) - * [`fn makeGrid(panels, panelWidth, panelHeight, startY)`](#fn-gridmakegrid) - * [`fn wrapPanels(panels, panelWidth, panelHeight, startY)`](#fn-gridwrappanels) -* [`obj panel`](#obj-panel) - * [`fn calculateLowestYforPanel(panel, panels)`](#fn-panelcalculatelowestyforpanel) - * [`fn getPanelIDs(panels)`](#fn-panelgetpanelids) - * [`fn getPanelsBeforeNextRow(panels)`](#fn-panelgetpanelsbeforenextrow) - * [`fn groupPanelsInRows(panels)`](#fn-panelgrouppanelsinrows) - * [`fn mapToRows(func, panels)`](#fn-panelmaptorows) - * [`fn normalizeY(panels)`](#fn-panelnormalizey) - * [`fn normalizeYInRow(rowPanel)`](#fn-panelnormalizeyinrow) - * [`fn resolveCollapsedFlagOnRows(panels)`](#fn-panelresolvecollapsedflagonrows) - * [`fn sanitizePanel(panel, defaultX=0, defaultY=0, defaultHeight=8, defaultWidth=8)`](#fn-panelsanitizepanel) - * [`fn setPanelIDs(panels, overrideExistingIDs=true)`](#fn-panelsetpanelids) - * [`fn sortPanelsByXY(panels)`](#fn-panelsortpanelsbyxy) - * [`fn sortPanelsInRow(rowPanel)`](#fn-panelsortpanelsinrow) - * [`fn validatePanelIDs(panels)`](#fn-panelvalidatepanelids) -* [`obj string`](#obj-string) - * [`fn slugify(string)`](#fn-stringslugify) - -## Fields - -### obj dashboard - - -#### fn dashboard.getOptionsForCustomQuery - -```jsonnet -dashboard.getOptionsForCustomQuery(query) -``` - -PARAMETERS: - -* **query** (`string`) - -`getOptionsForCustomQuery` provides values for the `options` and `current` fields. -These are required for template variables of type 'custom'but do not automatically -get populated by Grafana when importing a dashboard from JSON. - -This is a bit of a hack and should always be called on functions that set `type` on -a template variable. Ideally Grafana populates these fields from the `query` value -but this provides a backwards compatible solution. - -### obj grid - - -#### fn grid.makeGrid - -```jsonnet -grid.makeGrid(panels, panelWidth, panelHeight, startY) -``` - -PARAMETERS: - -* **panels** (`array`) -* **panelWidth** (`number`) -* **panelHeight** (`number`) -* **startY** (`number`) - -`makeGrid` returns an array of `panels` organized in a grid with equal `panelWidth` -and `panelHeight`. Row panels are used as "linebreaks", if a Row panel is collapsed, -then all panels below it will be folded into the row. - -This function will use the full grid of 24 columns, setting `panelWidth` to a value -that can divide 24 into equal parts will fill up the page nicely. (1, 2, 3, 4, 6, 8, 12) -Other value for `panelWidth` will leave a gap on the far right. - -Optional `startY` can be provided to place generated grid above or below existing panels. - -#### fn grid.wrapPanels - -```jsonnet -grid.wrapPanels(panels, panelWidth, panelHeight, startY) -``` - -PARAMETERS: - -* **panels** (`array`) -* **panelWidth** (`number`) -* **panelHeight** (`number`) -* **startY** (`number`) - -`wrapPanels` returns an array of `panels` organized in a grid, wrapping up to next 'row' if total width exceeds full grid of 24 columns. -'panelHeight' and 'panelWidth' are used unless panels already have height and width defined. - -### obj panel - - -#### fn panel.calculateLowestYforPanel - -```jsonnet -panel.calculateLowestYforPanel(panel, panels) -``` - -PARAMETERS: - -* **panel** (`object`) -* **panels** (`array`) - -`calculateLowestYforPanel` calculates Y for a given `panel` from the `gridPos` of an array of `panels`. This function is used in `normalizeY`. - -#### fn panel.getPanelIDs - -```jsonnet -panel.getPanelIDs(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`getPanelIDs` returns an array with all panel IDs including IDs from panels in rows. - -#### fn panel.getPanelsBeforeNextRow - -```jsonnet -panel.getPanelsBeforeNextRow(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`getPanelsBeforeNextRow` returns all panels in an array up until a row has been found. Used in `groupPanelsInRows`. - -#### fn panel.groupPanelsInRows - -```jsonnet -panel.groupPanelsInRows(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`groupPanelsInRows` ensures that panels that come after a row panel in an array are added to the `row.panels` attribute. This can be useful to apply intermediate functions to only the panels that belong to a row. Finally the panel array should get processed by `resolveCollapsedFlagOnRows` to "unfold" the rows that are not collapsed into the main array. - -#### fn panel.mapToRows - -```jsonnet -panel.mapToRows(func, panels) -``` - -PARAMETERS: - -* **func** (`function`) -* **panels** (`array`) - -`mapToRows` is a little helper function that applies `func` to all row panels in an array. Other panels in that array are returned ad verbatim. - -#### fn panel.normalizeY - -```jsonnet -panel.normalizeY(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`normalizeY` applies negative gravity on the inverted Y axis. This mimics the behavior of Grafana: when a panel is created without panel above it, then it'll float upward. - -This is strictly not required as Grafana will do this on dashboard load, however it might be helpful when used when calculating the correct `gridPos`. - -#### fn panel.normalizeYInRow - -```jsonnet -panel.normalizeYInRow(rowPanel) -``` - -PARAMETERS: - -* **rowPanel** (`object`) - -`normalizeYInRow` applies `normalizeY` to the panels in a row panel. - -#### fn panel.resolveCollapsedFlagOnRows - -```jsonnet -panel.resolveCollapsedFlagOnRows(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`resolveCollapsedFlagOnRows` should be applied to the final panel array to "unfold" the rows that are not collapsed into the main array. - -#### fn panel.sanitizePanel - -```jsonnet -panel.sanitizePanel(panel, defaultX=0, defaultY=0, defaultHeight=8, defaultWidth=8) -``` - -PARAMETERS: - -* **panel** (`object`) -* **defaultX** (`number`) - - default value: `0` -* **defaultY** (`number`) - - default value: `0` -* **defaultHeight** (`number`) - - default value: `8` -* **defaultWidth** (`number`) - - default value: `8` - -`sanitizePanel` ensures the panel has a valid `gridPos` and row panels have `collapsed` and `panels`. This function is recursively applied to panels inside row panels. - -The default values for x,y,h,w are only applied if not already set. - -#### fn panel.setPanelIDs - -```jsonnet -panel.setPanelIDs(panels, overrideExistingIDs=true) -``` - -PARAMETERS: - -* **panels** (`array`) -* **overrideExistingIDs** (`bool`) - - default value: `true` - -`setPanelIDs` ensures that all `panels` have a unique ID, this function is used in `dashboard.withPanels` and `dashboard.withPanelsMixin` to provide a consistent experience. - -`overrideExistingIDs` can be set to not replace existing IDs, consider validating the IDs with `validatePanelIDs()` to ensure there are no duplicate IDs. - -#### fn panel.sortPanelsByXY - -```jsonnet -panel.sortPanelsByXY(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`sortPanelsByXY` applies a simple sorting algorithm, first by x then again by y. This does not take width and height into account. - -#### fn panel.sortPanelsInRow - -```jsonnet -panel.sortPanelsInRow(rowPanel) -``` - -PARAMETERS: - -* **rowPanel** (`object`) - -`sortPanelsInRow` applies `sortPanelsByXY` on the panels in a rowPanel. - -#### fn panel.validatePanelIDs - -```jsonnet -panel.validatePanelIDs(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`validatePanelIDs` validates returns `false` if there are duplicate panel IDs in `panels`. - -### obj string - - -#### fn string.slugify - -```jsonnet -string.slugify(string) -``` - -PARAMETERS: - -* **string** (`string`) - -`slugify` will create a simple slug from `string`, keeping only alphanumeric -characters and replacing spaces with dashes. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/jsonnetfile.json deleted file mode 100644 index 8479d5a93..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/jsonnetfile.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/jsonnet-libs/docsonnet.git", - "subdir": "doc-util" - } - }, - "version": "master" - }, - { - "source": { - "git": { - "remote": "https://github.com/jsonnet-libs/xtd.git", - "subdir": "" - } - }, - "version": "master" - } - ], - "legacyImports": true, - "version": 1 -} \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet deleted file mode 100644 index 660b0abae..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet +++ /dev/null @@ -1,24 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { - filename: 'main.libsonnet', - help: 'Jsonnet library for rendering Grafana resources\n## Install\n\n```\njb install github.com/grafana/grafonnet/gen/grafonnet-v10.0.0@main\n```\n\n## Usage\n\n```jsonnet\nlocal grafonnet = import "github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet"\n```\n', - 'import': 'github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/main.libsonnet', - installTemplate: '\n## Install\n\n```\njb install %(url)s@%(version)s\n```\n', - name: 'grafonnet', - url: 'github.com/grafana/grafonnet/gen/grafonnet-v10.0.0', - usageTemplate: '\n## Usage\n\n```jsonnet\nlocal %(name)s = import "%(import)s"\n```\n', - version: 'main', - }, - dashboard: import 'clean/dashboard.libsonnet', - librarypanel: import 'raw/librarypanel.libsonnet', - playlist: import 'raw/playlist.libsonnet', - preferences: import 'raw/preferences.libsonnet', - publicdashboard: import 'raw/publicdashboard.libsonnet', - serviceaccount: import 'raw/serviceaccount.libsonnet', - team: import 'raw/team.libsonnet', - panel: import 'panel.libsonnet', - query: import 'query.libsonnet', - util: import 'custom/util/main.libsonnet', - alerting: import 'alerting.libsonnet', -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/panel.libsonnet deleted file mode 100644 index 3e3ea3f03..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/panel.libsonnet +++ /dev/null @@ -1,31 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel', name: 'panel' }, - candlestick: import 'clean/panel/candlestick.libsonnet', - canvas: import 'clean/panel/canvas.libsonnet', - alertList: import 'clean/panel/alertList.libsonnet', - alertGroups: import 'clean/panel/alertGroups.libsonnet', - annotationsList: import 'clean/panel/annotationsList.libsonnet', - barChart: import 'clean/panel/barChart.libsonnet', - barGauge: import 'clean/panel/barGauge.libsonnet', - dashboardList: import 'clean/panel/dashboardList.libsonnet', - datagrid: import 'clean/panel/datagrid.libsonnet', - debug: import 'clean/panel/debug.libsonnet', - gauge: import 'clean/panel/gauge.libsonnet', - geomap: import 'clean/panel/geomap.libsonnet', - heatmap: import 'clean/panel/heatmap.libsonnet', - histogram: import 'clean/panel/histogram.libsonnet', - logs: import 'clean/panel/logs.libsonnet', - news: import 'clean/panel/news.libsonnet', - nodeGraph: import 'clean/panel/nodeGraph.libsonnet', - pieChart: import 'clean/panel/pieChart.libsonnet', - stat: import 'clean/panel/stat.libsonnet', - stateTimeline: import 'clean/panel/stateTimeline.libsonnet', - statusHistory: import 'clean/panel/statusHistory.libsonnet', - table: import 'clean/panel/table.libsonnet', - text: import 'clean/panel/text.libsonnet', - timeSeries: import 'clean/panel/timeSeries.libsonnet', - trend: import 'clean/panel/trend.libsonnet', - xyChart: import 'clean/panel/xyChart.libsonnet', - row: import 'raw/panel/row.libsonnet', -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/query.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/query.libsonnet deleted file mode 100644 index fbbe20cf0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/query.libsonnet +++ /dev/null @@ -1,13 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query', name: 'query' }, - azureMonitor: import 'raw/query/azureMonitor.libsonnet', - cloudWatch: import 'raw/query/cloudWatch.libsonnet', - elasticsearch: import 'raw/query/elasticsearch.libsonnet', - loki: import 'clean/query/loki.libsonnet', - parca: import 'raw/query/parca.libsonnet', - grafanaPyroscope: import 'raw/query/grafanaPyroscope.libsonnet', - prometheus: import 'clean/query/prometheus.libsonnet', - tempo: import 'clean/query/tempo.libsonnet', - testData: import 'raw/query/testData.libsonnet', -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/contactPoint.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/contactPoint.libsonnet deleted file mode 100644 index a3d1859ac..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/contactPoint.libsonnet +++ /dev/null @@ -1,32 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.contactPoint', name: 'contactPoint' }, - '#withDisableResolveMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withDisableResolveMessage(value=true): { - disableResolveMessage: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name is used as grouping key in the UI. Contact points with the\nsame name will be grouped in the UI.' } }, - withName(value): { - name: value, - }, - '#withProvenance': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withProvenance(value): { - provenance: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['alertmanager', ' dingding', ' discord', ' email', ' googlechat', ' kafka', ' line', ' opsgenie', ' pagerduty', ' pushover', ' sensugo', ' slack', ' teams', ' telegram', ' threema', ' victorops', ' webhook', ' wecom'], name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'UID is the unique identifier of the contact point. The UID can be\nset by the user.' } }, - withUid(value): { - uid: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/messageTemplate.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/messageTemplate.libsonnet deleted file mode 100644 index 8ddfaf2c6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/messageTemplate.libsonnet +++ /dev/null @@ -1,16 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.messageTemplate', name: 'messageTemplate' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withProvenance': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withProvenance(value): { - provenance: value, - }, - '#withTemplate': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTemplate(value): { - template: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/muteTiming.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/muteTiming.libsonnet deleted file mode 100644 index 1c2ba2efc..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/muteTiming.libsonnet +++ /dev/null @@ -1,112 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.muteTiming', name: 'muteTiming' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withTimeIntervals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimeIntervals(value): { - time_intervals: - (if std.isArray(value) - then value - else [value]), - }, - '#withTimeIntervalsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimeIntervalsMixin(value): { - time_intervals+: - (if std.isArray(value) - then value - else [value]), - }, - time_intervals+: - { - '#': { help: '', name: 'time_intervals' }, - '#withDaysOfMonth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDaysOfMonth(value): { - days_of_month: - (if std.isArray(value) - then value - else [value]), - }, - '#withDaysOfMonthMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDaysOfMonthMixin(value): { - days_of_month+: - (if std.isArray(value) - then value - else [value]), - }, - '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLocation(value): { - location: value, - }, - '#withMonths': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMonths(value): { - months: - (if std.isArray(value) - then value - else [value]), - }, - '#withMonthsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMonthsMixin(value): { - months+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTimes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimes(value): { - times: - (if std.isArray(value) - then value - else [value]), - }, - '#withTimesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimesMixin(value): { - times+: - (if std.isArray(value) - then value - else [value]), - }, - times+: - { - '#': { help: '', name: 'times' }, - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFrom(value): { - from: value, - }, - '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTo(value): { - to: value, - }, - }, - '#withWeekdays': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withWeekdays(value): { - weekdays: - (if std.isArray(value) - then value - else [value]), - }, - '#withWeekdaysMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withWeekdaysMixin(value): { - weekdays+: - (if std.isArray(value) - then value - else [value]), - }, - '#withYears': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withYears(value): { - years: - (if std.isArray(value) - then value - else [value]), - }, - '#withYearsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withYearsMixin(value): { - years+: - (if std.isArray(value) - then value - else [value]), - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/notificationPolicy.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/notificationPolicy.libsonnet deleted file mode 100644 index fc12720ee..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/notificationPolicy.libsonnet +++ /dev/null @@ -1,146 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.notificationPolicy', name: 'notificationPolicy' }, - '#withContinue': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withContinue(value=true): { - continue: value, - }, - '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withGroupBy(value): { - group_by: - (if std.isArray(value) - then value - else [value]), - }, - '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withGroupByMixin(value): { - group_by+: - (if std.isArray(value) - then value - else [value]), - }, - '#withGroupInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroupInterval(value): { - group_interval: value, - }, - '#withGroupWait': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroupWait(value): { - group_wait: value, - }, - '#withMatch': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Deprecated. Remove before v1.0 release.' } }, - withMatch(value): { - match: value, - }, - '#withMatchMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Deprecated. Remove before v1.0 release.' } }, - withMatchMixin(value): { - match+: value, - }, - '#withMatchRe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'MatchRegexps represents a map of Regexp.' } }, - withMatchRe(value): { - match_re: value, - }, - '#withMatchReMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'MatchRegexps represents a map of Regexp.' } }, - withMatchReMixin(value): { - match_re+: value, - }, - '#withMatchers': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Matchers is a slice of Matchers that is sortable, implements Stringer, and\nprovides a Matches method to match a LabelSet against all Matchers in the\nslice. Note that some users of Matchers might require it to be sorted.' } }, - withMatchers(value): { - matchers: - (if std.isArray(value) - then value - else [value]), - }, - '#withMatchersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Matchers is a slice of Matchers that is sortable, implements Stringer, and\nprovides a Matches method to match a LabelSet against all Matchers in the\nslice. Note that some users of Matchers might require it to be sorted.' } }, - withMatchersMixin(value): { - matchers+: - (if std.isArray(value) - then value - else [value]), - }, - matchers+: - { - '#': { help: '', name: 'matchers' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - Name: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['=', '!=', '=~', '!~'], name: 'value', type: ['string'] }], help: 'MatchType is an enum for label matching types.' } }, - withType(value): { - Type: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withValue(value): { - Value: value, - }, - }, - '#withMuteTimeIntervals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMuteTimeIntervals(value): { - mute_time_intervals: - (if std.isArray(value) - then value - else [value]), - }, - '#withMuteTimeIntervalsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMuteTimeIntervalsMixin(value): { - mute_time_intervals+: - (if std.isArray(value) - then value - else [value]), - }, - '#withObjectMatchers': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Matchers is a slice of Matchers that is sortable, implements Stringer, and\nprovides a Matches method to match a LabelSet against all Matchers in the\nslice. Note that some users of Matchers might require it to be sorted.' } }, - withObjectMatchers(value): { - object_matchers: - (if std.isArray(value) - then value - else [value]), - }, - '#withObjectMatchersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Matchers is a slice of Matchers that is sortable, implements Stringer, and\nprovides a Matches method to match a LabelSet against all Matchers in the\nslice. Note that some users of Matchers might require it to be sorted.' } }, - withObjectMatchersMixin(value): { - object_matchers+: - (if std.isArray(value) - then value - else [value]), - }, - object_matchers+: - { - '#': { help: '', name: 'object_matchers' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - Name: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['=', '!=', '=~', '!~'], name: 'value', type: ['string'] }], help: 'MatchType is an enum for label matching types.' } }, - withType(value): { - Type: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withValue(value): { - Value: value, - }, - }, - '#withProvenance': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withProvenance(value): { - provenance: value, - }, - '#withReceiver': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withReceiver(value): { - receiver: value, - }, - '#withRepeatInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRepeatInterval(value): { - repeat_interval: value, - }, - '#withRoutes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withRoutes(value): { - routes: - (if std.isArray(value) - then value - else [value]), - }, - '#withRoutesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withRoutesMixin(value): { - routes+: - (if std.isArray(value) - then value - else [value]), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/ruleGroup.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/ruleGroup.libsonnet deleted file mode 100644 index 21288e06c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/alerting/ruleGroup.libsonnet +++ /dev/null @@ -1,163 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.ruleGroup', name: 'ruleGroup' }, - '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFolderUid(value): { - folderUid: value, - }, - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withInterval(value): { - interval: value, - }, - '#withRules': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withRules(value): { - rules: - (if std.isArray(value) - then value - else [value]), - }, - '#withRulesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withRulesMixin(value): { - rules+: - (if std.isArray(value) - then value - else [value]), - }, - rules+: - { - '#': { help: '', name: 'rules' }, - '#withAnnotations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAnnotations(value): { - annotations: value, - }, - '#withAnnotationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAnnotationsMixin(value): { - annotations+: value, - }, - '#withCondition': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withCondition(value): { - condition: value, - }, - '#withData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withData(value): { - data: - (if std.isArray(value) - then value - else [value]), - }, - '#withDataMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDataMixin(value): { - data+: - (if std.isArray(value) - then value - else [value]), - }, - data+: - { - '#': { help: '', name: 'data' }, - '#withDatasourceUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation." } }, - withDatasourceUid(value): { - datasourceUid: value, - }, - '#withModel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'JSON is the raw JSON query and includes the above properties as well as custom properties.' } }, - withModel(value): { - model: value, - }, - '#withModelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'JSON is the raw JSON query and includes the above properties as well as custom properties.' } }, - withModelMixin(value): { - model+: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, - withRefId(value): { - refId: value, - }, - '#withRelativeTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'RelativeTimeRange is the per query start and end time\nfor requests.' } }, - withRelativeTimeRange(value): { - relativeTimeRange: value, - }, - '#withRelativeTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'RelativeTimeRange is the per query start and end time\nfor requests.' } }, - withRelativeTimeRangeMixin(value): { - relativeTimeRange+: value, - }, - relativeTimeRange+: - { - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'A Duration represents the elapsed time between two instants\nas an int64 nanosecond count. The representation limits the\nlargest representable duration to approximately 290 years.' } }, - withFrom(value): { - relativeTimeRange+: { - from: value, - }, - }, - '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'A Duration represents the elapsed time between two instants\nas an int64 nanosecond count. The representation limits the\nlargest representable duration to approximately 290 years.' } }, - withTo(value): { - relativeTimeRange+: { - to: value, - }, - }, - }, - }, - '#withExecErrState': { 'function': { args: [{ default: null, enums: ['OK', 'Alerting', 'Error'], name: 'value', type: ['string'] }], help: '' } }, - withExecErrState(value): { - execErrState: value, - }, - '#withFolderUID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFolderUID(value): { - folderUID: value, - }, - '#withFor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'A Duration represents the elapsed time between two instants\nas an int64 nanosecond count. The representation limits the\nlargest representable duration to approximately 290 years.' } }, - withFor(value): { - 'for': value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withIsPaused': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsPaused(value=true): { - isPaused: value, - }, - '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabels(value): { - labels: value, - }, - '#withLabelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelsMixin(value): { - labels+: value, - }, - '#withNoDataState': { 'function': { args: [{ default: null, enums: ['Alerting', 'NoData', 'OK'], name: 'value', type: ['string'] }], help: '' } }, - withNoDataState(value): { - noDataState: value, - }, - '#withOrgID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withOrgID(value): { - orgID: value, - }, - '#withProvenance': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withProvenance(value): { - provenance: value, - }, - '#withRuleGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRuleGroup(value): { - ruleGroup: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - title: value, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUid(value): { - uid: value, - }, - '#withUpdated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUpdated(value): { - updated: value, - }, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - title: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/dashboard.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/dashboard.libsonnet deleted file mode 100644 index ae4476784..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/dashboard.libsonnet +++ /dev/null @@ -1,607 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.dashboard', name: 'dashboard' }, - '#withAnnotations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO -- should not be a public interface on its own, but required for Veneer' } }, - withAnnotations(value): { - annotations: value, - }, - '#withAnnotationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO -- should not be a public interface on its own, but required for Veneer' } }, - withAnnotationsMixin(value): { - annotations+: value, - }, - annotations+: - { - '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withList(value): { - annotations+: { - list: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withListMixin(value): { - annotations+: { - list+: - (if std.isArray(value) - then value - else [value]), - }, - }, - list+: - { - '#': { help: '', name: 'list' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: Should be DataSourceRef' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: Should be DataSourceRef' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - datasource+: { - type: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'When enabled the annotation query is issued with every dashboard refresh' } }, - withEnable(value=true): { - enable: value, - }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFilter(value): { - filter: value, - }, - '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFilterMixin(value): { - filter+: value, - }, - filter+: - { - '#withExclude': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Should the specified panels be included or excluded' } }, - withExclude(value=true): { - filter+: { - exclude: value, - }, - }, - '#withIds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel IDs that should be included or excluded' } }, - withIds(value): { - filter+: { - ids: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withIdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel IDs that should be included or excluded' } }, - withIdsMixin(value): { - filter+: { - ids+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Annotation queries can be toggled on or off at the top of the dashboard.\nWhen hide is true, the toggle is not shown in the dashboard.' } }, - withHide(value=true): { - hide: value, - }, - '#withIconColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Color to use for the annotation event markers' } }, - withIconColor(value): { - iconColor: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of annotation.' } }, - withName(value): { - name: value, - }, - '#withTarget': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, - withTarget(value): { - target: value, - }, - '#withTargetMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, - withTargetMixin(value): { - target+: value, - }, - target+: - { - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withLimit(value): { - target+: { - limit: value, - }, - }, - '#withMatchAny': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withMatchAny(value=true): { - target+: { - matchAny: value, - }, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withTags(value): { - target+: { - tags: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withTagsMixin(value): { - target+: { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withType(value): { - target+: { - type: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO -- this should not exist here, it is based on the --grafana-- datasource' } }, - withType(value): { - type: value, - }, - }, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Description of dashboard.' } }, - withDescription(value): { - description: value, - }, - '#withEditable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether a dashboard is editable or not.' } }, - withEditable(value=true): { - editable: value, - }, - '#withFiscalYearStartMonth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'The month that the fiscal year starts on. 0 = January, 11 = December' } }, - withFiscalYearStartMonth(value=0): { - fiscalYearStartMonth: value, - }, - '#withGnetId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'For dashboards imported from the https://grafana.com/grafana/dashboards/ portal' } }, - withGnetId(value): { - gnetId: value, - }, - '#withGraphTooltip': { 'function': { args: [{ default: 0, enums: [0, 1, 2], name: 'value', type: ['integer'] }], help: '0 for no shared crosshair or tooltip (default).\n1 for shared crosshair.\n2 for shared crosshair AND shared tooltip.' } }, - withGraphTooltip(value=0): { - graphTooltip: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Unique numeric identifier for the dashboard.\nTODO must isolate or remove identifiers local to a Grafana instance...?' } }, - withId(value): { - id: value, - }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withLinks(value): { - links: - (if std.isArray(value) - then value - else [value]), - }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withLinksMixin(value): { - links+: - (if std.isArray(value) - then value - else [value]), - }, - links+: - { - '#': { help: '', name: 'links' }, - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsDropdown(value=true): { - asDropdown: value, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withIcon(value): { - icon: value, - }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIncludeVars(value=true): { - includeVars: value, - }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withKeepTime(value=true): { - keepTime: value, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTags(value): { - tags: - (if std.isArray(value) - then value - else [value]), - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTagsMixin(value): { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTargetBlank(value=true): { - targetBlank: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - title: value, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTooltip(value): { - tooltip: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - type: value, - }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUrl(value): { - url: value, - }, - }, - '#withLiveNow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'When set to true, the dashboard will redraw panels at an interval matching the pixel width.\nThis will keep data "moving left" regardless of the query refresh rate. This setting helps\navoid dashboards presenting stale live data' } }, - withLiveNow(value=true): { - liveNow: value, - }, - '#withPanels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPanels(value): { - panels: - (if std.isArray(value) - then value - else [value]), - }, - '#withPanelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPanelsMixin(value): { - panels+: - (if std.isArray(value) - then value - else [value]), - }, - '#withRefresh': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'string'] }], help: 'Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d".' } }, - withRefresh(value): { - refresh: value, - }, - '#withRefreshMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'string'] }], help: 'Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d".' } }, - withRefreshMixin(value): { - refresh+: value, - }, - '#withRevision': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'This property should only be used in dashboards defined by plugins. It is a quick check\nto see if the version has changed since the last time. Unclear why using the version property\nis insufficient.' } }, - withRevision(value): { - revision: value, - }, - '#withSchemaVersion': { 'function': { args: [{ default: 36, enums: null, name: 'value', type: ['integer'] }], help: "Version of the JSON schema, incremented each time a Grafana update brings\nchanges to said schema.\nTODO this is the existing schema numbering system. It will be replaced by Thema's themaVersion" } }, - withSchemaVersion(value=36): { - schemaVersion: value, - }, - '#withSnapshot': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withSnapshot(value): { - snapshot: value, - }, - '#withSnapshotMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withSnapshotMixin(value): { - snapshot+: value, - }, - snapshot+: - { - '#withCreated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withCreated(value): { - snapshot+: { - created: value, - }, - }, - '#withExpires': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withExpires(value): { - snapshot+: { - expires: value, - }, - }, - '#withExternal': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'TODO docs' } }, - withExternal(value=true): { - snapshot+: { - external: value, - }, - }, - '#withExternalUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withExternalUrl(value): { - snapshot+: { - externalUrl: value, - }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'TODO docs' } }, - withId(value): { - snapshot+: { - id: value, - }, - }, - '#withKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withKey(value): { - snapshot+: { - key: value, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withName(value): { - snapshot+: { - name: value, - }, - }, - '#withOrgId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'TODO docs' } }, - withOrgId(value): { - snapshot+: { - orgId: value, - }, - }, - '#withUpdated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withUpdated(value): { - snapshot+: { - updated: value, - }, - }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withUrl(value): { - snapshot+: { - url: value, - }, - }, - '#withUserId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'TODO docs' } }, - withUserId(value): { - snapshot+: { - userId: value, - }, - }, - }, - '#withStyle': { 'function': { args: [{ default: 'dark', enums: ['dark', 'light'], name: 'value', type: ['string'] }], help: 'Theme of dashboard.' } }, - withStyle(value='dark'): { - style: value, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Tags associated with dashboard.' } }, - withTags(value): { - tags: - (if std.isArray(value) - then value - else [value]), - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Tags associated with dashboard.' } }, - withTagsMixin(value): { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTemplating': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTemplating(value): { - templating: value, - }, - '#withTemplatingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTemplatingMixin(value): { - templating+: value, - }, - templating+: - { - '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withList(value): { - templating+: { - list: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withListMixin(value): { - templating+: { - list+: - (if std.isArray(value) - then value - else [value]), - }, - }, - list+: - { - '#': { help: '', name: 'list' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, - withType(value): { - datasource+: { - type: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withDescription(value): { - description: value, - }, - '#withError': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withError(value): { - 'error': value, - }, - '#withErrorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withErrorMixin(value): { - 'error'+: value, - }, - '#withGlobal': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withGlobal(value=true): { - global: value, - }, - '#withHide': { 'function': { args: [{ default: null, enums: [0, 1, 2], name: 'value', type: ['integer'] }], help: '' } }, - withHide(value): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: '00000000-0000-0000-0000-000000000000', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value='00000000-0000-0000-0000-000000000000'): { - id: value, - }, - '#withIndex': { 'function': { args: [{ default: -1, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withIndex(value=-1): { - index: value, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLabel(value): { - label: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: 'TODO: Move this into a separated QueryVariableModel type' } }, - withQuery(value): { - query: value, - }, - '#withQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: 'TODO: Move this into a separated QueryVariableModel type' } }, - withQueryMixin(value): { - query+: value, - }, - '#withRootStateKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRootStateKey(value): { - rootStateKey: value, - }, - '#withSkipUrlSync': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSkipUrlSync(value=true): { - skipUrlSync: value, - }, - '#withState': { 'function': { args: [{ default: null, enums: ['NotStarted', 'Loading', 'Streaming', 'Done', 'Error'], name: 'value', type: ['string'] }], help: '' } }, - withState(value): { - state: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['query', 'adhoc', 'constant', 'datasource', 'interval', 'textbox', 'custom', 'system'], name: 'value', type: ['string'] }], help: 'FROM: packages/grafana-data/src/types/templateVars.ts\nTODO docs\nTODO this implies some wider pattern/discriminated union, probably?' } }, - withType(value): { - type: value, - }, - }, - }, - '#withTime': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Time range for dashboard, e.g. last 6 hours, last 7 days, etc' } }, - withTime(value): { - time: value, - }, - '#withTimeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Time range for dashboard, e.g. last 6 hours, last 7 days, etc' } }, - withTimeMixin(value): { - time+: value, - }, - time+: - { - '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFrom(value='now-6h'): { - time+: { - from: value, - }, - }, - '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTo(value='now'): { - time+: { - to: value, - }, - }, - }, - '#withTimepicker': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs\nTODO this appears to be spread all over in the frontend. Concepts will likely need tidying in tandem with schema changes' } }, - withTimepicker(value): { - timepicker: value, - }, - '#withTimepickerMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs\nTODO this appears to be spread all over in the frontend. Concepts will likely need tidying in tandem with schema changes' } }, - withTimepickerMixin(value): { - timepicker+: value, - }, - timepicker+: - { - '#withCollapse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether timepicker is collapsed or not.' } }, - withCollapse(value=true): { - timepicker+: { - collapse: value, - }, - }, - '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether timepicker is enabled or not.' } }, - withEnable(value=true): { - timepicker+: { - enable: value, - }, - }, - '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether timepicker is visible or not.' } }, - withHidden(value=true): { - timepicker+: { - hidden: value, - }, - }, - '#withRefreshIntervals': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: ['array'] }], help: 'Selectable intervals for auto-refresh.' } }, - withRefreshIntervals(value): { - timepicker+: { - refresh_intervals: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withRefreshIntervalsMixin': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: ['array'] }], help: 'Selectable intervals for auto-refresh.' } }, - withRefreshIntervalsMixin(value): { - timepicker+: { - refresh_intervals+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimeOptions': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withTimeOptions(value): { - timepicker+: { - time_options: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimeOptionsMixin': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withTimeOptionsMixin(value): { - timepicker+: { - time_options+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withTimezone': { 'function': { args: [{ default: 'browser', enums: null, name: 'value', type: ['string'] }], help: 'Timezone of dashboard. Accepts IANA TZDB zone ID or "browser" or "utc".' } }, - withTimezone(value='browser'): { - timezone: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title of dashboard.' } }, - withTitle(value): { - title: value, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique dashboard identifier that can be generated by anyone. string (8-40)' } }, - withUid(value): { - uid: value, - }, - '#withVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Version of the dashboard, incremented each time the dashboard is updated.' } }, - withVersion(value): { - version: value, - }, - '#withWeekStart': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withWeekStart(value): { - weekStart: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/librarypanel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/librarypanel.libsonnet deleted file mode 100644 index 052915305..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/librarypanel.libsonnet +++ /dev/null @@ -1,159 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.librarypanel', name: 'librarypanel' }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel description' } }, - withDescription(value): { - description: value, - }, - '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Folder UID' } }, - withFolderUid(value): { - folderUid: value, - }, - '#withMeta': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMeta(value): { - meta: value, - }, - '#withMetaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMetaMixin(value): { - meta+: value, - }, - meta+: - { - '#withConnectedDashboards': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withConnectedDashboards(value): { - meta+: { - connectedDashboards: value, - }, - }, - '#withCreated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withCreated(value): { - meta+: { - created: value, - }, - }, - '#withCreatedBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCreatedBy(value): { - meta+: { - createdBy: value, - }, - }, - '#withCreatedByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCreatedByMixin(value): { - meta+: { - createdBy+: value, - }, - }, - createdBy+: - { - '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAvatarUrl(value): { - meta+: { - createdBy+: { - avatarUrl: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withId(value): { - meta+: { - createdBy+: { - id: value, - }, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - meta+: { - createdBy+: { - name: value, - }, - }, - }, - }, - '#withFolderName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFolderName(value): { - meta+: { - folderName: value, - }, - }, - '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFolderUid(value): { - meta+: { - folderUid: value, - }, - }, - '#withUpdated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUpdated(value): { - meta+: { - updated: value, - }, - }, - '#withUpdatedBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUpdatedBy(value): { - meta+: { - updatedBy: value, - }, - }, - '#withUpdatedByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUpdatedByMixin(value): { - meta+: { - updatedBy+: value, - }, - }, - updatedBy+: - { - '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAvatarUrl(value): { - meta+: { - updatedBy+: { - avatarUrl: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withId(value): { - meta+: { - updatedBy+: { - id: value, - }, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - meta+: { - updatedBy+: { - name: value, - }, - }, - }, - }, - }, - '#withModel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "TODO: should be the same panel schema defined in dashboard\nTypescript: Omit;" } }, - withModel(value): { - model: value, - }, - '#withModelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "TODO: should be the same panel schema defined in dashboard\nTypescript: Omit;" } }, - withModelMixin(value): { - model+: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel name (also saved in the model)' } }, - withName(value): { - name: value, - }, - '#withSchemaVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Dashboard version when this was saved (zero if unknown)' } }, - withSchemaVersion(value): { - schemaVersion: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The panel type (from inside the model)' } }, - withType(value): { - type: value, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Library element UID' } }, - withUid(value): { - uid: value, - }, - '#withVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'panel version, incremented each time the dashboard is updated.' } }, - withVersion(value): { - version: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel.libsonnet deleted file mode 100644 index ebe017256..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel.libsonnet +++ /dev/null @@ -1,941 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel', name: 'panel' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource used in all targets.' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource used in all targets.' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - datasource+: { - type: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Description.' } }, - withDescription(value): { - description: value, - }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfig(value): { - fieldConfig: value, - }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfigMixin(value): { - fieldConfig+: value, - }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaults(value): { - fieldConfig+: { - defaults: value, - }, - }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaultsMixin(value): { - fieldConfig+: { - defaults+: value, - }, - }, - defaults+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withColor(value): { - fieldConfig+: { - defaults+: { - color: value, - }, - }, - }, - '#withColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withColorMixin(value): { - fieldConfig+: { - defaults+: { - color+: value, - }, - }, - }, - color+: - { - '#withFixedColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Stores the fixed color value if mode is fixed' } }, - withFixedColor(value): { - fieldConfig+: { - defaults+: { - color+: { - fixedColor: value, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The main color scheme mode' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - color+: { - mode: value, - }, - }, - }, - }, - '#withSeriesBy': { 'function': { args: [{ default: null, enums: ['min', 'max', 'last'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSeriesBy(value): { - fieldConfig+: { - defaults+: { - color+: { - seriesBy: value, - }, - }, - }, - }, - }, - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'custom is specified by the PanelFieldConfig field\nin panel plugin schemas.' } }, - withCustom(value): { - fieldConfig+: { - defaults+: { - custom: value, - }, - }, - }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'custom is specified by the PanelFieldConfig field\nin panel plugin schemas.' } }, - withCustomMixin(value): { - fieldConfig+: { - defaults+: { - custom+: value, - }, - }, - }, - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Significant digits (for display)' } }, - withDecimals(value): { - fieldConfig+: { - defaults+: { - decimals: value, - }, - }, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Human readable field metadata' } }, - withDescription(value): { - fieldConfig+: { - defaults+: { - description: value, - }, - }, - }, - '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The display value for this field. This supports template variables blank is auto' } }, - withDisplayName(value): { - fieldConfig+: { - defaults+: { - displayName: value, - }, - }, - }, - '#withDisplayNameFromDS': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'This can be used by data sources that return and explicit naming structure for values and labels\nWhen this property is configured, this value is used rather than the default naming strategy.' } }, - withDisplayNameFromDS(value): { - fieldConfig+: { - defaults+: { - displayNameFromDS: value, - }, - }, - }, - '#withFilterable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'True if data source field supports ad-hoc filters' } }, - withFilterable(value=true): { - fieldConfig+: { - defaults+: { - filterable: value, - }, - }, - }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The behavior when clicking on a result' } }, - withLinks(value): { - fieldConfig+: { - defaults+: { - links: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The behavior when clicking on a result' } }, - withLinksMixin(value): { - fieldConfig+: { - defaults+: { - links+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withMappings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Convert input values into a display string' } }, - withMappings(value): { - fieldConfig+: { - defaults+: { - mappings: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withMappingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Convert input values into a display string' } }, - withMappingsMixin(value): { - fieldConfig+: { - defaults+: { - mappings+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - mappings+: - { - '#': { help: '', name: 'mappings' }, - ValueMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - RangeMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'to and from are `number | null` in current ts, really not sure what to do' } }, - withFrom(value): { - options+: { - from: value, - }, - }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withResult(value): { - options+: { - result: value, - }, - }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withResultMixin(value): { - options+: { - result+: value, - }, - }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withColor(value): { - options+: { - result+: { - color: value, - }, - }, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withIcon(value): { - options+: { - result+: { - icon: value, - }, - }, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withIndex(value): { - options+: { - result+: { - index: value, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withText(value): { - options+: { - result+: { - text: value, - }, - }, - }, - }, - '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withTo(value): { - options+: { - to: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - RegexMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPattern(value): { - options+: { - pattern: value, - }, - }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withResult(value): { - options+: { - result: value, - }, - }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withResultMixin(value): { - options+: { - result+: value, - }, - }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withColor(value): { - options+: { - result+: { - color: value, - }, - }, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withIcon(value): { - options+: { - result+: { - icon: value, - }, - }, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withIndex(value): { - options+: { - result+: { - index: value, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withText(value): { - options+: { - result+: { - text: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - SpecialValueMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withMatch': { 'function': { args: [{ default: null, enums: ['true', 'false'], name: 'value', type: ['string'] }], help: '' } }, - withMatch(value): { - options+: { - match: value, - }, - }, - '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPattern(value): { - options+: { - pattern: value, - }, - }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withResult(value): { - options+: { - result: value, - }, - }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withResultMixin(value): { - options+: { - result+: value, - }, - }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withColor(value): { - options+: { - result+: { - color: value, - }, - }, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withIcon(value): { - options+: { - result+: { - icon: value, - }, - }, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withIndex(value): { - options+: { - result+: { - index: value, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withText(value): { - options+: { - result+: { - text: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMax(value): { - fieldConfig+: { - defaults+: { - max: value, - }, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMin(value): { - fieldConfig+: { - defaults+: { - min: value, - }, - }, - }, - '#withNoValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alternative to empty string' } }, - withNoValue(value): { - fieldConfig+: { - defaults+: { - noValue: value, - }, - }, - }, - '#withPath': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'An explicit path to the field in the datasource. When the frame meta includes a path,\nThis will default to `${frame.meta.path}/${field.name}\n\nWhen defined, this value can be used as an identifier within the datasource scope, and\nmay be used to update the results' } }, - withPath(value): { - fieldConfig+: { - defaults+: { - path: value, - }, - }, - }, - '#withThresholds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withThresholds(value): { - fieldConfig+: { - defaults+: { - thresholds: value, - }, - }, - }, - '#withThresholdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withThresholdsMixin(value): { - fieldConfig+: { - defaults+: { - thresholds+: value, - }, - }, - }, - thresholds+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['absolute', 'percentage'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - thresholds+: { - mode: value, - }, - }, - }, - }, - '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: "Must be sorted by 'value', first value is always -Infinity" } }, - withSteps(value): { - fieldConfig+: { - defaults+: { - thresholds+: { - steps: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - '#withStepsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: "Must be sorted by 'value', first value is always -Infinity" } }, - withStepsMixin(value): { - fieldConfig+: { - defaults+: { - thresholds+: { - steps+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - steps+: - { - '#': { help: '', name: 'steps' }, - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withColor(value): { - color: value, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Threshold index, an old property that is not needed an should only appear in older dashboards' } }, - withIndex(value): { - index: value, - }, - '#withState': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs\nTODO are the values here enumerable into a disjunction?\nSome seem to be listed in typescript comment' } }, - withState(value): { - state: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'TODO docs\nFIXME the corresponding typescript field is required/non-optional, but nulls currently appear here when serializing -Infinity to JSON' } }, - withValue(value): { - value: value, - }, - }, - }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Numeric Options' } }, - withUnit(value): { - fieldConfig+: { - defaults+: { - unit: value, - }, - }, - }, - '#withWriteable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'True if data source can write a value to the path. Auth/authz are supported separately' } }, - withWriteable(value=true): { - fieldConfig+: { - defaults+: { - writeable: value, - }, - }, - }, - }, - '#withOverrides': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withOverrides(value): { - fieldConfig+: { - overrides: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withOverridesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withOverridesMixin(value): { - fieldConfig+: { - overrides+: - (if std.isArray(value) - then value - else [value]), - }, - }, - overrides+: - { - '#': { help: '', name: 'overrides' }, - '#withMatcher': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMatcher(value): { - matcher: value, - }, - '#withMatcherMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMatcherMixin(value): { - matcher+: value, - }, - matcher+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value=''): { - matcher+: { - id: value, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withOptions(value): { - matcher+: { - options: value, - }, - }, - }, - '#withProperties': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withProperties(value): { - properties: - (if std.isArray(value) - then value - else [value]), - }, - '#withPropertiesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPropertiesMixin(value): { - properties+: - (if std.isArray(value) - then value - else [value]), - }, - properties+: - { - '#': { help: '', name: 'properties' }, - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value=''): { - id: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withValue(value): { - value: value, - }, - }, - }, - }, - '#withGridPos': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withGridPos(value): { - gridPos: value, - }, - '#withGridPosMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withGridPosMixin(value): { - gridPos+: value, - }, - gridPos+: - { - '#withH': { 'function': { args: [{ default: 9, enums: null, name: 'value', type: ['integer'] }], help: 'Panel' } }, - withH(value=9): { - gridPos+: { - h: value, - }, - }, - '#withStatic': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if fixed' } }, - withStatic(value=true): { - gridPos+: { - static: value, - }, - }, - '#withW': { 'function': { args: [{ default: 12, enums: null, name: 'value', type: ['integer'] }], help: 'Panel' } }, - withW(value=12): { - gridPos+: { - w: value, - }, - }, - '#withX': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel x' } }, - withX(value=0): { - gridPos+: { - x: value, - }, - }, - '#withY': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel y' } }, - withY(value=0): { - gridPos+: { - y: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'TODO docs' } }, - withId(value): { - id: value, - }, - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs\nTODO tighter constraint' } }, - withInterval(value): { - interval: value, - }, - '#withLibraryPanel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLibraryPanel(value): { - libraryPanel: value, - }, - '#withLibraryPanelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLibraryPanelMixin(value): { - libraryPanel+: value, - }, - libraryPanel+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - libraryPanel+: { - name: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUid(value): { - libraryPanel+: { - uid: value, - }, - }, - }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel links.\nTODO fill this out - seems there are a couple variants?' } }, - withLinks(value): { - links: - (if std.isArray(value) - then value - else [value]), - }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel links.\nTODO fill this out - seems there are a couple variants?' } }, - withLinksMixin(value): { - links+: - (if std.isArray(value) - then value - else [value]), - }, - links+: - { - '#': { help: '', name: 'links' }, - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsDropdown(value=true): { - asDropdown: value, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withIcon(value): { - icon: value, - }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIncludeVars(value=true): { - includeVars: value, - }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withKeepTime(value=true): { - keepTime: value, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTags(value): { - tags: - (if std.isArray(value) - then value - else [value]), - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTagsMixin(value): { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTargetBlank(value=true): { - targetBlank: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - title: value, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTooltip(value): { - tooltip: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - type: value, - }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUrl(value): { - url: value, - }, - }, - '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'TODO docs' } }, - withMaxDataPoints(value): { - maxDataPoints: value, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'options is specified by the PanelOptions field in panel\nplugin schemas.' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'options is specified by the PanelOptions field in panel\nplugin schemas.' } }, - withOptionsMixin(value): { - options+: value, - }, - '#withPluginVersion': { 'function': { args: [], help: '' } }, - withPluginVersion(): { - pluginVersion: 'v10.0.0', - }, - '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of template variable to repeat for.' } }, - withRepeat(value): { - repeat: value, - }, - '#withRepeatDirection': { 'function': { args: [{ default: 'h', enums: ['h', 'v'], name: 'value', type: ['string'] }], help: "Direction to repeat in if 'repeat' is set.\n\"h\" for horizontal, \"v\" for vertical.\nTODO this is probably optional" } }, - withRepeatDirection(value='h'): { - repeatDirection: value, - }, - '#withRepeatPanelId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Id of the repeating panel.' } }, - withRepeatPanelId(value): { - repeatPanelId: value, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withTags(value): { - tags: - (if std.isArray(value) - then value - else [value]), - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withTagsMixin(value): { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTargets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withTargets(value): { - targets: - (if std.isArray(value) - then value - else [value]), - }, - '#withTargetsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withTargetsMixin(value): { - targets+: - (if std.isArray(value) - then value - else [value]), - }, - '#withThresholds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs - seems to be an old field from old dashboard alerts?' } }, - withThresholds(value): { - thresholds: - (if std.isArray(value) - then value - else [value]), - }, - '#withThresholdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs - seems to be an old field from old dashboard alerts?' } }, - withThresholdsMixin(value): { - thresholds+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTimeFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs\nTODO tighter constraint' } }, - withTimeFrom(value): { - timeFrom: value, - }, - '#withTimeRegions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withTimeRegions(value): { - timeRegions: - (if std.isArray(value) - then value - else [value]), - }, - '#withTimeRegionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TODO docs' } }, - withTimeRegionsMixin(value): { - timeRegions+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTimeShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO docs\nTODO tighter constraint' } }, - withTimeShift(value): { - timeShift: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel title.' } }, - withTitle(value): { - title: value, - }, - '#withTransformations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTransformations(value): { - transformations: - (if std.isArray(value) - then value - else [value]), - }, - '#withTransformationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTransformationsMixin(value): { - transformations+: - (if std.isArray(value) - then value - else [value]), - }, - transformations+: - { - '#': { help: '', name: 'transformations' }, - '#withDisabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Disabled transformations are skipped' } }, - withDisabled(value=true): { - disabled: value, - }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFilter(value): { - filter: value, - }, - '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFilterMixin(value): { - filter+: value, - }, - filter+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value=''): { - filter+: { - id: value, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withOptions(value): { - filter+: { - options: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique identifier of transformer' } }, - withId(value): { - id: value, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, - withOptions(value): { - options: value, - }, - }, - '#withTransparent': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether to display the panel without a background.' } }, - withTransparent(value=true): { - transparent: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The panel plugin type id. May not be empty.' } }, - withType(value): { - type: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertGroups.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertGroups.libsonnet deleted file mode 100644 index a957d1205..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertGroups.libsonnet +++ /dev/null @@ -1,37 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.alertGroups', name: 'alertGroups' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withAlertmanager': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the alertmanager used as a source for alerts' } }, - withAlertmanager(value): { - options+: { - alertmanager: value, - }, - }, - '#withExpandAll': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Expand all alert groups by default' } }, - withExpandAll(value=true): { - options+: { - expandAll: value, - }, - }, - '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Comma-separated list of values used to filter alert results' } }, - withLabels(value): { - options+: { - labels: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'alertGroups', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertList.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertList.libsonnet deleted file mode 100644 index 8d6f43661..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/alertList.libsonnet +++ /dev/null @@ -1,338 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.alertList', name: 'alertList' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withAlertListOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAlertListOptions(value): { - options+: { - AlertListOptions: value, - }, - }, - '#withAlertListOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAlertListOptionsMixin(value): { - options+: { - AlertListOptions+: value, - }, - }, - AlertListOptions+: - { - '#withAlertName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAlertName(value): { - options+: { - alertName: value, - }, - }, - '#withDashboardAlerts': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withDashboardAlerts(value=true): { - options+: { - dashboardAlerts: value, - }, - }, - '#withDashboardTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withDashboardTitle(value): { - options+: { - dashboardTitle: value, - }, - }, - '#withFolderId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFolderId(value): { - options+: { - folderId: value, - }, - }, - '#withMaxItems': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxItems(value): { - options+: { - maxItems: value, - }, - }, - '#withShowOptions': { 'function': { args: [{ default: null, enums: ['current', 'changes'], name: 'value', type: ['string'] }], help: '' } }, - withShowOptions(value): { - options+: { - showOptions: value, - }, - }, - '#withSortOrder': { 'function': { args: [{ default: null, enums: [1, 2, 3, 4, 5], name: 'value', type: ['number'] }], help: '' } }, - withSortOrder(value): { - options+: { - sortOrder: value, - }, - }, - '#withStateFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStateFilter(value): { - options+: { - stateFilter: value, - }, - }, - '#withStateFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStateFilterMixin(value): { - options+: { - stateFilter+: value, - }, - }, - stateFilter+: - { - '#withAlerting': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAlerting(value=true): { - options+: { - stateFilter+: { - alerting: value, - }, - }, - }, - '#withExecutionError': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withExecutionError(value=true): { - options+: { - stateFilter+: { - execution_error: value, - }, - }, - }, - '#withNoData': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withNoData(value=true): { - options+: { - stateFilter+: { - no_data: value, - }, - }, - }, - '#withOk': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withOk(value=true): { - options+: { - stateFilter+: { - ok: value, - }, - }, - }, - '#withPaused': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withPaused(value=true): { - options+: { - stateFilter+: { - paused: value, - }, - }, - }, - '#withPending': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withPending(value=true): { - options+: { - stateFilter+: { - pending: value, - }, - }, - }, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTags(value): { - options+: { - tags: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTagsMixin(value): { - options+: { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withUnifiedAlertListOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUnifiedAlertListOptions(value): { - options+: { - UnifiedAlertListOptions: value, - }, - }, - '#withUnifiedAlertListOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUnifiedAlertListOptionsMixin(value): { - options+: { - UnifiedAlertListOptions+: value, - }, - }, - UnifiedAlertListOptions+: - { - '#withAlertInstanceLabelFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAlertInstanceLabelFilter(value): { - options+: { - alertInstanceLabelFilter: value, - }, - }, - '#withAlertName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAlertName(value): { - options+: { - alertName: value, - }, - }, - '#withDashboardAlerts': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withDashboardAlerts(value=true): { - options+: { - dashboardAlerts: value, - }, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withDatasource(value): { - options+: { - datasource: value, - }, - }, - '#withFolder': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFolder(value): { - options+: { - folder: value, - }, - }, - '#withFolderMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFolderMixin(value): { - options+: { - folder+: value, - }, - }, - folder+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withId(value): { - options+: { - folder+: { - id: value, - }, - }, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - options+: { - folder+: { - title: value, - }, - }, - }, - }, - '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withGroupBy(value): { - options+: { - groupBy: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withGroupByMixin(value): { - options+: { - groupBy+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withGroupMode': { 'function': { args: [{ default: null, enums: ['default', 'custom'], name: 'value', type: ['string'] }], help: '' } }, - withGroupMode(value): { - options+: { - groupMode: value, - }, - }, - '#withMaxItems': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxItems(value): { - options+: { - maxItems: value, - }, - }, - '#withShowInstances': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowInstances(value=true): { - options+: { - showInstances: value, - }, - }, - '#withSortOrder': { 'function': { args: [{ default: null, enums: [1, 2, 3, 4, 5], name: 'value', type: ['number'] }], help: '' } }, - withSortOrder(value): { - options+: { - sortOrder: value, - }, - }, - '#withStateFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStateFilter(value): { - options+: { - stateFilter: value, - }, - }, - '#withStateFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStateFilterMixin(value): { - options+: { - stateFilter+: value, - }, - }, - stateFilter+: - { - '#withError': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withError(value=true): { - options+: { - stateFilter+: { - 'error': value, - }, - }, - }, - '#withFiring': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withFiring(value=true): { - options+: { - stateFilter+: { - firing: value, - }, - }, - }, - '#withInactive': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withInactive(value=true): { - options+: { - stateFilter+: { - inactive: value, - }, - }, - }, - '#withNoData': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withNoData(value=true): { - options+: { - stateFilter+: { - noData: value, - }, - }, - }, - '#withNormal': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withNormal(value=true): { - options+: { - stateFilter+: { - normal: value, - }, - }, - }, - '#withPending': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withPending(value=true): { - options+: { - stateFilter+: { - pending: value, - }, - }, - }, - }, - '#withViewMode': { 'function': { args: [{ default: null, enums: ['list', 'stat'], name: 'value', type: ['string'] }], help: '' } }, - withViewMode(value): { - options+: { - viewMode: value, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'alertlist', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/annotationsList.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/annotationsList.libsonnet deleted file mode 100644 index 1378195b0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/annotationsList.libsonnet +++ /dev/null @@ -1,91 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.annotationsList', name: 'annotationsList' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withLimit': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLimit(value=10): { - options+: { - limit: value, - }, - }, - '#withNavigateAfter': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withNavigateAfter(value='10m'): { - options+: { - navigateAfter: value, - }, - }, - '#withNavigateBefore': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withNavigateBefore(value='10m'): { - options+: { - navigateBefore: value, - }, - }, - '#withNavigateToPanel': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withNavigateToPanel(value=true): { - options+: { - navigateToPanel: value, - }, - }, - '#withOnlyFromThisDashboard': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withOnlyFromThisDashboard(value=true): { - options+: { - onlyFromThisDashboard: value, - }, - }, - '#withOnlyInTimeRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withOnlyInTimeRange(value=true): { - options+: { - onlyInTimeRange: value, - }, - }, - '#withShowTags': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowTags(value=true): { - options+: { - showTags: value, - }, - }, - '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowTime(value=true): { - options+: { - showTime: value, - }, - }, - '#withShowUser': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowUser(value=true): { - options+: { - showUser: value, - }, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTags(value): { - options+: { - tags: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTagsMixin(value): { - options+: { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'annolist', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barChart.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barChart.libsonnet deleted file mode 100644 index a458cd737..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barChart.libsonnet +++ /dev/null @@ -1,562 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.barChart', name: 'barChart' }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfig(value): { - fieldConfig: value, - }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfigMixin(value): { - fieldConfig+: value, - }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaults(value): { - fieldConfig+: { - defaults: value, - }, - }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaultsMixin(value): { - fieldConfig+: { - defaults+: value, - }, - }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCustom(value): { - fieldConfig+: { - defaults+: { - custom: value, - }, - }, - }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCustomMixin(value): { - fieldConfig+: { - defaults+: { - custom+: value, - }, - }, - }, - custom+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the fill opacity of the bars.' } }, - withFillOpacity(value=80): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\nGradient appearance is influenced by the Fill opacity setting.' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - gradientMode: value, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: 'Controls line width of the bars.' } }, - withLineWidth(value=1): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle: value, - }, - }, - }, - }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: value, - }, - }, - }, - }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: { - mode: value, - }, - }, - }, - }, - }, - }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withBarRadius': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['number'] }], help: 'Controls the radius of each bar.' } }, - withBarRadius(value=0): { - options+: { - barRadius: value, - }, - }, - '#withBarWidth': { 'function': { args: [{ default: 0.96999999999999997, enums: null, name: 'value', type: ['number'] }], help: 'Controls the width of bars. 1 = Max width, 0 = Min width.' } }, - withBarWidth(value=0.96999999999999997): { - options+: { - barWidth: value, - }, - }, - '#withColorByField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Use the color value for a sibling field to color each bar value.' } }, - withColorByField(value): { - options+: { - colorByField: value, - }, - }, - '#withFullHighlight': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Enables mode which highlights the entire bar area and shows tooltip when cursor\nhovers over highlighted area' } }, - withFullHighlight(value=true): { - options+: { - fullHighlight: value, - }, - }, - '#withGroupWidth': { 'function': { args: [{ default: 0.69999999999999996, enums: null, name: 'value', type: ['number'] }], help: 'Controls the width of groups. 1 = max with, 0 = min width.' } }, - withGroupWidth(value=0.69999999999999996): { - options+: { - groupWidth: value, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the orientation of the bar chart, either vertical or horizontal.' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'This controls whether values are shown on top or to the left of bars.' } }, - withShowValue(value): { - options+: { - showValue: value, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls whether bars are stacked or not, either normally or in percent mode.' } }, - withStacking(value): { - options+: { - stacking: value, - }, - }, - '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Manually select which field from the dataset to represent the x field.' } }, - withXField(value): { - options+: { - xField: value, - }, - }, - '#withXTickLabelMaxLength': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Sets the max length that a label can have before it is truncated.' } }, - withXTickLabelMaxLength(value): { - options+: { - xTickLabelMaxLength: value, - }, - }, - '#withXTickLabelRotation': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the rotation of the x axis labels.' } }, - withXTickLabelRotation(value=0): { - options+: { - xTickLabelRotation: value, - }, - }, - '#withXTickLabelSpacing': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the spacing between x axis labels.\nnegative values indicate backwards skipping behavior' } }, - withXTickLabelSpacing(value=0): { - options+: { - xTickLabelSpacing: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'barchart', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barGauge.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barGauge.libsonnet deleted file mode 100644 index 316dff92d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/barGauge.libsonnet +++ /dev/null @@ -1,147 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.barGauge', name: 'barGauge' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptions(value): { - options+: { - reduceOptions: value, - }, - }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { - options+: { - reduceOptions+: value, - }, - }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { - options+: { - reduceOptions+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { - options+: { - reduceOptions+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { - options+: { - reduceOptions+: { - fields: value, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, - withLimit(value): { - options+: { - reduceOptions+: { - limit: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, - withValues(value=true): { - options+: { - reduceOptions+: { - values: value, - }, - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['basic', 'lcd', 'gradient'], name: 'value', type: ['string'] }], help: 'Enum expressing the possible display modes\nfor the bar gauge component of Grafana UI' } }, - withDisplayMode(value): { - options+: { - displayMode: value, - }, - }, - '#withMinVizHeight': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMinVizHeight(value=10): { - options+: { - minVizHeight: value, - }, - }, - '#withMinVizWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMinVizWidth(value=0): { - options+: { - minVizWidth: value, - }, - }, - '#withShowUnfilled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowUnfilled(value=true): { - options+: { - showUnfilled: value, - }, - }, - '#withValueMode': { 'function': { args: [{ default: null, enums: ['color', 'text', 'hidden'], name: 'value', type: ['string'] }], help: 'Allows for the table cell gauge display type to set the gauge mode.' } }, - withValueMode(value): { - options+: { - valueMode: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'bargauge', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/candlestick.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/candlestick.libsonnet deleted file mode 100644 index 3e51f59c8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/candlestick.libsonnet +++ /dev/null @@ -1,8 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.candlestick', name: 'candlestick' }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'candlestick', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/canvas.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/canvas.libsonnet deleted file mode 100644 index 6bbb10171..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/canvas.libsonnet +++ /dev/null @@ -1,8 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.canvas', name: 'canvas' }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'canvas', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/dashboardList.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/dashboardList.libsonnet deleted file mode 100644 index 052ad7ce2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/dashboardList.libsonnet +++ /dev/null @@ -1,91 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.dashboardList', name: 'dashboardList' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withFolderId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withFolderId(value): { - options+: { - folderId: value, - }, - }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIncludeVars(value=true): { - options+: { - includeVars: value, - }, - }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withKeepTime(value=true): { - options+: { - keepTime: value, - }, - }, - '#withMaxItems': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMaxItems(value=10): { - options+: { - maxItems: value, - }, - }, - '#withQuery': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withQuery(value=''): { - options+: { - query: value, - }, - }, - '#withShowHeadings': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowHeadings(value=true): { - options+: { - showHeadings: value, - }, - }, - '#withShowRecentlyViewed': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowRecentlyViewed(value=true): { - options+: { - showRecentlyViewed: value, - }, - }, - '#withShowSearch': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowSearch(value=true): { - options+: { - showSearch: value, - }, - }, - '#withShowStarred': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowStarred(value=true): { - options+: { - showStarred: value, - }, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTags(value): { - options+: { - tags: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTagsMixin(value): { - options+: { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'dashlist', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/datagrid.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/datagrid.libsonnet deleted file mode 100644 index 797951cf2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/datagrid.libsonnet +++ /dev/null @@ -1,25 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.datagrid', name: 'datagrid' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withSelectedSeries': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withSelectedSeries(value=0): { - options+: { - selectedSeries: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'datagrid', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/debug.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/debug.libsonnet deleted file mode 100644 index 09836eebd..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/debug.libsonnet +++ /dev/null @@ -1,97 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.debug', name: 'debug' }, - '#withDebugMode': { 'function': { args: [{ default: null, enums: ['render', 'events', 'cursor', 'State', 'ThrowError'], name: 'value', type: ['string'] }], help: '' } }, - withDebugMode(value): { - DebugMode: value, - }, - '#withUpdateConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUpdateConfig(value): { - UpdateConfig: value, - }, - '#withUpdateConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUpdateConfigMixin(value): { - UpdateConfig+: value, - }, - UpdateConfig+: - { - '#withDataChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withDataChanged(value=true): { - UpdateConfig+: { - dataChanged: value, - }, - }, - '#withRender': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withRender(value=true): { - UpdateConfig+: { - render: value, - }, - }, - '#withSchemaChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSchemaChanged(value=true): { - UpdateConfig+: { - schemaChanged: value, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withCounters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCounters(value): { - options+: { - counters: value, - }, - }, - '#withCountersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCountersMixin(value): { - options+: { - counters+: value, - }, - }, - counters+: - { - '#withDataChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withDataChanged(value=true): { - options+: { - counters+: { - dataChanged: value, - }, - }, - }, - '#withRender': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withRender(value=true): { - options+: { - counters+: { - render: value, - }, - }, - }, - '#withSchemaChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSchemaChanged(value=true): { - options+: { - counters+: { - schemaChanged: value, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['render', 'events', 'cursor', 'State', 'ThrowError'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - mode: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'debug', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/gauge.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/gauge.libsonnet deleted file mode 100644 index 4a9790380..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/gauge.libsonnet +++ /dev/null @@ -1,129 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.gauge', name: 'gauge' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptions(value): { - options+: { - reduceOptions: value, - }, - }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { - options+: { - reduceOptions+: value, - }, - }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { - options+: { - reduceOptions+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { - options+: { - reduceOptions+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { - options+: { - reduceOptions+: { - fields: value, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, - withLimit(value): { - options+: { - reduceOptions+: { - limit: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, - withValues(value=true): { - options+: { - reduceOptions+: { - values: value, - }, - }, - }, - }, - '#withShowThresholdLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowThresholdLabels(value=true): { - options+: { - showThresholdLabels: value, - }, - }, - '#withShowThresholdMarkers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowThresholdMarkers(value=true): { - options+: { - showThresholdMarkers: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'gauge', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/geomap.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/geomap.libsonnet deleted file mode 100644 index c158ead1e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/geomap.libsonnet +++ /dev/null @@ -1,608 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.geomap', name: 'geomap' }, - '#withControlsOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withControlsOptions(value): { - ControlsOptions: value, - }, - '#withControlsOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withControlsOptionsMixin(value): { - ControlsOptions+: value, - }, - ControlsOptions+: - { - '#withMouseWheelZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'let the mouse wheel zoom' } }, - withMouseWheelZoom(value=true): { - ControlsOptions+: { - mouseWheelZoom: value, - }, - }, - '#withShowAttribution': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Lower right' } }, - withShowAttribution(value=true): { - ControlsOptions+: { - showAttribution: value, - }, - }, - '#withShowDebug': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Show debug' } }, - withShowDebug(value=true): { - ControlsOptions+: { - showDebug: value, - }, - }, - '#withShowMeasure': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Show measure' } }, - withShowMeasure(value=true): { - ControlsOptions+: { - showMeasure: value, - }, - }, - '#withShowScale': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Scale options' } }, - withShowScale(value=true): { - ControlsOptions+: { - showScale: value, - }, - }, - '#withShowZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Zoom (upper left)' } }, - withShowZoom(value=true): { - ControlsOptions+: { - showZoom: value, - }, - }, - }, - '#withMapCenterID': { 'function': { args: [{ default: null, enums: ['zero', 'coords', 'fit'], name: 'value', type: ['string'] }], help: '' } }, - withMapCenterID(value): { - MapCenterID: value, - }, - '#withMapViewConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMapViewConfig(value): { - MapViewConfig: value, - }, - '#withMapViewConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMapViewConfigMixin(value): { - MapViewConfig+: value, - }, - MapViewConfig+: - { - '#withAllLayers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAllLayers(value=true): { - MapViewConfig+: { - allLayers: value, - }, - }, - '#withId': { 'function': { args: [{ default: 'zero', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value='zero'): { - MapViewConfig+: { - id: value, - }, - }, - '#withLastOnly': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLastOnly(value=true): { - MapViewConfig+: { - lastOnly: value, - }, - }, - '#withLat': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLat(value=0): { - MapViewConfig+: { - lat: value, - }, - }, - '#withLayer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLayer(value): { - MapViewConfig+: { - layer: value, - }, - }, - '#withLon': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLon(value=0): { - MapViewConfig+: { - lon: value, - }, - }, - '#withMaxZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMaxZoom(value): { - MapViewConfig+: { - maxZoom: value, - }, - }, - '#withMinZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMinZoom(value): { - MapViewConfig+: { - minZoom: value, - }, - }, - '#withPadding': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withPadding(value): { - MapViewConfig+: { - padding: value, - }, - }, - '#withShared': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShared(value=true): { - MapViewConfig+: { - shared: value, - }, - }, - '#withZoom': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withZoom(value=1): { - MapViewConfig+: { - zoom: value, - }, - }, - }, - '#withTooltipMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: ['string'] }], help: '' } }, - withTooltipMode(value): { - TooltipMode: value, - }, - '#withTooltipOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTooltipOptions(value): { - TooltipOptions: value, - }, - '#withTooltipOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTooltipOptionsMixin(value): { - TooltipOptions+: value, - }, - TooltipOptions+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - TooltipOptions+: { - mode: value, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withBasemap': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withBasemap(value): { - options+: { - basemap: value, - }, - }, - '#withBasemapMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withBasemapMixin(value): { - options+: { - basemap+: value, - }, - }, - basemap+: - { - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Custom options depending on the type' } }, - withConfig(value): { - options+: { - basemap+: { - config: value, - }, - }, - }, - '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, - withFilterData(value): { - options+: { - basemap+: { - filterData: value, - }, - }, - }, - '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLocation(value): { - options+: { - basemap+: { - location: value, - }, - }, - }, - '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLocationMixin(value): { - options+: { - basemap+: { - location+: value, - }, - }, - }, - location+: - { - '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Path to Gazetteer' } }, - withGazetteer(value): { - options+: { - basemap+: { - location+: { - gazetteer: value, - }, - }, - }, - }, - '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field mappings' } }, - withGeohash(value): { - options+: { - basemap+: { - location+: { - geohash: value, - }, - }, - }, - }, - '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLatitude(value): { - options+: { - basemap+: { - location+: { - latitude: value, - }, - }, - }, - }, - '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLongitude(value): { - options+: { - basemap+: { - location+: { - longitude: value, - }, - }, - }, - }, - '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLookup(value): { - options+: { - basemap+: { - location+: { - lookup: value, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - basemap+: { - location+: { - mode: value, - }, - }, - }, - }, - '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withWkt(value): { - options+: { - basemap+: { - location+: { - wkt: value, - }, - }, - }, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'configured unique display name' } }, - withName(value): { - options+: { - basemap+: { - name: value, - }, - }, - }, - '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, - withOpacity(value): { - options+: { - basemap+: { - opacity: value, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Check tooltip (defaults to true)' } }, - withTooltip(value=true): { - options+: { - basemap+: { - tooltip: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - options+: { - basemap+: { - type: value, - }, - }, - }, - }, - '#withControls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withControls(value): { - options+: { - controls: value, - }, - }, - '#withControlsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withControlsMixin(value): { - options+: { - controls+: value, - }, - }, - controls+: - { - '#withMouseWheelZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'let the mouse wheel zoom' } }, - withMouseWheelZoom(value=true): { - options+: { - controls+: { - mouseWheelZoom: value, - }, - }, - }, - '#withShowAttribution': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Lower right' } }, - withShowAttribution(value=true): { - options+: { - controls+: { - showAttribution: value, - }, - }, - }, - '#withShowDebug': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Show debug' } }, - withShowDebug(value=true): { - options+: { - controls+: { - showDebug: value, - }, - }, - }, - '#withShowMeasure': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Show measure' } }, - withShowMeasure(value=true): { - options+: { - controls+: { - showMeasure: value, - }, - }, - }, - '#withShowScale': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Scale options' } }, - withShowScale(value=true): { - options+: { - controls+: { - showScale: value, - }, - }, - }, - '#withShowZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Zoom (upper left)' } }, - withShowZoom(value=true): { - options+: { - controls+: { - showZoom: value, - }, - }, - }, - }, - '#withLayers': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withLayers(value): { - options+: { - layers: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withLayersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withLayersMixin(value): { - options+: { - layers+: - (if std.isArray(value) - then value - else [value]), - }, - }, - layers+: - { - '#': { help: '', name: 'layers' }, - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Custom options depending on the type' } }, - withConfig(value): { - config: value, - }, - '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, - withFilterData(value): { - filterData: value, - }, - '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLocation(value): { - location: value, - }, - '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLocationMixin(value): { - location+: value, - }, - location+: - { - '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Path to Gazetteer' } }, - withGazetteer(value): { - location+: { - gazetteer: value, - }, - }, - '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field mappings' } }, - withGeohash(value): { - location+: { - geohash: value, - }, - }, - '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLatitude(value): { - location+: { - latitude: value, - }, - }, - '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLongitude(value): { - location+: { - longitude: value, - }, - }, - '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLookup(value): { - location+: { - lookup: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - location+: { - mode: value, - }, - }, - '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withWkt(value): { - location+: { - wkt: value, - }, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'configured unique display name' } }, - withName(value): { - name: value, - }, - '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, - withOpacity(value): { - opacity: value, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Check tooltip (defaults to true)' } }, - withTooltip(value=true): { - tooltip: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - }, - '#withView': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withView(value): { - options+: { - view: value, - }, - }, - '#withViewMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withViewMixin(value): { - options+: { - view+: value, - }, - }, - view+: - { - '#withAllLayers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAllLayers(value=true): { - options+: { - view+: { - allLayers: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: 'zero', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value='zero'): { - options+: { - view+: { - id: value, - }, - }, - }, - '#withLastOnly': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLastOnly(value=true): { - options+: { - view+: { - lastOnly: value, - }, - }, - }, - '#withLat': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLat(value=0): { - options+: { - view+: { - lat: value, - }, - }, - }, - '#withLayer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLayer(value): { - options+: { - view+: { - layer: value, - }, - }, - }, - '#withLon': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLon(value=0): { - options+: { - view+: { - lon: value, - }, - }, - }, - '#withMaxZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMaxZoom(value): { - options+: { - view+: { - maxZoom: value, - }, - }, - }, - '#withMinZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMinZoom(value): { - options+: { - view+: { - minZoom: value, - }, - }, - }, - '#withPadding': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withPadding(value): { - options+: { - view+: { - padding: value, - }, - }, - }, - '#withShared': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShared(value=true): { - options+: { - view+: { - shared: value, - }, - }, - }, - '#withZoom': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withZoom(value=1): { - options+: { - view+: { - zoom: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'geomap', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/heatmap.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/heatmap.libsonnet deleted file mode 100644 index 945a1756c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/heatmap.libsonnet +++ /dev/null @@ -1,1226 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.heatmap', name: 'heatmap' }, - '#withCellValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value options' } }, - withCellValues(value): { - CellValues: value, - }, - '#withCellValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value options' } }, - withCellValuesMixin(value): { - CellValues+: value, - }, - CellValues+: - { - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the number of decimals for cell values' } }, - withDecimals(value): { - CellValues+: { - decimals: value, - }, - }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the cell value unit' } }, - withUnit(value): { - CellValues+: { - unit: value, - }, - }, - }, - '#withExemplarConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls exemplar options' } }, - withExemplarConfig(value): { - ExemplarConfig: value, - }, - '#withExemplarConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls exemplar options' } }, - withExemplarConfigMixin(value): { - ExemplarConfig+: value, - }, - ExemplarConfig+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the color of the exemplar markers' } }, - withColor(value): { - ExemplarConfig+: { - color: value, - }, - }, - }, - '#withFilterValueRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls the value filter range' } }, - withFilterValueRange(value): { - FilterValueRange: value, - }, - '#withFilterValueRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls the value filter range' } }, - withFilterValueRangeMixin(value): { - FilterValueRange+: value, - }, - FilterValueRange+: - { - '#withGe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the filter range to values greater than or equal to the given value' } }, - withGe(value): { - FilterValueRange+: { - ge: value, - }, - }, - '#withLe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the filter range to values less than or equal to the given value' } }, - withLe(value): { - FilterValueRange+: { - le: value, - }, - }, - }, - '#withHeatmapColorMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: ['string'] }], help: 'Controls the color mode of the heatmap' } }, - withHeatmapColorMode(value): { - HeatmapColorMode: value, - }, - '#withHeatmapColorOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls various color options' } }, - withHeatmapColorOptions(value): { - HeatmapColorOptions: value, - }, - '#withHeatmapColorOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls various color options' } }, - withHeatmapColorOptionsMixin(value): { - HeatmapColorOptions+: value, - }, - HeatmapColorOptions+: - { - '#withExponent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the exponent when scale is set to exponential' } }, - withExponent(value): { - HeatmapColorOptions+: { - exponent: value, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the color fill when in opacity mode' } }, - withFill(value): { - HeatmapColorOptions+: { - fill: value, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the maximum value for the color scale' } }, - withMax(value): { - HeatmapColorOptions+: { - max: value, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the minimum value for the color scale' } }, - withMin(value): { - HeatmapColorOptions+: { - min: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: ['string'] }], help: 'Controls the color mode of the heatmap' } }, - withMode(value): { - HeatmapColorOptions+: { - mode: value, - }, - }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Reverses the color scheme' } }, - withReverse(value=true): { - HeatmapColorOptions+: { - reverse: value, - }, - }, - '#withScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: ['string'] }], help: 'Controls the color scale of the heatmap' } }, - withScale(value): { - HeatmapColorOptions+: { - scale: value, - }, - }, - '#withScheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the color scheme used' } }, - withScheme(value): { - HeatmapColorOptions+: { - scheme: value, - }, - }, - '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the number of color steps' } }, - withSteps(value): { - HeatmapColorOptions+: { - steps: value, - }, - }, - }, - '#withHeatmapColorScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: ['string'] }], help: 'Controls the color scale of the heatmap' } }, - withHeatmapColorScale(value): { - HeatmapColorScale: value, - }, - '#withHeatmapLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls legend options' } }, - withHeatmapLegend(value): { - HeatmapLegend: value, - }, - '#withHeatmapLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls legend options' } }, - withHeatmapLegendMixin(value): { - HeatmapLegend+: value, - }, - HeatmapLegend+: - { - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the legend is shown' } }, - withShow(value=true): { - HeatmapLegend+: { - show: value, - }, - }, - }, - '#withHeatmapTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls tooltip options' } }, - withHeatmapTooltip(value): { - HeatmapTooltip: value, - }, - '#withHeatmapTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls tooltip options' } }, - withHeatmapTooltipMixin(value): { - HeatmapTooltip+: value, - }, - HeatmapTooltip+: - { - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the tooltip is shown' } }, - withShow(value=true): { - HeatmapTooltip+: { - show: value, - }, - }, - '#withYHistogram': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the tooltip shows a histogram of the y-axis values' } }, - withYHistogram(value=true): { - HeatmapTooltip+: { - yHistogram: value, - }, - }, - }, - '#withRowsHeatmapOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls frame rows options' } }, - withRowsHeatmapOptions(value): { - RowsHeatmapOptions: value, - }, - '#withRowsHeatmapOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls frame rows options' } }, - withRowsHeatmapOptionsMixin(value): { - RowsHeatmapOptions+: value, - }, - RowsHeatmapOptions+: - { - '#withLayout': { 'function': { args: [{ default: null, enums: ['le', 'ge', 'unknown', 'auto'], name: 'value', type: ['string'] }], help: '' } }, - withLayout(value): { - RowsHeatmapOptions+: { - layout: value, - }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the name of the cell when not calculating from data' } }, - withValue(value): { - RowsHeatmapOptions+: { - value: value, - }, - }, - }, - '#withYAxisConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration options for the yAxis' } }, - withYAxisConfig(value): { - YAxisConfig: value, - }, - '#withYAxisConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration options for the yAxis' } }, - withYAxisConfigMixin(value): { - YAxisConfig+: value, - }, - YAxisConfig+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - YAxisConfig+: { - axisCenteredZero: value, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - YAxisConfig+: { - axisColorMode: value, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - YAxisConfig+: { - axisGridShow: value, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - YAxisConfig+: { - axisLabel: value, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - YAxisConfig+: { - axisPlacement: value, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - YAxisConfig+: { - axisSoftMax: value, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - YAxisConfig+: { - axisSoftMin: value, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - YAxisConfig+: { - axisWidth: value, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - YAxisConfig+: { - scaleDistribution: value, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - YAxisConfig+: { - scaleDistribution+: value, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - YAxisConfig+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - YAxisConfig+: { - scaleDistribution+: { - log: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - YAxisConfig+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the number of decimals for yAxis values' } }, - withDecimals(value): { - YAxisConfig+: { - decimals: value, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the maximum value for the yAxis' } }, - withMax(value): { - YAxisConfig+: { - max: value, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the minimum value for the yAxis' } }, - withMin(value): { - YAxisConfig+: { - min: value, - }, - }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Reverses the yAxis' } }, - withReverse(value=true): { - YAxisConfig+: { - reverse: value, - }, - }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the yAxis unit' } }, - withUnit(value): { - YAxisConfig+: { - unit: value, - }, - }, - }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfig(value): { - fieldConfig: value, - }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfigMixin(value): { - fieldConfig+: value, - }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaults(value): { - fieldConfig+: { - defaults: value, - }, - }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaultsMixin(value): { - fieldConfig+: { - defaults+: value, - }, - }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCustom(value): { - fieldConfig+: { - defaults+: { - custom: value, - }, - }, - }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCustomMixin(value): { - fieldConfig+: { - defaults+: { - custom+: value, - }, - }, - }, - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withCalculate': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the heatmap should be calculated from data' } }, - withCalculate(value=true): { - options+: { - calculate: value, - }, - }, - '#withCalculation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCalculation(value): { - options+: { - calculation: value, - }, - }, - '#withCalculationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCalculationMixin(value): { - options+: { - calculation+: value, - }, - }, - calculation+: - { - '#withXBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withXBuckets(value): { - options+: { - calculation+: { - xBuckets: value, - }, - }, - }, - '#withXBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withXBucketsMixin(value): { - options+: { - calculation+: { - xBuckets+: value, - }, - }, - }, - xBuckets+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - calculation+: { - xBuckets+: { - mode: value, - }, - }, - }, - }, - '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScale(value): { - options+: { - calculation+: { - xBuckets+: { - scale: value, - }, - }, - }, - }, - '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleMixin(value): { - options+: { - calculation+: { - xBuckets+: { - scale+: value, - }, - }, - }, - }, - scale+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - options+: { - calculation+: { - xBuckets+: { - scale+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - options+: { - calculation+: { - xBuckets+: { - scale+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - options+: { - calculation+: { - xBuckets+: { - scale+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The number of buckets to use for the axis in the heatmap' } }, - withValue(value): { - options+: { - calculation+: { - xBuckets+: { - value: value, - }, - }, - }, - }, - }, - '#withYBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withYBuckets(value): { - options+: { - calculation+: { - yBuckets: value, - }, - }, - }, - '#withYBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withYBucketsMixin(value): { - options+: { - calculation+: { - yBuckets+: value, - }, - }, - }, - yBuckets+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - calculation+: { - yBuckets+: { - mode: value, - }, - }, - }, - }, - '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScale(value): { - options+: { - calculation+: { - yBuckets+: { - scale: value, - }, - }, - }, - }, - '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleMixin(value): { - options+: { - calculation+: { - yBuckets+: { - scale+: value, - }, - }, - }, - }, - scale+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - options+: { - calculation+: { - yBuckets+: { - scale+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - options+: { - calculation+: { - yBuckets+: { - scale+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - options+: { - calculation+: { - yBuckets+: { - scale+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The number of buckets to use for the axis in the heatmap' } }, - withValue(value): { - options+: { - calculation+: { - yBuckets+: { - value: value, - }, - }, - }, - }, - }, - }, - '#withCellGap': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: 'Controls gap between cells' } }, - withCellGap(value=1): { - options+: { - cellGap: value, - }, - }, - '#withCellRadius': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls cell radius' } }, - withCellRadius(value): { - options+: { - cellRadius: value, - }, - }, - '#withCellValues': { 'function': { args: [{ default: {}, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value unit' } }, - withCellValues(value={}): { - options+: { - cellValues: value, - }, - }, - '#withCellValuesMixin': { 'function': { args: [{ default: {}, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value unit' } }, - withCellValuesMixin(value): { - options+: { - cellValues+: value, - }, - }, - cellValues+: - { - '#withCellValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value options' } }, - withCellValues(value): { - options+: { - cellValues+: { - CellValues: value, - }, - }, - }, - '#withCellValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value options' } }, - withCellValuesMixin(value): { - options+: { - cellValues+: { - CellValues+: value, - }, - }, - }, - CellValues+: - { - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the number of decimals for cell values' } }, - withDecimals(value): { - options+: { - cellValues+: { - decimals: value, - }, - }, - }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the cell value unit' } }, - withUnit(value): { - options+: { - cellValues+: { - unit: value, - }, - }, - }, - }, - }, - '#withColor': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: ['object'] }], help: 'Controls the color options' } }, - withColor(value={ exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }): { - options+: { - color: value, - }, - }, - '#withColorMixin': { 'function': { args: [{ default: { exponent: 0.5, fill: 'dark-orange', reverse: false, scheme: 'Oranges', steps: 64 }, enums: null, name: 'value', type: ['object'] }], help: 'Controls the color options' } }, - withColorMixin(value): { - options+: { - color+: value, - }, - }, - color+: - { - '#withHeatmapColorOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls various color options' } }, - withHeatmapColorOptions(value): { - options+: { - color+: { - HeatmapColorOptions: value, - }, - }, - }, - '#withHeatmapColorOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls various color options' } }, - withHeatmapColorOptionsMixin(value): { - options+: { - color+: { - HeatmapColorOptions+: value, - }, - }, - }, - HeatmapColorOptions+: - { - '#withExponent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the exponent when scale is set to exponential' } }, - withExponent(value): { - options+: { - color+: { - exponent: value, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the color fill when in opacity mode' } }, - withFill(value): { - options+: { - color+: { - fill: value, - }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the maximum value for the color scale' } }, - withMax(value): { - options+: { - color+: { - max: value, - }, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the minimum value for the color scale' } }, - withMin(value): { - options+: { - color+: { - min: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: ['string'] }], help: 'Controls the color mode of the heatmap' } }, - withMode(value): { - options+: { - color+: { - mode: value, - }, - }, - }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Reverses the color scheme' } }, - withReverse(value=true): { - options+: { - color+: { - reverse: value, - }, - }, - }, - '#withScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: ['string'] }], help: 'Controls the color scale of the heatmap' } }, - withScale(value): { - options+: { - color+: { - scale: value, - }, - }, - }, - '#withScheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the color scheme used' } }, - withScheme(value): { - options+: { - color+: { - scheme: value, - }, - }, - }, - '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the number of color steps' } }, - withSteps(value): { - options+: { - color+: { - steps: value, - }, - }, - }, - }, - }, - '#withExemplars': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls exemplar options' } }, - withExemplars(value): { - options+: { - exemplars: value, - }, - }, - '#withExemplarsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls exemplar options' } }, - withExemplarsMixin(value): { - options+: { - exemplars+: value, - }, - }, - exemplars+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the color of the exemplar markers' } }, - withColor(value): { - options+: { - exemplars+: { - color: value, - }, - }, - }, - }, - '#withFilterValues': { 'function': { args: [{ default: { le: 1.0000000000000001e-09 }, enums: null, name: 'value', type: ['object'] }], help: 'Filters values between a given range' } }, - withFilterValues(value={ le: 1.0000000000000001e-09 }): { - options+: { - filterValues: value, - }, - }, - '#withFilterValuesMixin': { 'function': { args: [{ default: { le: 1.0000000000000001e-09 }, enums: null, name: 'value', type: ['object'] }], help: 'Filters values between a given range' } }, - withFilterValuesMixin(value): { - options+: { - filterValues+: value, - }, - }, - filterValues+: - { - '#withFilterValueRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls the value filter range' } }, - withFilterValueRange(value): { - options+: { - filterValues+: { - FilterValueRange: value, - }, - }, - }, - '#withFilterValueRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls the value filter range' } }, - withFilterValueRangeMixin(value): { - options+: { - filterValues+: { - FilterValueRange+: value, - }, - }, - }, - FilterValueRange+: - { - '#withGe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the filter range to values greater than or equal to the given value' } }, - withGe(value): { - options+: { - filterValues+: { - ge: value, - }, - }, - }, - '#withLe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the filter range to values less than or equal to the given value' } }, - withLe(value): { - options+: { - filterValues+: { - le: value, - }, - }, - }, - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls legend options' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls legend options' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the legend is shown' } }, - withShow(value=true): { - options+: { - legend+: { - show: value, - }, - }, - }, - }, - '#withRowsFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls frame rows options' } }, - withRowsFrame(value): { - options+: { - rowsFrame: value, - }, - }, - '#withRowsFrameMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls frame rows options' } }, - withRowsFrameMixin(value): { - options+: { - rowsFrame+: value, - }, - }, - rowsFrame+: - { - '#withLayout': { 'function': { args: [{ default: null, enums: ['le', 'ge', 'unknown', 'auto'], name: 'value', type: ['string'] }], help: '' } }, - withLayout(value): { - options+: { - rowsFrame+: { - layout: value, - }, - }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the name of the cell when not calculating from data' } }, - withValue(value): { - options+: { - rowsFrame+: { - value: value, - }, - }, - }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '| *{\n\tlayout: ui.HeatmapCellLayout & "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' } }, - withShowValue(value): { - options+: { - showValue: value, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls tooltip options' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls tooltip options' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the tooltip is shown' } }, - withShow(value=true): { - options+: { - tooltip+: { - show: value, - }, - }, - }, - '#withYHistogram': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the tooltip shows a histogram of the y-axis values' } }, - withYHistogram(value=true): { - options+: { - tooltip+: { - yHistogram: value, - }, - }, - }, - }, - '#withYAxis': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration options for the yAxis' } }, - withYAxis(value): { - options+: { - yAxis: value, - }, - }, - '#withYAxisMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration options for the yAxis' } }, - withYAxisMixin(value): { - options+: { - yAxis+: value, - }, - }, - yAxis+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - options+: { - yAxis+: { - axisCenteredZero: value, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - options+: { - yAxis+: { - axisColorMode: value, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - options+: { - yAxis+: { - axisGridShow: value, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - options+: { - yAxis+: { - axisLabel: value, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - options+: { - yAxis+: { - axisPlacement: value, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - options+: { - yAxis+: { - axisSoftMax: value, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - options+: { - yAxis+: { - axisSoftMin: value, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - options+: { - yAxis+: { - axisWidth: value, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - options+: { - yAxis+: { - scaleDistribution: value, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - options+: { - yAxis+: { - scaleDistribution+: value, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - options+: { - yAxis+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - options+: { - yAxis+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - options+: { - yAxis+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the number of decimals for yAxis values' } }, - withDecimals(value): { - options+: { - yAxis+: { - decimals: value, - }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the maximum value for the yAxis' } }, - withMax(value): { - options+: { - yAxis+: { - max: value, - }, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the minimum value for the yAxis' } }, - withMin(value): { - options+: { - yAxis+: { - min: value, - }, - }, - }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Reverses the yAxis' } }, - withReverse(value=true): { - options+: { - yAxis+: { - reverse: value, - }, - }, - }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the yAxis unit' } }, - withUnit(value): { - options+: { - yAxis+: { - unit: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'heatmap', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/histogram.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/histogram.libsonnet deleted file mode 100644 index a37d0dff9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/histogram.libsonnet +++ /dev/null @@ -1,442 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.histogram', name: 'histogram' }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfig(value): { - fieldConfig: value, - }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfigMixin(value): { - fieldConfig+: value, - }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaults(value): { - fieldConfig+: { - defaults: value, - }, - }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaultsMixin(value): { - fieldConfig+: { - defaults+: value, - }, - }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCustom(value): { - fieldConfig+: { - defaults+: { - custom: value, - }, - }, - }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCustomMixin(value): { - fieldConfig+: { - defaults+: { - custom+: value, - }, - }, - }, - custom+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the fill opacity of the bars.' } }, - withFillOpacity(value=80): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\nGradient appearance is influenced by the Fill opacity setting.' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - gradientMode: value, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: 'Controls line width of the bars.' } }, - withLineWidth(value=1): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withBucketOffset': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Offset buckets by this amount' } }, - withBucketOffset(value=0): { - options+: { - bucketOffset: value, - }, - }, - '#withBucketSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Size of each bucket' } }, - withBucketSize(value): { - options+: { - bucketSize: value, - }, - }, - '#withCombine': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Combines multiple series into a single histogram' } }, - withCombine(value=true): { - options+: { - combine: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'histogram', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/logs.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/logs.libsonnet deleted file mode 100644 index 6ec0efb12..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/logs.libsonnet +++ /dev/null @@ -1,67 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.logs', name: 'logs' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withDedupStrategy': { 'function': { args: [{ default: null, enums: ['none', 'exact', 'numbers', 'signature'], name: 'value', type: ['string'] }], help: '' } }, - withDedupStrategy(value): { - options+: { - dedupStrategy: value, - }, - }, - '#withEnableLogDetails': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withEnableLogDetails(value=true): { - options+: { - enableLogDetails: value, - }, - }, - '#withPrettifyLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withPrettifyLogMessage(value=true): { - options+: { - prettifyLogMessage: value, - }, - }, - '#withShowCommonLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowCommonLabels(value=true): { - options+: { - showCommonLabels: value, - }, - }, - '#withShowLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLabels(value=true): { - options+: { - showLabels: value, - }, - }, - '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowTime(value=true): { - options+: { - showTime: value, - }, - }, - '#withSortOrder': { 'function': { args: [{ default: null, enums: ['Descending', 'Ascending'], name: 'value', type: ['string'] }], help: '' } }, - withSortOrder(value): { - options+: { - sortOrder: value, - }, - }, - '#withWrapLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withWrapLogMessage(value=true): { - options+: { - wrapLogMessage: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'logs', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/news.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/news.libsonnet deleted file mode 100644 index c1514d0e1..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/news.libsonnet +++ /dev/null @@ -1,31 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.news', name: 'news' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withFeedUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'empty/missing will default to grafana blog' } }, - withFeedUrl(value): { - options+: { - feedUrl: value, - }, - }, - '#withShowImage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowImage(value=true): { - options+: { - showImage: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'news', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/nodeGraph.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/nodeGraph.libsonnet deleted file mode 100644 index 1bd6a4887..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/nodeGraph.libsonnet +++ /dev/null @@ -1,214 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.nodeGraph', name: 'nodeGraph' }, - '#withArcOption': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withArcOption(value): { - ArcOption: value, - }, - '#withArcOptionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withArcOptionMixin(value): { - ArcOption+: value, - }, - ArcOption+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The color of the arc.' } }, - withColor(value): { - ArcOption+: { - color: value, - }, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, - withField(value): { - ArcOption+: { - field: value, - }, - }, - }, - '#withEdgeOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withEdgeOptions(value): { - EdgeOptions: value, - }, - '#withEdgeOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withEdgeOptionsMixin(value): { - EdgeOptions+: value, - }, - EdgeOptions+: - { - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { - EdgeOptions+: { - mainStatUnit: value, - }, - }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { - EdgeOptions+: { - secondaryStatUnit: value, - }, - }, - }, - '#withNodeOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withNodeOptions(value): { - NodeOptions: value, - }, - '#withNodeOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withNodeOptionsMixin(value): { - NodeOptions+: value, - }, - NodeOptions+: - { - '#withArcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcs(value): { - NodeOptions+: { - arcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withArcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcsMixin(value): { - NodeOptions+: { - arcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - arcs+: - { - '#': { help: '', name: 'arcs' }, - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The color of the arc.' } }, - withColor(value): { - color: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, - withField(value): { - field: value, - }, - }, - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { - NodeOptions+: { - mainStatUnit: value, - }, - }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { - NodeOptions+: { - secondaryStatUnit: value, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withEdges': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withEdges(value): { - options+: { - edges: value, - }, - }, - '#withEdgesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withEdgesMixin(value): { - options+: { - edges+: value, - }, - }, - edges+: - { - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { - options+: { - edges+: { - mainStatUnit: value, - }, - }, - }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { - options+: { - edges+: { - secondaryStatUnit: value, - }, - }, - }, - }, - '#withNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withNodes(value): { - options+: { - nodes: value, - }, - }, - '#withNodesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withNodesMixin(value): { - options+: { - nodes+: value, - }, - }, - nodes+: - { - '#withArcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcs(value): { - options+: { - nodes+: { - arcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withArcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcsMixin(value): { - options+: { - nodes+: { - arcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - arcs+: - { - '#': { help: '', name: 'arcs' }, - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The color of the arc.' } }, - withColor(value): { - color: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, - withField(value): { - field: value, - }, - }, - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { - options+: { - nodes+: { - mainStatUnit: value, - }, - }, - }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { - options+: { - nodes+: { - secondaryStatUnit: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'nodeGraph', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/pieChart.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/pieChart.libsonnet deleted file mode 100644 index 1e2420e74..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/pieChart.libsonnet +++ /dev/null @@ -1,506 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.pieChart', name: 'pieChart' }, - '#withPieChartLabels': { 'function': { args: [{ default: null, enums: ['name', 'value', 'percent'], name: 'value', type: ['string'] }], help: 'Select labels to display on the pie chart.\n - Name - The series or field name.\n - Percent - The percentage of the whole.\n - Value - The raw numerical value.' } }, - withPieChartLabels(value): { - PieChartLabels: value, - }, - '#withPieChartLegendOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPieChartLegendOptions(value): { - PieChartLegendOptions: value, - }, - '#withPieChartLegendOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPieChartLegendOptionsMixin(value): { - PieChartLegendOptions+: value, - }, - PieChartLegendOptions+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - PieChartLegendOptions+: { - asTable: value, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - PieChartLegendOptions+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - PieChartLegendOptions+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - PieChartLegendOptions+: { - displayMode: value, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - PieChartLegendOptions+: { - isVisible: value, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - PieChartLegendOptions+: { - placement: value, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - PieChartLegendOptions+: { - showLegend: value, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - PieChartLegendOptions+: { - sortBy: value, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - PieChartLegendOptions+: { - sortDesc: value, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - PieChartLegendOptions+: { - width: value, - }, - }, - '#withValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withValues(value): { - PieChartLegendOptions+: { - values: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withValuesMixin(value): { - PieChartLegendOptions+: { - values+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withPieChartLegendValues': { 'function': { args: [{ default: null, enums: ['value', 'percent'], name: 'value', type: ['string'] }], help: 'Select values to display in the legend.\n - Percent: The percentage of the whole.\n - Value: The raw numerical value.' } }, - withPieChartLegendValues(value): { - PieChartLegendValues: value, - }, - '#withPieChartType': { 'function': { args: [{ default: null, enums: ['pie', 'donut'], name: 'value', type: ['string'] }], help: 'Select the pie chart display style.' } }, - withPieChartType(value): { - PieChartType: value, - }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfig(value): { - fieldConfig: value, - }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfigMixin(value): { - fieldConfig+: value, - }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaults(value): { - fieldConfig+: { - defaults: value, - }, - }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaultsMixin(value): { - fieldConfig+: { - defaults+: value, - }, - }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withCustom(value): { - fieldConfig+: { - defaults+: { - custom: value, - }, - }, - }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withCustomMixin(value): { - fieldConfig+: { - defaults+: { - custom+: value, - }, - }, - }, - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptions(value): { - options+: { - reduceOptions: value, - }, - }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { - options+: { - reduceOptions+: value, - }, - }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { - options+: { - reduceOptions+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { - options+: { - reduceOptions+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { - options+: { - reduceOptions+: { - fields: value, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, - withLimit(value): { - options+: { - reduceOptions+: { - limit: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, - withValues(value=true): { - options+: { - reduceOptions+: { - values: value, - }, - }, - }, - }, - '#withDisplayLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDisplayLabels(value): { - options+: { - displayLabels: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withDisplayLabelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDisplayLabelsMixin(value): { - options+: { - displayLabels+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withValues(value): { - options+: { - legend+: { - values: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withValuesMixin(value): { - options+: { - legend+: { - values+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - '#withPieType': { 'function': { args: [{ default: null, enums: ['pie', 'donut'], name: 'value', type: ['string'] }], help: 'Select the pie chart display style.' } }, - withPieType(value): { - options+: { - pieType: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'piechart', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/row.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/row.libsonnet deleted file mode 100644 index a516fdc4c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/row.libsonnet +++ /dev/null @@ -1,103 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.row', name: 'row' }, - '#withCollapsed': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withCollapsed(value=true): { - collapsed: value, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Name of default datasource.' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Name of default datasource.' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - datasource+: { - type: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withGridPos': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withGridPos(value): { - gridPos: value, - }, - '#withGridPosMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withGridPosMixin(value): { - gridPos+: value, - }, - gridPos+: - { - '#withH': { 'function': { args: [{ default: 9, enums: null, name: 'value', type: ['integer'] }], help: 'Panel' } }, - withH(value=9): { - gridPos+: { - h: value, - }, - }, - '#withStatic': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if fixed' } }, - withStatic(value=true): { - gridPos+: { - static: value, - }, - }, - '#withW': { 'function': { args: [{ default: 12, enums: null, name: 'value', type: ['integer'] }], help: 'Panel' } }, - withW(value=12): { - gridPos+: { - w: value, - }, - }, - '#withX': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel x' } }, - withX(value=0): { - gridPos+: { - x: value, - }, - }, - '#withY': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel y' } }, - withY(value=0): { - gridPos+: { - y: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withPanels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPanels(value): { - panels: - (if std.isArray(value) - then value - else [value]), - }, - '#withPanelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPanelsMixin(value): { - panels+: - (if std.isArray(value) - then value - else [value]), - }, - '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of template variable to repeat for.' } }, - withRepeat(value): { - repeat: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - title: value, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'row', - }, -} -+ (import '../../custom/row.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stat.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stat.libsonnet deleted file mode 100644 index eb37e5674..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stat.libsonnet +++ /dev/null @@ -1,141 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.stat', name: 'stat' }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptions(value): { - options+: { - reduceOptions: value, - }, - }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { - options+: { - reduceOptions+: value, - }, - }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { - options+: { - reduceOptions+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { - options+: { - reduceOptions+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { - options+: { - reduceOptions+: { - fields: value, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, - withLimit(value): { - options+: { - reduceOptions+: { - limit: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, - withValues(value=true): { - options+: { - reduceOptions+: { - values: value, - }, - }, - }, - }, - '#withColorMode': { 'function': { args: [{ default: null, enums: ['value', 'background', 'background_solid', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withColorMode(value): { - options+: { - colorMode: value, - }, - }, - '#withGraphMode': { 'function': { args: [{ default: null, enums: ['none', 'line', 'area'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGraphMode(value): { - options+: { - graphMode: value, - }, - }, - '#withJustifyMode': { 'function': { args: [{ default: null, enums: ['auto', 'center'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withJustifyMode(value): { - options+: { - justifyMode: value, - }, - }, - '#withTextMode': { 'function': { args: [{ default: null, enums: ['auto', 'value', 'value_and_name', 'name', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withTextMode(value): { - options+: { - textMode: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'stat', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stateTimeline.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stateTimeline.libsonnet deleted file mode 100644 index d5ebfee5e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/stateTimeline.libsonnet +++ /dev/null @@ -1,317 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.stateTimeline', name: 'stateTimeline' }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfig(value): { - fieldConfig: value, - }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfigMixin(value): { - fieldConfig+: value, - }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaults(value): { - fieldConfig+: { - defaults: value, - }, - }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaultsMixin(value): { - fieldConfig+: { - defaults+: value, - }, - }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCustom(value): { - fieldConfig+: { - defaults+: { - custom: value, - }, - }, - }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCustomMixin(value): { - fieldConfig+: { - defaults+: { - custom+: value, - }, - }, - }, - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withFillOpacity(value=70): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLineWidth(value=0): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezone(value): { - options+: { - timezone: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezoneMixin(value): { - options+: { - timezone+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withAlignValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls value alignment on the timelines' } }, - withAlignValue(value): { - options+: { - alignValue: value, - }, - }, - '#withMergeValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Merge equal consecutive values' } }, - withMergeValues(value=true): { - options+: { - mergeValues: value, - }, - }, - '#withRowHeight': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: ['number'] }], help: 'Controls the row height' } }, - withRowHeight(value=0.90000000000000002): { - options+: { - rowHeight: value, - }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Show timeline values on chart' } }, - withShowValue(value): { - options+: { - showValue: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'state-timeline', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/statusHistory.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/statusHistory.libsonnet deleted file mode 100644 index 5785c6a67..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/statusHistory.libsonnet +++ /dev/null @@ -1,311 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.statusHistory', name: 'statusHistory' }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfig(value): { - fieldConfig: value, - }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfigMixin(value): { - fieldConfig+: value, - }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaults(value): { - fieldConfig+: { - defaults: value, - }, - }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaultsMixin(value): { - fieldConfig+: { - defaults+: value, - }, - }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCustom(value): { - fieldConfig+: { - defaults+: { - custom: value, - }, - }, - }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCustomMixin(value): { - fieldConfig+: { - defaults+: { - custom+: value, - }, - }, - }, - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withFillOpacity(value=70): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLineWidth(value=1): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezone(value): { - options+: { - timezone: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezoneMixin(value): { - options+: { - timezone+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withColWidth': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: ['number'] }], help: 'Controls the column width' } }, - withColWidth(value=0.90000000000000002): { - options+: { - colWidth: value, - }, - }, - '#withRowHeight': { 'function': { args: [{ default: 0.90000000000000002, enums: null, name: 'value', type: ['number'] }], help: 'Set the height of the rows' } }, - withRowHeight(value=0.90000000000000002): { - options+: { - rowHeight: value, - }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Show values on the columns' } }, - withShowValue(value): { - options+: { - showValue: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'status-history', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/table.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/table.libsonnet deleted file mode 100644 index d9f945090..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/table.libsonnet +++ /dev/null @@ -1,1241 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.table', name: 'table' }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfig(value): { - fieldConfig: value, - }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfigMixin(value): { - fieldConfig+: value, - }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaults(value): { - fieldConfig+: { - defaults: value, - }, - }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaultsMixin(value): { - fieldConfig+: { - defaults+: value, - }, - }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Field options for each field within a table (e.g 10, "The String", 64.20, etc.) Generally defines alignment, filtering capabilties, display options, etc.' } }, - withCustom(value): { - fieldConfig+: { - defaults+: { - custom: value, - }, - }, - }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Field options for each field within a table (e.g 10, "The String", 64.20, etc.) Generally defines alignment, filtering capabilties, display options, etc.' } }, - withCustomMixin(value): { - fieldConfig+: { - defaults+: { - custom+: value, - }, - }, - }, - custom+: - { - '#withAlign': { 'function': { args: [{ default: null, enums: ['auto', 'left', 'right', 'center'], name: 'value', type: ['string'] }], help: 'TODO -- should not be table specific! TODO docs' } }, - withAlign(value): { - fieldConfig+: { - defaults+: { - custom+: { - align: value, - }, - }, - }, - }, - '#withCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object', 'object', 'object', 'object', 'object', 'object'] }], help: 'Table cell options. Each cell has a display mode and other potential options for that display.' } }, - withCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions: value, - }, - }, - }, - }, - '#withCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object', 'object', 'object', 'object', 'object', 'object'] }], help: 'Table cell options. Each cell has a display mode and other potential options for that display.' } }, - withCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: value, - }, - }, - }, - }, - cellOptions+: - { - '#withTableAutoCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Auto mode table cell options' } }, - withTableAutoCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableAutoCellOptions: value, - }, - }, - }, - }, - }, - '#withTableAutoCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Auto mode table cell options' } }, - withTableAutoCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableAutoCellOptions+: value, - }, - }, - }, - }, - }, - TableAutoCellOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'auto', - }, - }, - }, - }, - }, - }, - '#withTableSparklineCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Sparkline cell options' } }, - withTableSparklineCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableSparklineCellOptions: value, - }, - }, - }, - }, - }, - '#withTableSparklineCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Sparkline cell options' } }, - withTableSparklineCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableSparklineCellOptions+: value, - }, - }, - }, - }, - }, - TableSparklineCellOptions+: - { - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisCenteredZero: value, - }, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['series', 'text'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisColorMode: value, - }, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisGridShow: value, - }, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisLabel: value, - }, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'bottom', 'hidden', 'left', 'right', 'top'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisPlacement: value, - }, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisSoftMax: value, - }, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisSoftMin: value, - }, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisWidth: value, - }, - }, - }, - }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [1, -1, 0], name: 'value', type: ['number'] }], help: 'TODO docs' } }, - withBarAlignment(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - barAlignment: value, - }, - }, - }, - }, - }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarMaxWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - barMaxWidth: value, - }, - }, - }, - }, - }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarWidthFactor(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - barWidthFactor: value, - }, - }, - }, - }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['bars', 'line', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withDrawStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - drawStyle: value, - }, - }, - }, - }, - }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillBelowTo(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - fillBelowTo: value, - }, - }, - }, - }, - }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - fillColor: value, - }, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFillOpacity(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - fillOpacity: value, - }, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['hue', 'none', 'opacity', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - gradientMode: value, - }, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom: value, - }, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom+: value, - }, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLineColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineColor: value, - }, - }, - }, - }, - }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepAfter', 'stepBefore'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLineInterpolation(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineInterpolation: value, - }, - }, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle: value, - }, - }, - }, - }, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle+: value, - }, - }, - }, - }, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle+: { - fill: value, - }, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLineWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineWidth: value, - }, - }, - }, - }, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - pointColor: value, - }, - }, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withPointSize(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - pointSize: value, - }, - }, - }, - }, - }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointSymbol(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - pointSymbol: value, - }, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution: value, - }, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution+: value, - }, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['always', 'auto', 'never'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowPoints(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - showPoints: value, - }, - }, - }, - }, - }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected. When the value is a number, it represents the maximum delta in the X axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - spanNulls: value, - }, - }, - }, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStacking(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - stacking: value, - }, - }, - }, - }, - }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStackingMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - stacking+: value, - }, - }, - }, - }, - }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroup(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - stacking+: { - group: value, - }, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - stacking+: { - mode: value, - }, - }, - }, - }, - }, - }, - }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - thresholdsStyle: value, - }, - }, - }, - }, - }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - thresholdsStyle+: value, - }, - }, - }, - }, - }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['area', 'dashed', 'dashed+area', 'line', 'line+area', 'off', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - thresholdsStyle+: { - mode: value, - }, - }, - }, - }, - }, - }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withTransform(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - transform: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'sparkline', - }, - }, - }, - }, - }, - }, - '#withTableBarGaugeCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Gauge cell options' } }, - withTableBarGaugeCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableBarGaugeCellOptions: value, - }, - }, - }, - }, - }, - '#withTableBarGaugeCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Gauge cell options' } }, - withTableBarGaugeCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableBarGaugeCellOptions+: value, - }, - }, - }, - }, - }, - TableBarGaugeCellOptions+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['basic', 'gradient', 'lcd'], name: 'value', type: ['string'] }], help: 'Enum expressing the possible display modes for the bar gauge component of Grafana UI' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - mode: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'gauge', - }, - }, - }, - }, - }, - '#withValueDisplayMode': { 'function': { args: [{ default: null, enums: ['color', 'hidden', 'text'], name: 'value', type: ['string'] }], help: 'Allows for the table cell gauge display type to set the gauge mode.' } }, - withValueDisplayMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - valueDisplayMode: value, - }, - }, - }, - }, - }, - }, - '#withTableColoredBackgroundCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored background cell options' } }, - withTableColoredBackgroundCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableColoredBackgroundCellOptions: value, - }, - }, - }, - }, - }, - '#withTableColoredBackgroundCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored background cell options' } }, - withTableColoredBackgroundCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableColoredBackgroundCellOptions+: value, - }, - }, - }, - }, - }, - TableColoredBackgroundCellOptions+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['basic', 'gradient'], name: 'value', type: ['string'] }], help: 'Display mode to the "Colored Background" display mode for table cells. Either displays a solid color (basic mode) or a gradient.' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - mode: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'color-background', - }, - }, - }, - }, - }, - }, - '#withTableColorTextCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored text cell options' } }, - withTableColorTextCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableColorTextCellOptions: value, - }, - }, - }, - }, - }, - '#withTableColorTextCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored text cell options' } }, - withTableColorTextCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableColorTextCellOptions+: value, - }, - }, - }, - }, - }, - TableColorTextCellOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'color-text', - }, - }, - }, - }, - }, - }, - '#withTableImageCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, - withTableImageCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableImageCellOptions: value, - }, - }, - }, - }, - }, - '#withTableImageCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, - withTableImageCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableImageCellOptions+: value, - }, - }, - }, - }, - }, - TableImageCellOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'image', - }, - }, - }, - }, - }, - }, - '#withTableJsonViewCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, - withTableJsonViewCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableJsonViewCellOptions: value, - }, - }, - }, - }, - }, - '#withTableJsonViewCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, - withTableJsonViewCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableJsonViewCellOptions+: value, - }, - }, - }, - }, - }, - TableJsonViewCellOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'json-view', - }, - }, - }, - }, - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['auto', 'basic', 'color-background', 'color-background-solid', 'color-text', 'custom', 'gauge', 'gradient-gauge', 'image', 'json-view', 'lcd-gauge', 'sparkline'], name: 'value', type: ['string'] }], help: "Internally, this is the \"type\" of cell that's being displayed in the table such as colored text, JSON, gauge, etc. The color-background-solid, gradient-gauge, and lcd-gauge modes are deprecated in favor of new cell subOptions" } }, - withDisplayMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - displayMode: value, - }, - }, - }, - }, - '#withFilterable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withFilterable(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - filterable: value, - }, - }, - }, - }, - '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHidden(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hidden: value, - }, - }, - }, - }, - '#withHideHeader': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Hides any header for a column, usefull for columns that show some static content or buttons.' } }, - withHideHeader(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideHeader: value, - }, - }, - }, - }, - '#withInspect': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withInspect(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - inspect: value, - }, - }, - }, - }, - '#withMinWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMinWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - minWidth: value, - }, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - width: value, - }, - }, - }, - }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withCellHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the height of the rows' } }, - withCellHeight(value): { - options+: { - cellHeight: value, - }, - }, - '#withFooter': { 'function': { args: [{ default: { countRows: false, reducer: [], show: false }, enums: null, name: 'value', type: ['object'] }], help: 'Controls footer options' } }, - withFooter(value={ countRows: false, reducer: [], show: false }): { - options+: { - footer: value, - }, - }, - '#withFooterMixin': { 'function': { args: [{ default: { countRows: false, reducer: [], show: false }, enums: null, name: 'value', type: ['object'] }], help: 'Controls footer options' } }, - withFooterMixin(value): { - options+: { - footer+: value, - }, - }, - footer+: - { - '#withTableFooterOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Footer options' } }, - withTableFooterOptions(value): { - options+: { - footer+: { - TableFooterOptions: value, - }, - }, - }, - '#withTableFooterOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Footer options' } }, - withTableFooterOptionsMixin(value): { - options+: { - footer+: { - TableFooterOptions+: value, - }, - }, - }, - TableFooterOptions+: - { - '#withCountRows': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withCountRows(value=true): { - options+: { - footer+: { - countRows: value, - }, - }, - }, - '#withEnablePagination': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withEnablePagination(value=true): { - options+: { - footer+: { - enablePagination: value, - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFields(value): { - options+: { - footer+: { - fields: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFieldsMixin(value): { - options+: { - footer+: { - fields+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withReducer(value): { - options+: { - footer+: { - reducer: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withReducerMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withReducerMixin(value): { - options+: { - footer+: { - reducer+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShow(value=true): { - options+: { - footer+: { - show: value, - }, - }, - }, - }, - }, - '#withFrameIndex': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['number'] }], help: 'Represents the index of the selected frame' } }, - withFrameIndex(value=0): { - options+: { - frameIndex: value, - }, - }, - '#withShowHeader': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls whether the panel should show the header' } }, - withShowHeader(value=true): { - options+: { - showHeader: value, - }, - }, - '#withShowTypeIcons': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls whether the header should show icons for the column types' } }, - withShowTypeIcons(value=true): { - options+: { - showTypeIcons: value, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Used to control row sorting' } }, - withSortBy(value): { - options+: { - sortBy: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withSortByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Used to control row sorting' } }, - withSortByMixin(value): { - options+: { - sortBy+: - (if std.isArray(value) - then value - else [value]), - }, - }, - sortBy+: - { - '#': { help: '', name: 'sortBy' }, - '#withDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Flag used to indicate descending sort order' } }, - withDesc(value=true): { - desc: value, - }, - '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the display name of the field to sort by' } }, - withDisplayName(value): { - displayName: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'table', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/text.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/text.libsonnet deleted file mode 100644 index 97621b424..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/text.libsonnet +++ /dev/null @@ -1,107 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.text', name: 'text' }, - '#withCodeLanguage': { 'function': { args: [{ default: 'plaintext', enums: ['plaintext', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'json'], name: 'value', type: ['string'] }], help: '' } }, - withCodeLanguage(value='plaintext'): { - CodeLanguage: value, - }, - '#withCodeOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCodeOptions(value): { - CodeOptions: value, - }, - '#withCodeOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCodeOptionsMixin(value): { - CodeOptions+: value, - }, - CodeOptions+: - { - '#withLanguage': { 'function': { args: [{ default: 'plaintext', enums: ['plaintext', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'json'], name: 'value', type: ['string'] }], help: '' } }, - withLanguage(value='plaintext'): { - CodeOptions+: { - language: value, - }, - }, - '#withShowLineNumbers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLineNumbers(value=true): { - CodeOptions+: { - showLineNumbers: value, - }, - }, - '#withShowMiniMap': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowMiniMap(value=true): { - CodeOptions+: { - showMiniMap: value, - }, - }, - }, - '#withTextMode': { 'function': { args: [{ default: null, enums: ['html', 'markdown', 'code'], name: 'value', type: ['string'] }], help: '' } }, - withTextMode(value): { - TextMode: value, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withCode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCode(value): { - options+: { - code: value, - }, - }, - '#withCodeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCodeMixin(value): { - options+: { - code+: value, - }, - }, - code+: - { - '#withLanguage': { 'function': { args: [{ default: 'plaintext', enums: ['plaintext', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'json'], name: 'value', type: ['string'] }], help: '' } }, - withLanguage(value='plaintext'): { - options+: { - code+: { - language: value, - }, - }, - }, - '#withShowLineNumbers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLineNumbers(value=true): { - options+: { - code+: { - showLineNumbers: value, - }, - }, - }, - '#withShowMiniMap': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowMiniMap(value=true): { - options+: { - code+: { - showMiniMap: value, - }, - }, - }, - }, - '#withContent': { 'function': { args: [{ default: '# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withContent(value='# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)'): { - options+: { - content: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['html', 'markdown', 'code'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - mode: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'text', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/timeSeries.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/timeSeries.libsonnet deleted file mode 100644 index 8b84f1f30..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/timeSeries.libsonnet +++ /dev/null @@ -1,739 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.timeSeries', name: 'timeSeries' }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfig(value): { - fieldConfig: value, - }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfigMixin(value): { - fieldConfig+: value, - }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaults(value): { - fieldConfig+: { - defaults: value, - }, - }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaultsMixin(value): { - fieldConfig+: { - defaults+: value, - }, - }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withCustom(value): { - fieldConfig+: { - defaults+: { - custom: value, - }, - }, - }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withCustomMixin(value): { - fieldConfig+: { - defaults+: { - custom+: value, - }, - }, - }, - custom+: - { - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLineColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineColor: value, - }, - }, - }, - }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLineInterpolation(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineInterpolation: value, - }, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle: value, - }, - }, - }, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: value, - }, - }, - }, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - fill: value, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLineWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls: value, - }, - }, - }, - }, - '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNullsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls+: value, - }, - }, - }, - }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillBelowTo(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillBelowTo: value, - }, - }, - }, - }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillColor: value, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFillOpacity(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointColor: value, - }, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withPointSize(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize: value, - }, - }, - }, - }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointSymbol(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSymbol: value, - }, - }, - }, - }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowPoints(value): { - fieldConfig+: { - defaults+: { - custom+: { - showPoints: value, - }, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: ['integer'] }], help: 'TODO docs' } }, - withBarAlignment(value): { - fieldConfig+: { - defaults+: { - custom+: { - barAlignment: value, - }, - }, - }, - }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarMaxWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - barMaxWidth: value, - }, - }, - }, - }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarWidthFactor(value): { - fieldConfig+: { - defaults+: { - custom+: { - barWidthFactor: value, - }, - }, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStacking(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking: value, - }, - }, - }, - }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStackingMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: value, - }, - }, - }, - }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroup(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - group: value, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withDrawStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - drawStyle: value, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - gradientMode: value, - }, - }, - }, - }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle: value, - }, - }, - }, - }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: value, - }, - }, - }, - }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withTransform(value): { - fieldConfig+: { - defaults+: { - custom+: { - transform: value, - }, - }, - }, - }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezone(value): { - options+: { - timezone: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezoneMixin(value): { - options+: { - timezone+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'timeseries', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/trend.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/trend.libsonnet deleted file mode 100644 index 890dadc61..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/trend.libsonnet +++ /dev/null @@ -1,727 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.trend', name: 'trend' }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfig(value): { - fieldConfig: value, - }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldConfigMixin(value): { - fieldConfig+: value, - }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaults(value): { - fieldConfig+: { - defaults: value, - }, - }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDefaultsMixin(value): { - fieldConfig+: { - defaults+: value, - }, - }, - defaults+: - { - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withCustom(value): { - fieldConfig+: { - defaults+: { - custom: value, - }, - }, - }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withCustomMixin(value): { - fieldConfig+: { - defaults+: { - custom+: value, - }, - }, - }, - custom+: - { - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLineColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineColor: value, - }, - }, - }, - }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLineInterpolation(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineInterpolation: value, - }, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle: value, - }, - }, - }, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: value, - }, - }, - }, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - fill: value, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLineWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls: value, - }, - }, - }, - }, - '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNullsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls+: value, - }, - }, - }, - }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillBelowTo(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillBelowTo: value, - }, - }, - }, - }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillColor: value, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFillOpacity(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointColor: value, - }, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withPointSize(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize: value, - }, - }, - }, - }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointSymbol(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSymbol: value, - }, - }, - }, - }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowPoints(value): { - fieldConfig+: { - defaults+: { - custom+: { - showPoints: value, - }, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: ['integer'] }], help: 'TODO docs' } }, - withBarAlignment(value): { - fieldConfig+: { - defaults+: { - custom+: { - barAlignment: value, - }, - }, - }, - }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarMaxWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - barMaxWidth: value, - }, - }, - }, - }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarWidthFactor(value): { - fieldConfig+: { - defaults+: { - custom+: { - barWidthFactor: value, - }, - }, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStacking(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking: value, - }, - }, - }, - }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStackingMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: value, - }, - }, - }, - }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroup(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - group: value, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withDrawStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - drawStyle: value, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - gradientMode: value, - }, - }, - }, - }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle: value, - }, - }, - }, - }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: value, - }, - }, - }, - }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withTransform(value): { - fieldConfig+: { - defaults+: { - custom+: { - transform: value, - }, - }, - }, - }, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Identical to timeseries... except it does not have timezone settings' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Identical to timeseries... except it does not have timezone settings' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the x field to use (defaults to first number)' } }, - withXField(value): { - options+: { - xField: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'trend', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/xyChart.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/xyChart.libsonnet deleted file mode 100644 index ca3aec1bc..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/panel/xyChart.libsonnet +++ /dev/null @@ -1,1276 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.xyChart', name: 'xyChart' }, - '#withScatterFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withScatterFieldConfig(value): { - ScatterFieldConfig: value, - }, - '#withScatterFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withScatterFieldConfigMixin(value): { - ScatterFieldConfig+: value, - }, - ScatterFieldConfig+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - ScatterFieldConfig+: { - hideFrom: value, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - ScatterFieldConfig+: { - hideFrom+: value, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - ScatterFieldConfig+: { - hideFrom+: { - legend: value, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - ScatterFieldConfig+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - ScatterFieldConfig+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - ScatterFieldConfig+: { - axisCenteredZero: value, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - ScatterFieldConfig+: { - axisColorMode: value, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - ScatterFieldConfig+: { - axisGridShow: value, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - ScatterFieldConfig+: { - axisLabel: value, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - ScatterFieldConfig+: { - axisPlacement: value, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - ScatterFieldConfig+: { - axisSoftMax: value, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - ScatterFieldConfig+: { - axisSoftMin: value, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - ScatterFieldConfig+: { - axisWidth: value, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - ScatterFieldConfig+: { - scaleDistribution: value, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - ScatterFieldConfig+: { - scaleDistribution+: value, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - ScatterFieldConfig+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - ScatterFieldConfig+: { - scaleDistribution+: { - log: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - ScatterFieldConfig+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLabel(value): { - ScatterFieldConfig+: { - label: value, - }, - }, - '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelValue(value): { - ScatterFieldConfig+: { - labelValue: value, - }, - }, - '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelValueMixin(value): { - ScatterFieldConfig+: { - labelValue+: value, - }, - }, - labelValue+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - ScatterFieldConfig+: { - labelValue+: { - field: value, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - ScatterFieldConfig+: { - labelValue+: { - fixed: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - ScatterFieldConfig+: { - labelValue+: { - mode: value, - }, - }, - }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLineColor(value): { - ScatterFieldConfig+: { - lineColor: value, - }, - }, - '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLineColorMixin(value): { - ScatterFieldConfig+: { - lineColor+: value, - }, - }, - lineColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - ScatterFieldConfig+: { - lineColor+: { - field: value, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - ScatterFieldConfig+: { - lineColor+: { - fixed: value, - }, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - ScatterFieldConfig+: { - lineStyle: value, - }, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - ScatterFieldConfig+: { - lineStyle+: value, - }, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - ScatterFieldConfig+: { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - ScatterFieldConfig+: { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - ScatterFieldConfig+: { - lineStyle+: { - fill: value, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLineWidth(value): { - ScatterFieldConfig+: { - lineWidth: value, - }, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointColor(value): { - ScatterFieldConfig+: { - pointColor: value, - }, - }, - '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointColorMixin(value): { - ScatterFieldConfig+: { - pointColor+: value, - }, - }, - pointColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - ScatterFieldConfig+: { - pointColor+: { - field: value, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - ScatterFieldConfig+: { - pointColor+: { - fixed: value, - }, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointSize(value): { - ScatterFieldConfig+: { - pointSize: value, - }, - }, - '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointSizeMixin(value): { - ScatterFieldConfig+: { - pointSize+: value, - }, - }, - pointSize+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - ScatterFieldConfig+: { - pointSize+: { - field: value, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFixed(value): { - ScatterFieldConfig+: { - pointSize+: { - fixed: value, - }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMax(value): { - ScatterFieldConfig+: { - pointSize+: { - max: value, - }, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMin(value): { - ScatterFieldConfig+: { - pointSize+: { - min: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - ScatterFieldConfig+: { - pointSize+: { - mode: value, - }, - }, - }, - }, - '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: ['string'] }], help: '' } }, - withShow(value): { - ScatterFieldConfig+: { - show: value, - }, - }, - }, - '#withScatterSeriesConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withScatterSeriesConfig(value): { - ScatterSeriesConfig: value, - }, - '#withScatterSeriesConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withScatterSeriesConfigMixin(value): { - ScatterSeriesConfig+: value, - }, - ScatterSeriesConfig+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - ScatterSeriesConfig+: { - hideFrom: value, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - ScatterSeriesConfig+: { - hideFrom+: value, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - ScatterSeriesConfig+: { - hideFrom+: { - legend: value, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - ScatterSeriesConfig+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - ScatterSeriesConfig+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - ScatterSeriesConfig+: { - axisCenteredZero: value, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - ScatterSeriesConfig+: { - axisColorMode: value, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - ScatterSeriesConfig+: { - axisGridShow: value, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - ScatterSeriesConfig+: { - axisLabel: value, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - ScatterSeriesConfig+: { - axisPlacement: value, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - ScatterSeriesConfig+: { - axisSoftMax: value, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - ScatterSeriesConfig+: { - axisSoftMin: value, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - ScatterSeriesConfig+: { - axisWidth: value, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - ScatterSeriesConfig+: { - scaleDistribution: value, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - ScatterSeriesConfig+: { - scaleDistribution+: value, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - ScatterSeriesConfig+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - ScatterSeriesConfig+: { - scaleDistribution+: { - log: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - ScatterSeriesConfig+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLabel(value): { - ScatterSeriesConfig+: { - label: value, - }, - }, - '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelValue(value): { - ScatterSeriesConfig+: { - labelValue: value, - }, - }, - '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelValueMixin(value): { - ScatterSeriesConfig+: { - labelValue+: value, - }, - }, - labelValue+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - ScatterSeriesConfig+: { - labelValue+: { - field: value, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - ScatterSeriesConfig+: { - labelValue+: { - fixed: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - ScatterSeriesConfig+: { - labelValue+: { - mode: value, - }, - }, - }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLineColor(value): { - ScatterSeriesConfig+: { - lineColor: value, - }, - }, - '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLineColorMixin(value): { - ScatterSeriesConfig+: { - lineColor+: value, - }, - }, - lineColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - ScatterSeriesConfig+: { - lineColor+: { - field: value, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - ScatterSeriesConfig+: { - lineColor+: { - fixed: value, - }, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - ScatterSeriesConfig+: { - lineStyle: value, - }, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - ScatterSeriesConfig+: { - lineStyle+: value, - }, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - ScatterSeriesConfig+: { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - ScatterSeriesConfig+: { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - ScatterSeriesConfig+: { - lineStyle+: { - fill: value, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLineWidth(value): { - ScatterSeriesConfig+: { - lineWidth: value, - }, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointColor(value): { - ScatterSeriesConfig+: { - pointColor: value, - }, - }, - '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointColorMixin(value): { - ScatterSeriesConfig+: { - pointColor+: value, - }, - }, - pointColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - ScatterSeriesConfig+: { - pointColor+: { - field: value, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - ScatterSeriesConfig+: { - pointColor+: { - fixed: value, - }, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointSize(value): { - ScatterSeriesConfig+: { - pointSize: value, - }, - }, - '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointSizeMixin(value): { - ScatterSeriesConfig+: { - pointSize+: value, - }, - }, - pointSize+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - ScatterSeriesConfig+: { - pointSize+: { - field: value, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFixed(value): { - ScatterSeriesConfig+: { - pointSize+: { - fixed: value, - }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMax(value): { - ScatterSeriesConfig+: { - pointSize+: { - max: value, - }, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMin(value): { - ScatterSeriesConfig+: { - pointSize+: { - min: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - ScatterSeriesConfig+: { - pointSize+: { - mode: value, - }, - }, - }, - }, - '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: ['string'] }], help: '' } }, - withShow(value): { - ScatterSeriesConfig+: { - show: value, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - ScatterSeriesConfig+: { - name: value, - }, - }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withX(value): { - ScatterSeriesConfig+: { - x: value, - }, - }, - '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withY(value): { - ScatterSeriesConfig+: { - y: value, - }, - }, - }, - '#withScatterShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: ['string'] }], help: '' } }, - withScatterShow(value): { - ScatterShow: value, - }, - '#withSeriesMapping': { 'function': { args: [{ default: null, enums: ['auto', 'manual'], name: 'value', type: ['string'] }], help: '' } }, - withSeriesMapping(value): { - SeriesMapping: value, - }, - '#withXYDimensionConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withXYDimensionConfig(value): { - XYDimensionConfig: value, - }, - '#withXYDimensionConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withXYDimensionConfigMixin(value): { - XYDimensionConfig+: value, - }, - XYDimensionConfig+: - { - '#withExclude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExclude(value): { - XYDimensionConfig+: { - exclude: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withExcludeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExcludeMixin(value): { - XYDimensionConfig+: { - exclude+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withFrame(value): { - XYDimensionConfig+: { - frame: value, - }, - }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withX(value): { - XYDimensionConfig+: { - x: value, - }, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withDims': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDims(value): { - options+: { - dims: value, - }, - }, - '#withDimsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDimsMixin(value): { - options+: { - dims+: value, - }, - }, - dims+: - { - '#withExclude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExclude(value): { - options+: { - dims+: { - exclude: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withExcludeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExcludeMixin(value): { - options+: { - dims+: { - exclude+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withFrame(value): { - options+: { - dims+: { - frame: value, - }, - }, - }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withX(value): { - options+: { - dims+: { - x: value, - }, - }, - }, - }, - '#withSeries': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withSeries(value): { - options+: { - series: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withSeriesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withSeriesMixin(value): { - options+: { - series+: - (if std.isArray(value) - then value - else [value]), - }, - }, - series+: - { - '#': { help: '', name: 'series' }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - hideFrom: value, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - hideFrom+: value, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - hideFrom+: { - legend: value, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - hideFrom+: { - tooltip: value, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - hideFrom+: { - viz: value, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - axisCenteredZero: value, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - axisColorMode: value, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - axisGridShow: value, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - axisLabel: value, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - axisPlacement: value, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - axisSoftMax: value, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - axisSoftMin: value, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - axisWidth: value, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - scaleDistribution: value, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - scaleDistribution+: value, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - scaleDistribution+: { - linearThreshold: value, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - scaleDistribution+: { - log: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - scaleDistribution+: { - type: value, - }, - }, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLabel(value): { - label: value, - }, - '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelValue(value): { - labelValue: value, - }, - '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelValueMixin(value): { - labelValue+: value, - }, - labelValue+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - labelValue+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - labelValue+: { - fixed: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - labelValue+: { - mode: value, - }, - }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLineColor(value): { - lineColor: value, - }, - '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLineColorMixin(value): { - lineColor+: value, - }, - lineColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - lineColor+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - lineColor+: { - fixed: value, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - lineStyle: value, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - lineStyle+: value, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - lineStyle+: { - fill: value, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLineWidth(value): { - lineWidth: value, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointColor(value): { - pointColor: value, - }, - '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointColorMixin(value): { - pointColor+: value, - }, - pointColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - pointColor+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - pointColor+: { - fixed: value, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointSize(value): { - pointSize: value, - }, - '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointSizeMixin(value): { - pointSize+: value, - }, - pointSize+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - pointSize+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFixed(value): { - pointSize+: { - fixed: value, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMax(value): { - pointSize+: { - max: value, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMin(value): { - pointSize+: { - min: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - pointSize+: { - mode: value, - }, - }, - }, - '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: ['string'] }], help: '' } }, - withShow(value): { - show: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withX(value): { - x: value, - }, - '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withY(value): { - y: value, - }, - }, - '#withSeriesMapping': { 'function': { args: [{ default: null, enums: ['auto', 'manual'], name: 'value', type: ['string'] }], help: '' } }, - withSeriesMapping(value): { - options+: { - seriesMapping: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'xychart', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/playlist.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/playlist.libsonnet deleted file mode 100644 index a219a8fdc..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/playlist.libsonnet +++ /dev/null @@ -1,46 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.playlist', name: 'playlist' }, - '#withInterval': { 'function': { args: [{ default: '5m', enums: null, name: 'value', type: ['string'] }], help: 'Interval sets the time between switching views in a playlist.\nFIXME: Is this based on a standardized format or what options are available? Can datemath be used?' } }, - withInterval(value='5m'): { - interval: value, - }, - '#withItems': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The ordered list of items that the playlist will iterate over.\nFIXME! This should not be optional, but changing it makes the godegen awkward' } }, - withItems(value): { - items: - (if std.isArray(value) - then value - else [value]), - }, - '#withItemsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The ordered list of items that the playlist will iterate over.\nFIXME! This should not be optional, but changing it makes the godegen awkward' } }, - withItemsMixin(value): { - items+: - (if std.isArray(value) - then value - else [value]), - }, - items+: - { - '#': { help: '', name: 'items' }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title is an unused property -- it will be removed in the future' } }, - withTitle(value): { - title: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['dashboard_by_uid', 'dashboard_by_id', 'dashboard_by_tag'], name: 'value', type: ['string'] }], help: 'Type of the item.' } }, - withType(value): { - type: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Value depends on type and describes the playlist item.\n\n - dashboard_by_id: The value is an internal numerical identifier set by Grafana. This\n is not portable as the numerical identifier is non-deterministic between different instances.\n Will be replaced by dashboard_by_uid in the future. (deprecated)\n - dashboard_by_tag: The value is a tag which is set on any number of dashboards. All\n dashboards behind the tag will be added to the playlist.\n - dashboard_by_uid: The value is the dashboard UID' } }, - withValue(value): { - value: value, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the playlist.' } }, - withName(value): { - name: value, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique playlist identifier. Generated on creation, either by the\ncreator of the playlist of by the application.' } }, - withUid(value): { - uid: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/preferences.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/preferences.libsonnet deleted file mode 100644 index fb69f80ef..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/preferences.libsonnet +++ /dev/null @@ -1,41 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.preferences', name: 'preferences' }, - '#withHomeDashboardUID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'UID for the home dashboard' } }, - withHomeDashboardUID(value): { - homeDashboardUID: value, - }, - '#withLanguage': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Selected language (beta)' } }, - withLanguage(value): { - language: value, - }, - '#withQueryHistory': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQueryHistory(value): { - queryHistory: value, - }, - '#withQueryHistoryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQueryHistoryMixin(value): { - queryHistory+: value, - }, - queryHistory+: - { - '#withHomeTab': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "one of: '' | 'query' | 'starred';" } }, - withHomeTab(value): { - queryHistory+: { - homeTab: value, - }, - }, - }, - '#withTheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'light, dark, empty is default' } }, - withTheme(value): { - theme: value, - }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The timezone selection\nTODO: this should use the timezone defined in common' } }, - withTimezone(value): { - timezone: value, - }, - '#withWeekStart': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'day of the week (sunday, monday, etc)' } }, - withWeekStart(value): { - weekStart: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/publicdashboard.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/publicdashboard.libsonnet deleted file mode 100644 index 200e63821..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/publicdashboard.libsonnet +++ /dev/null @@ -1,28 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.publicdashboard', name: 'publicdashboard' }, - '#withAccessToken': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique public access token' } }, - withAccessToken(value): { - accessToken: value, - }, - '#withAnnotationsEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Flag that indicates if annotations are enabled' } }, - withAnnotationsEnabled(value=true): { - annotationsEnabled: value, - }, - '#withDashboardUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Dashboard unique identifier referenced by this public dashboard' } }, - withDashboardUid(value): { - dashboardUid: value, - }, - '#withIsEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Flag that indicates if the public dashboard is enabled' } }, - withIsEnabled(value=true): { - isEnabled: value, - }, - '#withTimeSelectionEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Flag that indicates if the time range picker is enabled' } }, - withTimeSelectionEnabled(value=true): { - timeSelectionEnabled: value, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique public dashboard identifier' } }, - withUid(value): { - uid: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/azureMonitor.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/azureMonitor.libsonnet deleted file mode 100644 index d262a8a21..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/azureMonitor.libsonnet +++ /dev/null @@ -1,837 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.azureMonitor', name: 'azureMonitor' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withAzureLogAnalytics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Azure Monitor Logs sub-query properties' } }, - withAzureLogAnalytics(value): { - azureLogAnalytics: value, - }, - '#withAzureLogAnalyticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Azure Monitor Logs sub-query properties' } }, - withAzureLogAnalyticsMixin(value): { - azureLogAnalytics+: value, - }, - azureLogAnalytics+: - { - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'KQL query to be executed.' } }, - withQuery(value): { - azureLogAnalytics+: { - query: value, - }, - }, - '#withResource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use resources instead' } }, - withResource(value): { - azureLogAnalytics+: { - resource: value, - }, - }, - '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, - withResources(value): { - azureLogAnalytics+: { - resources: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, - withResourcesMixin(value): { - azureLogAnalytics+: { - resources+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withResultFormat': { 'function': { args: [{ default: null, enums: ['table', 'time_series', 'trace'], name: 'value', type: ['string'] }], help: '' } }, - withResultFormat(value): { - azureLogAnalytics+: { - resultFormat: value, - }, - }, - '#withWorkspace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Workspace ID. This was removed in Grafana 8, but remains for backwards compat' } }, - withWorkspace(value): { - azureLogAnalytics+: { - workspace: value, - }, - }, - }, - '#withAzureMonitor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAzureMonitor(value): { - azureMonitor: value, - }, - '#withAzureMonitorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAzureMonitorMixin(value): { - azureMonitor+: value, - }, - azureMonitor+: - { - '#withAggregation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The aggregation to be used within the query. Defaults to the primaryAggregationType defined by the metric.' } }, - withAggregation(value): { - azureMonitor+: { - aggregation: value, - }, - }, - '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Aliases can be set to modify the legend labels. e.g. {{ resourceGroup }}. See docs for more detail.' } }, - withAlias(value): { - azureMonitor+: { - alias: value, - }, - }, - '#withAllowedTimeGrainsMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Time grains that are supported by the metric.' } }, - withAllowedTimeGrainsMs(value): { - azureMonitor+: { - allowedTimeGrainsMs: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withAllowedTimeGrainsMsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Time grains that are supported by the metric.' } }, - withAllowedTimeGrainsMsMixin(value): { - azureMonitor+: { - allowedTimeGrainsMs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withCustomNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "Used as the value for the metricNamespace property when it's different from the resource namespace." } }, - withCustomNamespace(value): { - azureMonitor+: { - customNamespace: value, - }, - }, - '#withDimension': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration' } }, - withDimension(value): { - azureMonitor+: { - dimension: value, - }, - }, - '#withDimensionFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration' } }, - withDimensionFilter(value): { - azureMonitor+: { - dimensionFilter: value, - }, - }, - '#withDimensionFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.' } }, - withDimensionFilters(value): { - azureMonitor+: { - dimensionFilters: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withDimensionFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.' } }, - withDimensionFiltersMixin(value): { - azureMonitor+: { - dimensionFilters+: - (if std.isArray(value) - then value - else [value]), - }, - }, - dimensionFilters+: - { - '#': { help: '', name: 'dimensionFilters' }, - '#withDimension': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of Dimension to be filtered on.' } }, - withDimension(value): { - dimension: value, - }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated filter is deprecated in favour of filters to support multiselect.' } }, - withFilter(value): { - filter: value, - }, - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Values to match with the filter.' } }, - withFilters(value): { - filters: - (if std.isArray(value) - then value - else [value]), - }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Values to match with the filter.' } }, - withFiltersMixin(value): { - filters+: - (if std.isArray(value) - then value - else [value]), - }, - '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "String denoting the filter operation. Supports 'eq' - equals,'ne' - not equals, 'sw' - starts with. Note that some dimensions may not support all operators." } }, - withOperator(value): { - operator: value, - }, - }, - '#withMetricDefinition': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use metricNamespace instead' } }, - withMetricDefinition(value): { - azureMonitor+: { - metricDefinition: value, - }, - }, - '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The metric to query data for within the specified metricNamespace. e.g. UsedCapacity' } }, - withMetricName(value): { - azureMonitor+: { - metricName: value, - }, - }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "metricNamespace is used as the resource type (or resource namespace).\nIt's usually equal to the target metric namespace. e.g. microsoft.storage/storageaccounts\nKept the name of the variable as metricNamespace to avoid backward incompatibility issues." } }, - withMetricNamespace(value): { - azureMonitor+: { - metricNamespace: value, - }, - }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The Azure region containing the resource(s).' } }, - withRegion(value): { - azureMonitor+: { - region: value, - }, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use resources instead' } }, - withResourceGroup(value): { - azureMonitor+: { - resourceGroup: value, - }, - }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use resources instead' } }, - withResourceName(value): { - azureMonitor+: { - resourceName: value, - }, - }, - '#withResourceUri': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use resourceGroup, resourceName and metricNamespace instead' } }, - withResourceUri(value): { - azureMonitor+: { - resourceUri: value, - }, - }, - '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, - withResources(value): { - azureMonitor+: { - resources: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, - withResourcesMixin(value): { - azureMonitor+: { - resources+: - (if std.isArray(value) - then value - else [value]), - }, - }, - resources+: - { - '#': { help: '', name: 'resources' }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMetricNamespace(value): { - metricNamespace: value, - }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRegion(value): { - region: value, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceGroup(value): { - resourceGroup: value, - }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceName(value): { - resourceName: value, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - subscription: value, - }, - }, - '#withTimeGrain': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The granularity of data points to be queried. Defaults to auto.' } }, - withTimeGrain(value): { - azureMonitor+: { - timeGrain: value, - }, - }, - '#withTimeGrainUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated' } }, - withTimeGrainUnit(value): { - azureMonitor+: { - timeGrainUnit: value, - }, - }, - '#withTop': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Maximum number of records to return. Defaults to 10.' } }, - withTop(value): { - azureMonitor+: { - top: value, - }, - }, - }, - '#withAzureResourceGraph': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAzureResourceGraph(value): { - azureResourceGraph: value, - }, - '#withAzureResourceGraphMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAzureResourceGraphMixin(value): { - azureResourceGraph+: value, - }, - azureResourceGraph+: - { - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Azure Resource Graph KQL query to be executed.' } }, - withQuery(value): { - azureResourceGraph+: { - query: value, - }, - }, - '#withResultFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specifies the format results should be returned as. Defaults to table.' } }, - withResultFormat(value): { - azureResourceGraph+: { - resultFormat: value, - }, - }, - }, - '#withAzureTraces': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Application Insights Traces sub-query properties' } }, - withAzureTraces(value): { - azureTraces: value, - }, - '#withAzureTracesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Application Insights Traces sub-query properties' } }, - withAzureTracesMixin(value): { - azureTraces+: value, - }, - azureTraces+: - { - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters for property values.' } }, - withFilters(value): { - azureTraces+: { - filters: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters for property values.' } }, - withFiltersMixin(value): { - azureTraces+: { - filters+: - (if std.isArray(value) - then value - else [value]), - }, - }, - filters+: - { - '#': { help: '', name: 'filters' }, - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Values to filter by.' } }, - withFilters(value): { - filters: - (if std.isArray(value) - then value - else [value]), - }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Values to filter by.' } }, - withFiltersMixin(value): { - filters+: - (if std.isArray(value) - then value - else [value]), - }, - '#withOperation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Comparison operator to use. Either equals or not equals.' } }, - withOperation(value): { - operation: value, - }, - '#withProperty': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Property name, auto-populated based on available traces.' } }, - withProperty(value): { - property: value, - }, - }, - '#withOperationId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Operation ID. Used only for Traces queries.' } }, - withOperationId(value): { - azureTraces+: { - operationId: value, - }, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'KQL query to be executed.' } }, - withQuery(value): { - azureTraces+: { - query: value, - }, - }, - '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, - withResources(value): { - azureTraces+: { - resources: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, - withResourcesMixin(value): { - azureTraces+: { - resources+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withResultFormat': { 'function': { args: [{ default: null, enums: ['table', 'time_series', 'trace'], name: 'value', type: ['string'] }], help: '' } }, - withResultFormat(value): { - azureTraces+: { - resultFormat: value, - }, - }, - '#withTraceTypes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Types of events to filter by.' } }, - withTraceTypes(value): { - azureTraces+: { - traceTypes: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTraceTypesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Types of events to filter by.' } }, - withTraceTypesMixin(value): { - azureTraces+: { - traceTypes+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withGrafanaTemplateVariableFn': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withGrafanaTemplateVariableFn(value): { - grafanaTemplateVariableFn: value, - }, - '#withGrafanaTemplateVariableFnMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withGrafanaTemplateVariableFnMixin(value): { - grafanaTemplateVariableFn+: value, - }, - grafanaTemplateVariableFn+: - { - '#withAppInsightsMetricNameQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAppInsightsMetricNameQuery(value): { - grafanaTemplateVariableFn+: { - AppInsightsMetricNameQuery: value, - }, - }, - '#withAppInsightsMetricNameQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAppInsightsMetricNameQueryMixin(value): { - grafanaTemplateVariableFn+: { - AppInsightsMetricNameQuery+: value, - }, - }, - AppInsightsMetricNameQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withKind': { 'function': { args: [{ default: null, enums: ['AppInsightsMetricNameQuery'], name: 'value', type: ['string'] }], help: '' } }, - withKind(value): { - grafanaTemplateVariableFn+: { - kind: value, - }, - }, - }, - '#withAppInsightsGroupByQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAppInsightsGroupByQuery(value): { - grafanaTemplateVariableFn+: { - AppInsightsGroupByQuery: value, - }, - }, - '#withAppInsightsGroupByQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAppInsightsGroupByQueryMixin(value): { - grafanaTemplateVariableFn+: { - AppInsightsGroupByQuery+: value, - }, - }, - AppInsightsGroupByQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withKind': { 'function': { args: [{ default: null, enums: ['AppInsightsGroupByQuery'], name: 'value', type: ['string'] }], help: '' } }, - withKind(value): { - grafanaTemplateVariableFn+: { - kind: value, - }, - }, - '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMetricName(value): { - grafanaTemplateVariableFn+: { - metricName: value, - }, - }, - }, - '#withSubscriptionsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSubscriptionsQuery(value): { - grafanaTemplateVariableFn+: { - SubscriptionsQuery: value, - }, - }, - '#withSubscriptionsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSubscriptionsQueryMixin(value): { - grafanaTemplateVariableFn+: { - SubscriptionsQuery+: value, - }, - }, - SubscriptionsQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withKind': { 'function': { args: [{ default: null, enums: ['SubscriptionsQuery'], name: 'value', type: ['string'] }], help: '' } }, - withKind(value): { - grafanaTemplateVariableFn+: { - kind: value, - }, - }, - }, - '#withResourceGroupsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withResourceGroupsQuery(value): { - grafanaTemplateVariableFn+: { - ResourceGroupsQuery: value, - }, - }, - '#withResourceGroupsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withResourceGroupsQueryMixin(value): { - grafanaTemplateVariableFn+: { - ResourceGroupsQuery+: value, - }, - }, - ResourceGroupsQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withKind': { 'function': { args: [{ default: null, enums: ['ResourceGroupsQuery'], name: 'value', type: ['string'] }], help: '' } }, - withKind(value): { - grafanaTemplateVariableFn+: { - kind: value, - }, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - grafanaTemplateVariableFn+: { - subscription: value, - }, - }, - }, - '#withResourceNamesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withResourceNamesQuery(value): { - grafanaTemplateVariableFn+: { - ResourceNamesQuery: value, - }, - }, - '#withResourceNamesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withResourceNamesQueryMixin(value): { - grafanaTemplateVariableFn+: { - ResourceNamesQuery+: value, - }, - }, - ResourceNamesQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withKind': { 'function': { args: [{ default: null, enums: ['ResourceNamesQuery'], name: 'value', type: ['string'] }], help: '' } }, - withKind(value): { - grafanaTemplateVariableFn+: { - kind: value, - }, - }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMetricNamespace(value): { - grafanaTemplateVariableFn+: { - metricNamespace: value, - }, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceGroup(value): { - grafanaTemplateVariableFn+: { - resourceGroup: value, - }, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - grafanaTemplateVariableFn+: { - subscription: value, - }, - }, - }, - '#withMetricNamespaceQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMetricNamespaceQuery(value): { - grafanaTemplateVariableFn+: { - MetricNamespaceQuery: value, - }, - }, - '#withMetricNamespaceQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMetricNamespaceQueryMixin(value): { - grafanaTemplateVariableFn+: { - MetricNamespaceQuery+: value, - }, - }, - MetricNamespaceQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withKind': { 'function': { args: [{ default: null, enums: ['MetricNamespaceQuery'], name: 'value', type: ['string'] }], help: '' } }, - withKind(value): { - grafanaTemplateVariableFn+: { - kind: value, - }, - }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMetricNamespace(value): { - grafanaTemplateVariableFn+: { - metricNamespace: value, - }, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceGroup(value): { - grafanaTemplateVariableFn+: { - resourceGroup: value, - }, - }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceName(value): { - grafanaTemplateVariableFn+: { - resourceName: value, - }, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - grafanaTemplateVariableFn+: { - subscription: value, - }, - }, - }, - '#withMetricDefinitionsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '@deprecated Use MetricNamespaceQuery instead' } }, - withMetricDefinitionsQuery(value): { - grafanaTemplateVariableFn+: { - MetricDefinitionsQuery: value, - }, - }, - '#withMetricDefinitionsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '@deprecated Use MetricNamespaceQuery instead' } }, - withMetricDefinitionsQueryMixin(value): { - grafanaTemplateVariableFn+: { - MetricDefinitionsQuery+: value, - }, - }, - MetricDefinitionsQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withKind': { 'function': { args: [{ default: null, enums: ['MetricDefinitionsQuery'], name: 'value', type: ['string'] }], help: '' } }, - withKind(value): { - grafanaTemplateVariableFn+: { - kind: value, - }, - }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMetricNamespace(value): { - grafanaTemplateVariableFn+: { - metricNamespace: value, - }, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceGroup(value): { - grafanaTemplateVariableFn+: { - resourceGroup: value, - }, - }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceName(value): { - grafanaTemplateVariableFn+: { - resourceName: value, - }, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - grafanaTemplateVariableFn+: { - subscription: value, - }, - }, - }, - '#withMetricNamesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMetricNamesQuery(value): { - grafanaTemplateVariableFn+: { - MetricNamesQuery: value, - }, - }, - '#withMetricNamesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMetricNamesQueryMixin(value): { - grafanaTemplateVariableFn+: { - MetricNamesQuery+: value, - }, - }, - MetricNamesQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withKind': { 'function': { args: [{ default: null, enums: ['MetricNamesQuery'], name: 'value', type: ['string'] }], help: '' } }, - withKind(value): { - grafanaTemplateVariableFn+: { - kind: value, - }, - }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMetricNamespace(value): { - grafanaTemplateVariableFn+: { - metricNamespace: value, - }, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceGroup(value): { - grafanaTemplateVariableFn+: { - resourceGroup: value, - }, - }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceName(value): { - grafanaTemplateVariableFn+: { - resourceName: value, - }, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - grafanaTemplateVariableFn+: { - subscription: value, - }, - }, - }, - '#withWorkspacesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withWorkspacesQuery(value): { - grafanaTemplateVariableFn+: { - WorkspacesQuery: value, - }, - }, - '#withWorkspacesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withWorkspacesQueryMixin(value): { - grafanaTemplateVariableFn+: { - WorkspacesQuery+: value, - }, - }, - WorkspacesQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withKind': { 'function': { args: [{ default: null, enums: ['WorkspacesQuery'], name: 'value', type: ['string'] }], help: '' } }, - withKind(value): { - grafanaTemplateVariableFn+: { - kind: value, - }, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - grafanaTemplateVariableFn+: { - subscription: value, - }, - }, - }, - '#withUnknownQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUnknownQuery(value): { - grafanaTemplateVariableFn+: { - UnknownQuery: value, - }, - }, - '#withUnknownQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUnknownQueryMixin(value): { - grafanaTemplateVariableFn+: { - UnknownQuery+: value, - }, - }, - UnknownQuery+: - { - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withKind': { 'function': { args: [{ default: null, enums: ['UnknownQuery'], name: 'value', type: ['string'] }], help: '' } }, - withKind(value): { - grafanaTemplateVariableFn+: { - kind: value, - }, - }, - }, - }, - '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withNamespace(value): { - namespace: value, - }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Azure Monitor query type.\nqueryType: #AzureQueryType' } }, - withRegion(value): { - region: value, - }, - '#withResource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResource(value): { - resource: value, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Template variables params. These exist for backwards compatiblity with legacy template variables.' } }, - withResourceGroup(value): { - resourceGroup: value, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Azure subscription containing the resource(s) to be queried.' } }, - withSubscription(value): { - subscription: value, - }, - '#withSubscriptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Subscriptions to be queried via Azure Resource Graph.' } }, - withSubscriptions(value): { - subscriptions: - (if std.isArray(value) - then value - else [value]), - }, - '#withSubscriptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Subscriptions to be queried via Azure Resource Graph.' } }, - withSubscriptionsMixin(value): { - subscriptions+: - (if std.isArray(value) - then value - else [value]), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/cloudWatch.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/cloudWatch.libsonnet deleted file mode 100644 index db468d510..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/cloudWatch.libsonnet +++ /dev/null @@ -1,680 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.cloudWatch', name: 'cloudWatch' }, - CloudWatchAnnotationQuery+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.' } }, - withAccountId(value): { - accountId: value, - }, - '#withDimensions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, - withDimensions(value): { - dimensions: value, - }, - '#withDimensionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, - withDimensionsMixin(value): { - dimensions+: value, - }, - '#withMatchExact': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Only show metrics that exactly match all defined dimension names.' } }, - withMatchExact(value=true): { - matchExact: value, - }, - '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the metric' } }, - withMetricName(value): { - metricName: value, - }, - '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.' } }, - withNamespace(value): { - namespace: value, - }, - '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes" } }, - withPeriod(value): { - period: value, - }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'AWS region to query for the metric' } }, - withRegion(value): { - region: value, - }, - '#withStatistic': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.' } }, - withStatistic(value): { - statistic: value, - }, - '#withStatistics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use statistic' } }, - withStatistics(value): { - statistics: - (if std.isArray(value) - then value - else [value]), - }, - '#withStatisticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use statistic' } }, - withStatisticsMixin(value): { - statistics+: - (if std.isArray(value) - then value - else [value]), - }, - '#withActionPrefix': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Use this parameter to filter the results of the operation to only those alarms\nthat use a certain alarm action. For example, you could specify the ARN of\nan SNS topic to find all alarms that send notifications to that topic.\ne.g. `arn:aws:sns:us-east-1:123456789012:my-app-` would match `arn:aws:sns:us-east-1:123456789012:my-app-action`\nbut not match `arn:aws:sns:us-east-1:123456789012:your-app-action`' } }, - withActionPrefix(value): { - actionPrefix: value, - }, - '#withAlarmNamePrefix': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'An alarm name prefix. If you specify this parameter, you receive information\nabout all alarms that have names that start with this prefix.\ne.g. `my-team-service-` would match `my-team-service-high-cpu` but not match `your-team-service-high-cpu`' } }, - withAlarmNamePrefix(value): { - alarmNamePrefix: value, - }, - '#withPrefixMatching': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Enable matching on the prefix of the action name or alarm name, specify the prefixes with actionPrefix and/or alarmNamePrefix' } }, - withPrefixMatching(value=true): { - prefixMatching: value, - }, - '#withQueryMode': { 'function': { args: [{ default: null, enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: ['string'] }], help: '' } }, - withQueryMode(value): { - queryMode: value, - }, - }, - CloudWatchLogsQuery+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The CloudWatch Logs Insights query to execute' } }, - withExpression(value): { - expression: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withLogGroupNames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use logGroups' } }, - withLogGroupNames(value): { - logGroupNames: - (if std.isArray(value) - then value - else [value]), - }, - '#withLogGroupNamesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use logGroups' } }, - withLogGroupNamesMixin(value): { - logGroupNames+: - (if std.isArray(value) - then value - else [value]), - }, - '#withLogGroups': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Log groups to query' } }, - withLogGroups(value): { - logGroups: - (if std.isArray(value) - then value - else [value]), - }, - '#withLogGroupsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Log groups to query' } }, - withLogGroupsMixin(value): { - logGroups+: - (if std.isArray(value) - then value - else [value]), - }, - logGroups+: - { - '#': { help: '', name: 'logGroups' }, - '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'AccountId of the log group' } }, - withAccountId(value): { - accountId: value, - }, - '#withAccountLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Label of the log group' } }, - withAccountLabel(value): { - accountLabel: value, - }, - '#withArn': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'ARN of the log group' } }, - withArn(value): { - arn: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the log group' } }, - withName(value): { - name: value, - }, - }, - '#withQueryMode': { 'function': { args: [{ default: null, enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: ['string'] }], help: '' } }, - withQueryMode(value): { - queryMode: value, - }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'AWS region to query for the logs' } }, - withRegion(value): { - region: value, - }, - '#withStatsGroups': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Fields to group the results by, this field is automatically populated whenever the query is updated' } }, - withStatsGroups(value): { - statsGroups: - (if std.isArray(value) - then value - else [value]), - }, - '#withStatsGroupsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Fields to group the results by, this field is automatically populated whenever the query is updated' } }, - withStatsGroupsMixin(value): { - statsGroups+: - (if std.isArray(value) - then value - else [value]), - }, - }, - CloudWatchMetricsQuery+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.' } }, - withAccountId(value): { - accountId: value, - }, - '#withDimensions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, - withDimensions(value): { - dimensions: value, - }, - '#withDimensionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, - withDimensionsMixin(value): { - dimensions+: value, - }, - '#withMatchExact': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Only show metrics that exactly match all defined dimension names.' } }, - withMatchExact(value=true): { - matchExact: value, - }, - '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the metric' } }, - withMetricName(value): { - metricName: value, - }, - '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.' } }, - withNamespace(value): { - namespace: value, - }, - '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes" } }, - withPeriod(value): { - period: value, - }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'AWS region to query for the metric' } }, - withRegion(value): { - region: value, - }, - '#withStatistic': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.' } }, - withStatistic(value): { - statistic: value, - }, - '#withStatistics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use statistic' } }, - withStatistics(value): { - statistics: - (if std.isArray(value) - then value - else [value]), - }, - '#withStatisticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use statistic' } }, - withStatisticsMixin(value): { - statistics+: - (if std.isArray(value) - then value - else [value]), - }, - '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Deprecated: use label\n@deprecated use label' } }, - withAlias(value): { - alias: value, - }, - '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Math expression query' } }, - withExpression(value): { - expression: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'ID can be used to reference other queries in math expressions. The ID can include numbers, letters, and underscore, and must start with a lowercase letter.' } }, - withId(value): { - id: value, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Change the time series legend names using dynamic labels. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html for more details.' } }, - withLabel(value): { - label: value, - }, - '#withMetricEditorMode': { 'function': { args: [{ default: null, enums: [0, 1], name: 'value', type: ['integer'] }], help: '' } }, - withMetricEditorMode(value): { - metricEditorMode: value, - }, - '#withMetricQueryType': { 'function': { args: [{ default: null, enums: [0, 1], name: 'value', type: ['integer'] }], help: '' } }, - withMetricQueryType(value): { - metricQueryType: value, - }, - '#withQueryMode': { 'function': { args: [{ default: null, enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: ['string'] }], help: '' } }, - withQueryMode(value): { - queryMode: value, - }, - '#withSql': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSql(value): { - sql: value, - }, - '#withSqlMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSqlMixin(value): { - sql+: value, - }, - sql+: - { - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'FROM part of the SQL expression' } }, - withFrom(value): { - sql+: { - from: value, - }, - }, - '#withFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'FROM part of the SQL expression' } }, - withFromMixin(value): { - sql+: { - from+: value, - }, - }, - from+: - { - '#withQueryEditorPropertyExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQueryEditorPropertyExpression(value): { - sql+: { - from+: { - QueryEditorPropertyExpression: value, - }, - }, - }, - '#withQueryEditorPropertyExpressionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQueryEditorPropertyExpressionMixin(value): { - sql+: { - from+: { - QueryEditorPropertyExpression+: value, - }, - }, - }, - QueryEditorPropertyExpression+: - { - '#withProperty': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withProperty(value): { - sql+: { - from+: { - property: value, - }, - }, - }, - '#withPropertyMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPropertyMixin(value): { - sql+: { - from+: { - property+: value, - }, - }, - }, - property+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - sql+: { - from+: { - property+: { - name: value, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['string'], name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - sql+: { - from+: { - property+: { - type: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - sql+: { - from+: { - type: value, - }, - }, - }, - }, - '#withQueryEditorFunctionExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQueryEditorFunctionExpression(value): { - sql+: { - from+: { - QueryEditorFunctionExpression: value, - }, - }, - }, - '#withQueryEditorFunctionExpressionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQueryEditorFunctionExpressionMixin(value): { - sql+: { - from+: { - QueryEditorFunctionExpression+: value, - }, - }, - }, - QueryEditorFunctionExpression+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - sql+: { - from+: { - name: value, - }, - }, - }, - '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParameters(value): { - sql+: { - from+: { - parameters: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParametersMixin(value): { - sql+: { - from+: { - parameters+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - parameters+: - { - '#': { help: '', name: 'parameters' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - sql+: { - from+: { - type: value, - }, - }, - }, - }, - }, - '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withGroupBy(value): { - sql+: { - groupBy: value, - }, - }, - '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withGroupByMixin(value): { - sql+: { - groupBy+: value, - }, - }, - groupBy+: - { - '#withExpressions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExpressions(value): { - sql+: { - groupBy+: { - expressions: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withExpressionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExpressionsMixin(value): { - sql+: { - groupBy+: { - expressions+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['and', 'or'], name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - sql+: { - groupBy+: { - type: value, - }, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'LIMIT part of the SQL expression' } }, - withLimit(value): { - sql+: { - limit: value, - }, - }, - '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOrderBy(value): { - sql+: { - orderBy: value, - }, - }, - '#withOrderByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOrderByMixin(value): { - sql+: { - orderBy+: value, - }, - }, - orderBy+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - sql+: { - orderBy+: { - name: value, - }, - }, - }, - '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParameters(value): { - sql+: { - orderBy+: { - parameters: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParametersMixin(value): { - sql+: { - orderBy+: { - parameters+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - parameters+: - { - '#': { help: '', name: 'parameters' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - sql+: { - orderBy+: { - type: value, - }, - }, - }, - }, - '#withOrderByDirection': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The sort order of the SQL expression, `ASC` or `DESC`' } }, - withOrderByDirection(value): { - sql+: { - orderByDirection: value, - }, - }, - '#withSelect': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSelect(value): { - sql+: { - select: value, - }, - }, - '#withSelectMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSelectMixin(value): { - sql+: { - select+: value, - }, - }, - select+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - sql+: { - select+: { - name: value, - }, - }, - }, - '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParameters(value): { - sql+: { - select+: { - parameters: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParametersMixin(value): { - sql+: { - select+: { - parameters+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - parameters+: - { - '#': { help: '', name: 'parameters' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - sql+: { - select+: { - type: value, - }, - }, - }, - }, - '#withWhere': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withWhere(value): { - sql+: { - where: value, - }, - }, - '#withWhereMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withWhereMixin(value): { - sql+: { - where+: value, - }, - }, - where+: - { - '#withExpressions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExpressions(value): { - sql+: { - where+: { - expressions: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withExpressionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExpressionsMixin(value): { - sql+: { - where+: { - expressions+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['and', 'or'], name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - sql+: { - where+: { - type: value, - }, - }, - }, - }, - }, - '#withSqlExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'When the metric query type is `metricQueryType` is set to `Query`, this field is used to specify the query string.' } }, - withSqlExpression(value): { - sqlExpression: value, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/elasticsearch.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/elasticsearch.libsonnet deleted file mode 100644 index efddb0260..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/elasticsearch.libsonnet +++ /dev/null @@ -1,1449 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.elasticsearch', name: 'elasticsearch' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alias pattern' } }, - withAlias(value): { - alias: value, - }, - '#withBucketAggs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of bucket aggregations' } }, - withBucketAggs(value): { - bucketAggs: - (if std.isArray(value) - then value - else [value]), - }, - '#withBucketAggsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of bucket aggregations' } }, - withBucketAggsMixin(value): { - bucketAggs+: - (if std.isArray(value) - then value - else [value]), - }, - bucketAggs+: - { - '#': { help: '', name: 'bucketAggs' }, - DateHistogram+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInterval(value): { - settings+: { - interval: value, - }, - }, - '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMinDocCount(value): { - settings+: { - min_doc_count: value, - }, - }, - '#withOffset': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withOffset(value): { - settings+: { - offset: value, - }, - }, - '#withTimeZone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTimeZone(value): { - settings+: { - timeZone: value, - }, - }, - '#withTrimEdges': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTrimEdges(value): { - settings+: { - trimEdges: value, - }, - }, - }, - }, - Histogram+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInterval(value): { - settings+: { - interval: value, - }, - }, - '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMinDocCount(value): { - settings+: { - min_doc_count: value, - }, - }, - }, - }, - Terms+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMinDocCount(value): { - settings+: { - min_doc_count: value, - }, - }, - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - '#withOrder': { 'function': { args: [{ default: null, enums: ['desc', 'asc'], name: 'value', type: ['string'] }], help: '' } }, - withOrder(value): { - settings+: { - order: value, - }, - }, - '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withOrderBy(value): { - settings+: { - orderBy: value, - }, - }, - '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSize(value): { - settings+: { - size: value, - }, - }, - }, - }, - Filters+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFilters(value): { - settings+: { - filters: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFiltersMixin(value): { - settings+: { - filters+: - (if std.isArray(value) - then value - else [value]), - }, - }, - filters+: - { - '#': { help: '', name: 'filters' }, - '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLabel(value): { - label: value, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withQuery(value): { - query: value, - }, - }, - }, - }, - GeoHashGrid+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withPrecision': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPrecision(value): { - settings+: { - precision: value, - }, - }, - }, - }, - Nested+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - }, - }, - '#withMetrics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of metric aggregations' } }, - withMetrics(value): { - metrics: - (if std.isArray(value) - then value - else [value]), - }, - '#withMetricsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of metric aggregations' } }, - withMetricsMixin(value): { - metrics+: - (if std.isArray(value) - then value - else [value]), - }, - metrics+: - { - '#': { help: '', name: 'metrics' }, - Count+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - PipelineMetricAggregation+: - { - MovingAverage+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - }, - Derivative+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUnit(value): { - settings+: { - unit: value, - }, - }, - }, - }, - CumulativeSum+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFormat(value): { - settings+: { - format: value, - }, - }, - }, - }, - BucketScript+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withPipelineVariables': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPipelineVariables(value): { - pipelineVariables: - (if std.isArray(value) - then value - else [value]), - }, - '#withPipelineVariablesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPipelineVariablesMixin(value): { - pipelineVariables+: - (if std.isArray(value) - then value - else [value]), - }, - pipelineVariables+: - { - '#': { help: '', name: 'pipelineVariables' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - }, - }, - }, - MetricAggregationWithSettings+: - { - BucketScript+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withPipelineVariables': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPipelineVariables(value): { - pipelineVariables: - (if std.isArray(value) - then value - else [value]), - }, - '#withPipelineVariablesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPipelineVariablesMixin(value): { - pipelineVariables+: - (if std.isArray(value) - then value - else [value]), - }, - pipelineVariables+: - { - '#': { help: '', name: 'pipelineVariables' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - }, - }, - CumulativeSum+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFormat(value): { - settings+: { - format: value, - }, - }, - }, - }, - Derivative+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUnit(value): { - settings+: { - unit: value, - }, - }, - }, - }, - SerialDiff+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withLag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLag(value): { - settings+: { - lag: value, - }, - }, - }, - }, - RawData+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSize(value): { - settings+: { - size: value, - }, - }, - }, - }, - RawDocument+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSize(value): { - settings+: { - size: value, - }, - }, - }, - }, - UniqueCount+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - '#withPrecisionThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPrecisionThreshold(value): { - settings+: { - precision_threshold: value, - }, - }, - }, - }, - Percentiles+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - '#withPercents': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPercents(value): { - settings+: { - percents: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withPercentsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPercentsMixin(value): { - settings+: { - percents+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - ExtendedStats+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - '#withSigma': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSigma(value): { - settings+: { - sigma: value, - }, - }, - }, - '#withMeta': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMeta(value): { - meta: value, - }, - '#withMetaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMetaMixin(value): { - meta+: value, - }, - }, - Min+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - }, - }, - Max+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - }, - }, - Sum+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - }, - }, - Average+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - }, - }, - MovingAverage+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - }, - MovingFunction+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - '#withShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withShift(value): { - settings+: { - shift: value, - }, - }, - '#withWindow': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withWindow(value): { - settings+: { - window: value, - }, - }, - }, - }, - Logs+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLimit(value): { - settings+: { - limit: value, - }, - }, - }, - }, - Rate+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - settings+: { - mode: value, - }, - }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUnit(value): { - settings+: { - unit: value, - }, - }, - }, - }, - TopMetrics+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMetrics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMetrics(value): { - settings+: { - metrics: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withMetricsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMetricsMixin(value): { - settings+: { - metrics+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withOrder': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withOrder(value): { - settings+: { - order: value, - }, - }, - '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withOrderBy(value): { - settings+: { - orderBy: value, - }, - }, - }, - }, - }, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Lucene query' } }, - withQuery(value): { - query: value, - }, - '#withTimeField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of time field' } }, - withTimeField(value): { - timeField: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/grafanaPyroscope.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/grafanaPyroscope.libsonnet deleted file mode 100644 index e79876e07..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/grafanaPyroscope.libsonnet +++ /dev/null @@ -1,46 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.grafanaPyroscope', name: 'grafanaPyroscope' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Allows to group the results.' } }, - withGroupBy(value): { - groupBy: - (if std.isArray(value) - then value - else [value]), - }, - '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Allows to group the results.' } }, - withGroupByMixin(value): { - groupBy+: - (if std.isArray(value) - then value - else [value]), - }, - '#withLabelSelector': { 'function': { args: [{ default: '{}', enums: null, name: 'value', type: ['string'] }], help: 'Specifies the query label selectors.' } }, - withLabelSelector(value='{}'): { - labelSelector: value, - }, - '#withMaxNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Sets the maximum number of nodes in the flamegraph.' } }, - withMaxNodes(value): { - maxNodes: value, - }, - '#withProfileTypeId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specifies the type of profile to query.' } }, - withProfileTypeId(value): { - profileTypeId: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/loki.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/loki.libsonnet deleted file mode 100644 index be7c354ec..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/loki.libsonnet +++ /dev/null @@ -1,48 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.loki', name: 'loki' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: ['string'] }], help: '' } }, - withEditorMode(value): { - editorMode: value, - }, - '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The LogQL query.' } }, - withExpr(value): { - expr: value, - }, - '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '@deprecated, now use queryType.' } }, - withInstant(value=true): { - instant: value, - }, - '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Used to override the name of the series.' } }, - withLegendFormat(value): { - legendFormat: value, - }, - '#withMaxLines': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Used to limit the number of log rows returned.' } }, - withMaxLines(value): { - maxLines: value, - }, - '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '@deprecated, now use queryType.' } }, - withRange(value=true): { - range: value, - }, - '#withResolution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Used to scale the interval value.' } }, - withResolution(value): { - resolution: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/parca.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/parca.libsonnet deleted file mode 100644 index 58e1c14ce..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/parca.libsonnet +++ /dev/null @@ -1,28 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.parca', name: 'parca' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withLabelSelector': { 'function': { args: [{ default: '{}', enums: null, name: 'value', type: ['string'] }], help: 'Specifies the query label selectors.' } }, - withLabelSelector(value='{}'): { - labelSelector: value, - }, - '#withProfileTypeId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specifies the type of profile to query.' } }, - withProfileTypeId(value): { - profileTypeId: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/prometheus.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/prometheus.libsonnet deleted file mode 100644 index aecfe66bd..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/prometheus.libsonnet +++ /dev/null @@ -1,52 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.prometheus', name: 'prometheus' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: ['string'] }], help: '' } }, - withEditorMode(value): { - editorMode: value, - }, - '#withExemplar': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Execute an additional query to identify interesting raw samples relevant for the given expr' } }, - withExemplar(value=true): { - exemplar: value, - }, - '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The actual expression/query that will be evaluated by Prometheus' } }, - withExpr(value): { - expr: value, - }, - '#withFormat': { 'function': { args: [{ default: null, enums: ['time_series', 'table', 'heatmap'], name: 'value', type: ['string'] }], help: '' } }, - withFormat(value): { - format: value, - }, - '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Returns only the latest value that Prometheus has scraped for the requested time series' } }, - withInstant(value=true): { - instant: value, - }, - '#withIntervalFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '@deprecated Used to specify how many times to divide max data points by. We use max data points under query options\nSee https://github.com/grafana/grafana/issues/48081' } }, - withIntervalFactor(value): { - intervalFactor: value, - }, - '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Series name override or template. Ex. {{hostname}} will be replaced with label value for hostname' } }, - withLegendFormat(value): { - legendFormat: value, - }, - '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series' } }, - withRange(value=true): { - range: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/tempo.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/tempo.libsonnet deleted file mode 100644 index 66eb765ee..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/tempo.libsonnet +++ /dev/null @@ -1,98 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.tempo', name: 'tempo' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFilters(value): { - filters: - (if std.isArray(value) - then value - else [value]), - }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFiltersMixin(value): { - filters+: - (if std.isArray(value) - then value - else [value]), - }, - filters+: - { - '#': { help: '', name: 'filters' }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Uniquely identify the filter, will not be used in the query generation' } }, - withId(value): { - id: value, - }, - '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The operator that connects the tag to the value, for example: =, >, !=, =~' } }, - withOperator(value): { - operator: value, - }, - '#withScope': { 'function': { args: [{ default: null, enums: ['unscoped', 'resource', 'span'], name: 'value', type: ['string'] }], help: 'static fields are pre-set in the UI, dynamic fields are added by the user' } }, - withScope(value): { - scope: value, - }, - '#withTag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The tag for the search filter, for example: .http.status_code, .service.name, status' } }, - withTag(value): { - tag: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'The value for the search filter' } }, - withValue(value): { - value: value, - }, - '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'The value for the search filter' } }, - withValueMixin(value): { - value+: value, - }, - '#withValueType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query' } }, - withValueType(value): { - valueType: value, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Defines the maximum number of traces that are returned from Tempo' } }, - withLimit(value): { - limit: value, - }, - '#withMaxDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, - withMaxDuration(value): { - maxDuration: value, - }, - '#withMinDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, - withMinDuration(value): { - minDuration: value, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TraceQL query or trace ID' } }, - withQuery(value): { - query: value, - }, - '#withSearch': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true' } }, - withSearch(value): { - search: value, - }, - '#withServiceMapQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}' } }, - withServiceMapQuery(value): { - serviceMapQuery: value, - }, - '#withServiceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Query traces by service name' } }, - withServiceName(value): { - serviceName: value, - }, - '#withSpanName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Query traces by span name' } }, - withSpanName(value): { - spanName: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/testData.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/testData.libsonnet deleted file mode 100644 index 5cdf4f8ea..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/query/testData.libsonnet +++ /dev/null @@ -1,364 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.testData', name: 'testData' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNote this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAlias(value): { - alias: value, - }, - '#withChannel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withChannel(value): { - channel: value, - }, - '#withCsvContent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withCsvContent(value): { - csvContent: value, - }, - '#withCsvFileName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withCsvFileName(value): { - csvFileName: value, - }, - '#withCsvWave': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCsvWave(value): { - csvWave: - (if std.isArray(value) - then value - else [value]), - }, - '#withCsvWaveMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCsvWaveMixin(value): { - csvWave+: - (if std.isArray(value) - then value - else [value]), - }, - csvWave+: - { - '#': { help: '', name: 'csvWave' }, - '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLabels(value): { - labels: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withTimeStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withTimeStep(value): { - timeStep: value, - }, - '#withValuesCSV': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withValuesCSV(value): { - valuesCSV: value, - }, - }, - '#withErrorType': { 'function': { args: [{ default: null, enums: ['server_panic', 'frontend_exception', 'frontend_observable'], name: 'value', type: ['string'] }], help: '' } }, - withErrorType(value): { - errorType: value, - }, - '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLabels(value): { - labels: value, - }, - '#withLevelColumn': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLevelColumn(value=true): { - levelColumn: value, - }, - '#withLines': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLines(value): { - lines: value, - }, - '#withNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withNodes(value): { - nodes: value, - }, - '#withNodesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withNodesMixin(value): { - nodes+: value, - }, - nodes+: - { - '#withCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withCount(value): { - nodes+: { - count: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['random', 'response', 'random edges'], name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - nodes+: { - type: value, - }, - }, - }, - '#withPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPoints(value): { - points: - (if std.isArray(value) - then value - else [value]), - }, - '#withPointsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPointsMixin(value): { - points+: - (if std.isArray(value) - then value - else [value]), - }, - '#withPulseWave': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPulseWave(value): { - pulseWave: value, - }, - '#withPulseWaveMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPulseWaveMixin(value): { - pulseWave+: value, - }, - pulseWave+: - { - '#withOffCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withOffCount(value): { - pulseWave+: { - offCount: value, - }, - }, - '#withOffValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withOffValue(value): { - pulseWave+: { - offValue: value, - }, - }, - '#withOnCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withOnCount(value): { - pulseWave+: { - onCount: value, - }, - }, - '#withOnValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withOnValue(value): { - pulseWave+: { - onValue: value, - }, - }, - '#withTimeStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withTimeStep(value): { - pulseWave+: { - timeStep: value, - }, - }, - }, - '#withRawFrameContent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawFrameContent(value): { - rawFrameContent: value, - }, - '#withScenarioId': { 'function': { args: [{ default: null, enums: ['random_walk', 'slow_query', 'random_walk_with_error', 'random_walk_table', 'exponential_heatmap_bucket_data', 'linear_heatmap_bucket_data', 'no_data_points', 'datapoints_outside_range', 'csv_metric_values', 'predictable_pulse', 'predictable_csv_wave', 'streaming_client', 'simulation', 'usa', 'live', 'grafana_api', 'arrow', 'annotations', 'table_static', 'server_error_500', 'logs', 'node_graph', 'flame_graph', 'raw_frame', 'csv_file', 'csv_content', 'trace', 'manual_entry', 'variables-query'], name: 'value', type: ['string'] }], help: '' } }, - withScenarioId(value): { - scenarioId: value, - }, - '#withSeriesCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withSeriesCount(value): { - seriesCount: value, - }, - '#withSim': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSim(value): { - sim: value, - }, - '#withSimMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSimMixin(value): { - sim+: value, - }, - sim+: - { - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withConfig(value): { - sim+: { - config: value, - }, - }, - '#withConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withConfigMixin(value): { - sim+: { - config+: value, - }, - }, - '#withKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withKey(value): { - sim+: { - key: value, - }, - }, - '#withKeyMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withKeyMixin(value): { - sim+: { - key+: value, - }, - }, - key+: - { - '#withTick': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withTick(value): { - sim+: { - key+: { - tick: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - sim+: { - key+: { - type: value, - }, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUid(value): { - sim+: { - key+: { - uid: value, - }, - }, - }, - }, - '#withLast': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLast(value=true): { - sim+: { - last: value, - }, - }, - '#withStream': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withStream(value=true): { - sim+: { - stream: value, - }, - }, - }, - '#withSpanCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withSpanCount(value): { - spanCount: value, - }, - '#withStream': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStream(value): { - stream: value, - }, - '#withStreamMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStreamMixin(value): { - stream+: value, - }, - stream+: - { - '#withBands': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withBands(value): { - stream+: { - bands: value, - }, - }, - '#withNoise': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withNoise(value): { - stream+: { - noise: value, - }, - }, - '#withSpeed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withSpeed(value): { - stream+: { - speed: value, - }, - }, - '#withSpread': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withSpread(value): { - stream+: { - spread: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['signal', 'logs', 'fetch'], name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - stream+: { - type: value, - }, - }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUrl(value): { - stream+: { - url: value, - }, - }, - }, - '#withStringInput': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withStringInput(value): { - stringInput: value, - }, - '#withUsa': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUsa(value): { - usa: value, - }, - '#withUsaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUsaMixin(value): { - usa+: value, - }, - usa+: - { - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFields(value): { - usa+: { - fields: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFieldsMixin(value): { - usa+: { - fields+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - usa+: { - mode: value, - }, - }, - '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPeriod(value): { - usa+: { - period: value, - }, - }, - '#withStates': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withStates(value): { - usa+: { - states: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withStatesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withStatesMixin(value): { - usa+: { - states+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/serviceaccount.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/serviceaccount.libsonnet deleted file mode 100644 index 1883f1c87..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/serviceaccount.libsonnet +++ /dev/null @@ -1,58 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.serviceaccount', name: 'serviceaccount' }, - '#withAccessControl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'AccessControl metadata associated with a given resource.' } }, - withAccessControl(value): { - accessControl: value, - }, - '#withAccessControlMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'AccessControl metadata associated with a given resource.' } }, - withAccessControlMixin(value): { - accessControl+: value, - }, - '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "AvatarUrl is the service account's avatar URL. It allows the frontend to display a picture in front\nof the service account." } }, - withAvatarUrl(value): { - avatarUrl: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'ID is the unique identifier of the service account in the database.' } }, - withId(value): { - id: value, - }, - '#withIsDisabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'IsDisabled indicates if the service account is disabled.' } }, - withIsDisabled(value=true): { - isDisabled: value, - }, - '#withLogin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Login of the service account.' } }, - withLogin(value): { - login: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the service account.' } }, - withName(value): { - name: value, - }, - '#withOrgId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'OrgId is the ID of an organisation the service account belongs to.' } }, - withOrgId(value): { - orgId: value, - }, - '#withRole': { 'function': { args: [{ default: null, enums: ['Admin', 'Editor', 'Viewer'], name: 'value', type: ['string'] }], help: "OrgRole is a Grafana Organization Role which can be 'Viewer', 'Editor', 'Admin'." } }, - withRole(value): { - role: value, - }, - '#withTeams': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Teams is a list of teams the service account belongs to.' } }, - withTeams(value): { - teams: - (if std.isArray(value) - then value - else [value]), - }, - '#withTeamsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Teams is a list of teams the service account belongs to.' } }, - withTeamsMixin(value): { - teams+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTokens': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Tokens is the number of active tokens for the service account.\nTokens are used to authenticate the service account against Grafana.' } }, - withTokens(value): { - tokens: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/team.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/team.libsonnet deleted file mode 100644 index b5035c8be..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.0.0/raw/team.libsonnet +++ /dev/null @@ -1,36 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.team', name: 'team' }, - '#withAccessControl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'AccessControl metadata associated with a given resource.' } }, - withAccessControl(value): { - accessControl: value, - }, - '#withAccessControlMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'AccessControl metadata associated with a given resource.' } }, - withAccessControlMixin(value): { - accessControl+: value, - }, - '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "AvatarUrl is the team's avatar URL." } }, - withAvatarUrl(value): { - avatarUrl: value, - }, - '#withEmail': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Email of the team.' } }, - withEmail(value): { - email: value, - }, - '#withMemberCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MemberCount is the number of the team members.' } }, - withMemberCount(value): { - memberCount: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the team.' } }, - withName(value): { - name: value, - }, - '#withOrgId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'OrgId is the ID of an organisation the team belongs to.' } }, - withOrgId(value): { - orgId: value, - }, - '#withPermission': { 'function': { args: [{ default: null, enums: [0, 1, 2, 4], name: 'value', type: ['integer'] }], help: '' } }, - withPermission(value): { - permission: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/accesspolicy.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/accesspolicy.libsonnet deleted file mode 100644 index 3a7dd8e88..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/accesspolicy.libsonnet +++ /dev/null @@ -1,90 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.accesspolicy', name: 'accesspolicy' }, - '#withRole': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withRole(value): { - role: value, - }, - '#withRoleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withRoleMixin(value): { - role+: value, - }, - role+: - { - '#withKind': { 'function': { args: [{ default: null, enums: ['Role', 'BuiltinRole', 'Team', 'User'], name: 'value', type: ['string'] }], help: 'Policies can apply to roles, teams, or users\nApplying policies to individual users is supported, but discouraged' } }, - withKind(value): { - role+: { - kind: value, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - role+: { - name: value, - }, - }, - '#withXname': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withXname(value): { - role+: { - xname: value, - }, - }, - }, - '#withRules': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The set of rules to apply. Note that * is required to modify\naccess policy rules, and that "none" will reject all actions' } }, - withRules(value): { - rules: - (if std.isArray(value) - then value - else [value]), - }, - '#withRulesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The set of rules to apply. Note that * is required to modify\naccess policy rules, and that "none" will reject all actions' } }, - withRulesMixin(value): { - rules+: - (if std.isArray(value) - then value - else [value]), - }, - rules+: - { - '#': { help: '', name: 'rules' }, - '#withKind': { 'function': { args: [{ default: '*', enums: null, name: 'value', type: ['string'] }], help: 'The kind this rule applies to (dashboards, alert, etc)' } }, - withKind(value='*'): { - kind: value, - }, - '#withTarget': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific sub-elements like "alert.rules" or "dashboard.permissions"????' } }, - withTarget(value): { - target: value, - }, - '#withVerb': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'string', 'string'] }], help: 'READ, WRITE, CREATE, DELETE, ...\nshould move to k8s style verbs like: "get", "list", "watch", "create", "update", "patch", "delete"' } }, - withVerb(value): { - verb: value, - }, - '#withVerbMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'string', 'string'] }], help: 'READ, WRITE, CREATE, DELETE, ...\nshould move to k8s style verbs like: "get", "list", "watch", "create", "update", "patch", "delete"' } }, - withVerbMixin(value): { - verb+: value, - }, - }, - '#withScope': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withScope(value): { - scope: value, - }, - '#withScopeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withScopeMixin(value): { - scope+: value, - }, - scope+: - { - '#withKind': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withKind(value): { - scope+: { - kind: value, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - scope+: { - name: value, - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/alerting.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/alerting.libsonnet deleted file mode 100644 index c5e14153a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/alerting.libsonnet +++ /dev/null @@ -1,9 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting', name: 'alerting' }, - contactPoint: import 'clean/alerting/contactPoint.libsonnet', - notificationPolicy: import 'clean/alerting/notificationPolicy.libsonnet', - muteTiming: import 'clean/alerting/muteTiming.libsonnet', - ruleGroup: import 'clean/alerting/ruleGroup.libsonnet', - notificationTemplate: import 'clean/alerting/notificationTemplate.libsonnet', -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/contactPoint.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/contactPoint.libsonnet deleted file mode 100644 index 3f601b301..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/contactPoint.libsonnet +++ /dev/null @@ -1,33 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.contactPoint', name: 'contactPoint' }, - '#withDisableResolveMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'EmbeddedContactPoint is the contact point type that is used\nby grafanas embedded alertmanager implementation.' } }, - withDisableResolveMessage(value=true): { - disableResolveMessage: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'EmbeddedContactPoint is the contact point type that is used\nby grafanas embedded alertmanager implementation.' } }, - withName(value): { - name: value, - }, - '#withProvenance': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'EmbeddedContactPoint is the contact point type that is used\nby grafanas embedded alertmanager implementation.' } }, - withProvenance(value): { - provenance: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['alertmanager', ' dingding', ' discord', ' email', ' googlechat', ' kafka', ' line', ' opsgenie', ' pagerduty', ' pushover', ' sensugo', ' slack', ' teams', ' telegram', ' threema', ' victorops', ' webhook', ' wecom'], name: 'value', type: ['string'] }], help: 'EmbeddedContactPoint is the contact point type that is used\nby grafanas embedded alertmanager implementation.' } }, - withType(value): { - type: value, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'EmbeddedContactPoint is the contact point type that is used\nby grafanas embedded alertmanager implementation.' } }, - withUid(value): { - uid: value, - }, -} -+ (import '../../custom/alerting/contactPoint.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/muteTiming.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/muteTiming.libsonnet deleted file mode 100644 index a36d3396f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/muteTiming.libsonnet +++ /dev/null @@ -1,135 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.muteTiming', name: 'muteTiming' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withTimeIntervals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimeIntervals(value): { - time_intervals: - (if std.isArray(value) - then value - else [value]), - }, - '#withTimeIntervalsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimeIntervalsMixin(value): { - time_intervals+: - (if std.isArray(value) - then value - else [value]), - }, - interval+: - { - '#': { help: '', name: 'interval' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withTimeIntervals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimeIntervals(value): { - time_intervals: - (if std.isArray(value) - then value - else [value]), - }, - '#withTimeIntervalsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimeIntervalsMixin(value): { - time_intervals+: - (if std.isArray(value) - then value - else [value]), - }, - time_intervals+: - { - '#': { help: '', name: 'time_intervals' }, - '#withDaysOfMonth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDaysOfMonth(value): { - days_of_month: - (if std.isArray(value) - then value - else [value]), - }, - '#withDaysOfMonthMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDaysOfMonthMixin(value): { - days_of_month+: - (if std.isArray(value) - then value - else [value]), - }, - '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLocation(value): { - location: value, - }, - '#withMonths': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMonths(value): { - months: - (if std.isArray(value) - then value - else [value]), - }, - '#withMonthsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMonthsMixin(value): { - months+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTimes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimes(value): { - times: - (if std.isArray(value) - then value - else [value]), - }, - '#withTimesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimesMixin(value): { - times+: - (if std.isArray(value) - then value - else [value]), - }, - times+: - { - '#': { help: '', name: 'times' }, - '#withEndTime': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withEndTime(value): { - end_time: value, - }, - '#withStartTime': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withStartTime(value): { - start_time: value, - }, - }, - '#withWeekdays': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withWeekdays(value): { - weekdays: - (if std.isArray(value) - then value - else [value]), - }, - '#withWeekdaysMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withWeekdaysMixin(value): { - weekdays+: - (if std.isArray(value) - then value - else [value]), - }, - '#withYears': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withYears(value): { - years: - (if std.isArray(value) - then value - else [value]), - }, - '#withYearsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withYearsMixin(value): { - years+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, -} -+ (import '../../custom/alerting/muteTiming.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/notificationPolicy.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/notificationPolicy.libsonnet deleted file mode 100644 index 618b6a9a2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/notificationPolicy.libsonnet +++ /dev/null @@ -1,97 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.notificationPolicy', name: 'notificationPolicy' }, - '#withContinue': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.' } }, - withContinue(value=true): { - continue: value, - }, - '#withGroupInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.' } }, - withGroupInterval(value): { - group_interval: value, - }, - '#withGroupWait': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.' } }, - withGroupWait(value): { - group_wait: value, - }, - '#withRepeatInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.' } }, - withRepeatInterval(value): { - repeat_interval: value, - }, - '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.' } }, - withGroupBy(value): { - group_by: - (if std.isArray(value) - then value - else [value]), - }, - '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.' } }, - withGroupByMixin(value): { - group_by+: - (if std.isArray(value) - then value - else [value]), - }, - '#withMatchers': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Matchers is a slice of Matchers that is sortable, implements Stringer, and\nprovides a Matches method to match a LabelSet against all Matchers in the\nslice. Note that some users of Matchers might require it to be sorted.' } }, - withMatchers(value): { - matchers: - (if std.isArray(value) - then value - else [value]), - }, - '#withMatchersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Matchers is a slice of Matchers that is sortable, implements Stringer, and\nprovides a Matches method to match a LabelSet against all Matchers in the\nslice. Note that some users of Matchers might require it to be sorted.' } }, - withMatchersMixin(value): { - matchers+: - (if std.isArray(value) - then value - else [value]), - }, - '#withMuteTimeIntervals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.' } }, - withMuteTimeIntervals(value): { - mute_time_intervals: - (if std.isArray(value) - then value - else [value]), - }, - '#withMuteTimeIntervalsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.' } }, - withMuteTimeIntervalsMixin(value): { - mute_time_intervals+: - (if std.isArray(value) - then value - else [value]), - }, - '#withReceiver': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.' } }, - withReceiver(value): { - receiver: value, - }, - '#withRoutes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.' } }, - withRoutes(value): { - routes: - (if std.isArray(value) - then value - else [value]), - }, - '#withRoutesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.' } }, - withRoutesMixin(value): { - routes+: - (if std.isArray(value) - then value - else [value]), - }, - matcher+: - { - '#': { help: '', name: 'matcher' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - Name: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['=', '!=', '=~', '!~'], name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - Type: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withValue(value): { - Value: value, - }, - }, -} -+ (import '../../custom/alerting/notificationPolicy.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/notificationTemplate.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/notificationTemplate.libsonnet deleted file mode 100644 index fe210e894..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/notificationTemplate.libsonnet +++ /dev/null @@ -1,16 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.notificationTemplate', name: 'notificationTemplate' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withProvenance': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withProvenance(value): { - provenance: value, - }, - '#withTemplate': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTemplate(value): { - template: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/ruleGroup.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/ruleGroup.libsonnet deleted file mode 100644 index f844a0a2c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/clean/alerting/ruleGroup.libsonnet +++ /dev/null @@ -1,147 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.alerting.ruleGroup', name: 'ruleGroup' }, - '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFolderUid(value): { - folderUid: value, - }, - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Duration in seconds.' } }, - withInterval(value): { - interval: value, - }, - '#withRules': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withRules(value): { - rules: - (if std.isArray(value) - then value - else [value]), - }, - '#withRulesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withRulesMixin(value): { - rules+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - title: value, - }, - rule+: - { - '#withAnnotations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAnnotations(value): { - annotations: value, - }, - '#withAnnotationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAnnotationsMixin(value): { - annotations+: value, - }, - '#withCondition': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withCondition(value): { - condition: value, - }, - '#withData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withData(value): { - data: - (if std.isArray(value) - then value - else [value]), - }, - '#withDataMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDataMixin(value): { - data+: - (if std.isArray(value) - then value - else [value]), - }, - '#withExecErrState': { 'function': { args: [{ default: null, enums: ['OK', 'Alerting', 'Error'], name: 'value', type: ['string'] }], help: '' } }, - withExecErrState(value): { - execErrState: value, - }, - '#withFolderUID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFolderUID(value): { - folderUID: value, - }, - '#withFor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The amount of time, in seconds, for which the rule must be breached for the rule to be considered to be Firing.\nBefore this time has elapsed, the rule is only considered to be Pending.' } }, - withFor(value): { - 'for': value, - }, - '#withIsPaused': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsPaused(value=true): { - isPaused: value, - }, - '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabels(value): { - labels: value, - }, - '#withLabelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelsMixin(value): { - labels+: value, - }, - '#withNoDataState': { 'function': { args: [{ default: null, enums: ['Alerting', 'NoData', 'OK'], name: 'value', type: ['string'] }], help: '' } }, - withNoDataState(value): { - noDataState: value, - }, - '#withOrgID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withOrgID(value): { - orgID: value, - }, - '#withRuleGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRuleGroup(value): { - ruleGroup: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - title: value, - }, - data+: - { - '#': { help: '', name: 'data' }, - '#withDatasourceUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withDatasourceUid(value): { - datasourceUid: value, - }, - '#withModel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withModel(value): { - model: value, - }, - '#withModelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withModelMixin(value): { - model+: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRefId(value): { - refId: value, - }, - '#withRelativeTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'RelativeTimeRange is the per query start and end time\nfor requests.' } }, - withRelativeTimeRange(value): { - relativeTimeRange: value, - }, - '#withRelativeTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'RelativeTimeRange is the per query start and end time\nfor requests.' } }, - withRelativeTimeRangeMixin(value): { - relativeTimeRange+: value, - }, - relativeTimeRange+: - { - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Duration in seconds.' } }, - withFrom(value): { - relativeTimeRange+: { - from: value, - }, - }, - '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Duration in seconds.' } }, - withTo(value): { - relativeTimeRange+: { - to: value, - }, - }, - }, - }, - }, -} -+ (import '../../custom/alerting/ruleGroup.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/contactPoint.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/contactPoint.libsonnet deleted file mode 100644 index 4b8bbf0b5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/contactPoint.libsonnet +++ /dev/null @@ -1,12 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#'+:: { - help+: - ||| - - - **NOTE**: The schemas for all different contact points is under development, this means we can't properly express them in Grafonnet yet. The way this works now may change heavily. - |||, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/muteTiming.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/muteTiming.libsonnet deleted file mode 100644 index 4a2efb360..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/muteTiming.libsonnet +++ /dev/null @@ -1,8 +0,0 @@ -{ - '#withTimeIntervals': { ignore: true }, - '#withIntervals': super['#withTimeIntervals'], - withIntervals: super.withTimeIntervals, - '#withTimeIntervalsMixin': { ignore: true }, - '#withIntervalsMixin': super['#withTimeIntervalsMixin'], - withIntervalsMixin: super.withTimeIntervalsMixin, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/notificationPolicy.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/notificationPolicy.libsonnet deleted file mode 100644 index cf9a2b7dc..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/notificationPolicy.libsonnet +++ /dev/null @@ -1,12 +0,0 @@ -{ - '#withReceiver': { ignore: true }, - '#withContactPoint': super['#withReceiver'], - withContactPoint: super.withReceiver, - - '#withRoutes': { ignore: true }, - '#withPolicy': super['#withRoutes'], - withPolicy: super.withRoutes, - '#withRoutesMixin': { ignore: true }, - '#withPolicyMixin': super['#withRoutesMixin'], - withPolicyMixin: super.withRoutesMixin, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/ruleGroup.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/ruleGroup.libsonnet deleted file mode 100644 index 4ed32afb0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/alerting/ruleGroup.libsonnet +++ /dev/null @@ -1,13 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#withTitle': { ignore: true }, - '#withName': super['#withTitle'], - withName: super.withTitle, - rule+: { - '#':: d.package.newSub('rule', ''), - '#withTitle': { ignore: true }, - '#withName': super['#withTitle'], - withName: super.withTitle, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard.libsonnet deleted file mode 100644 index ea8cb554a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard.libsonnet +++ /dev/null @@ -1,69 +0,0 @@ -local util = import './util/main.libsonnet'; -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#new':: d.func.new( - 'Creates a new dashboard with a title.', - args=[d.arg('title', d.T.string)] - ), - new(title): - self.withTitle(title) - + self.withSchemaVersion() - + self.withTimezone('utc') - + self.time.withFrom('now-6h') - + self.time.withTo('now'), - - '#withSchemaVersion': { 'function'+: { args: [d.arg('value', d.T.integer, default=39)] } }, - withSchemaVersion(value=39): { - schemaVersion: value, - }, - - '#withPanels':: d.func.new( - '`withPanels` sets the panels on a dashboard authoratively. It automatically adds IDs to the panels, this can be disabled with `setPanelIDs=false`.', - args=[ - d.arg('panels', d.T.array), - d.arg('setPanelIDs', d.T.bool, default=true), - ] - ), - withPanels(panels, setPanelIDs=true): { - _panels:: if std.isArray(panels) then panels else [panels], - panels: - if setPanelIDs - then util.panel.setPanelIDs(self._panels) - else self._panels, - }, - '#withPanelsMixin':: d.func.new( - '`withPanelsMixin` adds more panels to a dashboard.', - args=[ - d.arg('panels', d.T.array), - d.arg('setPanelIDs', d.T.bool, default=true), - ] - ), - withPanelsMixin(panels, setPanelIDs=true): { - _panels+:: if std.isArray(panels) then panels else [panels], - panels: - if setPanelIDs - then util.panel.setPanelIDs(self._panels) - else self._panels, - }, - - graphTooltip+: { - // 0 - Default - // 1 - Shared crosshair - // 2 - Shared tooltip - '#withSharedCrosshair':: d.func.new( - 'Share crosshair on all panels.', - ), - withSharedCrosshair(): - { graphTooltip: 1 }, - - '#withSharedTooltip':: d.func.new( - 'Share crosshair and tooltip on all panels.', - ), - withSharedTooltip(): - { graphTooltip: 2 }, - }, -} -+ (import './dashboard/annotation.libsonnet') -+ (import './dashboard/link.libsonnet') -+ (import './dashboard/variable.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard/annotation.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard/annotation.libsonnet deleted file mode 100644 index 02892ab33..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard/annotation.libsonnet +++ /dev/null @@ -1,36 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#annotation':: {}, - - '#withAnnotations': - d.func.new( - ||| - `withAnnotations` adds an array of annotations to a dashboard. - - This function appends passed data to existing values - |||, - args=[d.arg('value', d.T.array)] - ), - withAnnotations(value): super.annotation.withList(value), - - '#withAnnotationsMixin': - d.func.new( - ||| - `withAnnotationsMixin` adds an array of annotations to a dashboard. - - This function appends passed data to existing values - |||, - args=[d.arg('value', d.T.array)] - ), - withAnnotationsMixin(value): super.annotation.withListMixin(value), - - annotation: - super.annotation.list - + { - '#':: d.package.newSub( - 'annotation', - '', - ), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard/link.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard/link.libsonnet deleted file mode 100644 index eb9b2fe9a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard/link.libsonnet +++ /dev/null @@ -1,90 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#withLinks':: d.func.new( - ||| - Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. - - `withLinks` takes an array of [link objects](./link.md). - - The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. - - Example: - - ```jsonnet - local g = import 'g.libsonnet'; - local link = g.dashboard.link; - - g.dashboard.new('Title dashboard') - + g.dashboard.withLinks([ - link.link.new('My title', 'https://wikipedia.org/'), - ]) - ``` - |||, - [d.arg('value', d.T.array)], - ), - '#withLinksMixin':: self['#withLinks'], - - link+: { - '#':: d.package.newSub( - 'link', - ||| - Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. - - The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. - - Example: - - ```jsonnet - local g = import 'g.libsonnet'; - local link = g.dashboard.link; - - g.dashboard.new('Title dashboard') - + g.dashboard.withLinks([ - link.link.new('My title', 'https://wikipedia.org/'), - ]) - ``` - |||, - ), - - dashboards+: { - '#new':: d.func.new( - ||| - Create links to dashboards based on `tags`. - |||, - args=[ - d.arg('title', d.T.string), - d.arg('tags', d.T.array), - ] - ), - new(title, tags): - self.withTitle(title) - + self.withType('dashboards') - + self.withTags(tags), - - '#withTitle':: {}, - '#withType':: {}, - '#withTags':: {}, - }, - - link+: { - '#new':: d.func.new( - ||| - Create link to an arbitrary URL. - |||, - args=[ - d.arg('title', d.T.string), - d.arg('url', d.T.string), - ] - ), - new(title, url): - self.withTitle(title) - + self.withType('link') - + self.withUrl(url), - - '#withTitle':: {}, - '#withType':: {}, - '#withUrl':: {}, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard/variable.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard/variable.libsonnet deleted file mode 100644 index b4ce4d384..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/dashboard/variable.libsonnet +++ /dev/null @@ -1,525 +0,0 @@ -local util = import '../util/main.libsonnet'; -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - local var = super.variable.list, - - '#withVariables': - d.func.new( - ||| - `withVariables` adds an array of variables to a dashboard - |||, - args=[d.arg('value', d.T.array)] - ), - withVariables(value): super.variable.withList(value), - - '#withVariablesMixin': - d.func.new( - ||| - `withVariablesMixin` adds an array of variables to a dashboard. - - This function appends passed data to existing values - |||, - args=[d.arg('value', d.T.array)] - ), - withVariablesMixin(value): super.variable.withListMixin(value), - - variable: { - '#':: d.package.newSub( - 'variable', - ||| - Example usage: - - ```jsonnet - local g = import 'g.libsonnet'; - local var = g.dashboard.variable; - - local customVar = - var.custom.new( - 'myOptions', - values=['a', 'b', 'c', 'd'], - ) - + var.custom.generalOptions.withDescription( - 'This is a variable for my custom options.' - ) - + var.custom.selectionOptions.withMulti(); - - local queryVar = - var.query.new('queryOptions') - + var.query.queryTypes.withLabelValues( - 'up', - 'instance', - ) - + var.query.withDatasource( - type='prometheus', - uid='mimir-prod', - ) - + var.query.selectionOptions.withIncludeAll(); - - - g.dashboard.new('my dashboard') - + g.dashboard.withVariables([ - customVar, - queryVar, - ]) - ``` - |||, - ), - - local generalOptions = { - generalOptions+: - { - - '#withName': var['#withName'], - withName: var.withName, - '#withLabel': var['#withLabel'], - withLabel: var.withLabel, - '#withDescription': var['#withDescription'], - withDescription: var.withDescription, - - showOnDashboard: { - '#withLabelAndValue':: d.func.new(''), - withLabelAndValue(): var.withHide(0), - '#withValueOnly':: d.func.new(''), - withValueOnly(): var.withHide(1), - '#withNothing':: d.func.new(''), - withNothing(): var.withHide(2), - }, - - '#withCurrent':: d.func.new( - ||| - `withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - |||, - args=[ - d.arg('key', d.T.any), - d.arg('value', d.T.any, default=''), - ] - ), - withCurrent(key, value=key): { - local multi(v) = - if std.get(self, 'multi', false) - && !std.isArray(v) - then [v] - else v, - current: { - selected: false, - text: multi(key), - value: multi(value), - }, - }, - }, - }, - - local selectionOptions = - { - selectionOptions: - { - '#withMulti':: d.func.new( - 'Enable selecting multiple values.', - args=[ - d.arg('value', d.T.boolean, default=true), - ] - ), - withMulti(value=true): { - multi: value, - }, - - '#withIncludeAll':: d.func.new( - ||| - `withIncludeAll` enables an option to include all variables. - - Optionally you can set a `customAllValue`. - |||, - args=[ - d.arg('value', d.T.boolean, default=true), - d.arg('customAllValue', d.T.string, default=null), - ] - ), - withIncludeAll(value=true, customAllValue=null): { - includeAll: value, - [if customAllValue != null then 'allValue']: customAllValue, - }, - }, - }, - - query: - generalOptions - + selectionOptions - + { - '#new':: d.func.new( - ||| - Create a query template variable. - - `query` argument is optional, this can also be set with `query.queryTypes`. - |||, - args=[ - d.arg('name', d.T.string), - d.arg('query', d.T.string, default=''), - ] - ), - new(name, query=''): - var.withName(name) - + var.withType('query') - + var.withQuery(query), - - '#withDatasource':: d.func.new( - 'Select a datasource for the variable template query.', - args=[ - d.arg('type', d.T.string), - d.arg('uid', d.T.string), - ] - ), - withDatasource(type, uid): - var.datasource.withType(type) - + var.datasource.withUid(uid), - - '#withDatasourceFromVariable':: d.func.new( - 'Select the datasource from another template variable.', - args=[ - d.arg('variable', d.T.object), - ] - ), - withDatasourceFromVariable(variable): - if variable.type == 'datasource' - then self.withDatasource(variable.query, '${%s}' % variable.name) - else error "`variable` not of type 'datasource'", - - '#withRegex':: d.func.new( - ||| - `withRegex` can extract part of a series name or metric node segment. Named - capture groups can be used to separate the display text and value - ([see examples](https://grafana.com/docs/grafana/latest/variables/filter-variables-with-regex#filter-and-modify-using-named-text-and-value-capture-groups)). - |||, - args=[ - d.arg('value', d.T.string), - ] - ), - withRegex(value): { - regex: value, - }, - - '#withSort':: d.func.new( - ||| - Choose how to sort the values in the dropdown. - - This can be called as `withSort() to use the integer values for each - option. If `i==0` then it will be ignored and the other arguments will take - precedence. - - The numerical values are: - - - 1 - Alphabetical (asc) - - 2 - Alphabetical (desc) - - 3 - Numerical (asc) - - 4 - Numerical (desc) - - 5 - Alphabetical (case-insensitive, asc) - - 6 - Alphabetical (case-insensitive, desc) - |||, - args=[ - d.arg('i', d.T.number, default=0), - d.arg('type', d.T.string, default='alphabetical'), - d.arg('asc', d.T.boolean, default=true), - d.arg('caseInsensitive', d.T.boolean, default=false), - ], - ), - withSort(i=0, type='alphabetical', asc=true, caseInsensitive=false): - if i != 0 // provide fallback to numerical value - then { sort: i } - else - { - local mapping = { - alphabetical: - if !caseInsensitive - then - if asc - then 1 - else 2 - else - if asc - then 5 - else 6, - numerical: - if asc - then 3 - else 4, - }, - sort: mapping[type], - }, - - // TODO: Expand with Query types to match GUI - queryTypes: { - '#withLabelValues':: d.func.new( - 'Construct a Prometheus template variable using `label_values()`.', - args=[ - d.arg('label', d.T.string), - d.arg('metric', d.T.string, default=''), - ] - ), - withLabelValues(label, metric=''): - if metric == '' - then var.withQuery('label_values(%s)' % label) - else var.withQuery('label_values(%s, %s)' % [metric, label]), - - '#withQueryResult':: d.func.new( - 'Construct a Prometheus template variable using `query_result()`.', - args=[ - d.arg('query', d.T.string), - ] - ), - withQueryResult(query): - var.withQuery('query_result(%s)' % query), - }, - - // Deliberately undocumented, use `refresh` below - withRefresh(value): { - // 1 - On dashboard load - // 2 - On time range chagne - refresh: value, - }, - - local withRefresh = self.withRefresh, - refresh+: { - '#onLoad':: d.func.new( - 'Refresh label values on dashboard load.' - ), - onLoad(): withRefresh(1), - - '#onTime':: d.func.new( - 'Refresh label values on time range change.' - ), - onTime(): withRefresh(2), - }, - }, - - custom: - generalOptions - + selectionOptions - + { - '#new':: d.func.new( - ||| - `new` creates a custom template variable. - - The `values` array accepts an object with key/value keys, if it's not an object - then it will be added as a string. - - Example: - ``` - [ - { key: 'mykey', value: 'myvalue' }, - 'myvalue', - 12, - ] - |||, - args=[ - d.arg('name', d.T.string), - d.arg('values', d.T.array), - ] - ), - new(name, values): - var.withName(name) - + var.withType('custom') - + { - // Make values array available in jsonnet - values:: [ - if !std.isObject(item) - then { - key: std.toString(item), - value: std.toString(item), - } - else item - for item in values - ], - - // Render query from values array - query: - std.join(',', [ - std.join(' : ', [item.key, item.value]) - for item in self.values - ]), - - // Set current/options - current: - util.dashboard.getCurrentFromValues( - self.values, - std.get(self, 'multi', false) - ), - options: util.dashboard.getOptionsFromValues(self.values), - }, - - withQuery(query): { - values:: util.dashboard.parseCustomQuery(query), - query: query, - }, - }, - - textbox: - generalOptions - + { - '#new':: d.func.new( - '`new` creates a textbox template variable.', - args=[ - d.arg('name', d.T.string), - d.arg('default', d.T.string, default=''), - ] - ), - new(name, default=''): - var.withName(name) - + var.withType('textbox') - + { - local this = self, - default:: default, - query: self.default, - - // Set current/options - keyvaluedict:: [{ key: this.query, value: this.query }], - current: - util.dashboard.getCurrentFromValues( - self.keyvaluedict, - std.get(self, 'multi', false) - ), - options: util.dashboard.getOptionsFromValues(self.keyvaluedict), - }, - }, - - constant: - generalOptions - + { - '#new':: d.func.new( - '`new` creates a hidden constant template variable.', - args=[ - d.arg('name', d.T.string), - d.arg('value', d.T.string), - ] - ), - new(name, value=''): - var.withName(name) - + var.withType('constant') - + var.withHide(2) - + var.withQuery(value), - }, - - datasource: - generalOptions - + selectionOptions - + { - '#new':: d.func.new( - '`new` creates a datasource template variable.', - args=[ - d.arg('name', d.T.string), - d.arg('type', d.T.string), - ] - ), - new(name, type): - var.withName(name) - + var.withType('datasource') - + var.withQuery(type), - - '#withRegex':: d.func.new( - ||| - `withRegex` filter for which data source instances to choose from in the - variable value list. Example: `/^prod/` - |||, - args=[ - d.arg('value', d.T.string), - ] - ), - withRegex(value): { - regex: value, - }, - }, - - interval: - generalOptions - + { - '#new':: d.func.new( - '`new` creates an interval template variable.', - args=[ - d.arg('name', d.T.string), - d.arg('values', d.T.array), - ] - ), - new(name, values): - var.withName(name) - + var.withType('interval') - + { - // Make values array available in jsonnet - values:: values, - // Render query from values array - query: std.join(',', self.values), - - // Set current/options - keyvaluedict:: [ - { - key: item, - value: item, - } - for item in values - ], - current: - util.dashboard.getCurrentFromValues( - self.keyvaluedict, - std.get(self, 'multi', false) - ), - options: util.dashboard.getOptionsFromValues(self.keyvaluedict), - }, - - - '#withAutoOption':: d.func.new( - ||| - `withAutoOption` adds an options to dynamically calculate interval by dividing - time range by the count specified. - - `minInterval' has to be either unit-less or end with one of the following units: - "y, M, w, d, h, m, s, ms". - |||, - args=[ - d.arg('count', d.T.number), - d.arg('minInterval', d.T.string), - ] - ), - withAutoOption(count=30, minInterval='10s'): { - local this = self, - - auto: true, - auto_count: count, - auto_min: minInterval, - - // Add auto item to current/options - keyvaluedict:: - [{ key: 'auto', value: '$__auto_interval_' + this.name }] - + super.keyvaluedict, - }, - }, - - adhoc: - generalOptions - + { - '#new':: d.func.new( - '`new` creates an adhoc template variable for datasource with `type` and `uid`.', - args=[ - d.arg('name', d.T.string), - d.arg('type', d.T.string), - d.arg('uid', d.T.string), - ] - ), - new(name, type, uid): - var.withName(name) - + var.withType('adhoc') - + var.datasource.withType(type) - + var.datasource.withUid(uid), - - '#newFromDatasourceVariable':: d.func.new( - 'Same as `new` but selecting the datasource from another template variable.', - args=[ - d.arg('name', d.T.string), - d.arg('variable', d.T.object), - ] - ), - newFromDatasourceVariable(name, variable): - if variable.type == 'datasource' - then self.new(name, variable.query, '${%s}' % variable.name) - else error "`variable` not of type 'datasource'", - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/panel.libsonnet deleted file mode 100644 index 240a044ca..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/panel.libsonnet +++ /dev/null @@ -1,171 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -// match name/title to reduce diff in docs -local panelNames = { - alertgroups: 'alertGroups', - annolist: 'annotationsList', - barchart: 'barChart', - bargauge: 'barGauge', - dashlist: 'dashboardList', - nodeGraph: 'nodeGraph', - piechart: 'pieChart', - 'state-timeline': 'stateTimeline', - 'status-history': 'statusHistory', - timeseries: 'timeSeries', - xychart: 'xyChart', -}; - -local getPanelName(type) = - std.get(panelNames, type, type); - -{ - '#new':: d.func.new( - 'Creates a new %s panel with a title.' % getPanelName(self.panelOptions.withType().type), - args=[d.arg('title', d.T.string)] - ), - new(title): - self.panelOptions.withTitle(title) - + self.panelOptions.withType() - + self.panelOptions.withPluginVersion() - // Default to Mixed datasource so panels can be datasource agnostic, this - // requires query targets to explicitly set datasource, which is a lot more - // interesting from a reusability standpoint. - + self.queryOptions.withDatasource('datasource', '-- Mixed --'), - - // Backwards compatible entries, ignored in docs - link+: self.panelOptions.link + { '#':: { ignore: true } }, - thresholdStep+: self.standardOptions.threshold.step + { '#':: { ignore: true } }, - transformation+: self.queryOptions.transformation + { '#':: { ignore: true } }, - valueMapping+: self.standardOptions.mapping + { '#':: { ignore: true } }, - fieldOverride+: self.standardOptions.override + { '#':: { ignore: true } }, - - '#gridPos': {}, // use withGridPos instead, a bit more concise. - local gridPos = self.gridPos, - panelOptions+: { - '#withPluginVersion': {}, - - '#withGridPos': d.func.new( - ||| - `withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - - All arguments default to `null`, which means they will remain unchanged or unset. - |||, - args=[ - d.arg('h', d.T.number, default='null'), - d.arg('w', d.T.number, default='null'), - d.arg('x', d.T.number, default='null'), - d.arg('y', d.T.number, default='null'), - ] - ), - withGridPos(h=null, w=null, x=null, y=null): - (if h != null then gridPos.withH(h) else {}) - + (if w != null then gridPos.withW(w) else {}) - + (if x != null then gridPos.withX(x) else {}) - + (if y != null then gridPos.withY(y) else {}), - }, - - '#datasource':: {}, // use withDatasource instead, bit more concise - local datasource = self.datasource, - queryOptions+: { - '#withDatasource':: d.func.new( - ||| - `withDatasource` sets the datasource for all queries in a panel. - - The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - |||, - args=[ - d.arg('type', d.T.string), - d.arg('uid', d.T.string), - ] - ), - withDatasource(type, uid): - datasource.withType(type) - + datasource.withUid(uid), - }, - - standardOptions+: { - threshold+: { step+: { '#':: d.package.newSub('threshold.step', '') } }, - - local overrides = super.override, - local commonOverrideFunctions = { - '#new':: d.fn( - '`new` creates a new override of type `%s`.' % self.type, - args=[ - d.arg('value', d.T.string), - ] - ), - new(value): - overrides.matcher.withId(self.type) - + overrides.matcher.withOptions(value), - - '#withProperty':: d.fn( - ||| - `withProperty` adds a property that needs to be overridden. This function can - be called multiple time, adding more properties. - |||, - args=[ - d.arg('id', d.T.string), - d.arg('value', d.T.any), - ] - ), - withProperty(id, value): - overrides.withPropertiesMixin([ - overrides.properties.withId(id) - + overrides.properties.withValue(value), - ]), - - '#withPropertiesFromOptions':: d.fn( - ||| - `withPropertiesFromOptions` takes an object with properties that need to be - overridden. See example code above. - |||, - args=[ - d.arg('options', d.T.object), - ] - ), - withPropertiesFromOptions(options): - local infunc(input, path=[]) = - std.foldl( - function(acc, p) - acc + ( - if p == 'custom' - then infunc(input[p], path=path + [p]) - else - overrides.withPropertiesMixin([ - overrides.properties.withId(std.join('.', path + [p])) - + overrides.properties.withValue(input[p]), - ]) - ), - std.objectFields(input), - {} - ); - infunc(options.fieldConfig.defaults), - }, - - override: - { - '#':: d.package.newSub( - 'override', - ||| - Overrides allow you to customize visualization settings for specific fields or - series. This is accomplished by adding an override rule that targets - a particular set of fields and that can each define multiple options. - - ```jsonnet - override.byType.new('number') - + override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') - ) - ``` - ||| - ), - byName: commonOverrideFunctions + { type:: 'byName' }, - byRegexp: commonOverrideFunctions + { type:: 'byRegexp' }, - byType: commonOverrideFunctions + { type:: 'byType' }, - byQuery: commonOverrideFunctions + { type:: 'byFrameRefID' }, - // TODO: byValue takes more complex `options` than string - byValue: commonOverrideFunctions + { type:: 'byValue' }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/azureMonitor.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/azureMonitor.libsonnet deleted file mode 100644 index 89264496e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/azureMonitor.libsonnet +++ /dev/null @@ -1,17 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#withDatasource':: d.func.new( - 'Set the datasource for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withDatasource(value): { - datasource+: { - type: 'grafana-azure-monitor-datasource', - uid: value, - }, - }, - '#withDatasourceMixin':: { ignore: true }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/cloudWatch.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/cloudWatch.libsonnet deleted file mode 100644 index 208ee6527..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/cloudWatch.libsonnet +++ /dev/null @@ -1,23 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - local withDatasourceStub = { - '#withDatasource':: d.func.new( - 'Set the datasource for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withDatasource(value): { - datasource+: { - type: 'cloudwatch', - uid: value, - }, - }, - '#withDatasourceMixin':: { ignore: true }, - }, - - CloudWatchAnnotationQuery+: withDatasourceStub, - CloudWatchLogsQuery+: withDatasourceStub, - CloudWatchMetricsQuery+: withDatasourceStub, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/elasticsearch.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/elasticsearch.libsonnet deleted file mode 100644 index 7d1d54a32..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/elasticsearch.libsonnet +++ /dev/null @@ -1,20 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - bucketAggs+: { '#': { help: '', name: 'bucketAggs' } }, - metrics+: { '#': { help: '', name: 'metrics' } }, - - '#withDatasource':: d.func.new( - 'Set the datasource for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withDatasource(value): { - datasource+: { - type: 'elasticsearch', - uid: value, - }, - }, - '#withDatasourceMixin':: { ignore: true }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/expr.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/expr.libsonnet deleted file mode 100644 index 02417b6c6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/expr.libsonnet +++ /dev/null @@ -1,12 +0,0 @@ -{ - '#': { - help: 'Server Side Expression operations for grafonnet.alerting.ruleGroup.rule', - name: 'expr', - }, - TypeMath+: { '#': { help: 'grafonnet.query.expr.TypeMath', name: 'TypeMath' } }, - TypeReduce+: { '#': { help: 'grafonnet.query.expr.TypeReduce', name: 'TypeReduce' } }, - TypeResample+: { '#': { help: 'grafonnet.query.expr.TypeResample', name: 'TypeResample' } }, - TypeClassicConditions+: { '#': { help: 'grafonnet.query.expr.TypeClassicConditions', name: 'TypeClassicConditions' } }, - TypeThreshold+: { '#': { help: 'grafonnet.query.expr.TypeThreshold', name: 'TypeThreshold' } }, - TypeSql+: { '#': { help: 'grafonnet.query.expr.TypeSql', name: 'TypeSql' } }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/googleCloudMonitoring.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/googleCloudMonitoring.libsonnet deleted file mode 100644 index 1adaa99ae..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/googleCloudMonitoring.libsonnet +++ /dev/null @@ -1,17 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#withDatasource':: d.func.new( - 'Set the datasource for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withDatasource(value): { - datasource+: { - type: 'cloud-monitoring', - uid: value, - }, - }, - '#withDatasourceMixin':: { ignore: true }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/grafanaPyroscope.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/grafanaPyroscope.libsonnet deleted file mode 100644 index 2f5282100..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/grafanaPyroscope.libsonnet +++ /dev/null @@ -1,17 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#withDatasource':: d.func.new( - 'Set the datasource for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withDatasource(value): { - datasource+: { - type: 'grafanapyroscope', - uid: value, - }, - }, - '#withDatasourceMixin':: { ignore: true }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/loki.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/loki.libsonnet deleted file mode 100644 index 48311452e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/loki.libsonnet +++ /dev/null @@ -1,28 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#new':: d.func.new( - 'Creates a new loki query target for panels.', - args=[ - d.arg('datasource', d.T.string), - d.arg('expr', d.T.string), - ] - ), - new(datasource, expr): - self.withDatasource(datasource) - + self.withExpr(expr), - - '#withDatasource':: d.func.new( - 'Set the datasource for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withDatasource(value): { - datasource+: { - type: 'loki', - uid: value, - }, - }, - '#withDatasourceMixin':: { ignore: true }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/parca.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/parca.libsonnet deleted file mode 100644 index 35c454ec6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/parca.libsonnet +++ /dev/null @@ -1,17 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#withDatasource':: d.func.new( - 'Set the datasource for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withDatasource(value): { - datasource+: { - type: 'parca', - uid: value, - }, - }, - '#withDatasourceMixin':: { ignore: true }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/prometheus.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/prometheus.libsonnet deleted file mode 100644 index 68e1e057e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/prometheus.libsonnet +++ /dev/null @@ -1,48 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#new':: d.func.new( - 'Creates a new prometheus query target for panels.', - args=[ - d.arg('datasource', d.T.string), - d.arg('expr', d.T.string), - ] - ), - new(datasource, expr): - self.withDatasource(datasource) - + self.withExpr(expr), - - '#withIntervalFactor':: d.func.new( - 'Set the interval factor for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withIntervalFactor(value): { - intervalFactor: value, - }, - - '#withLegendFormat':: d.func.new( - 'Set the legend format for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withLegendFormat(value): { - legendFormat: value, - }, - - '#withDatasource':: d.func.new( - 'Set the datasource for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withDatasource(value): { - datasource+: { - type: 'prometheus', - uid: value, - }, - }, - '#withDatasourceMixin':: { ignore: true }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/tempo.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/tempo.libsonnet deleted file mode 100644 index f9fc9109c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/tempo.libsonnet +++ /dev/null @@ -1,30 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#new':: d.func.new( - 'Creates a new tempo query target for panels.', - args=[ - d.arg('datasource', d.T.string), - d.arg('query', d.T.string), - d.arg('filters', d.T.array), - ] - ), - new(datasource, query, filters): - self.withDatasource(datasource) - + self.withQuery(query) - + self.withFilters(filters), - - '#withDatasource':: d.func.new( - 'Set the datasource for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withDatasource(value): { - datasource+: { - type: 'tempo', - uid: value, - }, - }, - '#withDatasourceMixin':: { ignore: true }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/testData.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/testData.libsonnet deleted file mode 100644 index b482dbc90..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/query/testData.libsonnet +++ /dev/null @@ -1,17 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#withDatasource':: d.func.new( - 'Set the datasource for this query.', - args=[ - d.arg('value', d.T.string), - ] - ), - withDatasource(): { - datasource+: { - type: 'datasource', - uid: 'grafana', - }, - }, - '#withDatasourceMixin':: { ignore: true }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/row.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/row.libsonnet deleted file mode 100644 index 049537e23..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/row.libsonnet +++ /dev/null @@ -1,26 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#new':: d.func.new( - 'Creates a new row panel with a title.', - args=[d.arg('title', d.T.string)] - ), - new(title): - self.withTitle(title) - + self.withType() - + self.withCollapsed(false) - + self.gridPos.withX(0) - + self.gridPos.withH(1) - + self.gridPos.withW(24), - - '#gridPos':: {}, // use withGridPos instead - '#withGridPos':: d.func.new( - '`withGridPos` sets the Y-axis on a row panel. x, width and height are fixed values.', - args=[d.arg('y', d.T.number)] - ), - withGridPos(y): - self.gridPos.withX(0) - + self.gridPos.withY(y) - + self.gridPos.withH(1) - + self.gridPos.withW(24), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/dashboard.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/dashboard.libsonnet deleted file mode 100644 index da7b2c8d0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/dashboard.libsonnet +++ /dev/null @@ -1,55 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; -local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet'; - -{ - local root = self, - - '#getOptionsForCustomQuery':: d.func.new( - ||| - `getOptionsForCustomQuery` provides values for the `options` and `current` fields. - These are required for template variables of type 'custom'but do not automatically - get populated by Grafana when importing a dashboard from JSON. - - This is a bit of a hack and should always be called on functions that set `type` on - a template variable. Ideally Grafana populates these fields from the `query` value - but this provides a backwards compatible solution. - |||, - args=[d.arg('query', d.T.string)], - ), - getOptionsForCustomQuery(query, multi): { - local values = root.parseCustomQuery(query), - current: root.getCurrentFromValues(values, multi), - options: root.getOptionsFromValues(values), - }, - - getCurrentFromValues(values, multi): { - selected: false, - text: if multi then [values[0].key] else values[0].key, - value: if multi then [values[0].value] else values[0].value, - }, - - getOptionsFromValues(values): - std.mapWithIndex( - function(i, item) { - selected: i == 0, - text: item.key, - value: item.value, - }, - values - ), - - parseCustomQuery(query): - std.map( - function(v) - // Split items into key:value pairs - local split = std.splitLimit(v, ' : ', 1); - { - key: std.stripChars(split[0], ' '), - value: - if std.length(split) == 2 - then std.stripChars(split[1], ' ') - else self.key, - }, - xtd.string.splitEscape(query, ',') // Split query by comma, unless the comma is escaped - ), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/grid.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/grid.libsonnet deleted file mode 100644 index b4a41b356..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/grid.libsonnet +++ /dev/null @@ -1,212 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; -local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet'; - -local panelUtil = import './panel.libsonnet'; - -{ - local root = self, - - local gridWidth = 24, - - '#makeGrid':: d.func.new( - ||| - `makeGrid` returns an array of `panels` organized in a grid with equal `panelWidth` - and `panelHeight`. Row panels are used as "linebreaks", if a Row panel is collapsed, - then all panels below it will be folded into the row. - - This function will use the full grid of 24 columns, setting `panelWidth` to a value - that can divide 24 into equal parts will fill up the page nicely. (1, 2, 3, 4, 6, 8, 12) - Other value for `panelWidth` will leave a gap on the far right. - - Optional `startY` can be provided to place generated grid above or below existing panels. - |||, - args=[ - d.arg('panels', d.T.array), - d.arg('panelWidth', d.T.number), - d.arg('panelHeight', d.T.number), - d.arg('startY', d.T.number), - ], - ), - makeGrid(panels, panelWidth=8, panelHeight=8, startY=0): - local sanitizePanels(ps) = std.map( - function(p) - local sanePanel = panelUtil.sanitizePanel(p); - ( - if p.type == 'row' - then sanePanel + { - panels: sanitizePanels(sanePanel.panels), - } - else sanePanel + { - gridPos+: { - h: panelHeight, - w: panelWidth, - }, - } - ), - ps - ); - - local sanitizedPanels = sanitizePanels(panels); - - local grouped = panelUtil.groupPanelsInRows(sanitizedPanels); - - local panelsBeforeRows = panelUtil.getPanelsBeforeNextRow(grouped); - local rowPanels = - std.filter( - function(p) p.type == 'row', - grouped - ); - - local CalculateXforPanel(index, panel) = - local panelsPerRow = std.floor(gridWidth / panelWidth); - local col = std.mod(index, panelsPerRow); - panel + { gridPos+: { x: panelWidth * col } }; - - local panelsBeforeRowsWithX = std.mapWithIndex(CalculateXforPanel, panelsBeforeRows); - - local rowPanelsWithX = - std.map( - function(row) - row + { panels: std.mapWithIndex(CalculateXforPanel, row.panels) }, - rowPanels - ); - - local uncollapsed = panelUtil.resolveCollapsedFlagOnRows(panelsBeforeRowsWithX + rowPanelsWithX); - - local normalized = panelUtil.normalizeY(uncollapsed); - - std.map(function(p) p + { gridPos+: { y+: startY } }, normalized), - - '#wrapPanels':: d.func.new( - ||| - `wrapPanels` returns an array of `panels` organized in a grid, wrapping up to next 'row' if total width exceeds full grid of 24 columns. - 'panelHeight' and 'panelWidth' are used unless panels already have height and width defined. - |||, - args=[ - d.arg('panels', d.T.array), - d.arg('panelWidth', d.T.number), - d.arg('panelHeight', d.T.number), - d.arg('startY', d.T.number), - ], - ), - wrapPanels(panels, panelWidth=8, panelHeight=8, startY=0): - - local calculateGridPosForPanel(acc, panel) = - local gridPos = std.get(panel, 'gridPos', {}); - local width = std.get(gridPos, 'w', panelWidth); - local height = std.get(gridPos, 'h', panelHeight); - if acc.cursor.x + width > gridWidth - then - // start new row as width exceeds gridWidth - { - panels+: [ - panel { - gridPos+: - { - x: 0, - y: acc.cursor.y + height, - w: width, - h: height, - }, - }, - ], - cursor+:: { - x: 0 + width, - y: acc.cursor.y + height, - maxH: if height > acc.cursor.maxH then height else acc.cursor.maxH, - }, - } - else - // enough width, place panel on current row - { - panels+: [ - panel { - gridPos+: - { - x: acc.cursor.x, - y: acc.cursor.y, - w: width, - h: height, - }, - }, - ], - cursor+:: { - x: acc.cursor.x + width, - y: acc.cursor.y, - maxH: if height > acc.cursor.maxH then height else acc.cursor.maxH, - }, - }; - - std.foldl( - function(acc, panel) - if panel.type == 'row' - then - ( - if std.objectHas(panel, 'panels') && std.length(panel.panels) > 0 - then - local rowPanels = - std.foldl( - function(acc, panel) - acc + calculateGridPosForPanel(acc, panel), - panel.panels, - { - panels+: [], - // initial - cursor:: { - x: 0, - y: acc.cursor.y + acc.cursor.maxH + 1, - maxH: 0, - }, - }, - ); - acc { - panels+: [ - panel { - //rows panels - panels: rowPanels.panels, - gridPos+: { - x: 0, - y: acc.cursor.y + acc.cursor.maxH, - w: 0, - }, - - }, - ], - cursor:: rowPanels.cursor, - } - else - acc { - panels+: [ - panel { - panels: [], - gridPos+: - { - x: acc.cursor.x, - y: acc.cursor.y + acc.cursor.maxH, - w: 0, - h: 1, - }, - }, - ], - cursor:: { - x: 0, - y: acc.cursor.y + acc.cursor.maxH + 1, - maxH: 0, - }, - } - ) - else - // handle regular panel - acc + calculateGridPosForPanel(acc, panel), - panels, - // Initial value for acc: - { - panels: [], - cursor:: { - x: 0, - y: startY, - maxH: 0, // max height of current 'row' - }, - } - ).panels, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/main.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/main.libsonnet deleted file mode 100644 index 78fe95fc2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/main.libsonnet +++ /dev/null @@ -1,9 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#': d.package.newSub('util', 'Helper functions that work well with Grafonnet.'), - dashboard: (import './dashboard.libsonnet'), - grid: (import './grid.libsonnet'), - panel: (import './panel.libsonnet'), - string: (import './string.libsonnet'), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/panel.libsonnet deleted file mode 100644 index 89e0bd726..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/panel.libsonnet +++ /dev/null @@ -1,420 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; -local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet'; - -{ - local this = self, - - // used in ../dashboard.libsonnet - '#setPanelIDs':: d.func.new( - ||| - `setPanelIDs` ensures that all `panels` have a unique ID, this function is used in `dashboard.withPanels` and `dashboard.withPanelsMixin` to provide a consistent experience. - - `overrideExistingIDs` can be set to not replace existing IDs, consider validating the IDs with `validatePanelIDs()` to ensure there are no duplicate IDs. - |||, - args=[ - d.arg('panels', d.T.array), - d.arg('overrideExistingIDs', d.T.bool, default=true), - ] - ), - setPanelIDs(panels, overrideExistingIDs=true): - local infunc(panels, start=1) = - std.foldl( - function(acc, panel) - acc + { - index: // Track the index to ensure no duplicates exist. - acc.index - + 1 - + (if panel.type == 'row' - && 'panels' in panel - then std.length(panel.panels) - else 0), - - panels+: [ - panel - + ( - if overrideExistingIDs - || std.get(panel, 'id', null) == null - then { id: acc.index } - else {} - ) - + ( - if panel.type == 'row' - && 'panels' in panel - then { - panels: - infunc( - panel.panels, - acc.index + 1 - ), - } - else {} - ), - ], - }, - panels, - { index: start, panels: [] } - ).panels; - infunc(panels), - - '#getPanelIDs':: d.func.new( - ||| - `getPanelIDs` returns an array with all panel IDs including IDs from panels in rows. - |||, - args=[ - d.arg('panels', d.T.array), - ] - ), - getPanelIDs(panels): - std.flattenArrays( - std.map( - function(panel) - [panel.id] - + (if panel.type == 'row' - then this.getPanelIDs(std.get(panel, 'panels', [])) - else []), - panels - ) - ), - - '#validatePanelIDs':: d.func.new( - ||| - `validatePanelIDs` validates returns `false` if there are duplicate panel IDs in `panels`. - |||, - args=[ - d.arg('panels', d.T.array), - ] - ), - validatePanelIDs(panels): - local ids = this.getPanelIDs(panels); - std.set(ids) == std.sort(ids), - - '#sanitizePanel':: d.func.new( - ||| - `sanitizePanel` ensures the panel has a valid `gridPos` and row panels have `collapsed` and `panels`. This function is recursively applied to panels inside row panels. - - The default values for x,y,h,w are only applied if not already set. - |||, - [ - d.arg('panel', d.T.object), - d.arg('defaultX', d.T.number, default=0), - d.arg('defaultY', d.T.number, default=0), - d.arg('defaultHeight', d.T.number, default=8), - d.arg('defaultWidth', d.T.number, default=8), - ] - ), - sanitizePanel(panel, defaultX=0, defaultY=0, defaultHeight=8, defaultWidth=8): - local infunc(panel) = - panel - + ( - local gridPos = std.get(panel, 'gridPos', {}); - if panel.type == 'row' - then { - collapsed: std.get(panel, 'collapsed', false), - panels: std.map(infunc, std.get(panel, 'panels', [])), - gridPos: { // x, h, w are fixed - x: 0, - y: std.get(gridPos, 'y', defaultY), - h: 1, - w: 24, - }, - } - else { - gridPos: { - x: std.get(gridPos, 'x', defaultX), - y: std.get(gridPos, 'y', defaultY), - h: std.get(gridPos, 'h', defaultHeight), - w: std.get(gridPos, 'w', defaultWidth), - }, - } - ); - infunc(panel), - - '#sortPanelsByXY':: d.func.new( - ||| - `sortPanelsByXY` applies a simple sorting algorithm, first by x then again by y. This does not take width and height into account. - |||, - [ - d.arg('panels', d.T.array), - ] - ), - sortPanelsByXY(panels): - std.sort( - std.sort( - panels, - function(panel) - panel.gridPos.x - ), - function(panel) - panel.gridPos.y - ), - - '#sortPanelsInRow':: d.func.new( - ||| - `sortPanelsInRow` applies `sortPanelsByXY` on the panels in a rowPanel. - |||, - [ - d.arg('rowPanel', d.T.object), - ] - ), - sortPanelsInRow(rowPanel): - rowPanel + { panels: this.sortPanelsByXY(rowPanel.panels) }, - - '#groupPanelsInRows':: d.func.new( - ||| - `groupPanelsInRows` ensures that panels that come after a row panel in an array are added to the `row.panels` attribute. This can be useful to apply intermediate functions to only the panels that belong to a row. Finally the panel array should get processed by `resolveCollapsedFlagOnRows` to "unfold" the rows that are not collapsed into the main array. - |||, - [ - d.arg('panels', d.T.array), - ] - ), - groupPanelsInRows(panels): - // Add panels that come after a row to row.panels - local grouped = - xtd.array.filterMapWithIndex( - function(i, p) p.type == 'row', - function(i, p) - p + { - panels+: - this.getPanelsBeforeNextRow(panels[i + 1:]), - }, - panels, - ); - - // Get panels that come before the rowGroups - local panelsBeforeRowGroups = this.getPanelsBeforeNextRow(panels); - - panelsBeforeRowGroups + grouped, - - '#getPanelsBeforeNextRow':: d.func.new( - ||| - `getPanelsBeforeNextRow` returns all panels in an array up until a row has been found. Used in `groupPanelsInRows`. - |||, - [ - d.arg('panels', d.T.array), - ] - ), - getPanelsBeforeNextRow(panels): - local rowIndexes = - xtd.array.filterMapWithIndex( - function(i, p) p.type == 'row', - function(i, p) i, - panels, - ); - if std.length(rowIndexes) != 0 - then panels[0:rowIndexes[0]] - else panels[0:], // if no row panels found, return all remaining panels - - '#resolveCollapsedFlagOnRows':: d.func.new( - ||| - `resolveCollapsedFlagOnRows` should be applied to the final panel array to "unfold" the rows that are not collapsed into the main array. - |||, - [ - d.arg('panels', d.T.array), - ] - ), - resolveCollapsedFlagOnRows(panels): - std.foldl( - function(acc, panel) - acc + ( - if panel.type == 'row' - && !panel.collapsed - then // If not collapsed, then move panels to main array below the row panel - [panel + { panels: [] }] - + panel.panels - else [panel] - ), - panels, - [], - ), - - '#normalizeY':: d.func.new( - ||| - `normalizeY` applies negative gravity on the inverted Y axis. This mimics the behavior of Grafana: when a panel is created without panel above it, then it'll float upward. - - This is strictly not required as Grafana will do this on dashboard load, however it might be helpful when used when calculating the correct `gridPos`. - |||, - [ - d.arg('panels', d.T.array), - ] - ), - normalizeY(panels): - std.foldl( - function(acc, i) - acc + [ - panels[i] + { - gridPos+: { - y: this.calculateLowestYforPanel(panels[i], acc), - }, - }, - ], - std.range(0, std.length(panels) - 1), - [] - ), - - '#calculateLowestYforPanel':: d.func.new( - ||| - `calculateLowestYforPanel` calculates Y for a given `panel` from the `gridPos` of an array of `panels`. This function is used in `normalizeY`. - |||, - [ - d.arg('panel', d.T.object), - d.arg('panels', d.T.array), - ] - ), - calculateLowestYforPanel(panel, panels): - xtd.number.maxInArray( // the new position is highest value (max) on the Y-scale - std.filterMap( - function(p) // find panels that overlap on X-scale - local v1 = panel.gridPos.x; - local v2 = panel.gridPos.x + panel.gridPos.w; - local x1 = p.gridPos.x; - local x2 = p.gridPos.x + p.gridPos.w; - (v1 >= x1 && v1 < x2) - || (v2 >= x1 && v2 < x2), - function(p) // return new position on Y-scale - p.gridPos.y + p.gridPos.h, - panels, - ), - ), - - '#normalizeYInRow':: d.func.new( - ||| - `normalizeYInRow` applies `normalizeY` to the panels in a row panel. - |||, - [ - d.arg('rowPanel', d.T.object), - ] - ), - normalizeYInRow(rowPanel): - rowPanel + { - panels: - std.map( - function(p) - p + { - gridPos+: { - y: // Increase panel Y with the row Y to put them below the row when not collapsed. - p.gridPos.y - + rowPanel.gridPos.y - + rowPanel.gridPos.h, - }, - }, - this.normalizeY(rowPanel.panels) - ), - }, - - '#mapToRows':: d.func.new( - ||| - `mapToRows` is a little helper function that applies `func` to all row panels in an array. Other panels in that array are returned ad verbatim. - |||, - [ - d.arg('func', d.T.func), - d.arg('panels', d.T.array), - ] - ), - mapToRows(func, panels): - std.map( - function(p) - if p.type == 'row' - then func(p) - else p, - panels - ), - - - '#setRefIDs':: d.func.new( - ||| - `setRefIDs` calculates the `refId` field for each target on a panel. - |||, - args=[ - d.arg('panel', d.T.object), - d.arg('overrideExistingIDs', d.T.bool, default=true), - ] - ), - setRefIDs(panel, overrideExistingIDs=true): - local calculateRefID(n) = - // From: https://github.com/grafana/grafana/blob/bffd87107b786930edd091060143ee013843efac/packages/grafana-data/src/query/refId.ts#L15 - local letters = std.map(std.char, std.range(std.codepoint('A'), std.codepoint('Z'))); - if n < std.length(letters) - then letters[n] - else calculateRefID(std.floor(n / std.length(letters)) - 1) + letters[std.mod(n, std.length(letters))]; - panel + { - targets: - std.mapWithIndex( - function(i, target) - if overrideExistingIDs - || !std.objectHas(target, 'refId') - then target + { - refId: calculateRefID(i), - } - else target, - panel.targets, - ), - }, - - '#setRefIDsOnPanels':: d.func.new( - ||| - `setRefIDsOnPanels` applies `setRefIDs on all `panels`. - |||, - args=[ - d.arg('panels', d.T.array), - ] - ), - setRefIDsOnPanels(panels): - std.map(self.setRefIDs, panels), - - '#dedupeQueryTargets':: d.func.new( - ||| - `dedupeQueryTargets` dedupes the query targets in a set of panels and replaces the duplicates with a ['shared query'](https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/share-query/). Sharing query results across panels reduces the number of queries made to your data source, which can improve the performance of your dashboard. - - This function requires that the query targets have `refId` set, `setRefIDs` and `setRefIDsOnPanels` can help with that. - |||, - args=[ - d.arg('panels', d.T.array), - ] - ), - dedupeQueryTargets(panels): - // Hide ref so it doesn't compare in equality - local targetWithoutRef(target) = - target + { refId:: target.refId }; - - // Find targets that are the same - local findTargets(targets, target) = - std.filter( - function(t) - targetWithoutRef(t) == targetWithoutRef(target), - targets - ); - - // Get a flat array of all targets including their panelId - local targets = std.flattenArrays([ - std.map(function(t) t + { panelId:: panel.id }, panel.targets) - for panel in panels - ]); - - std.map( - function(panel) - // Replace target with 'shared query' target if found in other panels - local replaceTarget(target) = - local found = findTargets(targets, target); - if std.length(found) > 0 - // Do not reference queries from the same panel - && found[0].panelId != panel.id - then { - datasource: { - type: 'datasource', - uid: '-- Dashboard --', - }, - refId: found[0].refId, - panelId: found[0].panelId, - } - else target; - - panel + { - targets: - std.map( - replaceTarget, - panel.targets, - ), - }, - panels - ), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/string.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/string.libsonnet deleted file mode 100644 index ec5a66e42..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/custom/util/string.libsonnet +++ /dev/null @@ -1,27 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; -local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet'; - -{ - '#slugify':: d.func.new( - ||| - `slugify` will create a simple slug from `string`, keeping only alphanumeric - characters and replacing spaces with dashes. - |||, - args=[d.arg('string', d.T.string)] - ), - slugify(string): - std.strReplace( - std.asciiLower( - std.join('', [ - string[i] - for i in std.range(0, std.length(string) - 1) - if xtd.ascii.isUpper(string[i]) - || xtd.ascii.isLower(string[i]) - || xtd.ascii.isNumber(string[i]) - || string[i] == ' ' - ]) - ), - ' ', - '-', - ), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/dashboard.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/dashboard.libsonnet deleted file mode 100644 index 03d41ec61..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/dashboard.libsonnet +++ /dev/null @@ -1,580 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.dashboard', name: 'dashboard' }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Description of dashboard.' } }, - withDescription(value): { - description: value, - }, - '#withEditable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether a dashboard is editable or not.' } }, - withEditable(value=true): { - editable: value, - }, - '#withFiscalYearStartMonth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'The month that the fiscal year starts on. 0 = January, 11 = December' } }, - withFiscalYearStartMonth(value=0): { - fiscalYearStartMonth: value, - }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Links with references to other dashboards or external websites.' } }, - withLinks(value): { - links: - (if std.isArray(value) - then value - else [value]), - }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Links with references to other dashboards or external websites.' } }, - withLinksMixin(value): { - links+: - (if std.isArray(value) - then value - else [value]), - }, - '#withLiveNow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'When set to true, the dashboard will redraw panels at an interval matching the pixel width.\nThis will keep data "moving left" regardless of the query refresh rate. This setting helps\navoid dashboards presenting stale live data' } }, - withLiveNow(value=true): { - liveNow: value, - }, - '#withPanels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPanels(value): { - panels: - (if std.isArray(value) - then value - else [value]), - }, - '#withPanelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPanelsMixin(value): { - panels+: - (if std.isArray(value) - then value - else [value]), - }, - '#withRefresh': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d".' } }, - withRefresh(value): { - refresh: value, - }, - '#withSchemaVersion': { 'function': { args: [{ default: 36, enums: null, name: 'value', type: ['integer'] }], help: 'Version of the JSON schema, incremented each time a Grafana update brings\nchanges to said schema.' } }, - withSchemaVersion(value=36): { - schemaVersion: value, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Tags associated with dashboard.' } }, - withTags(value): { - tags: - (if std.isArray(value) - then value - else [value]), - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Tags associated with dashboard.' } }, - withTagsMixin(value): { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTemplating': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configured template variables' } }, - withTemplating(value): { - templating: value, - }, - '#withTemplatingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configured template variables' } }, - withTemplatingMixin(value): { - templating+: value, - }, - '#withTimezone': { 'function': { args: [{ default: 'browser', enums: null, name: 'value', type: ['string'] }], help: 'Timezone of dashboard. Accepted values are IANA TZDB zone ID or "browser" or "utc".' } }, - withTimezone(value='browser'): { - timezone: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title of dashboard.' } }, - withTitle(value): { - title: value, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique dashboard identifier that can be generated by anyone. string (8-40)' } }, - withUid(value): { - uid: value, - }, - '#withWeekStart': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Day when the week starts. Expressed by the name of the day in lowercase, e.g. "monday".' } }, - withWeekStart(value): { - weekStart: value, - }, - time+: - { - '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFrom(value='now-6h'): { - time+: { - from: value, - }, - }, - '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTo(value='now'): { - time+: { - to: value, - }, - }, - }, - timepicker+: - { - '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether timepicker is visible or not.' } }, - withHidden(value=true): { - timepicker+: { - hidden: value, - }, - }, - '#withNowDelay': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Override the now time by entering a time delay. Use this option to accommodate known delays in data aggregation to avoid null values.' } }, - withNowDelay(value): { - timepicker+: { - nowDelay: value, - }, - }, - '#withRefreshIntervals': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: ['array'] }], help: 'Interval options available in the refresh picker dropdown.' } }, - withRefreshIntervals(value): { - timepicker+: { - refresh_intervals: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withRefreshIntervalsMixin': { 'function': { args: [{ default: ['5s', '10s', '30s', '1m', '5m', '15m', '30m', '1h', '2h', '1d'], enums: null, name: 'value', type: ['array'] }], help: 'Interval options available in the refresh picker dropdown.' } }, - withRefreshIntervalsMixin(value): { - timepicker+: { - refresh_intervals+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimeOptions': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: ['array'] }], help: 'Selectable options available in the time picker dropdown. Has no effect on provisioned dashboard.' } }, - withTimeOptions(value): { - timepicker+: { - time_options: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimeOptionsMixin': { 'function': { args: [{ default: ['5m', '15m', '1h', '6h', '12h', '24h', '2d', '7d', '30d'], enums: null, name: 'value', type: ['array'] }], help: 'Selectable options available in the time picker dropdown. Has no effect on provisioned dashboard.' } }, - withTimeOptionsMixin(value): { - timepicker+: { - time_options+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - link+: - { - dashboards+: - { - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title to display with the link' } }, - withTitle(value): { - title: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource)' } }, - withType(value): { - type: value, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards' } }, - withTags(value): { - tags: - (if std.isArray(value) - then value - else [value]), - }, - options+: - { - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards' } }, - withAsDropdown(value=true): { - asDropdown: value, - }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current time range in the link as query params' } }, - withKeepTime(value=true): { - keepTime: value, - }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current template variables values in the link as query params' } }, - withIncludeVars(value=true): { - includeVars: value, - }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, the link will be opened in a new tab' } }, - withTargetBlank(value=true): { - targetBlank: value, - }, - }, - }, - link+: - { - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title to display with the link' } }, - withTitle(value): { - title: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource)' } }, - withType(value): { - type: value, - }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Link URL. Only required/valid if the type is link' } }, - withUrl(value): { - url: value, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Tooltip to display when the user hovers their mouse over it' } }, - withTooltip(value): { - tooltip: value, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon name to be displayed with the link' } }, - withIcon(value): { - icon: value, - }, - options+: - { - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards' } }, - withAsDropdown(value=true): { - asDropdown: value, - }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current time range in the link as query params' } }, - withKeepTime(value=true): { - keepTime: value, - }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current template variables values in the link as query params' } }, - withIncludeVars(value=true): { - includeVars: value, - }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, the link will be opened in a new tab' } }, - withTargetBlank(value=true): { - targetBlank: value, - }, - }, - }, - }, - annotation+: - { - '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of annotations' } }, - withList(value): { - annotations+: { - list: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of annotations' } }, - withListMixin(value): { - annotations+: { - list+: - (if std.isArray(value) - then value - else [value]), - }, - }, - list+: - { - '#': { help: '', name: 'list' }, - '#withBuiltIn': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['number'] }], help: 'Set to 1 for the standard annotation query all dashboards have by default.' } }, - withBuiltIn(value=0): { - builtIn: value, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, - withType(value): { - datasource+: { - type: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withEnable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'When enabled the annotation query is issued with every dashboard refresh' } }, - withEnable(value=true): { - enable: value, - }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFilter(value): { - filter: value, - }, - '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFilterMixin(value): { - filter+: value, - }, - filter+: - { - '#withExclude': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Should the specified panels be included or excluded' } }, - withExclude(value=true): { - filter+: { - exclude: value, - }, - }, - '#withIds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel IDs that should be included or excluded' } }, - withIds(value): { - filter+: { - ids: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withIdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel IDs that should be included or excluded' } }, - withIdsMixin(value): { - filter+: { - ids+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Annotation queries can be toggled on or off at the top of the dashboard.\nWhen hide is true, the toggle is not shown in the dashboard.' } }, - withHide(value=true): { - hide: value, - }, - '#withIconColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Color to use for the annotation event markers' } }, - withIconColor(value): { - iconColor: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of annotation.' } }, - withName(value): { - name: value, - }, - '#withTarget': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, - withTarget(value): { - target: value, - }, - '#withTargetMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: this should be a regular DataQuery that depends on the selected dashboard\nthese match the properties of the "grafana" datasouce that is default in most dashboards' } }, - withTargetMixin(value): { - target+: value, - }, - target+: - { - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withLimit(value): { - target+: { - limit: value, - }, - }, - '#withMatchAny': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withMatchAny(value=true): { - target+: { - matchAny: value, - }, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withTags(value): { - target+: { - tags: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withTagsMixin(value): { - target+: { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Only required/valid for the grafana datasource...\nbut code+tests is already depending on it so hard to change' } }, - withType(value): { - target+: { - type: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TODO -- this should not exist here, it is based on the --grafana-- datasource' } }, - withType(value): { - type: value, - }, - }, - }, - variable+: - { - '#withList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of configured template variables with their saved values along with some other metadata' } }, - withList(value): { - templating+: { - list: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of configured template variables with their saved values along with some other metadata' } }, - withListMixin(value): { - templating+: { - list+: - (if std.isArray(value) - then value - else [value]), - }, - }, - list+: - { - '#': { help: '', name: 'list' }, - '#withAllValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Custom all value' } }, - withAllValue(value): { - allValue: value, - }, - '#withCurrent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Option to be selected in a variable.' } }, - withCurrent(value): { - current: value, - }, - '#withCurrentMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Option to be selected in a variable.' } }, - withCurrentMixin(value): { - current+: value, - }, - current+: - { - '#withSelected': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether the option is selected or not' } }, - withSelected(value=true): { - current+: { - selected: value, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Text to be displayed for the option' } }, - withText(value): { - current+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Text to be displayed for the option' } }, - withTextMixin(value): { - current+: { - text+: value, - }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Value of the option' } }, - withValue(value): { - current+: { - value: value, - }, - }, - '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Value of the option' } }, - withValueMixin(value): { - current+: { - value+: value, - }, - }, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, - withType(value): { - datasource+: { - type: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Description of variable. It can be defined but `null`.' } }, - withDescription(value): { - description: value, - }, - '#withHide': { 'function': { args: [{ default: null, enums: [0, 1, 2], name: 'value', type: ['string'] }], help: 'Determine if the variable shows on dashboard\nAccepted values are 0 (show label and value), 1 (show value only), 2 (show nothing).' } }, - withHide(value): { - hide: value, - }, - '#withIncludeAll': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether all value option is available or not' } }, - withIncludeAll(value=true): { - includeAll: value, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Optional display name' } }, - withLabel(value): { - label: value, - }, - '#withMulti': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether multiple values can be selected or not from variable value list' } }, - withMulti(value=true): { - multi: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of variable' } }, - withName(value): { - name: value, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Options that can be selected for a variable.' } }, - withOptions(value): { - options: - (if std.isArray(value) - then value - else [value]), - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Options that can be selected for a variable.' } }, - withOptionsMixin(value): { - options+: - (if std.isArray(value) - then value - else [value]), - }, - options+: - { - '#': { help: '', name: 'options' }, - '#withSelected': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether the option is selected or not' } }, - withSelected(value=true): { - selected: value, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Text to be displayed for the option' } }, - withText(value): { - text: value, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Text to be displayed for the option' } }, - withTextMixin(value): { - text+: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Value of the option' } }, - withValue(value): { - value: value, - }, - '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Value of the option' } }, - withValueMixin(value): { - value+: value, - }, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: 'Query used to fetch values for a variable' } }, - withQuery(value): { - query: value, - }, - '#withQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: 'Query used to fetch values for a variable' } }, - withQueryMixin(value): { - query+: value, - }, - '#withRefresh': { 'function': { args: [{ default: null, enums: [0, 1, 2], name: 'value', type: ['string'] }], help: 'Options to config when to refresh a variable\n`0`: Never refresh the variable\n`1`: Queries the data source every time the dashboard loads.\n`2`: Queries the data source when the dashboard time range changes.' } }, - withRefresh(value): { - refresh: value, - }, - '#withRegex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Optional field, if you want to extract part of a series name or metric node segment.\nNamed capture groups can be used to separate the display text and value.' } }, - withRegex(value): { - regex: value, - }, - '#withSkipUrlSync': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether the variable value should be managed by URL query params or not' } }, - withSkipUrlSync(value=true): { - skipUrlSync: value, - }, - '#withSort': { 'function': { args: [{ default: null, enums: [0, 1, 2, 3, 4, 5, 6, 7, 8], name: 'value', type: ['string'] }], help: 'Sort variable options\nAccepted values are:\n`0`: No sorting\n`1`: Alphabetical ASC\n`2`: Alphabetical DESC\n`3`: Numerical ASC\n`4`: Numerical DESC\n`5`: Alphabetical Case Insensitive ASC\n`6`: Alphabetical Case Insensitive DESC\n`7`: Natural ASC\n`8`: Natural DESC' } }, - withSort(value): { - sort: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['query', 'adhoc', 'groupby', 'constant', 'datasource', 'interval', 'textbox', 'custom', 'system'], name: 'value', type: ['string'] }], help: 'Dashboard variable type\n`query`: Query-generated list of values such as metric names, server names, sensor IDs, data centers, and so on.\n`adhoc`: Key/value filters that are automatically added to all metric queries for a data source (Prometheus, Loki, InfluxDB, and Elasticsearch only).\n`constant`: \tDefine a hidden constant.\n`datasource`: Quickly change the data source for an entire dashboard.\n`interval`: Interval variables represent time spans.\n`textbox`: Display a free text input field with an optional default value.\n`custom`: Define the variable options manually using a comma-separated list.\n`system`: Variables defined by Grafana. See: https://grafana.com/docs/grafana/latest/dashboards/variables/add-template-variables/#global-variables' } }, - withType(value): { - type: value, - }, - }, - }, -} -+ (import 'custom/dashboard.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/README.md deleted file mode 100644 index 179589663..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/README.md +++ /dev/null @@ -1,31 +0,0 @@ -# grafonnet - -Jsonnet library for rendering Grafana resources -## Install - -``` -jb install github.com/grafana/grafonnet/gen/grafonnet-v11.0.0@main -``` - -## Usage - -```jsonnet -local grafonnet = import "github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/main.libsonnet" -``` - - -## Subpackages - -* [accesspolicy](accesspolicy/index.md) -* [alerting](alerting/index.md) -* [dashboard](dashboard/index.md) -* [folder](folder.md) -* [librarypanel](librarypanel/index.md) -* [panel](panel/index.md) -* [preferences](preferences.md) -* [publicdashboard](publicdashboard.md) -* [query](query/index.md) -* [role](role.md) -* [rolebinding](rolebinding.md) -* [team](team.md) -* [util](util.md) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/accesspolicy/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/accesspolicy/index.md deleted file mode 100644 index ff3dcfc86..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/accesspolicy/index.md +++ /dev/null @@ -1,156 +0,0 @@ -# accesspolicy - -grafonnet.accesspolicy - -## Subpackages - -* [rules](rules.md) - -## Index - -* [`fn withRole(value)`](#fn-withrole) -* [`fn withRoleMixin(value)`](#fn-withrolemixin) -* [`fn withRules(value)`](#fn-withrules) -* [`fn withRulesMixin(value)`](#fn-withrulesmixin) -* [`fn withScope(value)`](#fn-withscope) -* [`fn withScopeMixin(value)`](#fn-withscopemixin) -* [`obj role`](#obj-role) - * [`fn withKind(value)`](#fn-rolewithkind) - * [`fn withName(value)`](#fn-rolewithname) - * [`fn withXname(value)`](#fn-rolewithxname) -* [`obj scope`](#obj-scope) - * [`fn withKind(value)`](#fn-scopewithkind) - * [`fn withName(value)`](#fn-scopewithname) - -## Fields - -### fn withRole - -```jsonnet -withRole(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withRoleMixin - -```jsonnet -withRoleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withRules - -```jsonnet -withRules(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The set of rules to apply. Note that * is required to modify -access policy rules, and that "none" will reject all actions -### fn withRulesMixin - -```jsonnet -withRulesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The set of rules to apply. Note that * is required to modify -access policy rules, and that "none" will reject all actions -### fn withScope - -```jsonnet -withScope(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withScopeMixin - -```jsonnet -withScopeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### obj role - - -#### fn role.withKind - -```jsonnet -role.withKind(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"Role"`, `"BuiltinRole"`, `"Team"`, `"User"` - -Policies can apply to roles, teams, or users -Applying policies to individual users is supported, but discouraged -#### fn role.withName - -```jsonnet -role.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn role.withXname - -```jsonnet -role.withXname(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj scope - - -#### fn scope.withKind - -```jsonnet -scope.withKind(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn scope.withName - -```jsonnet -scope.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/accesspolicy/rules.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/accesspolicy/rules.md deleted file mode 100644 index f5763390b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/accesspolicy/rules.md +++ /dev/null @@ -1,60 +0,0 @@ -# rules - - - -## Index - -* [`fn withKind(value="*")`](#fn-withkind) -* [`fn withTarget(value)`](#fn-withtarget) -* [`fn withVerb(value)`](#fn-withverb) -* [`fn withVerbMixin(value)`](#fn-withverbmixin) - -## Fields - -### fn withKind - -```jsonnet -withKind(value="*") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"*"` - -The kind this rule applies to (dashboards, alert, etc) -### fn withTarget - -```jsonnet -withTarget(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specific sub-elements like "alert.rules" or "dashboard.permissions"???? -### fn withVerb - -```jsonnet -withVerb(value) -``` - -PARAMETERS: - -* **value** (`string`) - -READ, WRITE, CREATE, DELETE, ... -should move to k8s style verbs like: "get", "list", "watch", "create", "update", "patch", "delete" -### fn withVerbMixin - -```jsonnet -withVerbMixin(value) -``` - -PARAMETERS: - -* **value** (`string`) - -READ, WRITE, CREATE, DELETE, ... -should move to k8s style verbs like: "get", "list", "watch", "create", "update", "patch", "delete" \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/contactPoint.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/contactPoint.md deleted file mode 100644 index c36edb874..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/contactPoint.md +++ /dev/null @@ -1,103 +0,0 @@ -# contactPoint - -grafonnet.alerting.contactPoint - -**NOTE**: The schemas for all different contact points is under development, this means we can't properly express them in Grafonnet yet. The way this works now may change heavily. - - -## Index - -* [`fn withDisableResolveMessage(value=true)`](#fn-withdisableresolvemessage) -* [`fn withName(value)`](#fn-withname) -* [`fn withProvenance(value)`](#fn-withprovenance) -* [`fn withSettings(value)`](#fn-withsettings) -* [`fn withSettingsMixin(value)`](#fn-withsettingsmixin) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUid(value)`](#fn-withuid) - -## Fields - -### fn withDisableResolveMessage - -```jsonnet -withDisableResolveMessage(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -EmbeddedContactPoint is the contact point type that is used -by grafanas embedded alertmanager implementation. -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -EmbeddedContactPoint is the contact point type that is used -by grafanas embedded alertmanager implementation. -### fn withProvenance - -```jsonnet -withProvenance(value) -``` - -PARAMETERS: - -* **value** (`string`) - -EmbeddedContactPoint is the contact point type that is used -by grafanas embedded alertmanager implementation. -### fn withSettings - -```jsonnet -withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withSettingsMixin - -```jsonnet -withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"alertmanager"`, `" dingding"`, `" discord"`, `" email"`, `" googlechat"`, `" kafka"`, `" line"`, `" opsgenie"`, `" pagerduty"`, `" pushover"`, `" sensugo"`, `" slack"`, `" teams"`, `" telegram"`, `" threema"`, `" victorops"`, `" webhook"`, `" wecom"` - -EmbeddedContactPoint is the contact point type that is used -by grafanas embedded alertmanager implementation. -### fn withUid - -```jsonnet -withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -EmbeddedContactPoint is the contact point type that is used -by grafanas embedded alertmanager implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/index.md deleted file mode 100644 index 3715aa47e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/index.md +++ /dev/null @@ -1,11 +0,0 @@ -# alerting - -grafonnet.alerting - -## Subpackages - -* [contactPoint](contactPoint.md) -* [muteTiming](muteTiming/index.md) -* [notificationPolicy](notificationPolicy/index.md) -* [notificationTemplate](notificationTemplate.md) -* [ruleGroup](ruleGroup/index.md) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/index.md deleted file mode 100644 index 3aee846bb..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/index.md +++ /dev/null @@ -1,48 +0,0 @@ -# muteTiming - -grafonnet.alerting.muteTiming - -## Subpackages - -* [interval](interval/index.md) - -## Index - -* [`fn withIntervals(value)`](#fn-withintervals) -* [`fn withIntervalsMixin(value)`](#fn-withintervalsmixin) -* [`fn withName(value)`](#fn-withname) - -## Fields - -### fn withIntervals - -```jsonnet -withIntervals(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withIntervalsMixin - -```jsonnet -withIntervalsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/interval/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/interval/index.md deleted file mode 100644 index 18021fc9e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/interval/index.md +++ /dev/null @@ -1,48 +0,0 @@ -# interval - - - -## Subpackages - -* [time_intervals](time_intervals/index.md) - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withTimeIntervals(value)`](#fn-withtimeintervals) -* [`fn withTimeIntervalsMixin(value)`](#fn-withtimeintervalsmixin) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTimeIntervals - -```jsonnet -withTimeIntervals(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTimeIntervalsMixin - -```jsonnet -withTimeIntervalsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/interval/time_intervals/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/interval/time_intervals/index.md deleted file mode 100644 index e649ec25c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/interval/time_intervals/index.md +++ /dev/null @@ -1,144 +0,0 @@ -# time_intervals - - - -## Subpackages - -* [times](times.md) - -## Index - -* [`fn withDaysOfMonth(value)`](#fn-withdaysofmonth) -* [`fn withDaysOfMonthMixin(value)`](#fn-withdaysofmonthmixin) -* [`fn withLocation(value)`](#fn-withlocation) -* [`fn withMonths(value)`](#fn-withmonths) -* [`fn withMonthsMixin(value)`](#fn-withmonthsmixin) -* [`fn withTimes(value)`](#fn-withtimes) -* [`fn withTimesMixin(value)`](#fn-withtimesmixin) -* [`fn withWeekdays(value)`](#fn-withweekdays) -* [`fn withWeekdaysMixin(value)`](#fn-withweekdaysmixin) -* [`fn withYears(value)`](#fn-withyears) -* [`fn withYearsMixin(value)`](#fn-withyearsmixin) - -## Fields - -### fn withDaysOfMonth - -```jsonnet -withDaysOfMonth(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withDaysOfMonthMixin - -```jsonnet -withDaysOfMonthMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withLocation - -```jsonnet -withLocation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withMonths - -```jsonnet -withMonths(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withMonthsMixin - -```jsonnet -withMonthsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTimes - -```jsonnet -withTimes(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withTimesMixin - -```jsonnet -withTimesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withWeekdays - -```jsonnet -withWeekdays(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withWeekdaysMixin - -```jsonnet -withWeekdaysMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withYears - -```jsonnet -withYears(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withYearsMixin - -```jsonnet -withYearsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/interval/time_intervals/times.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/interval/time_intervals/times.md deleted file mode 100644 index 8304969e8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/muteTiming/interval/time_intervals/times.md +++ /dev/null @@ -1,32 +0,0 @@ -# times - - - -## Index - -* [`fn withEndTime(value)`](#fn-withendtime) -* [`fn withStartTime(value)`](#fn-withstarttime) - -## Fields - -### fn withEndTime - -```jsonnet -withEndTime(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withStartTime - -```jsonnet -withStartTime(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/notificationPolicy/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/notificationPolicy/index.md deleted file mode 100644 index 00072439f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/notificationPolicy/index.md +++ /dev/null @@ -1,185 +0,0 @@ -# notificationPolicy - -grafonnet.alerting.notificationPolicy - -## Subpackages - -* [matcher](matcher.md) - -## Index - -* [`fn withContactPoint(value)`](#fn-withcontactpoint) -* [`fn withContinue(value=true)`](#fn-withcontinue) -* [`fn withGroupBy(value)`](#fn-withgroupby) -* [`fn withGroupByMixin(value)`](#fn-withgroupbymixin) -* [`fn withGroupInterval(value)`](#fn-withgroupinterval) -* [`fn withGroupWait(value)`](#fn-withgroupwait) -* [`fn withMatchers(value)`](#fn-withmatchers) -* [`fn withMatchersMixin(value)`](#fn-withmatchersmixin) -* [`fn withMuteTimeIntervals(value)`](#fn-withmutetimeintervals) -* [`fn withMuteTimeIntervalsMixin(value)`](#fn-withmutetimeintervalsmixin) -* [`fn withPolicy(value)`](#fn-withpolicy) -* [`fn withPolicyMixin(value)`](#fn-withpolicymixin) -* [`fn withRepeatInterval(value)`](#fn-withrepeatinterval) - -## Fields - -### fn withContactPoint - -```jsonnet -withContactPoint(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A Route is a node that contains definitions of how to handle alerts. This is modified -from the upstream alertmanager in that it adds the ObjectMatchers property. -### fn withContinue - -```jsonnet -withContinue(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -A Route is a node that contains definitions of how to handle alerts. This is modified -from the upstream alertmanager in that it adds the ObjectMatchers property. -### fn withGroupBy - -```jsonnet -withGroupBy(value) -``` - -PARAMETERS: - -* **value** (`array`) - -A Route is a node that contains definitions of how to handle alerts. This is modified -from the upstream alertmanager in that it adds the ObjectMatchers property. -### fn withGroupByMixin - -```jsonnet -withGroupByMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -A Route is a node that contains definitions of how to handle alerts. This is modified -from the upstream alertmanager in that it adds the ObjectMatchers property. -### fn withGroupInterval - -```jsonnet -withGroupInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A Route is a node that contains definitions of how to handle alerts. This is modified -from the upstream alertmanager in that it adds the ObjectMatchers property. -### fn withGroupWait - -```jsonnet -withGroupWait(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A Route is a node that contains definitions of how to handle alerts. This is modified -from the upstream alertmanager in that it adds the ObjectMatchers property. -### fn withMatchers - -```jsonnet -withMatchers(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Matchers is a slice of Matchers that is sortable, implements Stringer, and -provides a Matches method to match a LabelSet against all Matchers in the -slice. Note that some users of Matchers might require it to be sorted. -### fn withMatchersMixin - -```jsonnet -withMatchersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Matchers is a slice of Matchers that is sortable, implements Stringer, and -provides a Matches method to match a LabelSet against all Matchers in the -slice. Note that some users of Matchers might require it to be sorted. -### fn withMuteTimeIntervals - -```jsonnet -withMuteTimeIntervals(value) -``` - -PARAMETERS: - -* **value** (`array`) - -A Route is a node that contains definitions of how to handle alerts. This is modified -from the upstream alertmanager in that it adds the ObjectMatchers property. -### fn withMuteTimeIntervalsMixin - -```jsonnet -withMuteTimeIntervalsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -A Route is a node that contains definitions of how to handle alerts. This is modified -from the upstream alertmanager in that it adds the ObjectMatchers property. -### fn withPolicy - -```jsonnet -withPolicy(value) -``` - -PARAMETERS: - -* **value** (`array`) - -A Route is a node that contains definitions of how to handle alerts. This is modified -from the upstream alertmanager in that it adds the ObjectMatchers property. -### fn withPolicyMixin - -```jsonnet -withPolicyMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -A Route is a node that contains definitions of how to handle alerts. This is modified -from the upstream alertmanager in that it adds the ObjectMatchers property. -### fn withRepeatInterval - -```jsonnet -withRepeatInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A Route is a node that contains definitions of how to handle alerts. This is modified -from the upstream alertmanager in that it adds the ObjectMatchers property. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/notificationPolicy/matcher.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/notificationPolicy/matcher.md deleted file mode 100644 index 7cad0a72f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/notificationPolicy/matcher.md +++ /dev/null @@ -1,45 +0,0 @@ -# matcher - - - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withType(value)`](#fn-withtype) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"="`, `"!="`, `"=~"`, `"!~"` - - -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/notificationTemplate.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/notificationTemplate.md deleted file mode 100644 index 47ce2da73..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/notificationTemplate.md +++ /dev/null @@ -1,44 +0,0 @@ -# notificationTemplate - -grafonnet.alerting.notificationTemplate - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withProvenance(value)`](#fn-withprovenance) -* [`fn withTemplate(value)`](#fn-withtemplate) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withProvenance - -```jsonnet -withProvenance(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTemplate - -```jsonnet -withTemplate(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/ruleGroup/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/ruleGroup/index.md deleted file mode 100644 index 588ead07f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/ruleGroup/index.md +++ /dev/null @@ -1,72 +0,0 @@ -# ruleGroup - -grafonnet.alerting.ruleGroup - -## Subpackages - -* [rule](rule/index.md) - -## Index - -* [`fn withFolderUid(value)`](#fn-withfolderuid) -* [`fn withInterval(value)`](#fn-withinterval) -* [`fn withName(value)`](#fn-withname) -* [`fn withRules(value)`](#fn-withrules) -* [`fn withRulesMixin(value)`](#fn-withrulesmixin) - -## Fields - -### fn withFolderUid - -```jsonnet -withFolderUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withInterval - -```jsonnet -withInterval(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Duration in seconds. -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withRules - -```jsonnet -withRules(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withRulesMixin - -```jsonnet -withRulesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/ruleGroup/rule/data.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/ruleGroup/rule/data.md deleted file mode 100644 index abe5cdaa8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/ruleGroup/rule/data.md +++ /dev/null @@ -1,123 +0,0 @@ -# data - - - -## Index - -* [`fn withDatasourceUid(value)`](#fn-withdatasourceuid) -* [`fn withModel(value)`](#fn-withmodel) -* [`fn withModelMixin(value)`](#fn-withmodelmixin) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withRelativeTimeRange(value)`](#fn-withrelativetimerange) -* [`fn withRelativeTimeRangeMixin(value)`](#fn-withrelativetimerangemixin) -* [`obj relativeTimeRange`](#obj-relativetimerange) - * [`fn withFrom(value)`](#fn-relativetimerangewithfrom) - * [`fn withTo(value)`](#fn-relativetimerangewithto) - -## Fields - -### fn withDatasourceUid - -```jsonnet -withDatasourceUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withModel - -```jsonnet -withModel(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withModelMixin - -```jsonnet -withModelMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withRelativeTimeRange - -```jsonnet -withRelativeTimeRange(value) -``` - -PARAMETERS: - -* **value** (`object`) - -RelativeTimeRange is the per query start and end time -for requests. -### fn withRelativeTimeRangeMixin - -```jsonnet -withRelativeTimeRangeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -RelativeTimeRange is the per query start and end time -for requests. -### obj relativeTimeRange - - -#### fn relativeTimeRange.withFrom - -```jsonnet -relativeTimeRange.withFrom(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Duration in seconds. -#### fn relativeTimeRange.withTo - -```jsonnet -relativeTimeRange.withTo(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Duration in seconds. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/ruleGroup/rule/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/ruleGroup/rule/index.md deleted file mode 100644 index 27748f0e1..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/alerting/ruleGroup/rule/index.md +++ /dev/null @@ -1,196 +0,0 @@ -# rule - - - -## Subpackages - -* [data](data.md) - -## Index - -* [`fn withAnnotations(value)`](#fn-withannotations) -* [`fn withAnnotationsMixin(value)`](#fn-withannotationsmixin) -* [`fn withCondition(value)`](#fn-withcondition) -* [`fn withData(value)`](#fn-withdata) -* [`fn withDataMixin(value)`](#fn-withdatamixin) -* [`fn withExecErrState(value)`](#fn-withexecerrstate) -* [`fn withFolderUID(value)`](#fn-withfolderuid) -* [`fn withFor(value)`](#fn-withfor) -* [`fn withIsPaused(value=true)`](#fn-withispaused) -* [`fn withLabels(value)`](#fn-withlabels) -* [`fn withLabelsMixin(value)`](#fn-withlabelsmixin) -* [`fn withName(value)`](#fn-withname) -* [`fn withNoDataState(value)`](#fn-withnodatastate) -* [`fn withOrgID(value)`](#fn-withorgid) -* [`fn withRuleGroup(value)`](#fn-withrulegroup) - -## Fields - -### fn withAnnotations - -```jsonnet -withAnnotations(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withAnnotationsMixin - -```jsonnet -withAnnotationsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withCondition - -```jsonnet -withCondition(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withData - -```jsonnet -withData(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withDataMixin - -```jsonnet -withDataMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withExecErrState - -```jsonnet -withExecErrState(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"OK"`, `"Alerting"`, `"Error"` - - -### fn withFolderUID - -```jsonnet -withFolderUID(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withFor - -```jsonnet -withFor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The amount of time, in seconds, for which the rule must be breached for the rule to be considered to be Firing. -Before this time has elapsed, the rule is only considered to be Pending. -### fn withIsPaused - -```jsonnet -withIsPaused(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withLabels - -```jsonnet -withLabels(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLabelsMixin - -```jsonnet -withLabelsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withNoDataState - -```jsonnet -withNoDataState(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"Alerting"`, `"NoData"`, `"OK"` - - -### fn withOrgID - -```jsonnet -withOrgID(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### fn withRuleGroup - -```jsonnet -withRuleGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/annotation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/annotation.md deleted file mode 100644 index 739552993..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/annotation.md +++ /dev/null @@ -1,298 +0,0 @@ -# annotation - - - -## Index - -* [`fn withBuiltIn(value=0)`](#fn-withbuiltin) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) -* [`fn withEnable(value=true)`](#fn-withenable) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withIconColor(value)`](#fn-withiconcolor) -* [`fn withName(value)`](#fn-withname) -* [`fn withTarget(value)`](#fn-withtarget) -* [`fn withTargetMixin(value)`](#fn-withtargetmixin) -* [`fn withType(value)`](#fn-withtype) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj filter`](#obj-filter) - * [`fn withExclude(value=true)`](#fn-filterwithexclude) - * [`fn withIds(value)`](#fn-filterwithids) - * [`fn withIdsMixin(value)`](#fn-filterwithidsmixin) -* [`obj target`](#obj-target) - * [`fn withLimit(value)`](#fn-targetwithlimit) - * [`fn withMatchAny(value=true)`](#fn-targetwithmatchany) - * [`fn withTags(value)`](#fn-targetwithtags) - * [`fn withTagsMixin(value)`](#fn-targetwithtagsmixin) - * [`fn withType(value)`](#fn-targetwithtype) - -## Fields - -### fn withBuiltIn - -```jsonnet -withBuiltIn(value=0) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0` - -Set to 1 for the standard annotation query all dashboards have by default. -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -### fn withDatasourceMixin - -```jsonnet -withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -### fn withEnable - -```jsonnet -withEnable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -When enabled the annotation query is issued with every dashboard refresh -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Annotation queries can be toggled on or off at the top of the dashboard. -When hide is true, the toggle is not shown in the dashboard. -### fn withIconColor - -```jsonnet -withIconColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color to use for the annotation event markers -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of annotation. -### fn withTarget - -```jsonnet -withTarget(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO: this should be a regular DataQuery that depends on the selected dashboard -these match the properties of the "grafana" datasouce that is default in most dashboards -### fn withTargetMixin - -```jsonnet -withTargetMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO: this should be a regular DataQuery that depends on the selected dashboard -these match the properties of the "grafana" datasouce that is default in most dashboards -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TODO -- this should not exist here, it is based on the --grafana-- datasource -### obj datasource - - -#### fn datasource.withType - -```jsonnet -datasource.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The plugin type-id -#### fn datasource.withUid - -```jsonnet -datasource.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specific datasource instance -### obj filter - - -#### fn filter.withExclude - -```jsonnet -filter.withExclude(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Should the specified panels be included or excluded -#### fn filter.withIds - -```jsonnet -filter.withIds(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel IDs that should be included or excluded -#### fn filter.withIdsMixin - -```jsonnet -filter.withIdsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel IDs that should be included or excluded -### obj target - - -#### fn target.withLimit - -```jsonnet -target.withLimit(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Only required/valid for the grafana datasource... -but code+tests is already depending on it so hard to change -#### fn target.withMatchAny - -```jsonnet -target.withMatchAny(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Only required/valid for the grafana datasource... -but code+tests is already depending on it so hard to change -#### fn target.withTags - -```jsonnet -target.withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Only required/valid for the grafana datasource... -but code+tests is already depending on it so hard to change -#### fn target.withTagsMixin - -```jsonnet -target.withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Only required/valid for the grafana datasource... -but code+tests is already depending on it so hard to change -#### fn target.withType - -```jsonnet -target.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Only required/valid for the grafana datasource... -but code+tests is already depending on it so hard to change \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/index.md deleted file mode 100644 index ec78d4616..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/index.md +++ /dev/null @@ -1,479 +0,0 @@ -# dashboard - -grafonnet.dashboard - -## Subpackages - -* [annotation](annotation.md) -* [link](link.md) -* [variable](variable.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`fn withAnnotations(value)`](#fn-withannotations) -* [`fn withAnnotationsMixin(value)`](#fn-withannotationsmixin) -* [`fn withDescription(value)`](#fn-withdescription) -* [`fn withEditable(value=true)`](#fn-witheditable) -* [`fn withFiscalYearStartMonth(value=0)`](#fn-withfiscalyearstartmonth) -* [`fn withLinks(value)`](#fn-withlinks) -* [`fn withLinksMixin(value)`](#fn-withlinksmixin) -* [`fn withLiveNow(value=true)`](#fn-withlivenow) -* [`fn withPanels(panels, setPanelIDs=true)`](#fn-withpanels) -* [`fn withPanelsMixin(panels, setPanelIDs=true)`](#fn-withpanelsmixin) -* [`fn withRefresh(value)`](#fn-withrefresh) -* [`fn withSchemaVersion(value=39)`](#fn-withschemaversion) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTemplating(value)`](#fn-withtemplating) -* [`fn withTemplatingMixin(value)`](#fn-withtemplatingmixin) -* [`fn withTimezone(value="browser")`](#fn-withtimezone) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withUid(value)`](#fn-withuid) -* [`fn withVariables(value)`](#fn-withvariables) -* [`fn withVariablesMixin(value)`](#fn-withvariablesmixin) -* [`fn withWeekStart(value)`](#fn-withweekstart) -* [`obj graphTooltip`](#obj-graphtooltip) - * [`fn withSharedCrosshair()`](#fn-graphtooltipwithsharedcrosshair) - * [`fn withSharedTooltip()`](#fn-graphtooltipwithsharedtooltip) -* [`obj time`](#obj-time) - * [`fn withFrom(value="now-6h")`](#fn-timewithfrom) - * [`fn withTo(value="now")`](#fn-timewithto) -* [`obj timepicker`](#obj-timepicker) - * [`fn withHidden(value=true)`](#fn-timepickerwithhidden) - * [`fn withNowDelay(value)`](#fn-timepickerwithnowdelay) - * [`fn withRefreshIntervals(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"])`](#fn-timepickerwithrefreshintervals) - * [`fn withRefreshIntervalsMixin(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"])`](#fn-timepickerwithrefreshintervalsmixin) - * [`fn withTimeOptions(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"])`](#fn-timepickerwithtimeoptions) - * [`fn withTimeOptionsMixin(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"])`](#fn-timepickerwithtimeoptionsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new dashboard with a title. -### fn withAnnotations - -```jsonnet -withAnnotations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -`withAnnotations` adds an array of annotations to a dashboard. - -This function appends passed data to existing values - -### fn withAnnotationsMixin - -```jsonnet -withAnnotationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -`withAnnotationsMixin` adds an array of annotations to a dashboard. - -This function appends passed data to existing values - -### fn withDescription - -```jsonnet -withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description of dashboard. -### fn withEditable - -```jsonnet -withEditable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether a dashboard is editable or not. -### fn withFiscalYearStartMonth - -```jsonnet -withFiscalYearStartMonth(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - -The month that the fiscal year starts on. 0 = January, 11 = December -### fn withLinks - -```jsonnet -withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. - -`withLinks` takes an array of [link objects](./link.md). - -The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. - -Example: - -```jsonnet -local g = import 'g.libsonnet'; -local link = g.dashboard.link; - -g.dashboard.new('Title dashboard') -+ g.dashboard.withLinks([ - link.link.new('My title', 'https://wikipedia.org/'), -]) -``` - -### fn withLinksMixin - -```jsonnet -withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. - -`withLinks` takes an array of [link objects](./link.md). - -The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. - -Example: - -```jsonnet -local g = import 'g.libsonnet'; -local link = g.dashboard.link; - -g.dashboard.new('Title dashboard') -+ g.dashboard.withLinks([ - link.link.new('My title', 'https://wikipedia.org/'), -]) -``` - -### fn withLiveNow - -```jsonnet -withLiveNow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -When set to true, the dashboard will redraw panels at an interval matching the pixel width. -This will keep data "moving left" regardless of the query refresh rate. This setting helps -avoid dashboards presenting stale live data -### fn withPanels - -```jsonnet -withPanels(panels, setPanelIDs=true) -``` - -PARAMETERS: - -* **panels** (`array`) -* **setPanelIDs** (`bool`) - - default value: `true` - -`withPanels` sets the panels on a dashboard authoratively. It automatically adds IDs to the panels, this can be disabled with `setPanelIDs=false`. -### fn withPanelsMixin - -```jsonnet -withPanelsMixin(panels, setPanelIDs=true) -``` - -PARAMETERS: - -* **panels** (`array`) -* **setPanelIDs** (`bool`) - - default value: `true` - -`withPanelsMixin` adds more panels to a dashboard. -### fn withRefresh - -```jsonnet -withRefresh(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Refresh rate of dashboard. Represented via interval string, e.g. "5s", "1m", "1h", "1d". -### fn withSchemaVersion - -```jsonnet -withSchemaVersion(value=39) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `39` - - -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Tags associated with dashboard. -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Tags associated with dashboard. -### fn withTemplating - -```jsonnet -withTemplating(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Configured template variables -### fn withTemplatingMixin - -```jsonnet -withTemplatingMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Configured template variables -### fn withTimezone - -```jsonnet -withTimezone(value="browser") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"browser"` - -Timezone of dashboard. Accepted values are IANA TZDB zone ID or "browser" or "utc". -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title of dashboard. -### fn withUid - -```jsonnet -withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique dashboard identifier that can be generated by anyone. string (8-40) -### fn withVariables - -```jsonnet -withVariables(value) -``` - -PARAMETERS: - -* **value** (`array`) - -`withVariables` adds an array of variables to a dashboard - -### fn withVariablesMixin - -```jsonnet -withVariablesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -`withVariablesMixin` adds an array of variables to a dashboard. - -This function appends passed data to existing values - -### fn withWeekStart - -```jsonnet -withWeekStart(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Day when the week starts. Expressed by the name of the day in lowercase, e.g. "monday". -### obj graphTooltip - - -#### fn graphTooltip.withSharedCrosshair - -```jsonnet -graphTooltip.withSharedCrosshair() -``` - - -Share crosshair on all panels. -#### fn graphTooltip.withSharedTooltip - -```jsonnet -graphTooltip.withSharedTooltip() -``` - - -Share crosshair and tooltip on all panels. -### obj time - - -#### fn time.withFrom - -```jsonnet -time.withFrom(value="now-6h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now-6h"` - - -#### fn time.withTo - -```jsonnet -time.withTo(value="now") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now"` - - -### obj timepicker - - -#### fn timepicker.withHidden - -```jsonnet -timepicker.withHidden(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether timepicker is visible or not. -#### fn timepicker.withNowDelay - -```jsonnet -timepicker.withNowDelay(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Override the now time by entering a time delay. Use this option to accommodate known delays in data aggregation to avoid null values. -#### fn timepicker.withRefreshIntervals - -```jsonnet -timepicker.withRefreshIntervals(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]` - -Interval options available in the refresh picker dropdown. -#### fn timepicker.withRefreshIntervalsMixin - -```jsonnet -timepicker.withRefreshIntervalsMixin(value=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]` - -Interval options available in the refresh picker dropdown. -#### fn timepicker.withTimeOptions - -```jsonnet -timepicker.withTimeOptions(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `["5m","15m","1h","6h","12h","24h","2d","7d","30d"]` - -Selectable options available in the time picker dropdown. Has no effect on provisioned dashboard. -#### fn timepicker.withTimeOptionsMixin - -```jsonnet -timepicker.withTimeOptionsMixin(value=["5m","15m","1h","6h","12h","24h","2d","7d","30d"]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `["5m","15m","1h","6h","12h","24h","2d","7d","30d"]` - -Selectable options available in the time picker dropdown. Has no effect on provisioned dashboard. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/link.md deleted file mode 100644 index 421e0c006..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/link.md +++ /dev/null @@ -1,196 +0,0 @@ -# link - -Dashboard links are displayed at the top of the dashboard, these can either link to other dashboards or to external URLs. - -The [docs](https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/manage-dashboard-links/#dashboard-links) give a more comprehensive description. - -Example: - -```jsonnet -local g = import 'g.libsonnet'; -local link = g.dashboard.link; - -g.dashboard.new('Title dashboard') -+ g.dashboard.withLinks([ - link.link.new('My title', 'https://wikipedia.org/'), -]) -``` - - -## Index - -* [`obj dashboards`](#obj-dashboards) - * [`fn new(title, tags)`](#fn-dashboardsnew) - * [`obj options`](#obj-dashboardsoptions) - * [`fn withAsDropdown(value=true)`](#fn-dashboardsoptionswithasdropdown) - * [`fn withIncludeVars(value=true)`](#fn-dashboardsoptionswithincludevars) - * [`fn withKeepTime(value=true)`](#fn-dashboardsoptionswithkeeptime) - * [`fn withTargetBlank(value=true)`](#fn-dashboardsoptionswithtargetblank) -* [`obj link`](#obj-link) - * [`fn new(title, url)`](#fn-linknew) - * [`fn withIcon(value)`](#fn-linkwithicon) - * [`fn withTooltip(value)`](#fn-linkwithtooltip) - * [`obj options`](#obj-linkoptions) - * [`fn withAsDropdown(value=true)`](#fn-linkoptionswithasdropdown) - * [`fn withIncludeVars(value=true)`](#fn-linkoptionswithincludevars) - * [`fn withKeepTime(value=true)`](#fn-linkoptionswithkeeptime) - * [`fn withTargetBlank(value=true)`](#fn-linkoptionswithtargetblank) - -## Fields - -### obj dashboards - - -#### fn dashboards.new - -```jsonnet -dashboards.new(title, tags) -``` - -PARAMETERS: - -* **title** (`string`) -* **tags** (`array`) - -Create links to dashboards based on `tags`. - -#### obj dashboards.options - - -##### fn dashboards.options.withAsDropdown - -```jsonnet -dashboards.options.withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -##### fn dashboards.options.withIncludeVars - -```jsonnet -dashboards.options.withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -##### fn dashboards.options.withKeepTime - -```jsonnet -dashboards.options.withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -##### fn dashboards.options.withTargetBlank - -```jsonnet -dashboards.options.withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### obj link - - -#### fn link.new - -```jsonnet -link.new(title, url) -``` - -PARAMETERS: - -* **title** (`string`) -* **url** (`string`) - -Create link to an arbitrary URL. - -#### fn link.withIcon - -```jsonnet -link.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -#### fn link.withTooltip - -```jsonnet -link.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -#### obj link.options - - -##### fn link.options.withAsDropdown - -```jsonnet -link.options.withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -##### fn link.options.withIncludeVars - -```jsonnet -link.options.withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -##### fn link.options.withKeepTime - -```jsonnet -link.options.withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -##### fn link.options.withTargetBlank - -```jsonnet -link.options.withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/variable.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/variable.md deleted file mode 100644 index e5114eaf4..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/dashboard/variable.md +++ /dev/null @@ -1,1054 +0,0 @@ -# variable - -Example usage: - -```jsonnet -local g = import 'g.libsonnet'; -local var = g.dashboard.variable; - -local customVar = - var.custom.new( - 'myOptions', - values=['a', 'b', 'c', 'd'], - ) - + var.custom.generalOptions.withDescription( - 'This is a variable for my custom options.' - ) - + var.custom.selectionOptions.withMulti(); - -local queryVar = - var.query.new('queryOptions') - + var.query.queryTypes.withLabelValues( - 'up', - 'instance', - ) - + var.query.withDatasource( - type='prometheus', - uid='mimir-prod', - ) - + var.query.selectionOptions.withIncludeAll(); - - -g.dashboard.new('my dashboard') -+ g.dashboard.withVariables([ - customVar, - queryVar, -]) -``` - - -## Index - -* [`obj adhoc`](#obj-adhoc) - * [`fn new(name, type, uid)`](#fn-adhocnew) - * [`fn newFromDatasourceVariable(name, variable)`](#fn-adhocnewfromdatasourcevariable) - * [`obj generalOptions`](#obj-adhocgeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-adhocgeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-adhocgeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-adhocgeneraloptionswithlabel) - * [`fn withName(value)`](#fn-adhocgeneraloptionswithname) - * [`obj showOnDashboard`](#obj-adhocgeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-adhocgeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-adhocgeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-adhocgeneraloptionsshowondashboardwithvalueonly) -* [`obj constant`](#obj-constant) - * [`fn new(name, value)`](#fn-constantnew) - * [`obj generalOptions`](#obj-constantgeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-constantgeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-constantgeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-constantgeneraloptionswithlabel) - * [`fn withName(value)`](#fn-constantgeneraloptionswithname) - * [`obj showOnDashboard`](#obj-constantgeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-constantgeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-constantgeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-constantgeneraloptionsshowondashboardwithvalueonly) -* [`obj custom`](#obj-custom) - * [`fn new(name, values)`](#fn-customnew) - * [`obj generalOptions`](#obj-customgeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-customgeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-customgeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-customgeneraloptionswithlabel) - * [`fn withName(value)`](#fn-customgeneraloptionswithname) - * [`obj showOnDashboard`](#obj-customgeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-customgeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-customgeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-customgeneraloptionsshowondashboardwithvalueonly) - * [`obj selectionOptions`](#obj-customselectionoptions) - * [`fn withIncludeAll(value=true, customAllValue)`](#fn-customselectionoptionswithincludeall) - * [`fn withMulti(value=true)`](#fn-customselectionoptionswithmulti) -* [`obj datasource`](#obj-datasource) - * [`fn new(name, type)`](#fn-datasourcenew) - * [`fn withRegex(value)`](#fn-datasourcewithregex) - * [`obj generalOptions`](#obj-datasourcegeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-datasourcegeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-datasourcegeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-datasourcegeneraloptionswithlabel) - * [`fn withName(value)`](#fn-datasourcegeneraloptionswithname) - * [`obj showOnDashboard`](#obj-datasourcegeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-datasourcegeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-datasourcegeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-datasourcegeneraloptionsshowondashboardwithvalueonly) - * [`obj selectionOptions`](#obj-datasourceselectionoptions) - * [`fn withIncludeAll(value=true, customAllValue)`](#fn-datasourceselectionoptionswithincludeall) - * [`fn withMulti(value=true)`](#fn-datasourceselectionoptionswithmulti) -* [`obj interval`](#obj-interval) - * [`fn new(name, values)`](#fn-intervalnew) - * [`fn withAutoOption(count, minInterval)`](#fn-intervalwithautooption) - * [`obj generalOptions`](#obj-intervalgeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-intervalgeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-intervalgeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-intervalgeneraloptionswithlabel) - * [`fn withName(value)`](#fn-intervalgeneraloptionswithname) - * [`obj showOnDashboard`](#obj-intervalgeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-intervalgeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-intervalgeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-intervalgeneraloptionsshowondashboardwithvalueonly) -* [`obj query`](#obj-query) - * [`fn new(name, query="")`](#fn-querynew) - * [`fn withDatasource(type, uid)`](#fn-querywithdatasource) - * [`fn withDatasourceFromVariable(variable)`](#fn-querywithdatasourcefromvariable) - * [`fn withRegex(value)`](#fn-querywithregex) - * [`fn withSort(i=0, type="alphabetical", asc=true, caseInsensitive=false)`](#fn-querywithsort) - * [`obj generalOptions`](#obj-querygeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-querygeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-querygeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-querygeneraloptionswithlabel) - * [`fn withName(value)`](#fn-querygeneraloptionswithname) - * [`obj showOnDashboard`](#obj-querygeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-querygeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-querygeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-querygeneraloptionsshowondashboardwithvalueonly) - * [`obj queryTypes`](#obj-queryquerytypes) - * [`fn withLabelValues(label, metric="")`](#fn-queryquerytypeswithlabelvalues) - * [`fn withQueryResult(query)`](#fn-queryquerytypeswithqueryresult) - * [`obj refresh`](#obj-queryrefresh) - * [`fn onLoad()`](#fn-queryrefreshonload) - * [`fn onTime()`](#fn-queryrefreshontime) - * [`obj selectionOptions`](#obj-queryselectionoptions) - * [`fn withIncludeAll(value=true, customAllValue)`](#fn-queryselectionoptionswithincludeall) - * [`fn withMulti(value=true)`](#fn-queryselectionoptionswithmulti) -* [`obj textbox`](#obj-textbox) - * [`fn new(name, default="")`](#fn-textboxnew) - * [`obj generalOptions`](#obj-textboxgeneraloptions) - * [`fn withCurrent(key, value="")`](#fn-textboxgeneraloptionswithcurrent) - * [`fn withDescription(value)`](#fn-textboxgeneraloptionswithdescription) - * [`fn withLabel(value)`](#fn-textboxgeneraloptionswithlabel) - * [`fn withName(value)`](#fn-textboxgeneraloptionswithname) - * [`obj showOnDashboard`](#obj-textboxgeneraloptionsshowondashboard) - * [`fn withLabelAndValue()`](#fn-textboxgeneraloptionsshowondashboardwithlabelandvalue) - * [`fn withNothing()`](#fn-textboxgeneraloptionsshowondashboardwithnothing) - * [`fn withValueOnly()`](#fn-textboxgeneraloptionsshowondashboardwithvalueonly) - -## Fields - -### obj adhoc - - -#### fn adhoc.new - -```jsonnet -adhoc.new(name, type, uid) -``` - -PARAMETERS: - -* **name** (`string`) -* **type** (`string`) -* **uid** (`string`) - -`new` creates an adhoc template variable for datasource with `type` and `uid`. -#### fn adhoc.newFromDatasourceVariable - -```jsonnet -adhoc.newFromDatasourceVariable(name, variable) -``` - -PARAMETERS: - -* **name** (`string`) -* **variable** (`object`) - -Same as `new` but selecting the datasource from another template variable. -#### obj adhoc.generalOptions - - -##### fn adhoc.generalOptions.withCurrent - -```jsonnet -adhoc.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn adhoc.generalOptions.withDescription - -```jsonnet -adhoc.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description of variable. It can be defined but `null`. -##### fn adhoc.generalOptions.withLabel - -```jsonnet -adhoc.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Optional display name -##### fn adhoc.generalOptions.withName - -```jsonnet -adhoc.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of variable -##### obj adhoc.generalOptions.showOnDashboard - - -###### fn adhoc.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -adhoc.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn adhoc.generalOptions.showOnDashboard.withNothing - -```jsonnet -adhoc.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn adhoc.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -adhoc.generalOptions.showOnDashboard.withValueOnly() -``` - - - -### obj constant - - -#### fn constant.new - -```jsonnet -constant.new(name, value) -``` - -PARAMETERS: - -* **name** (`string`) -* **value** (`string`) - -`new` creates a hidden constant template variable. -#### obj constant.generalOptions - - -##### fn constant.generalOptions.withCurrent - -```jsonnet -constant.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn constant.generalOptions.withDescription - -```jsonnet -constant.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description of variable. It can be defined but `null`. -##### fn constant.generalOptions.withLabel - -```jsonnet -constant.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Optional display name -##### fn constant.generalOptions.withName - -```jsonnet -constant.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of variable -##### obj constant.generalOptions.showOnDashboard - - -###### fn constant.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -constant.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn constant.generalOptions.showOnDashboard.withNothing - -```jsonnet -constant.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn constant.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -constant.generalOptions.showOnDashboard.withValueOnly() -``` - - - -### obj custom - - -#### fn custom.new - -```jsonnet -custom.new(name, values) -``` - -PARAMETERS: - -* **name** (`string`) -* **values** (`array`) - -`new` creates a custom template variable. - -The `values` array accepts an object with key/value keys, if it's not an object -then it will be added as a string. - -Example: -``` -[ - { key: 'mykey', value: 'myvalue' }, - 'myvalue', - 12, -] - -#### obj custom.generalOptions - - -##### fn custom.generalOptions.withCurrent - -```jsonnet -custom.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn custom.generalOptions.withDescription - -```jsonnet -custom.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description of variable. It can be defined but `null`. -##### fn custom.generalOptions.withLabel - -```jsonnet -custom.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Optional display name -##### fn custom.generalOptions.withName - -```jsonnet -custom.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of variable -##### obj custom.generalOptions.showOnDashboard - - -###### fn custom.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -custom.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn custom.generalOptions.showOnDashboard.withNothing - -```jsonnet -custom.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn custom.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -custom.generalOptions.showOnDashboard.withValueOnly() -``` - - - -#### obj custom.selectionOptions - - -##### fn custom.selectionOptions.withIncludeAll - -```jsonnet -custom.selectionOptions.withIncludeAll(value=true, customAllValue) -``` - -PARAMETERS: - -* **value** (`bool`) - - default value: `true` -* **customAllValue** (`string`) - -`withIncludeAll` enables an option to include all variables. - -Optionally you can set a `customAllValue`. - -##### fn custom.selectionOptions.withMulti - -```jsonnet -custom.selectionOptions.withMulti(value=true) -``` - -PARAMETERS: - -* **value** (`bool`) - - default value: `true` - -Enable selecting multiple values. -### obj datasource - - -#### fn datasource.new - -```jsonnet -datasource.new(name, type) -``` - -PARAMETERS: - -* **name** (`string`) -* **type** (`string`) - -`new` creates a datasource template variable. -#### fn datasource.withRegex - -```jsonnet -datasource.withRegex(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`withRegex` filter for which data source instances to choose from in the -variable value list. Example: `/^prod/` - -#### obj datasource.generalOptions - - -##### fn datasource.generalOptions.withCurrent - -```jsonnet -datasource.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn datasource.generalOptions.withDescription - -```jsonnet -datasource.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description of variable. It can be defined but `null`. -##### fn datasource.generalOptions.withLabel - -```jsonnet -datasource.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Optional display name -##### fn datasource.generalOptions.withName - -```jsonnet -datasource.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of variable -##### obj datasource.generalOptions.showOnDashboard - - -###### fn datasource.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -datasource.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn datasource.generalOptions.showOnDashboard.withNothing - -```jsonnet -datasource.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn datasource.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -datasource.generalOptions.showOnDashboard.withValueOnly() -``` - - - -#### obj datasource.selectionOptions - - -##### fn datasource.selectionOptions.withIncludeAll - -```jsonnet -datasource.selectionOptions.withIncludeAll(value=true, customAllValue) -``` - -PARAMETERS: - -* **value** (`bool`) - - default value: `true` -* **customAllValue** (`string`) - -`withIncludeAll` enables an option to include all variables. - -Optionally you can set a `customAllValue`. - -##### fn datasource.selectionOptions.withMulti - -```jsonnet -datasource.selectionOptions.withMulti(value=true) -``` - -PARAMETERS: - -* **value** (`bool`) - - default value: `true` - -Enable selecting multiple values. -### obj interval - - -#### fn interval.new - -```jsonnet -interval.new(name, values) -``` - -PARAMETERS: - -* **name** (`string`) -* **values** (`array`) - -`new` creates an interval template variable. -#### fn interval.withAutoOption - -```jsonnet -interval.withAutoOption(count, minInterval) -``` - -PARAMETERS: - -* **count** (`number`) -* **minInterval** (`string`) - -`withAutoOption` adds an options to dynamically calculate interval by dividing -time range by the count specified. - -`minInterval' has to be either unit-less or end with one of the following units: -"y, M, w, d, h, m, s, ms". - -#### obj interval.generalOptions - - -##### fn interval.generalOptions.withCurrent - -```jsonnet -interval.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn interval.generalOptions.withDescription - -```jsonnet -interval.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description of variable. It can be defined but `null`. -##### fn interval.generalOptions.withLabel - -```jsonnet -interval.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Optional display name -##### fn interval.generalOptions.withName - -```jsonnet -interval.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of variable -##### obj interval.generalOptions.showOnDashboard - - -###### fn interval.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -interval.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn interval.generalOptions.showOnDashboard.withNothing - -```jsonnet -interval.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn interval.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -interval.generalOptions.showOnDashboard.withValueOnly() -``` - - - -### obj query - - -#### fn query.new - -```jsonnet -query.new(name, query="") -``` - -PARAMETERS: - -* **name** (`string`) -* **query** (`string`) - - default value: `""` - -Create a query template variable. - -`query` argument is optional, this can also be set with `query.queryTypes`. - -#### fn query.withDatasource - -```jsonnet -query.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -Select a datasource for the variable template query. -#### fn query.withDatasourceFromVariable - -```jsonnet -query.withDatasourceFromVariable(variable) -``` - -PARAMETERS: - -* **variable** (`object`) - -Select the datasource from another template variable. -#### fn query.withRegex - -```jsonnet -query.withRegex(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`withRegex` can extract part of a series name or metric node segment. Named -capture groups can be used to separate the display text and value -([see examples](https://grafana.com/docs/grafana/latest/variables/filter-variables-with-regex#filter-and-modify-using-named-text-and-value-capture-groups)). - -#### fn query.withSort - -```jsonnet -query.withSort(i=0, type="alphabetical", asc=true, caseInsensitive=false) -``` - -PARAMETERS: - -* **i** (`number`) - - default value: `0` -* **type** (`string`) - - default value: `"alphabetical"` -* **asc** (`bool`) - - default value: `true` -* **caseInsensitive** (`bool`) - - default value: `false` - -Choose how to sort the values in the dropdown. - -This can be called as `withSort() to use the integer values for each -option. If `i==0` then it will be ignored and the other arguments will take -precedence. - -The numerical values are: - -- 1 - Alphabetical (asc) -- 2 - Alphabetical (desc) -- 3 - Numerical (asc) -- 4 - Numerical (desc) -- 5 - Alphabetical (case-insensitive, asc) -- 6 - Alphabetical (case-insensitive, desc) - -#### obj query.generalOptions - - -##### fn query.generalOptions.withCurrent - -```jsonnet -query.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn query.generalOptions.withDescription - -```jsonnet -query.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description of variable. It can be defined but `null`. -##### fn query.generalOptions.withLabel - -```jsonnet -query.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Optional display name -##### fn query.generalOptions.withName - -```jsonnet -query.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of variable -##### obj query.generalOptions.showOnDashboard - - -###### fn query.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -query.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn query.generalOptions.showOnDashboard.withNothing - -```jsonnet -query.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn query.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -query.generalOptions.showOnDashboard.withValueOnly() -``` - - - -#### obj query.queryTypes - - -##### fn query.queryTypes.withLabelValues - -```jsonnet -query.queryTypes.withLabelValues(label, metric="") -``` - -PARAMETERS: - -* **label** (`string`) -* **metric** (`string`) - - default value: `""` - -Construct a Prometheus template variable using `label_values()`. -##### fn query.queryTypes.withQueryResult - -```jsonnet -query.queryTypes.withQueryResult(query) -``` - -PARAMETERS: - -* **query** (`string`) - -Construct a Prometheus template variable using `query_result()`. -#### obj query.refresh - - -##### fn query.refresh.onLoad - -```jsonnet -query.refresh.onLoad() -``` - - -Refresh label values on dashboard load. -##### fn query.refresh.onTime - -```jsonnet -query.refresh.onTime() -``` - - -Refresh label values on time range change. -#### obj query.selectionOptions - - -##### fn query.selectionOptions.withIncludeAll - -```jsonnet -query.selectionOptions.withIncludeAll(value=true, customAllValue) -``` - -PARAMETERS: - -* **value** (`bool`) - - default value: `true` -* **customAllValue** (`string`) - -`withIncludeAll` enables an option to include all variables. - -Optionally you can set a `customAllValue`. - -##### fn query.selectionOptions.withMulti - -```jsonnet -query.selectionOptions.withMulti(value=true) -``` - -PARAMETERS: - -* **value** (`bool`) - - default value: `true` - -Enable selecting multiple values. -### obj textbox - - -#### fn textbox.new - -```jsonnet -textbox.new(name, default="") -``` - -PARAMETERS: - -* **name** (`string`) -* **default** (`string`) - - default value: `""` - -`new` creates a textbox template variable. -#### obj textbox.generalOptions - - -##### fn textbox.generalOptions.withCurrent - -```jsonnet -textbox.generalOptions.withCurrent(key, value="") -``` - -PARAMETERS: - -* **key** (`any`) -* **value** (`any`) - - default value: `""` - -`withCurrent` sets the currently selected value of a variable. If key and value are different, both need to be given. - -##### fn textbox.generalOptions.withDescription - -```jsonnet -textbox.generalOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Description of variable. It can be defined but `null`. -##### fn textbox.generalOptions.withLabel - -```jsonnet -textbox.generalOptions.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Optional display name -##### fn textbox.generalOptions.withName - -```jsonnet -textbox.generalOptions.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of variable -##### obj textbox.generalOptions.showOnDashboard - - -###### fn textbox.generalOptions.showOnDashboard.withLabelAndValue - -```jsonnet -textbox.generalOptions.showOnDashboard.withLabelAndValue() -``` - - - -###### fn textbox.generalOptions.showOnDashboard.withNothing - -```jsonnet -textbox.generalOptions.showOnDashboard.withNothing() -``` - - - -###### fn textbox.generalOptions.showOnDashboard.withValueOnly - -```jsonnet -textbox.generalOptions.showOnDashboard.withValueOnly() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/folder.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/folder.md deleted file mode 100644 index ffab0376f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/folder.md +++ /dev/null @@ -1,45 +0,0 @@ -# folder - -grafonnet.folder - -## Index - -* [`fn withParentUid(value)`](#fn-withparentuid) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withUid(value)`](#fn-withuid) - -## Fields - -### fn withParentUid - -```jsonnet -withParentUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -only used if nested folders are enabled -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Folder title -### fn withUid - -```jsonnet -withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique folder id \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/index.md deleted file mode 100644 index 0592b4709..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/index.md +++ /dev/null @@ -1,1599 +0,0 @@ -# librarypanel - -grafonnet.librarypanel - -## Subpackages - -* [model.fieldConfig.defaults.thresholds.steps](model/fieldConfig/defaults/thresholds/steps.md) -* [model.fieldConfig.overrides](model/fieldConfig/overrides/index.md) -* [model.links](model/links.md) -* [model.transformations](model/transformations.md) - -## Index - -* [`fn withDescription(value)`](#fn-withdescription) -* [`fn withFolderUid(value)`](#fn-withfolderuid) -* [`fn withMeta(value)`](#fn-withmeta) -* [`fn withMetaMixin(value)`](#fn-withmetamixin) -* [`fn withModel(value)`](#fn-withmodel) -* [`fn withModelMixin(value)`](#fn-withmodelmixin) -* [`fn withName(value)`](#fn-withname) -* [`fn withSchemaVersion(value)`](#fn-withschemaversion) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUid(value)`](#fn-withuid) -* [`fn withVersion(value)`](#fn-withversion) -* [`obj meta`](#obj-meta) - * [`fn withConnectedDashboards(value)`](#fn-metawithconnecteddashboards) - * [`fn withCreated(value)`](#fn-metawithcreated) - * [`fn withCreatedBy(value)`](#fn-metawithcreatedby) - * [`fn withCreatedByMixin(value)`](#fn-metawithcreatedbymixin) - * [`fn withFolderName(value)`](#fn-metawithfoldername) - * [`fn withFolderUid(value)`](#fn-metawithfolderuid) - * [`fn withUpdated(value)`](#fn-metawithupdated) - * [`fn withUpdatedBy(value)`](#fn-metawithupdatedby) - * [`fn withUpdatedByMixin(value)`](#fn-metawithupdatedbymixin) - * [`obj createdBy`](#obj-metacreatedby) - * [`fn withAvatarUrl(value)`](#fn-metacreatedbywithavatarurl) - * [`fn withId(value)`](#fn-metacreatedbywithid) - * [`fn withName(value)`](#fn-metacreatedbywithname) - * [`obj updatedBy`](#obj-metaupdatedby) - * [`fn withAvatarUrl(value)`](#fn-metaupdatedbywithavatarurl) - * [`fn withId(value)`](#fn-metaupdatedbywithid) - * [`fn withName(value)`](#fn-metaupdatedbywithname) -* [`obj model`](#obj-model) - * [`fn withCacheTimeout(value)`](#fn-modelwithcachetimeout) - * [`fn withDatasource(value)`](#fn-modelwithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-modelwithdatasourcemixin) - * [`fn withDescription(value)`](#fn-modelwithdescription) - * [`fn withFieldConfig(value)`](#fn-modelwithfieldconfig) - * [`fn withFieldConfigMixin(value)`](#fn-modelwithfieldconfigmixin) - * [`fn withHideTimeOverride(value=true)`](#fn-modelwithhidetimeoverride) - * [`fn withInterval(value)`](#fn-modelwithinterval) - * [`fn withLinks(value)`](#fn-modelwithlinks) - * [`fn withLinksMixin(value)`](#fn-modelwithlinksmixin) - * [`fn withMaxDataPoints(value)`](#fn-modelwithmaxdatapoints) - * [`fn withMaxPerRow(value)`](#fn-modelwithmaxperrow) - * [`fn withOptions(value)`](#fn-modelwithoptions) - * [`fn withOptionsMixin(value)`](#fn-modelwithoptionsmixin) - * [`fn withPluginVersion(value)`](#fn-modelwithpluginversion) - * [`fn withQueryCachingTTL(value)`](#fn-modelwithquerycachingttl) - * [`fn withRepeat(value)`](#fn-modelwithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-modelwithrepeatdirection) - * [`fn withTargets(value)`](#fn-modelwithtargets) - * [`fn withTargetsMixin(value)`](#fn-modelwithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-modelwithtimefrom) - * [`fn withTimeShift(value)`](#fn-modelwithtimeshift) - * [`fn withTitle(value)`](#fn-modelwithtitle) - * [`fn withTransformations(value)`](#fn-modelwithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-modelwithtransformationsmixin) - * [`fn withTransparent(value=true)`](#fn-modelwithtransparent) - * [`fn withType(value)`](#fn-modelwithtype) - * [`obj datasource`](#obj-modeldatasource) - * [`fn withType(value)`](#fn-modeldatasourcewithtype) - * [`fn withUid(value)`](#fn-modeldatasourcewithuid) - * [`obj fieldConfig`](#obj-modelfieldconfig) - * [`fn withDefaults(value)`](#fn-modelfieldconfigwithdefaults) - * [`fn withDefaultsMixin(value)`](#fn-modelfieldconfigwithdefaultsmixin) - * [`fn withOverrides(value)`](#fn-modelfieldconfigwithoverrides) - * [`fn withOverridesMixin(value)`](#fn-modelfieldconfigwithoverridesmixin) - * [`obj defaults`](#obj-modelfieldconfigdefaults) - * [`fn withColor(value)`](#fn-modelfieldconfigdefaultswithcolor) - * [`fn withColorMixin(value)`](#fn-modelfieldconfigdefaultswithcolormixin) - * [`fn withCustom(value)`](#fn-modelfieldconfigdefaultswithcustom) - * [`fn withCustomMixin(value)`](#fn-modelfieldconfigdefaultswithcustommixin) - * [`fn withDecimals(value)`](#fn-modelfieldconfigdefaultswithdecimals) - * [`fn withDescription(value)`](#fn-modelfieldconfigdefaultswithdescription) - * [`fn withDisplayName(value)`](#fn-modelfieldconfigdefaultswithdisplayname) - * [`fn withDisplayNameFromDS(value)`](#fn-modelfieldconfigdefaultswithdisplaynamefromds) - * [`fn withFilterable(value=true)`](#fn-modelfieldconfigdefaultswithfilterable) - * [`fn withLinks(value)`](#fn-modelfieldconfigdefaultswithlinks) - * [`fn withLinksMixin(value)`](#fn-modelfieldconfigdefaultswithlinksmixin) - * [`fn withMappings(value)`](#fn-modelfieldconfigdefaultswithmappings) - * [`fn withMappingsMixin(value)`](#fn-modelfieldconfigdefaultswithmappingsmixin) - * [`fn withMax(value)`](#fn-modelfieldconfigdefaultswithmax) - * [`fn withMin(value)`](#fn-modelfieldconfigdefaultswithmin) - * [`fn withNoValue(value)`](#fn-modelfieldconfigdefaultswithnovalue) - * [`fn withPath(value)`](#fn-modelfieldconfigdefaultswithpath) - * [`fn withThresholds(value)`](#fn-modelfieldconfigdefaultswiththresholds) - * [`fn withThresholdsMixin(value)`](#fn-modelfieldconfigdefaultswiththresholdsmixin) - * [`fn withUnit(value)`](#fn-modelfieldconfigdefaultswithunit) - * [`fn withWriteable(value=true)`](#fn-modelfieldconfigdefaultswithwriteable) - * [`obj color`](#obj-modelfieldconfigdefaultscolor) - * [`fn withFixedColor(value)`](#fn-modelfieldconfigdefaultscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-modelfieldconfigdefaultscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-modelfieldconfigdefaultscolorwithseriesby) - * [`obj mappings`](#obj-modelfieldconfigdefaultsmappings) - * [`obj RangeMap`](#obj-modelfieldconfigdefaultsmappingsrangemap) - * [`fn withOptions(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapwithoptionsmixin) - * [`fn withType()`](#fn-modelfieldconfigdefaultsmappingsrangemapwithtype) - * [`obj options`](#obj-modelfieldconfigdefaultsmappingsrangemapoptions) - * [`fn withFrom(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionswithto) - * [`obj result`](#obj-modelfieldconfigdefaultsmappingsrangemapoptionsresult) - * [`fn withColor(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-modelfieldconfigdefaultsmappingsrangemapoptionsresultwithtext) - * [`obj RegexMap`](#obj-modelfieldconfigdefaultsmappingsregexmap) - * [`fn withOptions(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapwithoptionsmixin) - * [`fn withType()`](#fn-modelfieldconfigdefaultsmappingsregexmapwithtype) - * [`obj options`](#obj-modelfieldconfigdefaultsmappingsregexmapoptions) - * [`fn withPattern(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionswithresultmixin) - * [`obj result`](#obj-modelfieldconfigdefaultsmappingsregexmapoptionsresult) - * [`fn withColor(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-modelfieldconfigdefaultsmappingsregexmapoptionsresultwithtext) - * [`obj SpecialValueMap`](#obj-modelfieldconfigdefaultsmappingsspecialvaluemap) - * [`fn withOptions(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapwithtype) - * [`obj options`](#obj-modelfieldconfigdefaultsmappingsspecialvaluemapoptions) - * [`fn withMatch(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-modelfieldconfigdefaultsmappingsspecialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-modelfieldconfigdefaultsmappingsspecialvaluemapoptionsresultwithtext) - * [`obj ValueMap`](#obj-modelfieldconfigdefaultsmappingsvaluemap) - * [`fn withOptions(value)`](#fn-modelfieldconfigdefaultsmappingsvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-modelfieldconfigdefaultsmappingsvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-modelfieldconfigdefaultsmappingsvaluemapwithtype) - * [`obj thresholds`](#obj-modelfieldconfigdefaultsthresholds) - * [`fn withMode(value)`](#fn-modelfieldconfigdefaultsthresholdswithmode) - * [`fn withSteps(value)`](#fn-modelfieldconfigdefaultsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-modelfieldconfigdefaultsthresholdswithstepsmixin) - -## Fields - -### fn withDescription - -```jsonnet -withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description -### fn withFolderUid - -```jsonnet -withFolderUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Folder UID -### fn withMeta - -```jsonnet -withMeta(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withMetaMixin - -```jsonnet -withMetaMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withModel - -```jsonnet -withModel(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO: should be the same panel schema defined in dashboard -Typescript: Omit; -### fn withModelMixin - -```jsonnet -withModelMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO: should be the same panel schema defined in dashboard -Typescript: Omit; -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel name (also saved in the model) -### fn withSchemaVersion - -```jsonnet -withSchemaVersion(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Dashboard version when this was saved (zero if unknown) -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The panel type (from inside the model) -### fn withUid - -```jsonnet -withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library element UID -### fn withVersion - -```jsonnet -withVersion(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -panel version, incremented each time the dashboard is updated. -### obj meta - - -#### fn meta.withConnectedDashboards - -```jsonnet -meta.withConnectedDashboards(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn meta.withCreated - -```jsonnet -meta.withCreated(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn meta.withCreatedBy - -```jsonnet -meta.withCreatedBy(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn meta.withCreatedByMixin - -```jsonnet -meta.withCreatedByMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn meta.withFolderName - -```jsonnet -meta.withFolderName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn meta.withFolderUid - -```jsonnet -meta.withFolderUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn meta.withUpdated - -```jsonnet -meta.withUpdated(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn meta.withUpdatedBy - -```jsonnet -meta.withUpdatedBy(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn meta.withUpdatedByMixin - -```jsonnet -meta.withUpdatedByMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### obj meta.createdBy - - -##### fn meta.createdBy.withAvatarUrl - -```jsonnet -meta.createdBy.withAvatarUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn meta.createdBy.withId - -```jsonnet -meta.createdBy.withId(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -##### fn meta.createdBy.withName - -```jsonnet -meta.createdBy.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj meta.updatedBy - - -##### fn meta.updatedBy.withAvatarUrl - -```jsonnet -meta.updatedBy.withAvatarUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn meta.updatedBy.withId - -```jsonnet -meta.updatedBy.withId(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -##### fn meta.updatedBy.withName - -```jsonnet -meta.updatedBy.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj model - - -#### fn model.withCacheTimeout - -```jsonnet -model.withCacheTimeout(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Sets panel queries cache timeout. -#### fn model.withDatasource - -```jsonnet -model.withDatasource(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn model.withDatasourceMixin - -```jsonnet -model.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn model.withDescription - -```jsonnet -model.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn model.withFieldConfig - -```jsonnet -model.withFieldConfig(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results. -Each column within this structure is called a field. A field can represent a single time series or table column. -Field options allow you to change how the data is displayed in your visualizations. -#### fn model.withFieldConfigMixin - -```jsonnet -model.withFieldConfigMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results. -Each column within this structure is called a field. A field can represent a single time series or table column. -Field options allow you to change how the data is displayed in your visualizations. -#### fn model.withHideTimeOverride - -```jsonnet -model.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn model.withInterval - -```jsonnet -model.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn model.withLinks - -```jsonnet -model.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn model.withLinksMixin - -```jsonnet -model.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn model.withMaxDataPoints - -```jsonnet -model.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn model.withMaxPerRow - -```jsonnet -model.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn model.withOptions - -```jsonnet -model.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -It depends on the panel plugin. They are specified by the Options field in panel plugin schemas. -#### fn model.withOptionsMixin - -```jsonnet -model.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -It depends on the panel plugin. They are specified by the Options field in panel plugin schemas. -#### fn model.withPluginVersion - -```jsonnet -model.withPluginVersion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The version of the plugin that is used for this panel. This is used to find the plugin to display the panel and to migrate old panel configs. -#### fn model.withQueryCachingTTL - -```jsonnet -model.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn model.withRepeat - -```jsonnet -model.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn model.withRepeatDirection - -```jsonnet -model.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn model.withTargets - -```jsonnet -model.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn model.withTargetsMixin - -```jsonnet -model.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn model.withTimeFrom - -```jsonnet -model.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn model.withTimeShift - -```jsonnet -model.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn model.withTitle - -```jsonnet -model.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn model.withTransformations - -```jsonnet -model.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn model.withTransformationsMixin - -```jsonnet -model.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn model.withTransparent - -```jsonnet -model.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -#### fn model.withType - -```jsonnet -model.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The panel plugin type id. This is used to find the plugin to display the panel. -#### obj model.datasource - - -##### fn model.datasource.withType - -```jsonnet -model.datasource.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The plugin type-id -##### fn model.datasource.withUid - -```jsonnet -model.datasource.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specific datasource instance -#### obj model.fieldConfig - - -##### fn model.fieldConfig.withDefaults - -```jsonnet -model.fieldConfig.withDefaults(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results. -Each column within this structure is called a field. A field can represent a single time series or table column. -Field options allow you to change how the data is displayed in your visualizations. -##### fn model.fieldConfig.withDefaultsMixin - -```jsonnet -model.fieldConfig.withDefaultsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results. -Each column within this structure is called a field. A field can represent a single time series or table column. -Field options allow you to change how the data is displayed in your visualizations. -##### fn model.fieldConfig.withOverrides - -```jsonnet -model.fieldConfig.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -##### fn model.fieldConfig.withOverridesMixin - -```jsonnet -model.fieldConfig.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -##### obj model.fieldConfig.defaults - - -###### fn model.fieldConfig.defaults.withColor - -```jsonnet -model.fieldConfig.defaults.withColor(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map a field to a color. -###### fn model.fieldConfig.defaults.withColorMixin - -```jsonnet -model.fieldConfig.defaults.withColorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map a field to a color. -###### fn model.fieldConfig.defaults.withCustom - -```jsonnet -model.fieldConfig.defaults.withCustom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -custom is specified by the FieldConfig field -in panel plugin schemas. -###### fn model.fieldConfig.defaults.withCustomMixin - -```jsonnet -model.fieldConfig.defaults.withCustomMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -custom is specified by the FieldConfig field -in panel plugin schemas. -###### fn model.fieldConfig.defaults.withDecimals - -```jsonnet -model.fieldConfig.defaults.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -###### fn model.fieldConfig.defaults.withDescription - -```jsonnet -model.fieldConfig.defaults.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Human readable field metadata -###### fn model.fieldConfig.defaults.withDisplayName - -```jsonnet -model.fieldConfig.defaults.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -###### fn model.fieldConfig.defaults.withDisplayNameFromDS - -```jsonnet -model.fieldConfig.defaults.withDisplayNameFromDS(value) -``` - -PARAMETERS: - -* **value** (`string`) - -This can be used by data sources that return and explicit naming structure for values and labels -When this property is configured, this value is used rather than the default naming strategy. -###### fn model.fieldConfig.defaults.withFilterable - -```jsonnet -model.fieldConfig.defaults.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -###### fn model.fieldConfig.defaults.withLinks - -```jsonnet -model.fieldConfig.defaults.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -###### fn model.fieldConfig.defaults.withLinksMixin - -```jsonnet -model.fieldConfig.defaults.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -###### fn model.fieldConfig.defaults.withMappings - -```jsonnet -model.fieldConfig.defaults.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -###### fn model.fieldConfig.defaults.withMappingsMixin - -```jsonnet -model.fieldConfig.defaults.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -###### fn model.fieldConfig.defaults.withMax - -```jsonnet -model.fieldConfig.defaults.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -###### fn model.fieldConfig.defaults.withMin - -```jsonnet -model.fieldConfig.defaults.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -###### fn model.fieldConfig.defaults.withNoValue - -```jsonnet -model.fieldConfig.defaults.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -###### fn model.fieldConfig.defaults.withPath - -```jsonnet -model.fieldConfig.defaults.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -###### fn model.fieldConfig.defaults.withThresholds - -```jsonnet -model.fieldConfig.defaults.withThresholds(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Thresholds configuration for the panel -###### fn model.fieldConfig.defaults.withThresholdsMixin - -```jsonnet -model.fieldConfig.defaults.withThresholdsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Thresholds configuration for the panel -###### fn model.fieldConfig.defaults.withUnit - -```jsonnet -model.fieldConfig.defaults.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -###### fn model.fieldConfig.defaults.withWriteable - -```jsonnet -model.fieldConfig.defaults.withWriteable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source can write a value to the path. Auth/authz are supported separately -###### obj model.fieldConfig.defaults.color - - -####### fn model.fieldConfig.defaults.color.withFixedColor - -```jsonnet -model.fieldConfig.defaults.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -####### fn model.fieldConfig.defaults.color.withMode - -```jsonnet -model.fieldConfig.defaults.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -####### fn model.fieldConfig.defaults.color.withSeriesBy - -```jsonnet -model.fieldConfig.defaults.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -###### obj model.fieldConfig.defaults.mappings - - -####### obj model.fieldConfig.defaults.mappings.RangeMap - - -######## fn model.fieldConfig.defaults.mappings.RangeMap.withOptions - -```jsonnet -model.fieldConfig.defaults.mappings.RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -######## fn model.fieldConfig.defaults.mappings.RangeMap.withOptionsMixin - -```jsonnet -model.fieldConfig.defaults.mappings.RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -######## fn model.fieldConfig.defaults.mappings.RangeMap.withType - -```jsonnet -model.fieldConfig.defaults.mappings.RangeMap.withType() -``` - - - -######## obj model.fieldConfig.defaults.mappings.RangeMap.options - - -######### fn model.fieldConfig.defaults.mappings.RangeMap.options.withFrom - -```jsonnet -model.fieldConfig.defaults.mappings.RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -######### fn model.fieldConfig.defaults.mappings.RangeMap.options.withResult - -```jsonnet -model.fieldConfig.defaults.mappings.RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -######### fn model.fieldConfig.defaults.mappings.RangeMap.options.withResultMixin - -```jsonnet -model.fieldConfig.defaults.mappings.RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -######### fn model.fieldConfig.defaults.mappings.RangeMap.options.withTo - -```jsonnet -model.fieldConfig.defaults.mappings.RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -######### obj model.fieldConfig.defaults.mappings.RangeMap.options.result - - -########## fn model.fieldConfig.defaults.mappings.RangeMap.options.result.withColor - -```jsonnet -model.fieldConfig.defaults.mappings.RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -########## fn model.fieldConfig.defaults.mappings.RangeMap.options.result.withIcon - -```jsonnet -model.fieldConfig.defaults.mappings.RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -########## fn model.fieldConfig.defaults.mappings.RangeMap.options.result.withIndex - -```jsonnet -model.fieldConfig.defaults.mappings.RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -########## fn model.fieldConfig.defaults.mappings.RangeMap.options.result.withText - -```jsonnet -model.fieldConfig.defaults.mappings.RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -####### obj model.fieldConfig.defaults.mappings.RegexMap - - -######## fn model.fieldConfig.defaults.mappings.RegexMap.withOptions - -```jsonnet -model.fieldConfig.defaults.mappings.RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -######## fn model.fieldConfig.defaults.mappings.RegexMap.withOptionsMixin - -```jsonnet -model.fieldConfig.defaults.mappings.RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -######## fn model.fieldConfig.defaults.mappings.RegexMap.withType - -```jsonnet -model.fieldConfig.defaults.mappings.RegexMap.withType() -``` - - - -######## obj model.fieldConfig.defaults.mappings.RegexMap.options - - -######### fn model.fieldConfig.defaults.mappings.RegexMap.options.withPattern - -```jsonnet -model.fieldConfig.defaults.mappings.RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -######### fn model.fieldConfig.defaults.mappings.RegexMap.options.withResult - -```jsonnet -model.fieldConfig.defaults.mappings.RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -######### fn model.fieldConfig.defaults.mappings.RegexMap.options.withResultMixin - -```jsonnet -model.fieldConfig.defaults.mappings.RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -######### obj model.fieldConfig.defaults.mappings.RegexMap.options.result - - -########## fn model.fieldConfig.defaults.mappings.RegexMap.options.result.withColor - -```jsonnet -model.fieldConfig.defaults.mappings.RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -########## fn model.fieldConfig.defaults.mappings.RegexMap.options.result.withIcon - -```jsonnet -model.fieldConfig.defaults.mappings.RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -########## fn model.fieldConfig.defaults.mappings.RegexMap.options.result.withIndex - -```jsonnet -model.fieldConfig.defaults.mappings.RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -########## fn model.fieldConfig.defaults.mappings.RegexMap.options.result.withText - -```jsonnet -model.fieldConfig.defaults.mappings.RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -####### obj model.fieldConfig.defaults.mappings.SpecialValueMap - - -######## fn model.fieldConfig.defaults.mappings.SpecialValueMap.withOptions - -```jsonnet -model.fieldConfig.defaults.mappings.SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -######## fn model.fieldConfig.defaults.mappings.SpecialValueMap.withOptionsMixin - -```jsonnet -model.fieldConfig.defaults.mappings.SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -######## fn model.fieldConfig.defaults.mappings.SpecialValueMap.withType - -```jsonnet -model.fieldConfig.defaults.mappings.SpecialValueMap.withType() -``` - - - -######## obj model.fieldConfig.defaults.mappings.SpecialValueMap.options - - -######### fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.withMatch - -```jsonnet -model.fieldConfig.defaults.mappings.SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -######### fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.withResult - -```jsonnet -model.fieldConfig.defaults.mappings.SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -######### fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.withResultMixin - -```jsonnet -model.fieldConfig.defaults.mappings.SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -######### obj model.fieldConfig.defaults.mappings.SpecialValueMap.options.result - - -########## fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withColor - -```jsonnet -model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -########## fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withIcon - -```jsonnet -model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -########## fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withIndex - -```jsonnet -model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -########## fn model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withText - -```jsonnet -model.fieldConfig.defaults.mappings.SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -####### obj model.fieldConfig.defaults.mappings.ValueMap - - -######## fn model.fieldConfig.defaults.mappings.ValueMap.withOptions - -```jsonnet -model.fieldConfig.defaults.mappings.ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -######## fn model.fieldConfig.defaults.mappings.ValueMap.withOptionsMixin - -```jsonnet -model.fieldConfig.defaults.mappings.ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -######## fn model.fieldConfig.defaults.mappings.ValueMap.withType - -```jsonnet -model.fieldConfig.defaults.mappings.ValueMap.withType() -``` - - - -###### obj model.fieldConfig.defaults.thresholds - - -####### fn model.fieldConfig.defaults.thresholds.withMode - -```jsonnet -model.fieldConfig.defaults.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -####### fn model.fieldConfig.defaults.thresholds.withSteps - -```jsonnet -model.fieldConfig.defaults.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -####### fn model.fieldConfig.defaults.thresholds.withStepsMixin - -```jsonnet -model.fieldConfig.defaults.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/fieldConfig/overrides/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/fieldConfig/overrides/index.md deleted file mode 100644 index 35b01d5e3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/fieldConfig/overrides/index.md +++ /dev/null @@ -1,104 +0,0 @@ -# overrides - - - -## Subpackages - -* [properties](properties.md) - -## Index - -* [`fn withMatcher(value)`](#fn-withmatcher) -* [`fn withMatcherMixin(value)`](#fn-withmatchermixin) -* [`fn withProperties(value)`](#fn-withproperties) -* [`fn withPropertiesMixin(value)`](#fn-withpropertiesmixin) -* [`obj matcher`](#obj-matcher) - * [`fn withId(value="")`](#fn-matcherwithid) - * [`fn withOptions(value)`](#fn-matcherwithoptions) - * [`fn withOptionsMixin(value)`](#fn-matcherwithoptionsmixin) - -## Fields - -### fn withMatcher - -```jsonnet -withMatcher(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withMatcherMixin - -```jsonnet -withMatcherMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withProperties - -```jsonnet -withProperties(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withPropertiesMixin - -```jsonnet -withPropertiesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj matcher - - -#### fn matcher.withId - -```jsonnet -matcher.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn matcher.withOptions - -```jsonnet -matcher.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn matcher.withOptionsMixin - -```jsonnet -matcher.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/fieldConfig/overrides/properties.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/fieldConfig/overrides/properties.md deleted file mode 100644 index 766e1987b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/fieldConfig/overrides/properties.md +++ /dev/null @@ -1,45 +0,0 @@ -# properties - - - -## Index - -* [`fn withId(value="")`](#fn-withid) -* [`fn withValue(value)`](#fn-withvalue) -* [`fn withValueMixin(value)`](#fn-withvaluemixin) - -## Fields - -### fn withId - -```jsonnet -withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withValueMixin - -```jsonnet -withValueMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/links.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/links.md deleted file mode 100644 index fcc060a97..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/links.md +++ /dev/null @@ -1,146 +0,0 @@ -# links - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/transformations.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/transformations.md deleted file mode 100644 index df55608e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/librarypanel/model/transformations.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformations - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/index.md deleted file mode 100644 index 0061f5a7d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/index.md +++ /dev/null @@ -1,1215 +0,0 @@ -# alertList - -grafonnet.panel.alertList - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withAlertListOptions(value)`](#fn-optionswithalertlistoptions) - * [`fn withAlertListOptionsMixin(value)`](#fn-optionswithalertlistoptionsmixin) - * [`fn withUnifiedAlertListOptions(value)`](#fn-optionswithunifiedalertlistoptions) - * [`fn withUnifiedAlertListOptionsMixin(value)`](#fn-optionswithunifiedalertlistoptionsmixin) - * [`obj AlertListOptions`](#obj-optionsalertlistoptions) - * [`fn withAlertName(value)`](#fn-optionsalertlistoptionswithalertname) - * [`fn withDashboardAlerts(value=true)`](#fn-optionsalertlistoptionswithdashboardalerts) - * [`fn withDashboardTitle(value)`](#fn-optionsalertlistoptionswithdashboardtitle) - * [`fn withFolderId(value)`](#fn-optionsalertlistoptionswithfolderid) - * [`fn withMaxItems(value)`](#fn-optionsalertlistoptionswithmaxitems) - * [`fn withShowOptions(value)`](#fn-optionsalertlistoptionswithshowoptions) - * [`fn withSortOrder(value)`](#fn-optionsalertlistoptionswithsortorder) - * [`fn withStateFilter(value)`](#fn-optionsalertlistoptionswithstatefilter) - * [`fn withStateFilterMixin(value)`](#fn-optionsalertlistoptionswithstatefiltermixin) - * [`fn withTags(value)`](#fn-optionsalertlistoptionswithtags) - * [`fn withTagsMixin(value)`](#fn-optionsalertlistoptionswithtagsmixin) - * [`obj stateFilter`](#obj-optionsalertlistoptionsstatefilter) - * [`fn withAlerting(value=true)`](#fn-optionsalertlistoptionsstatefilterwithalerting) - * [`fn withExecutionError(value=true)`](#fn-optionsalertlistoptionsstatefilterwithexecutionerror) - * [`fn withNoData(value=true)`](#fn-optionsalertlistoptionsstatefilterwithnodata) - * [`fn withOk(value=true)`](#fn-optionsalertlistoptionsstatefilterwithok) - * [`fn withPaused(value=true)`](#fn-optionsalertlistoptionsstatefilterwithpaused) - * [`fn withPending(value=true)`](#fn-optionsalertlistoptionsstatefilterwithpending) - * [`obj UnifiedAlertListOptions`](#obj-optionsunifiedalertlistoptions) - * [`fn withAlertInstanceLabelFilter(value)`](#fn-optionsunifiedalertlistoptionswithalertinstancelabelfilter) - * [`fn withAlertName(value)`](#fn-optionsunifiedalertlistoptionswithalertname) - * [`fn withDashboardAlerts(value=true)`](#fn-optionsunifiedalertlistoptionswithdashboardalerts) - * [`fn withDatasource(value)`](#fn-optionsunifiedalertlistoptionswithdatasource) - * [`fn withFolder(value)`](#fn-optionsunifiedalertlistoptionswithfolder) - * [`fn withFolderMixin(value)`](#fn-optionsunifiedalertlistoptionswithfoldermixin) - * [`fn withGroupBy(value)`](#fn-optionsunifiedalertlistoptionswithgroupby) - * [`fn withGroupByMixin(value)`](#fn-optionsunifiedalertlistoptionswithgroupbymixin) - * [`fn withGroupMode(value)`](#fn-optionsunifiedalertlistoptionswithgroupmode) - * [`fn withMaxItems(value)`](#fn-optionsunifiedalertlistoptionswithmaxitems) - * [`fn withShowInstances(value=true)`](#fn-optionsunifiedalertlistoptionswithshowinstances) - * [`fn withSortOrder(value)`](#fn-optionsunifiedalertlistoptionswithsortorder) - * [`fn withStateFilter(value)`](#fn-optionsunifiedalertlistoptionswithstatefilter) - * [`fn withStateFilterMixin(value)`](#fn-optionsunifiedalertlistoptionswithstatefiltermixin) - * [`fn withViewMode(value)`](#fn-optionsunifiedalertlistoptionswithviewmode) - * [`obj folder`](#obj-optionsunifiedalertlistoptionsfolder) - * [`fn withId(value)`](#fn-optionsunifiedalertlistoptionsfolderwithid) - * [`fn withTitle(value)`](#fn-optionsunifiedalertlistoptionsfolderwithtitle) - * [`obj stateFilter`](#obj-optionsunifiedalertlistoptionsstatefilter) - * [`fn withError(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwitherror) - * [`fn withFiring(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithfiring) - * [`fn withInactive(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithinactive) - * [`fn withNoData(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithnodata) - * [`fn withNormal(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithnormal) - * [`fn withPending(value=true)`](#fn-optionsunifiedalertlistoptionsstatefilterwithpending) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new alertlist panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withAlertListOptions - -```jsonnet -options.withAlertListOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withAlertListOptionsMixin - -```jsonnet -options.withAlertListOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withUnifiedAlertListOptions - -```jsonnet -options.withUnifiedAlertListOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withUnifiedAlertListOptionsMixin - -```jsonnet -options.withUnifiedAlertListOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### obj options.AlertListOptions - - -##### fn options.AlertListOptions.withAlertName - -```jsonnet -options.AlertListOptions.withAlertName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.AlertListOptions.withDashboardAlerts - -```jsonnet -options.AlertListOptions.withDashboardAlerts(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.AlertListOptions.withDashboardTitle - -```jsonnet -options.AlertListOptions.withDashboardTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.AlertListOptions.withFolderId - -```jsonnet -options.AlertListOptions.withFolderId(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.AlertListOptions.withMaxItems - -```jsonnet -options.AlertListOptions.withMaxItems(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.AlertListOptions.withShowOptions - -```jsonnet -options.AlertListOptions.withShowOptions(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"current"`, `"changes"` - - -##### fn options.AlertListOptions.withSortOrder - -```jsonnet -options.AlertListOptions.withSortOrder(value) -``` - -PARAMETERS: - -* **value** (`number`) - - valid values: `1`, `2`, `3`, `4`, `5` - - -##### fn options.AlertListOptions.withStateFilter - -```jsonnet -options.AlertListOptions.withStateFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.AlertListOptions.withStateFilterMixin - -```jsonnet -options.AlertListOptions.withStateFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.AlertListOptions.withTags - -```jsonnet -options.AlertListOptions.withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.AlertListOptions.withTagsMixin - -```jsonnet -options.AlertListOptions.withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### obj options.AlertListOptions.stateFilter - - -###### fn options.AlertListOptions.stateFilter.withAlerting - -```jsonnet -options.AlertListOptions.stateFilter.withAlerting(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.AlertListOptions.stateFilter.withExecutionError - -```jsonnet -options.AlertListOptions.stateFilter.withExecutionError(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.AlertListOptions.stateFilter.withNoData - -```jsonnet -options.AlertListOptions.stateFilter.withNoData(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.AlertListOptions.stateFilter.withOk - -```jsonnet -options.AlertListOptions.stateFilter.withOk(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.AlertListOptions.stateFilter.withPaused - -```jsonnet -options.AlertListOptions.stateFilter.withPaused(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.AlertListOptions.stateFilter.withPending - -```jsonnet -options.AlertListOptions.stateFilter.withPending(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### obj options.UnifiedAlertListOptions - - -##### fn options.UnifiedAlertListOptions.withAlertInstanceLabelFilter - -```jsonnet -options.UnifiedAlertListOptions.withAlertInstanceLabelFilter(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.UnifiedAlertListOptions.withAlertName - -```jsonnet -options.UnifiedAlertListOptions.withAlertName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.UnifiedAlertListOptions.withDashboardAlerts - -```jsonnet -options.UnifiedAlertListOptions.withDashboardAlerts(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.UnifiedAlertListOptions.withDatasource - -```jsonnet -options.UnifiedAlertListOptions.withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.UnifiedAlertListOptions.withFolder - -```jsonnet -options.UnifiedAlertListOptions.withFolder(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.UnifiedAlertListOptions.withFolderMixin - -```jsonnet -options.UnifiedAlertListOptions.withFolderMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.UnifiedAlertListOptions.withGroupBy - -```jsonnet -options.UnifiedAlertListOptions.withGroupBy(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.UnifiedAlertListOptions.withGroupByMixin - -```jsonnet -options.UnifiedAlertListOptions.withGroupByMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.UnifiedAlertListOptions.withGroupMode - -```jsonnet -options.UnifiedAlertListOptions.withGroupMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"default"`, `"custom"` - - -##### fn options.UnifiedAlertListOptions.withMaxItems - -```jsonnet -options.UnifiedAlertListOptions.withMaxItems(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.UnifiedAlertListOptions.withShowInstances - -```jsonnet -options.UnifiedAlertListOptions.withShowInstances(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.UnifiedAlertListOptions.withSortOrder - -```jsonnet -options.UnifiedAlertListOptions.withSortOrder(value) -``` - -PARAMETERS: - -* **value** (`number`) - - valid values: `1`, `2`, `3`, `4`, `5` - - -##### fn options.UnifiedAlertListOptions.withStateFilter - -```jsonnet -options.UnifiedAlertListOptions.withStateFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.UnifiedAlertListOptions.withStateFilterMixin - -```jsonnet -options.UnifiedAlertListOptions.withStateFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.UnifiedAlertListOptions.withViewMode - -```jsonnet -options.UnifiedAlertListOptions.withViewMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"stat"` - - -##### obj options.UnifiedAlertListOptions.folder - - -###### fn options.UnifiedAlertListOptions.folder.withId - -```jsonnet -options.UnifiedAlertListOptions.folder.withId(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn options.UnifiedAlertListOptions.folder.withTitle - -```jsonnet -options.UnifiedAlertListOptions.folder.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj options.UnifiedAlertListOptions.stateFilter - - -###### fn options.UnifiedAlertListOptions.stateFilter.withError - -```jsonnet -options.UnifiedAlertListOptions.stateFilter.withError(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.UnifiedAlertListOptions.stateFilter.withFiring - -```jsonnet -options.UnifiedAlertListOptions.stateFilter.withFiring(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.UnifiedAlertListOptions.stateFilter.withInactive - -```jsonnet -options.UnifiedAlertListOptions.stateFilter.withInactive(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.UnifiedAlertListOptions.stateFilter.withNoData - -```jsonnet -options.UnifiedAlertListOptions.stateFilter.withNoData(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.UnifiedAlertListOptions.stateFilter.withNormal - -```jsonnet -options.UnifiedAlertListOptions.stateFilter.withNormal(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn options.UnifiedAlertListOptions.stateFilter.withPending - -```jsonnet -options.UnifiedAlertListOptions.stateFilter.withPending(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/alertList/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/index.md deleted file mode 100644 index 0cd1707ca..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/index.md +++ /dev/null @@ -1,788 +0,0 @@ -# annotationsList - -grafonnet.panel.annotationsList - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withLimit(value=10)`](#fn-optionswithlimit) - * [`fn withNavigateAfter(value="10m")`](#fn-optionswithnavigateafter) - * [`fn withNavigateBefore(value="10m")`](#fn-optionswithnavigatebefore) - * [`fn withNavigateToPanel(value=true)`](#fn-optionswithnavigatetopanel) - * [`fn withOnlyFromThisDashboard(value=true)`](#fn-optionswithonlyfromthisdashboard) - * [`fn withOnlyInTimeRange(value=true)`](#fn-optionswithonlyintimerange) - * [`fn withShowTags(value=true)`](#fn-optionswithshowtags) - * [`fn withShowTime(value=true)`](#fn-optionswithshowtime) - * [`fn withShowUser(value=true)`](#fn-optionswithshowuser) - * [`fn withTags(value)`](#fn-optionswithtags) - * [`fn withTagsMixin(value)`](#fn-optionswithtagsmixin) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new annotationsList panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withLimit - -```jsonnet -options.withLimit(value=10) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `10` - - -#### fn options.withNavigateAfter - -```jsonnet -options.withNavigateAfter(value="10m") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"10m"` - - -#### fn options.withNavigateBefore - -```jsonnet -options.withNavigateBefore(value="10m") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"10m"` - - -#### fn options.withNavigateToPanel - -```jsonnet -options.withNavigateToPanel(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withOnlyFromThisDashboard - -```jsonnet -options.withOnlyFromThisDashboard(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withOnlyInTimeRange - -```jsonnet -options.withOnlyInTimeRange(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowTags - -```jsonnet -options.withShowTags(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowTime - -```jsonnet -options.withShowTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowUser - -```jsonnet -options.withShowUser(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withTags - -```jsonnet -options.withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTagsMixin - -```jsonnet -options.withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/annotationsList/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/index.md deleted file mode 100644 index 14ccb5444..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/index.md +++ /dev/null @@ -1,1426 +0,0 @@ -# barChart - -grafonnet.panel.barChart - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisbordershow) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withFillOpacity(value=80)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) - * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) - * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withBarRadius(value=0)`](#fn-optionswithbarradius) - * [`fn withBarWidth(value=0.97)`](#fn-optionswithbarwidth) - * [`fn withColorByField(value)`](#fn-optionswithcolorbyfield) - * [`fn withFullHighlight(value=true)`](#fn-optionswithfullhighlight) - * [`fn withGroupWidth(value=0.7)`](#fn-optionswithgroupwidth) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withShowValue(value)`](#fn-optionswithshowvalue) - * [`fn withStacking(value)`](#fn-optionswithstacking) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`fn withXField(value)`](#fn-optionswithxfield) - * [`fn withXTickLabelMaxLength(value)`](#fn-optionswithxticklabelmaxlength) - * [`fn withXTickLabelRotation(value=0)`](#fn-optionswithxticklabelrotation) - * [`fn withXTickLabelSpacing(value=0)`](#fn-optionswithxticklabelspacing) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) - * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new barChart panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisBorderShow - -```jsonnet -fieldConfig.defaults.custom.withAxisBorderShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```jsonnet -fieldConfig.defaults.custom.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```jsonnet -fieldConfig.defaults.custom.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```jsonnet -fieldConfig.defaults.custom.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```jsonnet -fieldConfig.defaults.custom.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```jsonnet -fieldConfig.defaults.custom.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```jsonnet -fieldConfig.defaults.custom.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.withFillOpacity(value=80) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `80` - -Controls the fill opacity of the bars. -###### fn fieldConfig.defaults.custom.withGradientMode - -```jsonnet -fieldConfig.defaults.custom.withGradientMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value=1) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `1` - -Controls line width of the bars. -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyle - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -###### obj fieldConfig.defaults.custom.thresholdsStyle - - -####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode - -```jsonnet -fieldConfig.defaults.custom.thresholdsStyle.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"off"`, `"line"`, `"dashed"`, `"area"`, `"line+area"`, `"dashed+area"`, `"series"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withBarRadius - -```jsonnet -options.withBarRadius(value=0) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0` - -Controls the radius of each bar. -#### fn options.withBarWidth - -```jsonnet -options.withBarWidth(value=0.97) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0.97` - -Controls the width of bars. 1 = Max width, 0 = Min width. -#### fn options.withColorByField - -```jsonnet -options.withColorByField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Use the color value for a sibling field to color each bar value. -#### fn options.withFullHighlight - -```jsonnet -options.withFullHighlight(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Enables mode which highlights the entire bar area and shows tooltip when cursor -hovers over highlighted area -#### fn options.withGroupWidth - -```jsonnet -options.withGroupWidth(value=0.7) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0.7` - -Controls the width of groups. 1 = max with, 0 = min width. -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withOrientation - -```jsonnet -options.withOrientation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"vertical"`, `"horizontal"` - -TODO docs -#### fn options.withShowValue - -```jsonnet -options.withShowValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"never"`, `"always"` - -TODO docs -#### fn options.withStacking - -```jsonnet -options.withStacking(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"normal"`, `"percent"` - -TODO docs -#### fn options.withText - -```jsonnet -options.withText(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTextMixin - -```jsonnet -options.withTextMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withXField - -```jsonnet -options.withXField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Manually select which field from the dataset to represent the x field. -#### fn options.withXTickLabelMaxLength - -```jsonnet -options.withXTickLabelMaxLength(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Sets the max length that a label can have before it is truncated. -#### fn options.withXTickLabelRotation - -```jsonnet -options.withXTickLabelRotation(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - -Controls the rotation of the x axis labels. -#### fn options.withXTickLabelSpacing - -```jsonnet -options.withXTickLabelSpacing(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - -Controls the spacing between x axis labels. -negative values indicate backwards skipping behavior -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.text - - -##### fn options.text.withTitleSize - -```jsonnet -options.text.withTitleSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit title text size -##### fn options.text.withValueSize - -```jsonnet -options.text.withValueSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit value text size -#### obj options.tooltip - - -##### fn options.tooltip.withMaxHeight - -```jsonnet -options.tooltip.withMaxHeight(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMaxWidth - -```jsonnet -options.tooltip.withMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barChart/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/index.md deleted file mode 100644 index 033c65a41..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/index.md +++ /dev/null @@ -1,906 +0,0 @@ -# barGauge - -grafonnet.panel.barGauge - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withDisplayMode(value)`](#fn-optionswithdisplaymode) - * [`fn withMaxVizHeight(value=300)`](#fn-optionswithmaxvizheight) - * [`fn withMinVizHeight(value=16)`](#fn-optionswithminvizheight) - * [`fn withMinVizWidth(value=8)`](#fn-optionswithminvizwidth) - * [`fn withNamePlacement(value)`](#fn-optionswithnameplacement) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) - * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) - * [`fn withShowUnfilled(value=true)`](#fn-optionswithshowunfilled) - * [`fn withSizing(value)`](#fn-optionswithsizing) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`fn withValueMode(value)`](#fn-optionswithvaluemode) - * [`obj reduceOptions`](#obj-optionsreduceoptions) - * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) - * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) - * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) - * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new barGauge panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withDisplayMode - -```jsonnet -options.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"basic"`, `"lcd"`, `"gradient"` - -Enum expressing the possible display modes -for the bar gauge component of Grafana UI -#### fn options.withMaxVizHeight - -```jsonnet -options.withMaxVizHeight(value=300) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `300` - - -#### fn options.withMinVizHeight - -```jsonnet -options.withMinVizHeight(value=16) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `16` - - -#### fn options.withMinVizWidth - -```jsonnet -options.withMinVizWidth(value=8) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `8` - - -#### fn options.withNamePlacement - -```jsonnet -options.withNamePlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"left"` - -Allows for the bar gauge name to be placed explicitly -#### fn options.withOrientation - -```jsonnet -options.withOrientation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"vertical"`, `"horizontal"` - -TODO docs -#### fn options.withReduceOptions - -```jsonnet -options.withReduceOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withReduceOptionsMixin - -```jsonnet -options.withReduceOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withShowUnfilled - -```jsonnet -options.withShowUnfilled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withSizing - -```jsonnet -options.withSizing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"manual"` - -Allows for the bar gauge size to be set explicitly -#### fn options.withText - -```jsonnet -options.withText(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTextMixin - -```jsonnet -options.withTextMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withValueMode - -```jsonnet -options.withValueMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"color"`, `"text"`, `"hidden"` - -Allows for the table cell gauge display type to set the gauge mode. -#### obj options.reduceOptions - - -##### fn options.reduceOptions.withCalcs - -```jsonnet -options.reduceOptions.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withCalcsMixin - -```jsonnet -options.reduceOptions.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withFields - -```jsonnet -options.reduceOptions.withFields(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Which fields to show. By default this is only numeric fields -##### fn options.reduceOptions.withLimit - -```jsonnet -options.reduceOptions.withLimit(value) -``` - -PARAMETERS: - -* **value** (`number`) - -if showing all values limit -##### fn options.reduceOptions.withValues - -```jsonnet -options.reduceOptions.withValues(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true show each row value -#### obj options.text - - -##### fn options.text.withTitleSize - -```jsonnet -options.text.withTitleSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit title text size -##### fn options.text.withValueSize - -```jsonnet -options.text.withValueSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit value text size -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/barGauge/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/index.md deleted file mode 100644 index b20031ead..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/index.md +++ /dev/null @@ -1,1755 +0,0 @@ -# candlestick - -grafonnet.panel.candlestick - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisbordershow) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomwithbaralignment) - * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomwithbarmaxwidth) - * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomwithbarwidthfactor) - * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomwithdrawstyle) - * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomwithfillbelowto) - * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomwithfillcolor) - * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withInsertNulls(value)`](#fn-fieldconfigdefaultscustomwithinsertnulls) - * [`fn withInsertNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithinsertnullsmixin) - * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) - * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomwithlineinterpolation) - * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) - * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) - * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) - * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) - * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomwithpointsymbol) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomwithshowpoints) - * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomwithspannulls) - * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithspannullsmixin) - * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) - * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) - * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) - * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) - * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomwithtransform) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) - * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) - * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) - * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) - * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) - * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) - * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withCandleStyle(value)`](#fn-optionswithcandlestyle) - * [`fn withColorStrategy(value)`](#fn-optionswithcolorstrategy) - * [`fn withColors(value)`](#fn-optionswithcolors) - * [`fn withColorsMixin(value)`](#fn-optionswithcolorsmixin) - * [`fn withFields(value)`](#fn-optionswithfields) - * [`fn withFieldsMixin(value)`](#fn-optionswithfieldsmixin) - * [`fn withIncludeAllFields(value=true)`](#fn-optionswithincludeallfields) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withMode(value)`](#fn-optionswithmode) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj colors`](#obj-optionscolors) - * [`fn withDown(value="red")`](#fn-optionscolorswithdown) - * [`fn withFlat(value="gray")`](#fn-optionscolorswithflat) - * [`fn withUp(value="green")`](#fn-optionscolorswithup) - * [`obj fields`](#obj-optionsfields) - * [`fn withClose(value)`](#fn-optionsfieldswithclose) - * [`fn withHigh(value)`](#fn-optionsfieldswithhigh) - * [`fn withLow(value)`](#fn-optionsfieldswithlow) - * [`fn withOpen(value)`](#fn-optionsfieldswithopen) - * [`fn withVolume(value)`](#fn-optionsfieldswithvolume) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) - * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new candlestick panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisBorderShow - -```jsonnet -fieldConfig.defaults.custom.withAxisBorderShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```jsonnet -fieldConfig.defaults.custom.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```jsonnet -fieldConfig.defaults.custom.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```jsonnet -fieldConfig.defaults.custom.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```jsonnet -fieldConfig.defaults.custom.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```jsonnet -fieldConfig.defaults.custom.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```jsonnet -fieldConfig.defaults.custom.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withBarAlignment - -```jsonnet -fieldConfig.defaults.custom.withBarAlignment(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `-1`, `0`, `1` - -TODO docs -###### fn fieldConfig.defaults.custom.withBarMaxWidth - -```jsonnet -fieldConfig.defaults.custom.withBarMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withBarWidthFactor - -```jsonnet -fieldConfig.defaults.custom.withBarWidthFactor(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withDrawStyle - -```jsonnet -fieldConfig.defaults.custom.withDrawStyle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"line"`, `"bars"`, `"points"` - -TODO docs -###### fn fieldConfig.defaults.custom.withFillBelowTo - -```jsonnet -fieldConfig.defaults.custom.withFillBelowTo(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withFillColor - -```jsonnet -fieldConfig.defaults.custom.withFillColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.withFillOpacity(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withGradientMode - -```jsonnet -fieldConfig.defaults.custom.withGradientMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withInsertNulls - -```jsonnet -fieldConfig.defaults.custom.withInsertNulls(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`integer`) - - -###### fn fieldConfig.defaults.custom.withInsertNullsMixin - -```jsonnet -fieldConfig.defaults.custom.withInsertNullsMixin(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`integer`) - - -###### fn fieldConfig.defaults.custom.withLineColor - -```jsonnet -fieldConfig.defaults.custom.withLineColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withLineInterpolation - -```jsonnet -fieldConfig.defaults.custom.withLineInterpolation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"smooth"`, `"stepBefore"`, `"stepAfter"` - -TODO docs -###### fn fieldConfig.defaults.custom.withLineStyle - -```jsonnet -fieldConfig.defaults.custom.withLineStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineStyleMixin - -```jsonnet -fieldConfig.defaults.custom.withLineStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withPointColor - -```jsonnet -fieldConfig.defaults.custom.withPointColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withPointSize - -```jsonnet -fieldConfig.defaults.custom.withPointSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withPointSymbol - -```jsonnet -fieldConfig.defaults.custom.withPointSymbol(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withShowPoints - -```jsonnet -fieldConfig.defaults.custom.withShowPoints(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"never"`, `"always"` - -TODO docs -###### fn fieldConfig.defaults.custom.withSpanNulls - -```jsonnet -fieldConfig.defaults.custom.withSpanNulls(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`number`) - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds -###### fn fieldConfig.defaults.custom.withSpanNullsMixin - -```jsonnet -fieldConfig.defaults.custom.withSpanNullsMixin(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`number`) - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds -###### fn fieldConfig.defaults.custom.withStacking - -```jsonnet -fieldConfig.defaults.custom.withStacking(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withStackingMixin - -```jsonnet -fieldConfig.defaults.custom.withStackingMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyle - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withTransform - -```jsonnet -fieldConfig.defaults.custom.withTransform(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"constant"`, `"negative-Y"` - -TODO docs -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### obj fieldConfig.defaults.custom.lineStyle - - -####### fn fieldConfig.defaults.custom.lineStyle.withDash - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withDash(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withDashMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn fieldConfig.defaults.custom.lineStyle.withFill - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withFill(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -###### obj fieldConfig.defaults.custom.stacking - - -####### fn fieldConfig.defaults.custom.stacking.withGroup - -```jsonnet -fieldConfig.defaults.custom.stacking.withGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -####### fn fieldConfig.defaults.custom.stacking.withMode - -```jsonnet -fieldConfig.defaults.custom.stacking.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"normal"`, `"percent"` - -TODO docs -###### obj fieldConfig.defaults.custom.thresholdsStyle - - -####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode - -```jsonnet -fieldConfig.defaults.custom.thresholdsStyle.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"off"`, `"line"`, `"dashed"`, `"area"`, `"line+area"`, `"dashed+area"`, `"series"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withCandleStyle - -```jsonnet -options.withCandleStyle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"candles"`, `"ohlcbars"` - - -#### fn options.withColorStrategy - -```jsonnet -options.withColorStrategy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"open-close"`, `"close-close"` - - -#### fn options.withColors - -```jsonnet -options.withColors(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withColorsMixin - -```jsonnet -options.withColorsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withFields - -```jsonnet -options.withFields(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withFieldsMixin - -```jsonnet -options.withFieldsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withIncludeAllFields - -```jsonnet -options.withIncludeAllFields(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -When enabled, all fields will be sent to the graph -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withMode - -```jsonnet -options.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"candles+volume"`, `"candles"`, `"volume"` - - -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.colors - - -##### fn options.colors.withDown - -```jsonnet -options.colors.withDown(value="red") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"red"` - - -##### fn options.colors.withFlat - -```jsonnet -options.colors.withFlat(value="gray") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"gray"` - - -##### fn options.colors.withUp - -```jsonnet -options.colors.withUp(value="green") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"green"` - - -#### obj options.fields - - -##### fn options.fields.withClose - -```jsonnet -options.fields.withClose(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Corresponds to the final (end) value of the given period -##### fn options.fields.withHigh - -```jsonnet -options.fields.withHigh(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Corresponds to the highest value of the given period -##### fn options.fields.withLow - -```jsonnet -options.fields.withLow(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Corresponds to the lowest value of the given period -##### fn options.fields.withOpen - -```jsonnet -options.fields.withOpen(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Corresponds to the starting value of the given period -##### fn options.fields.withVolume - -```jsonnet -options.fields.withVolume(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Corresponds to the sample count in the given period. (e.g. number of trades) -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.tooltip - - -##### fn options.tooltip.withMaxHeight - -```jsonnet -options.tooltip.withMaxHeight(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMaxWidth - -```jsonnet -options.tooltip.withMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/candlestick/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/index.md deleted file mode 100644 index 3fa434f5e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/index.md +++ /dev/null @@ -1,775 +0,0 @@ -# canvas - -grafonnet.panel.canvas - -## Subpackages - -* [options.root.elements](options/root/elements/index.md) -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withInfinitePan(value=true)`](#fn-optionswithinfinitepan) - * [`fn withInlineEditing(value=true)`](#fn-optionswithinlineediting) - * [`fn withPanZoom(value=true)`](#fn-optionswithpanzoom) - * [`fn withRoot(value)`](#fn-optionswithroot) - * [`fn withRootMixin(value)`](#fn-optionswithrootmixin) - * [`fn withShowAdvancedTypes(value=true)`](#fn-optionswithshowadvancedtypes) - * [`obj root`](#obj-optionsroot) - * [`fn withElements(value)`](#fn-optionsrootwithelements) - * [`fn withElementsMixin(value)`](#fn-optionsrootwithelementsmixin) - * [`fn withName(value)`](#fn-optionsrootwithname) - * [`fn withType()`](#fn-optionsrootwithtype) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new canvas panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withInfinitePan - -```jsonnet -options.withInfinitePan(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Enable infinite pan -#### fn options.withInlineEditing - -```jsonnet -options.withInlineEditing(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Enable inline editing -#### fn options.withPanZoom - -```jsonnet -options.withPanZoom(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Enable pan and zoom -#### fn options.withRoot - -```jsonnet -options.withRoot(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The root element of canvas (frame), where all canvas elements are nested -TODO: Figure out how to define a default value for this -#### fn options.withRootMixin - -```jsonnet -options.withRootMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The root element of canvas (frame), where all canvas elements are nested -TODO: Figure out how to define a default value for this -#### fn options.withShowAdvancedTypes - -```jsonnet -options.withShowAdvancedTypes(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Show all available element types -#### obj options.root - - -##### fn options.root.withElements - -```jsonnet -options.root.withElements(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The list of canvas elements attached to the root element -##### fn options.root.withElementsMixin - -```jsonnet -options.root.withElementsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The list of canvas elements attached to the root element -##### fn options.root.withName - -```jsonnet -options.root.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the root element -##### fn options.root.withType - -```jsonnet -options.root.withType() -``` - - -Type of root element (frame) -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/options/root/elements/connections/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/options/root/elements/connections/index.md deleted file mode 100644 index f15715872..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/options/root/elements/connections/index.md +++ /dev/null @@ -1,410 +0,0 @@ -# connections - - - -## Subpackages - -* [vertices](vertices.md) - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withColorMixin(value)`](#fn-withcolormixin) -* [`fn withPath(value)`](#fn-withpath) -* [`fn withSize(value)`](#fn-withsize) -* [`fn withSizeMixin(value)`](#fn-withsizemixin) -* [`fn withSource(value)`](#fn-withsource) -* [`fn withSourceMixin(value)`](#fn-withsourcemixin) -* [`fn withSourceOriginal(value)`](#fn-withsourceoriginal) -* [`fn withSourceOriginalMixin(value)`](#fn-withsourceoriginalmixin) -* [`fn withTarget(value)`](#fn-withtarget) -* [`fn withTargetMixin(value)`](#fn-withtargetmixin) -* [`fn withTargetName(value)`](#fn-withtargetname) -* [`fn withTargetOriginal(value)`](#fn-withtargetoriginal) -* [`fn withTargetOriginalMixin(value)`](#fn-withtargetoriginalmixin) -* [`fn withVertices(value)`](#fn-withvertices) -* [`fn withVerticesMixin(value)`](#fn-withverticesmixin) -* [`obj color`](#obj-color) - * [`fn withField(value)`](#fn-colorwithfield) - * [`fn withFixed(value)`](#fn-colorwithfixed) -* [`obj size`](#obj-size) - * [`fn withField(value)`](#fn-sizewithfield) - * [`fn withFixed(value)`](#fn-sizewithfixed) - * [`fn withMax(value)`](#fn-sizewithmax) - * [`fn withMin(value)`](#fn-sizewithmin) - * [`fn withMode(value)`](#fn-sizewithmode) -* [`obj source`](#obj-source) - * [`fn withX(value)`](#fn-sourcewithx) - * [`fn withY(value)`](#fn-sourcewithy) -* [`obj sourceOriginal`](#obj-sourceoriginal) - * [`fn withX(value)`](#fn-sourceoriginalwithx) - * [`fn withY(value)`](#fn-sourceoriginalwithy) -* [`obj target`](#obj-target) - * [`fn withX(value)`](#fn-targetwithx) - * [`fn withY(value)`](#fn-targetwithy) -* [`obj targetOriginal`](#obj-targetoriginal) - * [`fn withX(value)`](#fn-targetoriginalwithx) - * [`fn withY(value)`](#fn-targetoriginalwithy) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withColorMixin - -```jsonnet -withColorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withPath - -```jsonnet -withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"straight"` - - -### fn withSize - -```jsonnet -withSize(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withSizeMixin - -```jsonnet -withSizeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withSource - -```jsonnet -withSource(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withSourceMixin - -```jsonnet -withSourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withSourceOriginal - -```jsonnet -withSourceOriginal(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withSourceOriginalMixin - -```jsonnet -withSourceOriginalMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withTarget - -```jsonnet -withTarget(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withTargetMixin - -```jsonnet -withTargetMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withTargetName - -```jsonnet -withTargetName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTargetOriginal - -```jsonnet -withTargetOriginal(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withTargetOriginalMixin - -```jsonnet -withTargetOriginalMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withVertices - -```jsonnet -withVertices(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withVerticesMixin - -```jsonnet -withVerticesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj color - - -#### fn color.withField - -```jsonnet -color.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -#### fn color.withFixed - -```jsonnet -color.withFixed(value) -``` - -PARAMETERS: - -* **value** (`string`) - -color value -### obj size - - -#### fn size.withField - -```jsonnet -size.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -#### fn size.withFixed - -```jsonnet -size.withFixed(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn size.withMax - -```jsonnet -size.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn size.withMin - -```jsonnet -size.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn size.withMode - -```jsonnet -size.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"quad"` - - -### obj source - - -#### fn source.withX - -```jsonnet -source.withX(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn source.withY - -```jsonnet -source.withY(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### obj sourceOriginal - - -#### fn sourceOriginal.withX - -```jsonnet -sourceOriginal.withX(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn sourceOriginal.withY - -```jsonnet -sourceOriginal.withY(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### obj target - - -#### fn target.withX - -```jsonnet -target.withX(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn target.withY - -```jsonnet -target.withY(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### obj targetOriginal - - -#### fn targetOriginal.withX - -```jsonnet -targetOriginal.withX(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn targetOriginal.withY - -```jsonnet -targetOriginal.withY(value) -``` - -PARAMETERS: - -* **value** (`number`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/options/root/elements/connections/vertices.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/options/root/elements/connections/vertices.md deleted file mode 100644 index 70f44a385..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/options/root/elements/connections/vertices.md +++ /dev/null @@ -1,32 +0,0 @@ -# vertices - - - -## Index - -* [`fn withX(value)`](#fn-withx) -* [`fn withY(value)`](#fn-withy) - -## Fields - -### fn withX - -```jsonnet -withX(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### fn withY - -```jsonnet -withY(value) -``` - -PARAMETERS: - -* **value** (`number`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/options/root/elements/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/options/root/elements/index.md deleted file mode 100644 index 73f5b6ea8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/options/root/elements/index.md +++ /dev/null @@ -1,512 +0,0 @@ -# elements - - - -## Subpackages - -* [connections](connections/index.md) - -## Index - -* [`fn withBackground(value)`](#fn-withbackground) -* [`fn withBackgroundMixin(value)`](#fn-withbackgroundmixin) -* [`fn withBorder(value)`](#fn-withborder) -* [`fn withBorderMixin(value)`](#fn-withbordermixin) -* [`fn withConfig(value)`](#fn-withconfig) -* [`fn withConfigMixin(value)`](#fn-withconfigmixin) -* [`fn withConnections(value)`](#fn-withconnections) -* [`fn withConnectionsMixin(value)`](#fn-withconnectionsmixin) -* [`fn withConstraint(value)`](#fn-withconstraint) -* [`fn withConstraintMixin(value)`](#fn-withconstraintmixin) -* [`fn withName(value)`](#fn-withname) -* [`fn withPlacement(value)`](#fn-withplacement) -* [`fn withPlacementMixin(value)`](#fn-withplacementmixin) -* [`fn withType(value)`](#fn-withtype) -* [`obj background`](#obj-background) - * [`fn withColor(value)`](#fn-backgroundwithcolor) - * [`fn withColorMixin(value)`](#fn-backgroundwithcolormixin) - * [`fn withImage(value)`](#fn-backgroundwithimage) - * [`fn withImageMixin(value)`](#fn-backgroundwithimagemixin) - * [`fn withSize(value)`](#fn-backgroundwithsize) - * [`obj color`](#obj-backgroundcolor) - * [`fn withField(value)`](#fn-backgroundcolorwithfield) - * [`fn withFixed(value)`](#fn-backgroundcolorwithfixed) - * [`obj image`](#obj-backgroundimage) - * [`fn withField(value)`](#fn-backgroundimagewithfield) - * [`fn withFixed(value)`](#fn-backgroundimagewithfixed) - * [`fn withMode(value)`](#fn-backgroundimagewithmode) -* [`obj border`](#obj-border) - * [`fn withColor(value)`](#fn-borderwithcolor) - * [`fn withColorMixin(value)`](#fn-borderwithcolormixin) - * [`fn withRadius(value)`](#fn-borderwithradius) - * [`fn withWidth(value)`](#fn-borderwithwidth) - * [`obj color`](#obj-bordercolor) - * [`fn withField(value)`](#fn-bordercolorwithfield) - * [`fn withFixed(value)`](#fn-bordercolorwithfixed) -* [`obj constraint`](#obj-constraint) - * [`fn withHorizontal(value)`](#fn-constraintwithhorizontal) - * [`fn withVertical(value)`](#fn-constraintwithvertical) -* [`obj placement`](#obj-placement) - * [`fn withBottom(value)`](#fn-placementwithbottom) - * [`fn withHeight(value)`](#fn-placementwithheight) - * [`fn withLeft(value)`](#fn-placementwithleft) - * [`fn withRight(value)`](#fn-placementwithright) - * [`fn withRotation(value)`](#fn-placementwithrotation) - * [`fn withTop(value)`](#fn-placementwithtop) - * [`fn withWidth(value)`](#fn-placementwithwidth) - -## Fields - -### fn withBackground - -```jsonnet -withBackground(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withBackgroundMixin - -```jsonnet -withBackgroundMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withBorder - -```jsonnet -withBorder(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withBorderMixin - -```jsonnet -withBorderMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withConfig - -```jsonnet -withConfig(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO: figure out how to define this (element config(s)) -### fn withConfigMixin - -```jsonnet -withConfigMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO: figure out how to define this (element config(s)) -### fn withConnections - -```jsonnet -withConnections(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withConnectionsMixin - -```jsonnet -withConnectionsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withConstraint - -```jsonnet -withConstraint(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withConstraintMixin - -```jsonnet -withConstraintMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withPlacement - -```jsonnet -withPlacement(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withPlacementMixin - -```jsonnet -withPlacementMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj background - - -#### fn background.withColor - -```jsonnet -background.withColor(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn background.withColorMixin - -```jsonnet -background.withColorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn background.withImage - -```jsonnet -background.withImage(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Links to a resource (image/svg path) -#### fn background.withImageMixin - -```jsonnet -background.withImageMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Links to a resource (image/svg path) -#### fn background.withSize - -```jsonnet -background.withSize(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"original"`, `"contain"`, `"cover"`, `"fill"`, `"tile"` - - -#### obj background.color - - -##### fn background.color.withField - -```jsonnet -background.color.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -##### fn background.color.withFixed - -```jsonnet -background.color.withFixed(value) -``` - -PARAMETERS: - -* **value** (`string`) - -color value -#### obj background.image - - -##### fn background.image.withField - -```jsonnet -background.image.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -##### fn background.image.withFixed - -```jsonnet -background.image.withFixed(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn background.image.withMode - -```jsonnet -background.image.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"fixed"`, `"field"`, `"mapping"` - - -### obj border - - -#### fn border.withColor - -```jsonnet -border.withColor(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn border.withColorMixin - -```jsonnet -border.withColorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn border.withRadius - -```jsonnet -border.withRadius(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn border.withWidth - -```jsonnet -border.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj border.color - - -##### fn border.color.withField - -```jsonnet -border.color.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -##### fn border.color.withFixed - -```jsonnet -border.color.withFixed(value) -``` - -PARAMETERS: - -* **value** (`string`) - -color value -### obj constraint - - -#### fn constraint.withHorizontal - -```jsonnet -constraint.withHorizontal(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"left"`, `"right"`, `"leftright"`, `"center"`, `"scale"` - - -#### fn constraint.withVertical - -```jsonnet -constraint.withVertical(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"top"`, `"bottom"`, `"topbottom"`, `"center"`, `"scale"` - - -### obj placement - - -#### fn placement.withBottom - -```jsonnet -placement.withBottom(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn placement.withHeight - -```jsonnet -placement.withHeight(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn placement.withLeft - -```jsonnet -placement.withLeft(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn placement.withRight - -```jsonnet -placement.withRight(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn placement.withRotation - -```jsonnet -placement.withRotation(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn placement.withTop - -```jsonnet -placement.withTop(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn placement.withWidth - -```jsonnet -placement.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/canvas/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/index.md deleted file mode 100644 index 1f92a9873..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/index.md +++ /dev/null @@ -1,799 +0,0 @@ -# dashboardList - -grafonnet.panel.dashboardList - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withFolderId(value)`](#fn-optionswithfolderid) - * [`fn withFolderUID(value)`](#fn-optionswithfolderuid) - * [`fn withIncludeVars(value=true)`](#fn-optionswithincludevars) - * [`fn withKeepTime(value=true)`](#fn-optionswithkeeptime) - * [`fn withMaxItems(value=10)`](#fn-optionswithmaxitems) - * [`fn withQuery(value="")`](#fn-optionswithquery) - * [`fn withShowHeadings(value=true)`](#fn-optionswithshowheadings) - * [`fn withShowRecentlyViewed(value=true)`](#fn-optionswithshowrecentlyviewed) - * [`fn withShowSearch(value=true)`](#fn-optionswithshowsearch) - * [`fn withShowStarred(value=true)`](#fn-optionswithshowstarred) - * [`fn withTags(value)`](#fn-optionswithtags) - * [`fn withTagsMixin(value)`](#fn-optionswithtagsmixin) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new dashboardList panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withFolderId - -```jsonnet -options.withFolderId(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -folderId is deprecated, and migrated to folderUid on panel init -#### fn options.withFolderUID - -```jsonnet -options.withFolderUID(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn options.withIncludeVars - -```jsonnet -options.withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withKeepTime - -```jsonnet -options.withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withMaxItems - -```jsonnet -options.withMaxItems(value=10) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `10` - - -#### fn options.withQuery - -```jsonnet -options.withQuery(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - - -#### fn options.withShowHeadings - -```jsonnet -options.withShowHeadings(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowRecentlyViewed - -```jsonnet -options.withShowRecentlyViewed(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowSearch - -```jsonnet -options.withShowSearch(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowStarred - -```jsonnet -options.withShowStarred(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withTags - -```jsonnet -options.withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTagsMixin - -```jsonnet -options.withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/dashboardList/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/index.md deleted file mode 100644 index a8832f767..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/index.md +++ /dev/null @@ -1,660 +0,0 @@ -# datagrid - -grafonnet.panel.datagrid - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withSelectedSeries(value=0)`](#fn-optionswithselectedseries) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new datagrid panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withSelectedSeries - -```jsonnet -options.withSelectedSeries(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/datagrid/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/index.md deleted file mode 100644 index 3eb99e157..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/index.md +++ /dev/null @@ -1,727 +0,0 @@ -# debug - -grafonnet.panel.debug - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withCounters(value)`](#fn-optionswithcounters) - * [`fn withCountersMixin(value)`](#fn-optionswithcountersmixin) - * [`fn withMode(value)`](#fn-optionswithmode) - * [`obj counters`](#obj-optionscounters) - * [`fn withDataChanged(value=true)`](#fn-optionscounterswithdatachanged) - * [`fn withRender(value=true)`](#fn-optionscounterswithrender) - * [`fn withSchemaChanged(value=true)`](#fn-optionscounterswithschemachanged) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new debug panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withCounters - -```jsonnet -options.withCounters(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withCountersMixin - -```jsonnet -options.withCountersMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withMode - -```jsonnet -options.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"render"`, `"events"`, `"cursor"`, `"State"`, `"ThrowError"` - - -#### obj options.counters - - -##### fn options.counters.withDataChanged - -```jsonnet -options.counters.withDataChanged(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.counters.withRender - -```jsonnet -options.counters.withRender(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.counters.withSchemaChanged - -```jsonnet -options.counters.withSchemaChanged(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/debug/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/index.md deleted file mode 100644 index 50d4a44ab..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/index.md +++ /dev/null @@ -1,866 +0,0 @@ -# gauge - -grafonnet.panel.gauge - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withMinVizHeight(value=75)`](#fn-optionswithminvizheight) - * [`fn withMinVizWidth(value=75)`](#fn-optionswithminvizwidth) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) - * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) - * [`fn withShowThresholdLabels(value=true)`](#fn-optionswithshowthresholdlabels) - * [`fn withShowThresholdMarkers(value=true)`](#fn-optionswithshowthresholdmarkers) - * [`fn withSizing(value)`](#fn-optionswithsizing) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`obj reduceOptions`](#obj-optionsreduceoptions) - * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) - * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) - * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) - * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new gauge panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withMinVizHeight - -```jsonnet -options.withMinVizHeight(value=75) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `75` - - -#### fn options.withMinVizWidth - -```jsonnet -options.withMinVizWidth(value=75) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `75` - - -#### fn options.withOrientation - -```jsonnet -options.withOrientation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"vertical"`, `"horizontal"` - -TODO docs -#### fn options.withReduceOptions - -```jsonnet -options.withReduceOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withReduceOptionsMixin - -```jsonnet -options.withReduceOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withShowThresholdLabels - -```jsonnet -options.withShowThresholdLabels(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowThresholdMarkers - -```jsonnet -options.withShowThresholdMarkers(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withSizing - -```jsonnet -options.withSizing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"manual"` - -Allows for the bar gauge size to be set explicitly -#### fn options.withText - -```jsonnet -options.withText(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTextMixin - -```jsonnet -options.withTextMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.reduceOptions - - -##### fn options.reduceOptions.withCalcs - -```jsonnet -options.reduceOptions.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withCalcsMixin - -```jsonnet -options.reduceOptions.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withFields - -```jsonnet -options.reduceOptions.withFields(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Which fields to show. By default this is only numeric fields -##### fn options.reduceOptions.withLimit - -```jsonnet -options.reduceOptions.withLimit(value) -``` - -PARAMETERS: - -* **value** (`number`) - -if showing all values limit -##### fn options.reduceOptions.withValues - -```jsonnet -options.reduceOptions.withValues(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true show each row value -#### obj options.text - - -##### fn options.text.withTitleSize - -```jsonnet -options.text.withTitleSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit title text size -##### fn options.text.withValueSize - -```jsonnet -options.text.withValueSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit value text size -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/gauge/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/index.md deleted file mode 100644 index 0d8bb8c4b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/index.md +++ /dev/null @@ -1,1226 +0,0 @@ -# geomap - -grafonnet.panel.geomap - -## Subpackages - -* [options.layers](options/layers.md) -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withBasemap(value)`](#fn-optionswithbasemap) - * [`fn withBasemapMixin(value)`](#fn-optionswithbasemapmixin) - * [`fn withControls(value)`](#fn-optionswithcontrols) - * [`fn withControlsMixin(value)`](#fn-optionswithcontrolsmixin) - * [`fn withLayers(value)`](#fn-optionswithlayers) - * [`fn withLayersMixin(value)`](#fn-optionswithlayersmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`fn withView(value)`](#fn-optionswithview) - * [`fn withViewMixin(value)`](#fn-optionswithviewmixin) - * [`obj basemap`](#obj-optionsbasemap) - * [`fn withConfig(value)`](#fn-optionsbasemapwithconfig) - * [`fn withConfigMixin(value)`](#fn-optionsbasemapwithconfigmixin) - * [`fn withFilterData(value)`](#fn-optionsbasemapwithfilterdata) - * [`fn withFilterDataMixin(value)`](#fn-optionsbasemapwithfilterdatamixin) - * [`fn withLocation(value)`](#fn-optionsbasemapwithlocation) - * [`fn withLocationMixin(value)`](#fn-optionsbasemapwithlocationmixin) - * [`fn withName(value)`](#fn-optionsbasemapwithname) - * [`fn withOpacity(value)`](#fn-optionsbasemapwithopacity) - * [`fn withTooltip(value=true)`](#fn-optionsbasemapwithtooltip) - * [`fn withType(value)`](#fn-optionsbasemapwithtype) - * [`obj location`](#obj-optionsbasemaplocation) - * [`fn withGazetteer(value)`](#fn-optionsbasemaplocationwithgazetteer) - * [`fn withGeohash(value)`](#fn-optionsbasemaplocationwithgeohash) - * [`fn withLatitude(value)`](#fn-optionsbasemaplocationwithlatitude) - * [`fn withLongitude(value)`](#fn-optionsbasemaplocationwithlongitude) - * [`fn withLookup(value)`](#fn-optionsbasemaplocationwithlookup) - * [`fn withMode(value)`](#fn-optionsbasemaplocationwithmode) - * [`fn withWkt(value)`](#fn-optionsbasemaplocationwithwkt) - * [`obj controls`](#obj-optionscontrols) - * [`fn withMouseWheelZoom(value=true)`](#fn-optionscontrolswithmousewheelzoom) - * [`fn withShowAttribution(value=true)`](#fn-optionscontrolswithshowattribution) - * [`fn withShowDebug(value=true)`](#fn-optionscontrolswithshowdebug) - * [`fn withShowMeasure(value=true)`](#fn-optionscontrolswithshowmeasure) - * [`fn withShowScale(value=true)`](#fn-optionscontrolswithshowscale) - * [`fn withShowZoom(value=true)`](#fn-optionscontrolswithshowzoom) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`obj view`](#obj-optionsview) - * [`fn withAllLayers(value=true)`](#fn-optionsviewwithalllayers) - * [`fn withId(value="zero")`](#fn-optionsviewwithid) - * [`fn withLastOnly(value=true)`](#fn-optionsviewwithlastonly) - * [`fn withLat(value=0)`](#fn-optionsviewwithlat) - * [`fn withLayer(value)`](#fn-optionsviewwithlayer) - * [`fn withLon(value=0)`](#fn-optionsviewwithlon) - * [`fn withMaxZoom(value)`](#fn-optionsviewwithmaxzoom) - * [`fn withMinZoom(value)`](#fn-optionsviewwithminzoom) - * [`fn withPadding(value)`](#fn-optionsviewwithpadding) - * [`fn withShared(value=true)`](#fn-optionsviewwithshared) - * [`fn withZoom(value=1)`](#fn-optionsviewwithzoom) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new geomap panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withBasemap - -```jsonnet -options.withBasemap(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withBasemapMixin - -```jsonnet -options.withBasemapMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withControls - -```jsonnet -options.withControls(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withControlsMixin - -```jsonnet -options.withControlsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withLayers - -```jsonnet -options.withLayers(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withLayersMixin - -```jsonnet -options.withLayersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withView - -```jsonnet -options.withView(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withViewMixin - -```jsonnet -options.withViewMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### obj options.basemap - - -##### fn options.basemap.withConfig - -```jsonnet -options.basemap.withConfig(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Custom options depending on the type -##### fn options.basemap.withConfigMixin - -```jsonnet -options.basemap.withConfigMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Custom options depending on the type -##### fn options.basemap.withFilterData - -```jsonnet -options.basemap.withFilterData(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Defines a frame MatcherConfig that may filter data for the given layer -##### fn options.basemap.withFilterDataMixin - -```jsonnet -options.basemap.withFilterDataMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Defines a frame MatcherConfig that may filter data for the given layer -##### fn options.basemap.withLocation - -```jsonnet -options.basemap.withLocation(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.basemap.withLocationMixin - -```jsonnet -options.basemap.withLocationMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.basemap.withName - -```jsonnet -options.basemap.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -configured unique display name -##### fn options.basemap.withOpacity - -```jsonnet -options.basemap.withOpacity(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Common properties: -https://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html -Layer opacity (0-1) -##### fn options.basemap.withTooltip - -```jsonnet -options.basemap.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Check tooltip (defaults to true) -##### fn options.basemap.withType - -```jsonnet -options.basemap.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### obj options.basemap.location - - -###### fn options.basemap.location.withGazetteer - -```jsonnet -options.basemap.location.withGazetteer(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Path to Gazetteer -###### fn options.basemap.location.withGeohash - -```jsonnet -options.basemap.location.withGeohash(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Field mappings -###### fn options.basemap.location.withLatitude - -```jsonnet -options.basemap.location.withLatitude(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn options.basemap.location.withLongitude - -```jsonnet -options.basemap.location.withLongitude(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn options.basemap.location.withLookup - -```jsonnet -options.basemap.location.withLookup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn options.basemap.location.withMode - -```jsonnet -options.basemap.location.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"geohash"`, `"coords"`, `"lookup"` - - -###### fn options.basemap.location.withWkt - -```jsonnet -options.basemap.location.withWkt(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj options.controls - - -##### fn options.controls.withMouseWheelZoom - -```jsonnet -options.controls.withMouseWheelZoom(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -let the mouse wheel zoom -##### fn options.controls.withShowAttribution - -```jsonnet -options.controls.withShowAttribution(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Lower right -##### fn options.controls.withShowDebug - -```jsonnet -options.controls.withShowDebug(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Show debug -##### fn options.controls.withShowMeasure - -```jsonnet -options.controls.withShowMeasure(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Show measure -##### fn options.controls.withShowScale - -```jsonnet -options.controls.withShowScale(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Scale options -##### fn options.controls.withShowZoom - -```jsonnet -options.controls.withShowZoom(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Zoom (upper left) -#### obj options.tooltip - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"details"` - - -#### obj options.view - - -##### fn options.view.withAllLayers - -```jsonnet -options.view.withAllLayers(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.view.withId - -```jsonnet -options.view.withId(value="zero") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"zero"` - - -##### fn options.view.withLastOnly - -```jsonnet -options.view.withLastOnly(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.view.withLat - -```jsonnet -options.view.withLat(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - - -##### fn options.view.withLayer - -```jsonnet -options.view.withLayer(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.view.withLon - -```jsonnet -options.view.withLon(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - - -##### fn options.view.withMaxZoom - -```jsonnet -options.view.withMaxZoom(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -##### fn options.view.withMinZoom - -```jsonnet -options.view.withMinZoom(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -##### fn options.view.withPadding - -```jsonnet -options.view.withPadding(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -##### fn options.view.withShared - -```jsonnet -options.view.withShared(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.view.withZoom - -```jsonnet -options.view.withZoom(value=1) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `1` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/options/layers.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/options/layers.md deleted file mode 100644 index cf4881df9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/options/layers.md +++ /dev/null @@ -1,220 +0,0 @@ -# layers - - - -## Index - -* [`fn withConfig(value)`](#fn-withconfig) -* [`fn withConfigMixin(value)`](#fn-withconfigmixin) -* [`fn withFilterData(value)`](#fn-withfilterdata) -* [`fn withFilterDataMixin(value)`](#fn-withfilterdatamixin) -* [`fn withLocation(value)`](#fn-withlocation) -* [`fn withLocationMixin(value)`](#fn-withlocationmixin) -* [`fn withName(value)`](#fn-withname) -* [`fn withOpacity(value)`](#fn-withopacity) -* [`fn withTooltip(value=true)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`obj location`](#obj-location) - * [`fn withGazetteer(value)`](#fn-locationwithgazetteer) - * [`fn withGeohash(value)`](#fn-locationwithgeohash) - * [`fn withLatitude(value)`](#fn-locationwithlatitude) - * [`fn withLongitude(value)`](#fn-locationwithlongitude) - * [`fn withLookup(value)`](#fn-locationwithlookup) - * [`fn withMode(value)`](#fn-locationwithmode) - * [`fn withWkt(value)`](#fn-locationwithwkt) - -## Fields - -### fn withConfig - -```jsonnet -withConfig(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Custom options depending on the type -### fn withConfigMixin - -```jsonnet -withConfigMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Custom options depending on the type -### fn withFilterData - -```jsonnet -withFilterData(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Defines a frame MatcherConfig that may filter data for the given layer -### fn withFilterDataMixin - -```jsonnet -withFilterDataMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Defines a frame MatcherConfig that may filter data for the given layer -### fn withLocation - -```jsonnet -withLocation(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLocationMixin - -```jsonnet -withLocationMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -configured unique display name -### fn withOpacity - -```jsonnet -withOpacity(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Common properties: -https://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html -Layer opacity (0-1) -### fn withTooltip - -```jsonnet -withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Check tooltip (defaults to true) -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj location - - -#### fn location.withGazetteer - -```jsonnet -location.withGazetteer(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Path to Gazetteer -#### fn location.withGeohash - -```jsonnet -location.withGeohash(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Field mappings -#### fn location.withLatitude - -```jsonnet -location.withLatitude(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn location.withLongitude - -```jsonnet -location.withLongitude(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn location.withLookup - -```jsonnet -location.withLookup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn location.withMode - -```jsonnet -location.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"geohash"`, `"coords"`, `"lookup"` - - -#### fn location.withWkt - -```jsonnet -location.withWkt(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/geomap/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/index.md deleted file mode 100644 index 7d0f3e631..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/index.md +++ /dev/null @@ -1,1841 +0,0 @@ -# heatmap - -grafonnet.panel.heatmap - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withCalculate(value=true)`](#fn-optionswithcalculate) - * [`fn withCalculation(value)`](#fn-optionswithcalculation) - * [`fn withCalculationMixin(value)`](#fn-optionswithcalculationmixin) - * [`fn withCellGap(value=1)`](#fn-optionswithcellgap) - * [`fn withCellRadius(value)`](#fn-optionswithcellradius) - * [`fn withCellValues(value)`](#fn-optionswithcellvalues) - * [`fn withCellValuesMixin(value)`](#fn-optionswithcellvaluesmixin) - * [`fn withColor(value)`](#fn-optionswithcolor) - * [`fn withColorMixin(value)`](#fn-optionswithcolormixin) - * [`fn withExemplars(value)`](#fn-optionswithexemplars) - * [`fn withExemplarsMixin(value)`](#fn-optionswithexemplarsmixin) - * [`fn withFilterValues(value)`](#fn-optionswithfiltervalues) - * [`fn withFilterValuesMixin(value)`](#fn-optionswithfiltervaluesmixin) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withRowsFrame(value)`](#fn-optionswithrowsframe) - * [`fn withRowsFrameMixin(value)`](#fn-optionswithrowsframemixin) - * [`fn withShowValue(value)`](#fn-optionswithshowvalue) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`fn withYAxis(value)`](#fn-optionswithyaxis) - * [`fn withYAxisMixin(value)`](#fn-optionswithyaxismixin) - * [`obj calculation`](#obj-optionscalculation) - * [`fn withXBuckets(value)`](#fn-optionscalculationwithxbuckets) - * [`fn withXBucketsMixin(value)`](#fn-optionscalculationwithxbucketsmixin) - * [`fn withYBuckets(value)`](#fn-optionscalculationwithybuckets) - * [`fn withYBucketsMixin(value)`](#fn-optionscalculationwithybucketsmixin) - * [`obj xBuckets`](#obj-optionscalculationxbuckets) - * [`fn withMode(value)`](#fn-optionscalculationxbucketswithmode) - * [`fn withScale(value)`](#fn-optionscalculationxbucketswithscale) - * [`fn withScaleMixin(value)`](#fn-optionscalculationxbucketswithscalemixin) - * [`fn withValue(value)`](#fn-optionscalculationxbucketswithvalue) - * [`obj scale`](#obj-optionscalculationxbucketsscale) - * [`fn withLinearThreshold(value)`](#fn-optionscalculationxbucketsscalewithlinearthreshold) - * [`fn withLog(value)`](#fn-optionscalculationxbucketsscalewithlog) - * [`fn withType(value)`](#fn-optionscalculationxbucketsscalewithtype) - * [`obj yBuckets`](#obj-optionscalculationybuckets) - * [`fn withMode(value)`](#fn-optionscalculationybucketswithmode) - * [`fn withScale(value)`](#fn-optionscalculationybucketswithscale) - * [`fn withScaleMixin(value)`](#fn-optionscalculationybucketswithscalemixin) - * [`fn withValue(value)`](#fn-optionscalculationybucketswithvalue) - * [`obj scale`](#obj-optionscalculationybucketsscale) - * [`fn withLinearThreshold(value)`](#fn-optionscalculationybucketsscalewithlinearthreshold) - * [`fn withLog(value)`](#fn-optionscalculationybucketsscalewithlog) - * [`fn withType(value)`](#fn-optionscalculationybucketsscalewithtype) - * [`obj cellValues`](#obj-optionscellvalues) - * [`fn withDecimals(value)`](#fn-optionscellvalueswithdecimals) - * [`fn withUnit(value)`](#fn-optionscellvalueswithunit) - * [`obj color`](#obj-optionscolor) - * [`fn withExponent(value)`](#fn-optionscolorwithexponent) - * [`fn withFill(value)`](#fn-optionscolorwithfill) - * [`fn withMax(value)`](#fn-optionscolorwithmax) - * [`fn withMin(value)`](#fn-optionscolorwithmin) - * [`fn withMode(value)`](#fn-optionscolorwithmode) - * [`fn withReverse(value=true)`](#fn-optionscolorwithreverse) - * [`fn withScale(value)`](#fn-optionscolorwithscale) - * [`fn withScheme(value)`](#fn-optionscolorwithscheme) - * [`fn withSteps(value)`](#fn-optionscolorwithsteps) - * [`obj exemplars`](#obj-optionsexemplars) - * [`fn withColor(value)`](#fn-optionsexemplarswithcolor) - * [`obj filterValues`](#obj-optionsfiltervalues) - * [`fn withGe(value)`](#fn-optionsfiltervalueswithge) - * [`fn withLe(value)`](#fn-optionsfiltervalueswithle) - * [`obj legend`](#obj-optionslegend) - * [`fn withShow(value=true)`](#fn-optionslegendwithshow) - * [`obj rowsFrame`](#obj-optionsrowsframe) - * [`fn withLayout(value)`](#fn-optionsrowsframewithlayout) - * [`fn withValue(value)`](#fn-optionsrowsframewithvalue) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) - * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withShowColorScale(value=true)`](#fn-optionstooltipwithshowcolorscale) - * [`fn withYHistogram(value=true)`](#fn-optionstooltipwithyhistogram) - * [`obj yAxis`](#obj-optionsyaxis) - * [`fn withAxisBorderShow(value=true)`](#fn-optionsyaxiswithaxisbordershow) - * [`fn withAxisCenteredZero(value=true)`](#fn-optionsyaxiswithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-optionsyaxiswithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-optionsyaxiswithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-optionsyaxiswithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-optionsyaxiswithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-optionsyaxiswithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-optionsyaxiswithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-optionsyaxiswithaxiswidth) - * [`fn withDecimals(value)`](#fn-optionsyaxiswithdecimals) - * [`fn withMax(value)`](#fn-optionsyaxiswithmax) - * [`fn withMin(value)`](#fn-optionsyaxiswithmin) - * [`fn withReverse(value=true)`](#fn-optionsyaxiswithreverse) - * [`fn withScaleDistribution(value)`](#fn-optionsyaxiswithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-optionsyaxiswithscaledistributionmixin) - * [`fn withUnit(value)`](#fn-optionsyaxiswithunit) - * [`obj scaleDistribution`](#obj-optionsyaxisscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-optionsyaxisscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-optionsyaxisscaledistributionwithlog) - * [`fn withType(value)`](#fn-optionsyaxisscaledistributionwithtype) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new heatmap panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withCalculate - -```jsonnet -options.withCalculate(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the heatmap should be calculated from data -#### fn options.withCalculation - -```jsonnet -options.withCalculation(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withCalculationMixin - -```jsonnet -options.withCalculationMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withCellGap - -```jsonnet -options.withCellGap(value=1) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `1` - -Controls gap between cells -#### fn options.withCellRadius - -```jsonnet -options.withCellRadius(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Controls cell radius -#### fn options.withCellValues - -```jsonnet -options.withCellValues(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls cell value options -#### fn options.withCellValuesMixin - -```jsonnet -options.withCellValuesMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls cell value options -#### fn options.withColor - -```jsonnet -options.withColor(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls various color options -#### fn options.withColorMixin - -```jsonnet -options.withColorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls various color options -#### fn options.withExemplars - -```jsonnet -options.withExemplars(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls exemplar options -#### fn options.withExemplarsMixin - -```jsonnet -options.withExemplarsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls exemplar options -#### fn options.withFilterValues - -```jsonnet -options.withFilterValues(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls the value filter range -#### fn options.withFilterValuesMixin - -```jsonnet -options.withFilterValuesMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls the value filter range -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls legend options -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls legend options -#### fn options.withRowsFrame - -```jsonnet -options.withRowsFrame(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls frame rows options -#### fn options.withRowsFrameMixin - -```jsonnet -options.withRowsFrameMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls frame rows options -#### fn options.withShowValue - -```jsonnet -options.withShowValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"never"`, `"always"` - -TODO docs -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls tooltip options -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Controls tooltip options -#### fn options.withYAxis - -```jsonnet -options.withYAxis(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Configuration options for the yAxis -#### fn options.withYAxisMixin - -```jsonnet -options.withYAxisMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Configuration options for the yAxis -#### obj options.calculation - - -##### fn options.calculation.withXBuckets - -```jsonnet -options.calculation.withXBuckets(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.calculation.withXBucketsMixin - -```jsonnet -options.calculation.withXBucketsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.calculation.withYBuckets - -```jsonnet -options.calculation.withYBuckets(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn options.calculation.withYBucketsMixin - -```jsonnet -options.calculation.withYBucketsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### obj options.calculation.xBuckets - - -###### fn options.calculation.xBuckets.withMode - -```jsonnet -options.calculation.xBuckets.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"size"`, `"count"` - - -###### fn options.calculation.xBuckets.withScale - -```jsonnet -options.calculation.xBuckets.withScale(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn options.calculation.xBuckets.withScaleMixin - -```jsonnet -options.calculation.xBuckets.withScaleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn options.calculation.xBuckets.withValue - -```jsonnet -options.calculation.xBuckets.withValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The number of buckets to use for the axis in the heatmap -###### obj options.calculation.xBuckets.scale - - -####### fn options.calculation.xBuckets.scale.withLinearThreshold - -```jsonnet -options.calculation.xBuckets.scale.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn options.calculation.xBuckets.scale.withLog - -```jsonnet -options.calculation.xBuckets.scale.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn options.calculation.xBuckets.scale.withType - -```jsonnet -options.calculation.xBuckets.scale.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -##### obj options.calculation.yBuckets - - -###### fn options.calculation.yBuckets.withMode - -```jsonnet -options.calculation.yBuckets.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"size"`, `"count"` - - -###### fn options.calculation.yBuckets.withScale - -```jsonnet -options.calculation.yBuckets.withScale(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn options.calculation.yBuckets.withScaleMixin - -```jsonnet -options.calculation.yBuckets.withScaleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn options.calculation.yBuckets.withValue - -```jsonnet -options.calculation.yBuckets.withValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The number of buckets to use for the axis in the heatmap -###### obj options.calculation.yBuckets.scale - - -####### fn options.calculation.yBuckets.scale.withLinearThreshold - -```jsonnet -options.calculation.yBuckets.scale.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn options.calculation.yBuckets.scale.withLog - -```jsonnet -options.calculation.yBuckets.scale.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn options.calculation.yBuckets.scale.withType - -```jsonnet -options.calculation.yBuckets.scale.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -#### obj options.cellValues - - -##### fn options.cellValues.withDecimals - -```jsonnet -options.cellValues.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Controls the number of decimals for cell values -##### fn options.cellValues.withUnit - -```jsonnet -options.cellValues.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Controls the cell value unit -#### obj options.color - - -##### fn options.color.withExponent - -```jsonnet -options.color.withExponent(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Controls the exponent when scale is set to exponential -##### fn options.color.withFill - -```jsonnet -options.color.withFill(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Controls the color fill when in opacity mode -##### fn options.color.withMax - -```jsonnet -options.color.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Sets the maximum value for the color scale -##### fn options.color.withMin - -```jsonnet -options.color.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Sets the minimum value for the color scale -##### fn options.color.withMode - -```jsonnet -options.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"opacity"`, `"scheme"` - -Controls the color mode of the heatmap -##### fn options.color.withReverse - -```jsonnet -options.color.withReverse(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Reverses the color scheme -##### fn options.color.withScale - -```jsonnet -options.color.withScale(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"exponential"` - -Controls the color scale of the heatmap -##### fn options.color.withScheme - -```jsonnet -options.color.withScheme(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Controls the color scheme used -##### fn options.color.withSteps - -```jsonnet -options.color.withSteps(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Controls the number of color steps -#### obj options.exemplars - - -##### fn options.exemplars.withColor - -```jsonnet -options.exemplars.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Sets the color of the exemplar markers -#### obj options.filterValues - - -##### fn options.filterValues.withGe - -```jsonnet -options.filterValues.withGe(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Sets the filter range to values greater than or equal to the given value -##### fn options.filterValues.withLe - -```jsonnet -options.filterValues.withLe(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Sets the filter range to values less than or equal to the given value -#### obj options.legend - - -##### fn options.legend.withShow - -```jsonnet -options.legend.withShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the legend is shown -#### obj options.rowsFrame - - -##### fn options.rowsFrame.withLayout - -```jsonnet -options.rowsFrame.withLayout(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"le"`, `"ge"`, `"unknown"`, `"auto"` - - -##### fn options.rowsFrame.withValue - -```jsonnet -options.rowsFrame.withValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Sets the name of the cell when not calculating from data -#### obj options.tooltip - - -##### fn options.tooltip.withMaxHeight - -```jsonnet -options.tooltip.withMaxHeight(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMaxWidth - -```jsonnet -options.tooltip.withMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withShowColorScale - -```jsonnet -options.tooltip.withShowColorScale(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the tooltip shows a color scale in header -##### fn options.tooltip.withYHistogram - -```jsonnet -options.tooltip.withYHistogram(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the tooltip shows a histogram of the y-axis values -#### obj options.yAxis - - -##### fn options.yAxis.withAxisBorderShow - -```jsonnet -options.yAxis.withAxisBorderShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.yAxis.withAxisCenteredZero - -```jsonnet -options.yAxis.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.yAxis.withAxisColorMode - -```jsonnet -options.yAxis.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -##### fn options.yAxis.withAxisGridShow - -```jsonnet -options.yAxis.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.yAxis.withAxisLabel - -```jsonnet -options.yAxis.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.yAxis.withAxisPlacement - -```jsonnet -options.yAxis.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -##### fn options.yAxis.withAxisSoftMax - -```jsonnet -options.yAxis.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.yAxis.withAxisSoftMin - -```jsonnet -options.yAxis.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.yAxis.withAxisWidth - -```jsonnet -options.yAxis.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.yAxis.withDecimals - -```jsonnet -options.yAxis.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Controls the number of decimals for yAxis values -##### fn options.yAxis.withMax - -```jsonnet -options.yAxis.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Sets the maximum value for the yAxis -##### fn options.yAxis.withMin - -```jsonnet -options.yAxis.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Sets the minimum value for the yAxis -##### fn options.yAxis.withReverse - -```jsonnet -options.yAxis.withReverse(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Reverses the yAxis -##### fn options.yAxis.withScaleDistribution - -```jsonnet -options.yAxis.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn options.yAxis.withScaleDistributionMixin - -```jsonnet -options.yAxis.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -##### fn options.yAxis.withUnit - -```jsonnet -options.yAxis.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Sets the yAxis unit -##### obj options.yAxis.scaleDistribution - - -###### fn options.yAxis.scaleDistribution.withLinearThreshold - -```jsonnet -options.yAxis.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn options.yAxis.scaleDistribution.withLog - -```jsonnet -options.yAxis.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn options.yAxis.scaleDistribution.withType - -```jsonnet -options.yAxis.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/heatmap/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/index.md deleted file mode 100644 index e09fae1d7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/index.md +++ /dev/null @@ -1,1282 +0,0 @@ -# histogram - -grafonnet.panel.histogram - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisbordershow) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withFillOpacity(value=80)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) - * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) - * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) - * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withBucketCount(value=30)`](#fn-optionswithbucketcount) - * [`fn withBucketOffset(value=0)`](#fn-optionswithbucketoffset) - * [`fn withBucketSize(value)`](#fn-optionswithbucketsize) - * [`fn withCombine(value=true)`](#fn-optionswithcombine) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) - * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new histogram panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisBorderShow - -```jsonnet -fieldConfig.defaults.custom.withAxisBorderShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```jsonnet -fieldConfig.defaults.custom.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```jsonnet -fieldConfig.defaults.custom.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```jsonnet -fieldConfig.defaults.custom.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```jsonnet -fieldConfig.defaults.custom.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```jsonnet -fieldConfig.defaults.custom.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```jsonnet -fieldConfig.defaults.custom.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.withFillOpacity(value=80) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `80` - -Controls the fill opacity of the bars. -###### fn fieldConfig.defaults.custom.withGradientMode - -```jsonnet -fieldConfig.defaults.custom.withGradientMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value=1) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `1` - -Controls line width of the bars. -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withStacking - -```jsonnet -fieldConfig.defaults.custom.withStacking(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withStackingMixin - -```jsonnet -fieldConfig.defaults.custom.withStackingMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -###### obj fieldConfig.defaults.custom.stacking - - -####### fn fieldConfig.defaults.custom.stacking.withGroup - -```jsonnet -fieldConfig.defaults.custom.stacking.withGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -####### fn fieldConfig.defaults.custom.stacking.withMode - -```jsonnet -fieldConfig.defaults.custom.stacking.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"normal"`, `"percent"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withBucketCount - -```jsonnet -options.withBucketCount(value=30) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `30` - -Bucket count (approx) -#### fn options.withBucketOffset - -```jsonnet -options.withBucketOffset(value=0) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0` - -Offset buckets by this amount -#### fn options.withBucketSize - -```jsonnet -options.withBucketSize(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Size of each bucket -#### fn options.withCombine - -```jsonnet -options.withCombine(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Combines multiple series into a single histogram -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.tooltip - - -##### fn options.tooltip.withMaxHeight - -```jsonnet -options.tooltip.withMaxHeight(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMaxWidth - -```jsonnet -options.tooltip.withMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/histogram/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/index.md deleted file mode 100644 index 3111a61da..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/index.md +++ /dev/null @@ -1,32 +0,0 @@ -# panel - -grafonnet.panel - -## Subpackages - -* [alertList](alertList/index.md) -* [annotationsList](annotationsList/index.md) -* [barChart](barChart/index.md) -* [barGauge](barGauge/index.md) -* [candlestick](candlestick/index.md) -* [canvas](canvas/index.md) -* [dashboardList](dashboardList/index.md) -* [datagrid](datagrid/index.md) -* [debug](debug/index.md) -* [gauge](gauge/index.md) -* [geomap](geomap/index.md) -* [heatmap](heatmap/index.md) -* [histogram](histogram/index.md) -* [logs](logs/index.md) -* [news](news/index.md) -* [nodeGraph](nodeGraph/index.md) -* [pieChart](pieChart/index.md) -* [row](row.md) -* [stat](stat/index.md) -* [stateTimeline](stateTimeline/index.md) -* [statusHistory](statusHistory/index.md) -* [table](table/index.md) -* [text](text/index.md) -* [timeSeries](timeSeries/index.md) -* [trend](trend/index.md) -* [xyChart](xyChart/index.md) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/index.md deleted file mode 100644 index 6f1f2d227..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/index.md +++ /dev/null @@ -1,764 +0,0 @@ -# logs - -grafonnet.panel.logs - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withDedupStrategy(value)`](#fn-optionswithdedupstrategy) - * [`fn withEnableLogDetails(value=true)`](#fn-optionswithenablelogdetails) - * [`fn withPrettifyLogMessage(value=true)`](#fn-optionswithprettifylogmessage) - * [`fn withShowCommonLabels(value=true)`](#fn-optionswithshowcommonlabels) - * [`fn withShowLabels(value=true)`](#fn-optionswithshowlabels) - * [`fn withShowLogContextToggle(value=true)`](#fn-optionswithshowlogcontexttoggle) - * [`fn withShowTime(value=true)`](#fn-optionswithshowtime) - * [`fn withSortOrder(value)`](#fn-optionswithsortorder) - * [`fn withWrapLogMessage(value=true)`](#fn-optionswithwraplogmessage) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new logs panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withDedupStrategy - -```jsonnet -options.withDedupStrategy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"exact"`, `"numbers"`, `"signature"` - - -#### fn options.withEnableLogDetails - -```jsonnet -options.withEnableLogDetails(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withPrettifyLogMessage - -```jsonnet -options.withPrettifyLogMessage(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowCommonLabels - -```jsonnet -options.withShowCommonLabels(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowLabels - -```jsonnet -options.withShowLabels(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowLogContextToggle - -```jsonnet -options.withShowLogContextToggle(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withShowTime - -```jsonnet -options.withShowTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withSortOrder - -```jsonnet -options.withSortOrder(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"Descending"`, `"Ascending"` - - -#### fn options.withWrapLogMessage - -```jsonnet -options.withWrapLogMessage(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/logs/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/index.md deleted file mode 100644 index 2cc7b47ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/index.md +++ /dev/null @@ -1,672 +0,0 @@ -# news - -grafonnet.panel.news - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withFeedUrl(value)`](#fn-optionswithfeedurl) - * [`fn withShowImage(value=true)`](#fn-optionswithshowimage) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new news panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withFeedUrl - -```jsonnet -options.withFeedUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -empty/missing will default to grafana blog -#### fn options.withShowImage - -```jsonnet -options.withShowImage(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/news/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/index.md deleted file mode 100644 index 96e1eb65a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/index.md +++ /dev/null @@ -1,776 +0,0 @@ -# nodeGraph - -grafonnet.panel.nodeGraph - -## Subpackages - -* [options.nodes.arcs](options/nodes/arcs.md) -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withEdges(value)`](#fn-optionswithedges) - * [`fn withEdgesMixin(value)`](#fn-optionswithedgesmixin) - * [`fn withNodes(value)`](#fn-optionswithnodes) - * [`fn withNodesMixin(value)`](#fn-optionswithnodesmixin) - * [`obj edges`](#obj-optionsedges) - * [`fn withMainStatUnit(value)`](#fn-optionsedgeswithmainstatunit) - * [`fn withSecondaryStatUnit(value)`](#fn-optionsedgeswithsecondarystatunit) - * [`obj nodes`](#obj-optionsnodes) - * [`fn withArcs(value)`](#fn-optionsnodeswitharcs) - * [`fn withArcsMixin(value)`](#fn-optionsnodeswitharcsmixin) - * [`fn withMainStatUnit(value)`](#fn-optionsnodeswithmainstatunit) - * [`fn withSecondaryStatUnit(value)`](#fn-optionsnodeswithsecondarystatunit) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new nodeGraph panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withEdges - -```jsonnet -options.withEdges(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withEdgesMixin - -```jsonnet -options.withEdgesMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withNodes - -```jsonnet -options.withNodes(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withNodesMixin - -```jsonnet -options.withNodesMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### obj options.edges - - -##### fn options.edges.withMainStatUnit - -```jsonnet -options.edges.withMainStatUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit for the main stat to override what ever is set in the data frame. -##### fn options.edges.withSecondaryStatUnit - -```jsonnet -options.edges.withSecondaryStatUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit for the secondary stat to override what ever is set in the data frame. -#### obj options.nodes - - -##### fn options.nodes.withArcs - -```jsonnet -options.nodes.withArcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Define which fields are shown as part of the node arc (colored circle around the node). -##### fn options.nodes.withArcsMixin - -```jsonnet -options.nodes.withArcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Define which fields are shown as part of the node arc (colored circle around the node). -##### fn options.nodes.withMainStatUnit - -```jsonnet -options.nodes.withMainStatUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit for the main stat to override what ever is set in the data frame. -##### fn options.nodes.withSecondaryStatUnit - -```jsonnet -options.nodes.withSecondaryStatUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit for the secondary stat to override what ever is set in the data frame. -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/options/nodes/arcs.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/options/nodes/arcs.md deleted file mode 100644 index f80fe2413..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/options/nodes/arcs.md +++ /dev/null @@ -1,33 +0,0 @@ -# arcs - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withField(value)`](#fn-withfield) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The color of the arc. -### fn withField - -```jsonnet -withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Field from which to get the value. Values should be less than 1, representing fraction of a circle. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/nodeGraph/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/index.md deleted file mode 100644 index 65d414c99..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/index.md +++ /dev/null @@ -1,1174 +0,0 @@ -# pieChart - -grafonnet.panel.pieChart - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withDisplayLabels(value)`](#fn-optionswithdisplaylabels) - * [`fn withDisplayLabelsMixin(value)`](#fn-optionswithdisplaylabelsmixin) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withPieType(value)`](#fn-optionswithpietype) - * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) - * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value)`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withValues(value)`](#fn-optionslegendwithvalues) - * [`fn withValuesMixin(value)`](#fn-optionslegendwithvaluesmixin) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj reduceOptions`](#obj-optionsreduceoptions) - * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) - * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) - * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) - * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) - * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new pieChart panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withDisplayLabels - -```jsonnet -options.withDisplayLabels(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withDisplayLabelsMixin - -```jsonnet -options.withDisplayLabelsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withOrientation - -```jsonnet -options.withOrientation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"vertical"`, `"horizontal"` - -TODO docs -#### fn options.withPieType - -```jsonnet -options.withPieType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"pie"`, `"donut"` - -Select the pie chart display style. -#### fn options.withReduceOptions - -```jsonnet -options.withReduceOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withReduceOptionsMixin - -```jsonnet -options.withReduceOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withText - -```jsonnet -options.withText(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTextMixin - -```jsonnet -options.withTextMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withValues - -```jsonnet -options.legend.withValues(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withValuesMixin - -```jsonnet -options.legend.withValuesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.reduceOptions - - -##### fn options.reduceOptions.withCalcs - -```jsonnet -options.reduceOptions.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withCalcsMixin - -```jsonnet -options.reduceOptions.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withFields - -```jsonnet -options.reduceOptions.withFields(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Which fields to show. By default this is only numeric fields -##### fn options.reduceOptions.withLimit - -```jsonnet -options.reduceOptions.withLimit(value) -``` - -PARAMETERS: - -* **value** (`number`) - -if showing all values limit -##### fn options.reduceOptions.withValues - -```jsonnet -options.reduceOptions.withValues(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true show each row value -#### obj options.text - - -##### fn options.text.withTitleSize - -```jsonnet -options.text.withTitleSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit title text size -##### fn options.text.withValueSize - -```jsonnet -options.text.withValueSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit value text size -#### obj options.tooltip - - -##### fn options.tooltip.withMaxHeight - -```jsonnet -options.tooltip.withMaxHeight(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMaxWidth - -```jsonnet -options.tooltip.withMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/pieChart/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/row.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/row.md deleted file mode 100644 index 0541b0409..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/row.md +++ /dev/null @@ -1,179 +0,0 @@ -# row - -grafonnet.panel.row - -## Index - -* [`fn new(title)`](#fn-new) -* [`fn withCollapsed(value=true)`](#fn-withcollapsed) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) -* [`fn withGridPos(y)`](#fn-withgridpos) -* [`fn withGridPosMixin(value)`](#fn-withgridposmixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withPanels(value)`](#fn-withpanels) -* [`fn withPanelsMixin(value)`](#fn-withpanelsmixin) -* [`fn withRepeat(value)`](#fn-withrepeat) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withType()`](#fn-withtype) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new row panel with a title. -### fn withCollapsed - -```jsonnet -withCollapsed(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether this row should be collapsed or not. -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -### fn withDatasourceMixin - -```jsonnet -withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -### fn withGridPos - -```jsonnet -withGridPos(y) -``` - -PARAMETERS: - -* **y** (`number`) - -`withGridPos` sets the Y-axis on a row panel. x, width and height are fixed values. -### fn withGridPosMixin - -```jsonnet -withGridPosMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Position and dimensions of a panel in the grid -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Unique identifier of the panel. Generated by Grafana when creating a new panel. It must be unique within a dashboard, but not globally. -### fn withPanels - -```jsonnet -withPanels(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withPanelsMixin - -```jsonnet -withPanelsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withRepeat - -```jsonnet -withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Row title -### fn withType - -```jsonnet -withType() -``` - - - -### obj datasource - - -#### fn datasource.withType - -```jsonnet -datasource.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The plugin type-id -#### fn datasource.withUid - -```jsonnet -datasource.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specific datasource instance \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/index.md deleted file mode 100644 index 71c9f6472..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/index.md +++ /dev/null @@ -1,879 +0,0 @@ -# stat - -grafonnet.panel.stat - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withColorMode(value)`](#fn-optionswithcolormode) - * [`fn withGraphMode(value)`](#fn-optionswithgraphmode) - * [`fn withJustifyMode(value)`](#fn-optionswithjustifymode) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withReduceOptions(value)`](#fn-optionswithreduceoptions) - * [`fn withReduceOptionsMixin(value)`](#fn-optionswithreduceoptionsmixin) - * [`fn withShowPercentChange(value=true)`](#fn-optionswithshowpercentchange) - * [`fn withText(value)`](#fn-optionswithtext) - * [`fn withTextMixin(value)`](#fn-optionswithtextmixin) - * [`fn withTextMode(value)`](#fn-optionswithtextmode) - * [`fn withWideLayout(value=true)`](#fn-optionswithwidelayout) - * [`obj reduceOptions`](#obj-optionsreduceoptions) - * [`fn withCalcs(value)`](#fn-optionsreduceoptionswithcalcs) - * [`fn withCalcsMixin(value)`](#fn-optionsreduceoptionswithcalcsmixin) - * [`fn withFields(value)`](#fn-optionsreduceoptionswithfields) - * [`fn withLimit(value)`](#fn-optionsreduceoptionswithlimit) - * [`fn withValues(value=true)`](#fn-optionsreduceoptionswithvalues) - * [`obj text`](#obj-optionstext) - * [`fn withTitleSize(value)`](#fn-optionstextwithtitlesize) - * [`fn withValueSize(value)`](#fn-optionstextwithvaluesize) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new stat panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withColorMode - -```jsonnet -options.withColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"value"`, `"background"`, `"background_solid"`, `"none"` - -TODO docs -#### fn options.withGraphMode - -```jsonnet -options.withGraphMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"line"`, `"area"` - -TODO docs -#### fn options.withJustifyMode - -```jsonnet -options.withJustifyMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"center"` - -TODO docs -#### fn options.withOrientation - -```jsonnet -options.withOrientation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"vertical"`, `"horizontal"` - -TODO docs -#### fn options.withReduceOptions - -```jsonnet -options.withReduceOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withReduceOptionsMixin - -```jsonnet -options.withReduceOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withShowPercentChange - -```jsonnet -options.withShowPercentChange(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn options.withText - -```jsonnet -options.withText(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTextMixin - -```jsonnet -options.withTextMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTextMode - -```jsonnet -options.withTextMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"value"`, `"value_and_name"`, `"name"`, `"none"` - -TODO docs -#### fn options.withWideLayout - -```jsonnet -options.withWideLayout(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### obj options.reduceOptions - - -##### fn options.reduceOptions.withCalcs - -```jsonnet -options.reduceOptions.withCalcs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withCalcsMixin - -```jsonnet -options.reduceOptions.withCalcsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -When !values, pick one value for the whole field -##### fn options.reduceOptions.withFields - -```jsonnet -options.reduceOptions.withFields(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Which fields to show. By default this is only numeric fields -##### fn options.reduceOptions.withLimit - -```jsonnet -options.reduceOptions.withLimit(value) -``` - -PARAMETERS: - -* **value** (`number`) - -if showing all values limit -##### fn options.reduceOptions.withValues - -```jsonnet -options.reduceOptions.withValues(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true show each row value -#### obj options.text - - -##### fn options.text.withTitleSize - -```jsonnet -options.text.withTitleSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit title text size -##### fn options.text.withValueSize - -```jsonnet -options.text.withValueSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Explicit value text size -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stat/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/index.md deleted file mode 100644 index 86dd84357..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/index.md +++ /dev/null @@ -1,1085 +0,0 @@ -# stateTimeline - -grafonnet.panel.stateTimeline - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withFillOpacity(value=70)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineWidth(value=0)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withAlignValue(value)`](#fn-optionswithalignvalue) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withMergeValues(value=true)`](#fn-optionswithmergevalues) - * [`fn withRowHeight(value=0.9)`](#fn-optionswithrowheight) - * [`fn withShowValue(value)`](#fn-optionswithshowvalue) - * [`fn withTimezone(value)`](#fn-optionswithtimezone) - * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj timezone`](#obj-optionstimezone) - * [`fn withTimeZoneBrowser()`](#fn-optionstimezonewithtimezonebrowser) - * [`fn withTimeZoneUtc()`](#fn-optionstimezonewithtimezoneutc) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) - * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new stateTimeline panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.withFillOpacity(value=70) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `70` - - -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value=0) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `0` - - -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withAlignValue - -```jsonnet -options.withAlignValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"center"`, `"left"`, `"right"` - -Controls the value alignment in the TimelineChart component -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withMergeValues - -```jsonnet -options.withMergeValues(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Merge equal consecutive values -#### fn options.withRowHeight - -```jsonnet -options.withRowHeight(value=0.9) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0.9` - -Controls the row height -#### fn options.withShowValue - -```jsonnet -options.withShowValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"never"`, `"always"` - -TODO docs -#### fn options.withTimezone - -```jsonnet -options.withTimezone(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTimezoneMixin - -```jsonnet -options.withTimezoneMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.timezone - - -##### fn options.timezone.withTimeZoneBrowser - -```jsonnet -options.timezone.withTimeZoneBrowser() -``` - - -Use the timezone defined by end user web browser -##### fn options.timezone.withTimeZoneUtc - -```jsonnet -options.timezone.withTimeZoneUtc() -``` - - -Use UTC/GMT timezone -#### obj options.tooltip - - -##### fn options.tooltip.withMaxHeight - -```jsonnet -options.tooltip.withMaxHeight(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMaxWidth - -```jsonnet -options.tooltip.withMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/stateTimeline/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/index.md deleted file mode 100644 index e1ef08d95..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/index.md +++ /dev/null @@ -1,1072 +0,0 @@ -# statusHistory - -grafonnet.panel.statusHistory - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withFillOpacity(value=70)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLineWidth(value=1)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withColWidth(value=0.9)`](#fn-optionswithcolwidth) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withRowHeight(value=0.9)`](#fn-optionswithrowheight) - * [`fn withShowValue(value)`](#fn-optionswithshowvalue) - * [`fn withTimezone(value)`](#fn-optionswithtimezone) - * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj timezone`](#obj-optionstimezone) - * [`fn withTimeZoneBrowser()`](#fn-optionstimezonewithtimezonebrowser) - * [`fn withTimeZoneUtc()`](#fn-optionstimezonewithtimezoneutc) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) - * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new statusHistory panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.withFillOpacity(value=70) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `70` - - -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value=1) -``` - -PARAMETERS: - -* **value** (`integer`) - - default value: `1` - - -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withColWidth - -```jsonnet -options.withColWidth(value=0.9) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0.9` - -Controls the column width -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withRowHeight - -```jsonnet -options.withRowHeight(value=0.9) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0.9` - -Set the height of the rows -#### fn options.withShowValue - -```jsonnet -options.withShowValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"never"`, `"always"` - -TODO docs -#### fn options.withTimezone - -```jsonnet -options.withTimezone(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTimezoneMixin - -```jsonnet -options.withTimezoneMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.timezone - - -##### fn options.timezone.withTimeZoneBrowser - -```jsonnet -options.timezone.withTimeZoneBrowser() -``` - - -Use the timezone defined by end user web browser -##### fn options.timezone.withTimeZoneUtc - -```jsonnet -options.timezone.withTimeZoneUtc() -``` - - -Use UTC/GMT timezone -#### obj options.tooltip - - -##### fn options.tooltip.withMaxHeight - -```jsonnet -options.tooltip.withMaxHeight(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMaxWidth - -```jsonnet -options.tooltip.withMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/statusHistory/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/index.md deleted file mode 100644 index 4abb29f1f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/index.md +++ /dev/null @@ -1,1981 +0,0 @@ -# table - -grafonnet.panel.table - -## Subpackages - -* [options.sortBy](options/sortBy.md) -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAlign(value)`](#fn-fieldconfigdefaultscustomwithalign) - * [`fn withCellOptions(value)`](#fn-fieldconfigdefaultscustomwithcelloptions) - * [`fn withCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomwithcelloptionsmixin) - * [`fn withDisplayMode(value)`](#fn-fieldconfigdefaultscustomwithdisplaymode) - * [`fn withFilterable(value=true)`](#fn-fieldconfigdefaultscustomwithfilterable) - * [`fn withHidden(value=true)`](#fn-fieldconfigdefaultscustomwithhidden) - * [`fn withHideHeader(value=true)`](#fn-fieldconfigdefaultscustomwithhideheader) - * [`fn withInspect(value=true)`](#fn-fieldconfigdefaultscustomwithinspect) - * [`fn withMinWidth(value)`](#fn-fieldconfigdefaultscustomwithminwidth) - * [`fn withWidth(value)`](#fn-fieldconfigdefaultscustomwithwidth) - * [`obj cellOptions`](#obj-fieldconfigdefaultscustomcelloptions) - * [`fn withTableAutoCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtableautocelloptions) - * [`fn withTableAutoCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtableautocelloptionsmixin) - * [`fn withTableBarGaugeCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablebargaugecelloptions) - * [`fn withTableBarGaugeCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablebargaugecelloptionsmixin) - * [`fn withTableColorTextCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablecolortextcelloptions) - * [`fn withTableColorTextCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablecolortextcelloptionsmixin) - * [`fn withTableColoredBackgroundCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablecoloredbackgroundcelloptions) - * [`fn withTableColoredBackgroundCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablecoloredbackgroundcelloptionsmixin) - * [`fn withTableDataLinksCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtabledatalinkscelloptions) - * [`fn withTableDataLinksCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtabledatalinkscelloptionsmixin) - * [`fn withTableImageCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtableimagecelloptions) - * [`fn withTableImageCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtableimagecelloptionsmixin) - * [`fn withTableJsonViewCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablejsonviewcelloptions) - * [`fn withTableJsonViewCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablejsonviewcelloptionsmixin) - * [`fn withTableSparklineCellOptions(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablesparklinecelloptions) - * [`fn withTableSparklineCellOptionsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionswithtablesparklinecelloptionsmixin) - * [`obj TableAutoCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstableautocelloptions) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstableautocelloptionswithtype) - * [`obj TableBarGaugeCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablebargaugecelloptions) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablebargaugecelloptionswithmode) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablebargaugecelloptionswithtype) - * [`fn withValueDisplayMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablebargaugecelloptionswithvaluedisplaymode) - * [`obj TableColorTextCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablecolortextcelloptions) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablecolortextcelloptionswithtype) - * [`obj TableColoredBackgroundCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablecoloredbackgroundcelloptions) - * [`fn withApplyToRow(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablecoloredbackgroundcelloptionswithapplytorow) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablecoloredbackgroundcelloptionswithmode) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablecoloredbackgroundcelloptionswithtype) - * [`obj TableDataLinksCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstabledatalinkscelloptions) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstabledatalinkscelloptionswithtype) - * [`obj TableImageCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstableimagecelloptions) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstableimagecelloptionswithtype) - * [`obj TableJsonViewCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablejsonviewcelloptions) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablejsonviewcelloptionswithtype) - * [`obj TableSparklineCellOptions`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptions) - * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxisbordershow) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithaxiswidth) - * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithbaralignment) - * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithbarmaxwidth) - * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithbarwidthfactor) - * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithdrawstyle) - * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithfillbelowto) - * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithfillcolor) - * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithhidefrommixin) - * [`fn withHideValue(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithhidevalue) - * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlinecolor) - * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlineinterpolation) - * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlinestyle) - * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlinestylemixin) - * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithlinewidth) - * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithpointcolor) - * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithpointsize) - * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithpointsymbol) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithscaledistributionmixin) - * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithshowpoints) - * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithspannulls) - * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithspannullsmixin) - * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithstacking) - * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithstackingmixin) - * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswiththresholdsstyle) - * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswiththresholdsstylemixin) - * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithtransform) - * [`fn withType()`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionswithtype) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionshidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionshidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionshidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionshidefromwithviz) - * [`obj lineStyle`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionslinestyle) - * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionslinestylewithdash) - * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionslinestylewithdashmixin) - * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionslinestylewithfill) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsscaledistributionwithtype) - * [`obj stacking`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsstacking) - * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsstackingwithgroup) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsstackingwithmode) - * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsthresholdsstyle) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomcelloptionstablesparklinecelloptionsthresholdsstylewithmode) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withCellHeight(value)`](#fn-optionswithcellheight) - * [`fn withFooter(value)`](#fn-optionswithfooter) - * [`fn withFooterMixin(value)`](#fn-optionswithfootermixin) - * [`fn withFrameIndex(value=0)`](#fn-optionswithframeindex) - * [`fn withShowHeader(value=true)`](#fn-optionswithshowheader) - * [`fn withShowTypeIcons(value=true)`](#fn-optionswithshowtypeicons) - * [`fn withSortBy(value)`](#fn-optionswithsortby) - * [`fn withSortByMixin(value)`](#fn-optionswithsortbymixin) - * [`obj footer`](#obj-optionsfooter) - * [`fn withCountRows(value=true)`](#fn-optionsfooterwithcountrows) - * [`fn withEnablePagination(value=true)`](#fn-optionsfooterwithenablepagination) - * [`fn withFields(value)`](#fn-optionsfooterwithfields) - * [`fn withFieldsMixin(value)`](#fn-optionsfooterwithfieldsmixin) - * [`fn withReducer(value)`](#fn-optionsfooterwithreducer) - * [`fn withReducerMixin(value)`](#fn-optionsfooterwithreducermixin) - * [`fn withShow(value=true)`](#fn-optionsfooterwithshow) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new table panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAlign - -```jsonnet -fieldConfig.defaults.custom.withAlign(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"left"`, `"right"`, `"center"` - -TODO -- should not be table specific! -TODO docs -###### fn fieldConfig.defaults.custom.withCellOptions - -```jsonnet -fieldConfig.defaults.custom.withCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Table cell options. Each cell has a display mode -and other potential options for that display. -###### fn fieldConfig.defaults.custom.withCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.withCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Table cell options. Each cell has a display mode -and other potential options for that display. -###### fn fieldConfig.defaults.custom.withDisplayMode - -```jsonnet -fieldConfig.defaults.custom.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"color-text"`, `"color-background"`, `"color-background-solid"`, `"gradient-gauge"`, `"lcd-gauge"`, `"json-view"`, `"basic"`, `"image"`, `"gauge"`, `"sparkline"`, `"data-links"`, `"custom"` - -Internally, this is the "type" of cell that's being displayed -in the table such as colored text, JSON, gauge, etc. -The color-background-solid, gradient-gauge, and lcd-gauge -modes are deprecated in favor of new cell subOptions -###### fn fieldConfig.defaults.custom.withFilterable - -```jsonnet -fieldConfig.defaults.custom.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withHidden - -```jsonnet -fieldConfig.defaults.custom.withHidden(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -?? default is missing or false ?? -###### fn fieldConfig.defaults.custom.withHideHeader - -```jsonnet -fieldConfig.defaults.custom.withHideHeader(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Hides any header for a column, useful for columns that show some static content or buttons. -###### fn fieldConfig.defaults.custom.withInspect - -```jsonnet -fieldConfig.defaults.custom.withInspect(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withMinWidth - -```jsonnet -fieldConfig.defaults.custom.withMinWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withWidth - -```jsonnet -fieldConfig.defaults.custom.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### obj fieldConfig.defaults.custom.cellOptions - - -####### fn fieldConfig.defaults.custom.cellOptions.withTableAutoCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableAutoCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Auto mode table cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableAutoCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableAutoCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Auto mode table cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableBarGaugeCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableBarGaugeCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Gauge cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableBarGaugeCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableBarGaugeCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Gauge cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableColorTextCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableColorTextCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Colored text cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableColorTextCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableColorTextCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Colored text cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableColoredBackgroundCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableColoredBackgroundCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Colored background cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableColoredBackgroundCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableColoredBackgroundCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Colored background cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableDataLinksCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableDataLinksCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Show data links in the cell -####### fn fieldConfig.defaults.custom.cellOptions.withTableDataLinksCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableDataLinksCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Show data links in the cell -####### fn fieldConfig.defaults.custom.cellOptions.withTableImageCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableImageCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Json view cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableImageCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableImageCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Json view cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableJsonViewCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableJsonViewCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Json view cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableJsonViewCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableJsonViewCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Json view cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableSparklineCellOptions - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableSparklineCellOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Sparkline cell options -####### fn fieldConfig.defaults.custom.cellOptions.withTableSparklineCellOptionsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.withTableSparklineCellOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Sparkline cell options -####### obj fieldConfig.defaults.custom.cellOptions.TableAutoCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableAutoCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableAutoCellOptions.withType() -``` - - - -####### obj fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"basic"`, `"lcd"`, `"gradient"` - -Enum expressing the possible display modes -for the bar gauge component of Grafana UI -######## fn fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withType() -``` - - - -######## fn fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withValueDisplayMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableBarGaugeCellOptions.withValueDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"color"`, `"text"`, `"hidden"` - -Allows for the table cell gauge display type to set the gauge mode. -####### obj fieldConfig.defaults.custom.cellOptions.TableColorTextCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableColorTextCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableColorTextCellOptions.withType() -``` - - - -####### obj fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withApplyToRow - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withApplyToRow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -######## fn fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"basic"`, `"gradient"` - -Display mode to the "Colored Background" display -mode for table cells. Either displays a solid color (basic mode) -or a gradient. -######## fn fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableColoredBackgroundCellOptions.withType() -``` - - - -####### obj fieldConfig.defaults.custom.cellOptions.TableDataLinksCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableDataLinksCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableDataLinksCellOptions.withType() -``` - - - -####### obj fieldConfig.defaults.custom.cellOptions.TableImageCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableImageCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableImageCellOptions.withType() -``` - - - -####### obj fieldConfig.defaults.custom.cellOptions.TableJsonViewCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableJsonViewCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableJsonViewCellOptions.withType() -``` - - - -####### obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisBorderShow - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisBorderShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisCenteredZero - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisColorMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisGridShow - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisLabel - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisPlacement - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisSoftMax - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisSoftMin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisWidth - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarAlignment - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarAlignment(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `-1`, `0`, `1` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarMaxWidth - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarWidthFactor - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withBarWidthFactor(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withDrawStyle - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withDrawStyle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"line"`, `"bars"`, `"points"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillBelowTo - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillBelowTo(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillColor - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withFillOpacity(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withGradientMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withGradientMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideValue - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withHideValue(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineColor - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineInterpolation - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineInterpolation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"smooth"`, `"stepBefore"`, `"stepAfter"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineStyle - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineStyleMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withLineWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointColor - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointSize - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointSymbol - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withPointSymbol(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withShowPoints - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withShowPoints(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"never"`, `"always"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withSpanNulls - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withSpanNulls(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`number`) - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withSpanNullsMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withSpanNullsMixin(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`number`) - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withStacking - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withStacking(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withStackingMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withStackingMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withThresholdsStyle - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withThresholdsStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withThresholdsStyleMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withThresholdsStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withTransform - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withTransform(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"constant"`, `"negative-Y"` - -TODO docs -######## fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.withType() -``` - - - -######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withDash - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withDash(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withDashMixin - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withDashMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withFill - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.lineStyle.withFill(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` - - -######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking.withGroup - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking.withGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking.withMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.stacking.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"normal"`, `"percent"` - -TODO docs -######## obj fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.thresholdsStyle - - -######### fn fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.thresholdsStyle.withMode - -```jsonnet -fieldConfig.defaults.custom.cellOptions.TableSparklineCellOptions.thresholdsStyle.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"off"`, `"line"`, `"dashed"`, `"area"`, `"line+area"`, `"dashed+area"`, `"series"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withCellHeight - -```jsonnet -options.withCellHeight(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"sm"`, `"md"`, `"lg"` - -Height of a table cell -#### fn options.withFooter - -```jsonnet -options.withFooter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Footer options -#### fn options.withFooterMixin - -```jsonnet -options.withFooterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Footer options -#### fn options.withFrameIndex - -```jsonnet -options.withFrameIndex(value=0) -``` - -PARAMETERS: - -* **value** (`number`) - - default value: `0` - -Represents the index of the selected frame -#### fn options.withShowHeader - -```jsonnet -options.withShowHeader(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls whether the panel should show the header -#### fn options.withShowTypeIcons - -```jsonnet -options.withShowTypeIcons(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls whether the header should show icons for the column types -#### fn options.withSortBy - -```jsonnet -options.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Used to control row sorting -#### fn options.withSortByMixin - -```jsonnet -options.withSortByMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Used to control row sorting -#### obj options.footer - - -##### fn options.footer.withCountRows - -```jsonnet -options.footer.withCountRows(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.footer.withEnablePagination - -```jsonnet -options.footer.withEnablePagination(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.footer.withFields - -```jsonnet -options.footer.withFields(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.footer.withFieldsMixin - -```jsonnet -options.footer.withFieldsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.footer.withReducer - -```jsonnet -options.footer.withReducer(value) -``` - -PARAMETERS: - -* **value** (`array`) - -actually 1 value -##### fn options.footer.withReducerMixin - -```jsonnet -options.footer.withReducerMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -actually 1 value -##### fn options.footer.withShow - -```jsonnet -options.footer.withShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/options/sortBy.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/options/sortBy.md deleted file mode 100644 index 20748dc80..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/options/sortBy.md +++ /dev/null @@ -1,34 +0,0 @@ -# sortBy - - - -## Index - -* [`fn withDesc(value=true)`](#fn-withdesc) -* [`fn withDisplayName(value)`](#fn-withdisplayname) - -## Fields - -### fn withDesc - -```jsonnet -withDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Flag used to indicate descending sort order -### fn withDisplayName - -```jsonnet -withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Sets the display name of the field to sort by \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/table/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/index.md deleted file mode 100644 index 360f83b4b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/index.md +++ /dev/null @@ -1,740 +0,0 @@ -# text - -grafonnet.panel.text - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withCode(value)`](#fn-optionswithcode) - * [`fn withCodeMixin(value)`](#fn-optionswithcodemixin) - * [`fn withContent(value="# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)")`](#fn-optionswithcontent) - * [`fn withMode(value)`](#fn-optionswithmode) - * [`obj code`](#obj-optionscode) - * [`fn withLanguage(value)`](#fn-optionscodewithlanguage) - * [`fn withShowLineNumbers(value=true)`](#fn-optionscodewithshowlinenumbers) - * [`fn withShowMiniMap(value=true)`](#fn-optionscodewithshowminimap) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new text panel with a title. -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withCode - -```jsonnet -options.withCode(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withCodeMixin - -```jsonnet -options.withCodeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn options.withContent - -```jsonnet -options.withContent(value="# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)"` - - -#### fn options.withMode - -```jsonnet -options.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"html"`, `"markdown"`, `"code"` - - -#### obj options.code - - -##### fn options.code.withLanguage - -```jsonnet -options.code.withLanguage(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"json"`, `"yaml"`, `"xml"`, `"typescript"`, `"sql"`, `"go"`, `"markdown"`, `"html"`, `"plaintext"` - - -##### fn options.code.withShowLineNumbers - -```jsonnet -options.code.withShowLineNumbers(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.code.withShowMiniMap - -```jsonnet -options.code.withShowMiniMap(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/text/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/index.md deleted file mode 100644 index f3961b6e9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/index.md +++ /dev/null @@ -1,1607 +0,0 @@ -# timeSeries - -grafonnet.panel.timeSeries - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisbordershow) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomwithbaralignment) - * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomwithbarmaxwidth) - * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomwithbarwidthfactor) - * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomwithdrawstyle) - * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomwithfillbelowto) - * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomwithfillcolor) - * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withInsertNulls(value)`](#fn-fieldconfigdefaultscustomwithinsertnulls) - * [`fn withInsertNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithinsertnullsmixin) - * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) - * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomwithlineinterpolation) - * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) - * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) - * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) - * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) - * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomwithpointsymbol) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomwithshowpoints) - * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomwithspannulls) - * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithspannullsmixin) - * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) - * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) - * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) - * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) - * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomwithtransform) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) - * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) - * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) - * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) - * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) - * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) - * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withOrientation(value)`](#fn-optionswithorientation) - * [`fn withTimezone(value)`](#fn-optionswithtimezone) - * [`fn withTimezoneMixin(value)`](#fn-optionswithtimezonemixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj timezone`](#obj-optionstimezone) - * [`fn withTimeZoneBrowser()`](#fn-optionstimezonewithtimezonebrowser) - * [`fn withTimeZoneUtc()`](#fn-optionstimezonewithtimezoneutc) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) - * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new timeSeries panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisBorderShow - -```jsonnet -fieldConfig.defaults.custom.withAxisBorderShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```jsonnet -fieldConfig.defaults.custom.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```jsonnet -fieldConfig.defaults.custom.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```jsonnet -fieldConfig.defaults.custom.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```jsonnet -fieldConfig.defaults.custom.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```jsonnet -fieldConfig.defaults.custom.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```jsonnet -fieldConfig.defaults.custom.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withBarAlignment - -```jsonnet -fieldConfig.defaults.custom.withBarAlignment(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `-1`, `0`, `1` - -TODO docs -###### fn fieldConfig.defaults.custom.withBarMaxWidth - -```jsonnet -fieldConfig.defaults.custom.withBarMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withBarWidthFactor - -```jsonnet -fieldConfig.defaults.custom.withBarWidthFactor(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withDrawStyle - -```jsonnet -fieldConfig.defaults.custom.withDrawStyle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"line"`, `"bars"`, `"points"` - -TODO docs -###### fn fieldConfig.defaults.custom.withFillBelowTo - -```jsonnet -fieldConfig.defaults.custom.withFillBelowTo(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withFillColor - -```jsonnet -fieldConfig.defaults.custom.withFillColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.withFillOpacity(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withGradientMode - -```jsonnet -fieldConfig.defaults.custom.withGradientMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withInsertNulls - -```jsonnet -fieldConfig.defaults.custom.withInsertNulls(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`integer`) - - -###### fn fieldConfig.defaults.custom.withInsertNullsMixin - -```jsonnet -fieldConfig.defaults.custom.withInsertNullsMixin(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`integer`) - - -###### fn fieldConfig.defaults.custom.withLineColor - -```jsonnet -fieldConfig.defaults.custom.withLineColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withLineInterpolation - -```jsonnet -fieldConfig.defaults.custom.withLineInterpolation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"smooth"`, `"stepBefore"`, `"stepAfter"` - -TODO docs -###### fn fieldConfig.defaults.custom.withLineStyle - -```jsonnet -fieldConfig.defaults.custom.withLineStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineStyleMixin - -```jsonnet -fieldConfig.defaults.custom.withLineStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withPointColor - -```jsonnet -fieldConfig.defaults.custom.withPointColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withPointSize - -```jsonnet -fieldConfig.defaults.custom.withPointSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withPointSymbol - -```jsonnet -fieldConfig.defaults.custom.withPointSymbol(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withShowPoints - -```jsonnet -fieldConfig.defaults.custom.withShowPoints(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"never"`, `"always"` - -TODO docs -###### fn fieldConfig.defaults.custom.withSpanNulls - -```jsonnet -fieldConfig.defaults.custom.withSpanNulls(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`number`) - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds -###### fn fieldConfig.defaults.custom.withSpanNullsMixin - -```jsonnet -fieldConfig.defaults.custom.withSpanNullsMixin(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`number`) - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds -###### fn fieldConfig.defaults.custom.withStacking - -```jsonnet -fieldConfig.defaults.custom.withStacking(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withStackingMixin - -```jsonnet -fieldConfig.defaults.custom.withStackingMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyle - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withTransform - -```jsonnet -fieldConfig.defaults.custom.withTransform(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"constant"`, `"negative-Y"` - -TODO docs -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### obj fieldConfig.defaults.custom.lineStyle - - -####### fn fieldConfig.defaults.custom.lineStyle.withDash - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withDash(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withDashMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn fieldConfig.defaults.custom.lineStyle.withFill - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withFill(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -###### obj fieldConfig.defaults.custom.stacking - - -####### fn fieldConfig.defaults.custom.stacking.withGroup - -```jsonnet -fieldConfig.defaults.custom.stacking.withGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -####### fn fieldConfig.defaults.custom.stacking.withMode - -```jsonnet -fieldConfig.defaults.custom.stacking.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"normal"`, `"percent"` - -TODO docs -###### obj fieldConfig.defaults.custom.thresholdsStyle - - -####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode - -```jsonnet -fieldConfig.defaults.custom.thresholdsStyle.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"off"`, `"line"`, `"dashed"`, `"area"`, `"line+area"`, `"dashed+area"`, `"series"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withOrientation - -```jsonnet -options.withOrientation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"vertical"`, `"horizontal"` - -TODO docs -#### fn options.withTimezone - -```jsonnet -options.withTimezone(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTimezoneMixin - -```jsonnet -options.withTimezoneMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.timezone - - -##### fn options.timezone.withTimeZoneBrowser - -```jsonnet -options.timezone.withTimeZoneBrowser() -``` - - -Use the timezone defined by end user web browser -##### fn options.timezone.withTimeZoneUtc - -```jsonnet -options.timezone.withTimeZoneUtc() -``` - - -Use UTC/GMT timezone -#### obj options.tooltip - - -##### fn options.tooltip.withMaxHeight - -```jsonnet -options.tooltip.withMaxHeight(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMaxWidth - -```jsonnet -options.tooltip.withMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/timeSeries/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/index.md deleted file mode 100644 index 01db8500d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/index.md +++ /dev/null @@ -1,1560 +0,0 @@ -# trend - -grafonnet.panel.trend - -## Subpackages - -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisbordershow) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withBarAlignment(value)`](#fn-fieldconfigdefaultscustomwithbaralignment) - * [`fn withBarMaxWidth(value)`](#fn-fieldconfigdefaultscustomwithbarmaxwidth) - * [`fn withBarWidthFactor(value)`](#fn-fieldconfigdefaultscustomwithbarwidthfactor) - * [`fn withDrawStyle(value)`](#fn-fieldconfigdefaultscustomwithdrawstyle) - * [`fn withFillBelowTo(value)`](#fn-fieldconfigdefaultscustomwithfillbelowto) - * [`fn withFillColor(value)`](#fn-fieldconfigdefaultscustomwithfillcolor) - * [`fn withFillOpacity(value)`](#fn-fieldconfigdefaultscustomwithfillopacity) - * [`fn withGradientMode(value)`](#fn-fieldconfigdefaultscustomwithgradientmode) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withInsertNulls(value)`](#fn-fieldconfigdefaultscustomwithinsertnulls) - * [`fn withInsertNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithinsertnullsmixin) - * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) - * [`fn withLineInterpolation(value)`](#fn-fieldconfigdefaultscustomwithlineinterpolation) - * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) - * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) - * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) - * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) - * [`fn withPointSymbol(value)`](#fn-fieldconfigdefaultscustomwithpointsymbol) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`fn withShowPoints(value)`](#fn-fieldconfigdefaultscustomwithshowpoints) - * [`fn withSpanNulls(value)`](#fn-fieldconfigdefaultscustomwithspannulls) - * [`fn withSpanNullsMixin(value)`](#fn-fieldconfigdefaultscustomwithspannullsmixin) - * [`fn withStacking(value)`](#fn-fieldconfigdefaultscustomwithstacking) - * [`fn withStackingMixin(value)`](#fn-fieldconfigdefaultscustomwithstackingmixin) - * [`fn withThresholdsStyle(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstyle) - * [`fn withThresholdsStyleMixin(value)`](#fn-fieldconfigdefaultscustomwiththresholdsstylemixin) - * [`fn withTransform(value)`](#fn-fieldconfigdefaultscustomwithtransform) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) - * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) - * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) - * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) - * [`obj stacking`](#obj-fieldconfigdefaultscustomstacking) - * [`fn withGroup(value)`](#fn-fieldconfigdefaultscustomstackingwithgroup) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomstackingwithmode) - * [`obj thresholdsStyle`](#obj-fieldconfigdefaultscustomthresholdsstyle) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomthresholdsstylewithmode) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`fn withXField(value)`](#fn-optionswithxfield) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) - * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new trend panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisBorderShow - -```jsonnet -fieldConfig.defaults.custom.withAxisBorderShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```jsonnet -fieldConfig.defaults.custom.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```jsonnet -fieldConfig.defaults.custom.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```jsonnet -fieldConfig.defaults.custom.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```jsonnet -fieldConfig.defaults.custom.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```jsonnet -fieldConfig.defaults.custom.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```jsonnet -fieldConfig.defaults.custom.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withBarAlignment - -```jsonnet -fieldConfig.defaults.custom.withBarAlignment(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `-1`, `0`, `1` - -TODO docs -###### fn fieldConfig.defaults.custom.withBarMaxWidth - -```jsonnet -fieldConfig.defaults.custom.withBarMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withBarWidthFactor - -```jsonnet -fieldConfig.defaults.custom.withBarWidthFactor(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withDrawStyle - -```jsonnet -fieldConfig.defaults.custom.withDrawStyle(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"line"`, `"bars"`, `"points"` - -TODO docs -###### fn fieldConfig.defaults.custom.withFillBelowTo - -```jsonnet -fieldConfig.defaults.custom.withFillBelowTo(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withFillColor - -```jsonnet -fieldConfig.defaults.custom.withFillColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withFillOpacity - -```jsonnet -fieldConfig.defaults.custom.withFillOpacity(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withGradientMode - -```jsonnet -fieldConfig.defaults.custom.withGradientMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"opacity"`, `"hue"`, `"scheme"` - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withInsertNulls - -```jsonnet -fieldConfig.defaults.custom.withInsertNulls(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`integer`) - - -###### fn fieldConfig.defaults.custom.withInsertNullsMixin - -```jsonnet -fieldConfig.defaults.custom.withInsertNullsMixin(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`integer`) - - -###### fn fieldConfig.defaults.custom.withLineColor - -```jsonnet -fieldConfig.defaults.custom.withLineColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withLineInterpolation - -```jsonnet -fieldConfig.defaults.custom.withLineInterpolation(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"smooth"`, `"stepBefore"`, `"stepAfter"` - -TODO docs -###### fn fieldConfig.defaults.custom.withLineStyle - -```jsonnet -fieldConfig.defaults.custom.withLineStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineStyleMixin - -```jsonnet -fieldConfig.defaults.custom.withLineStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withPointColor - -```jsonnet -fieldConfig.defaults.custom.withPointColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withPointSize - -```jsonnet -fieldConfig.defaults.custom.withPointSize(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withPointSymbol - -```jsonnet -fieldConfig.defaults.custom.withPointSymbol(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withShowPoints - -```jsonnet -fieldConfig.defaults.custom.withShowPoints(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"never"`, `"always"` - -TODO docs -###### fn fieldConfig.defaults.custom.withSpanNulls - -```jsonnet -fieldConfig.defaults.custom.withSpanNulls(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`number`) - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds -###### fn fieldConfig.defaults.custom.withSpanNullsMixin - -```jsonnet -fieldConfig.defaults.custom.withSpanNullsMixin(value) -``` - -PARAMETERS: - -* **value** (`boolean`,`number`) - -Indicate if null values should be treated as gaps or connected. -When the value is a number, it represents the maximum delta in the -X axis that should be considered connected. For timeseries, this is milliseconds -###### fn fieldConfig.defaults.custom.withStacking - -```jsonnet -fieldConfig.defaults.custom.withStacking(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withStackingMixin - -```jsonnet -fieldConfig.defaults.custom.withStackingMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyle - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withThresholdsStyleMixin - -```jsonnet -fieldConfig.defaults.custom.withThresholdsStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withTransform - -```jsonnet -fieldConfig.defaults.custom.withTransform(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"constant"`, `"negative-Y"` - -TODO docs -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### obj fieldConfig.defaults.custom.lineStyle - - -####### fn fieldConfig.defaults.custom.lineStyle.withDash - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withDash(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withDashMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn fieldConfig.defaults.custom.lineStyle.withFill - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withFill(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -###### obj fieldConfig.defaults.custom.stacking - - -####### fn fieldConfig.defaults.custom.stacking.withGroup - -```jsonnet -fieldConfig.defaults.custom.stacking.withGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -####### fn fieldConfig.defaults.custom.stacking.withMode - -```jsonnet -fieldConfig.defaults.custom.stacking.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"normal"`, `"percent"` - -TODO docs -###### obj fieldConfig.defaults.custom.thresholdsStyle - - -####### fn fieldConfig.defaults.custom.thresholdsStyle.withMode - -```jsonnet -fieldConfig.defaults.custom.thresholdsStyle.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"off"`, `"line"`, `"dashed"`, `"area"`, `"line+area"`, `"dashed+area"`, `"series"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withXField - -```jsonnet -options.withXField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the x field to use (defaults to first number) -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.tooltip - - -##### fn options.tooltip.withMaxHeight - -```jsonnet -options.tooltip.withMaxHeight(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMaxWidth - -```jsonnet -options.tooltip.withMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/trend/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/index.md deleted file mode 100644 index 40bc0dc97..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/index.md +++ /dev/null @@ -1,1614 +0,0 @@ -# xyChart - -grafonnet.panel.xyChart - -## Subpackages - -* [options.series](options/series.md) -* [panelOptions.link](panelOptions/link.md) -* [queryOptions.transformation](queryOptions/transformation.md) -* [standardOptions.mapping](standardOptions/mapping.md) -* [standardOptions.override](standardOptions/override.md) -* [standardOptions.threshold.step](standardOptions/threshold/step.md) - -## Index - -* [`fn new(title)`](#fn-new) -* [`obj fieldConfig`](#obj-fieldconfig) - * [`obj defaults`](#obj-fieldconfigdefaults) - * [`obj custom`](#obj-fieldconfigdefaultscustom) - * [`fn withAxisBorderShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisbordershow) - * [`fn withAxisCenteredZero(value=true)`](#fn-fieldconfigdefaultscustomwithaxiscenteredzero) - * [`fn withAxisColorMode(value)`](#fn-fieldconfigdefaultscustomwithaxiscolormode) - * [`fn withAxisGridShow(value=true)`](#fn-fieldconfigdefaultscustomwithaxisgridshow) - * [`fn withAxisLabel(value)`](#fn-fieldconfigdefaultscustomwithaxislabel) - * [`fn withAxisPlacement(value)`](#fn-fieldconfigdefaultscustomwithaxisplacement) - * [`fn withAxisSoftMax(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmax) - * [`fn withAxisSoftMin(value)`](#fn-fieldconfigdefaultscustomwithaxissoftmin) - * [`fn withAxisWidth(value)`](#fn-fieldconfigdefaultscustomwithaxiswidth) - * [`fn withHideFrom(value)`](#fn-fieldconfigdefaultscustomwithhidefrom) - * [`fn withHideFromMixin(value)`](#fn-fieldconfigdefaultscustomwithhidefrommixin) - * [`fn withLabel(value)`](#fn-fieldconfigdefaultscustomwithlabel) - * [`fn withLabelValue(value)`](#fn-fieldconfigdefaultscustomwithlabelvalue) - * [`fn withLabelValueMixin(value)`](#fn-fieldconfigdefaultscustomwithlabelvaluemixin) - * [`fn withLineColor(value)`](#fn-fieldconfigdefaultscustomwithlinecolor) - * [`fn withLineColorMixin(value)`](#fn-fieldconfigdefaultscustomwithlinecolormixin) - * [`fn withLineStyle(value)`](#fn-fieldconfigdefaultscustomwithlinestyle) - * [`fn withLineStyleMixin(value)`](#fn-fieldconfigdefaultscustomwithlinestylemixin) - * [`fn withLineWidth(value)`](#fn-fieldconfigdefaultscustomwithlinewidth) - * [`fn withPointColor(value)`](#fn-fieldconfigdefaultscustomwithpointcolor) - * [`fn withPointColorMixin(value)`](#fn-fieldconfigdefaultscustomwithpointcolormixin) - * [`fn withPointSize(value)`](#fn-fieldconfigdefaultscustomwithpointsize) - * [`fn withPointSizeMixin(value)`](#fn-fieldconfigdefaultscustomwithpointsizemixin) - * [`fn withScaleDistribution(value)`](#fn-fieldconfigdefaultscustomwithscaledistribution) - * [`fn withScaleDistributionMixin(value)`](#fn-fieldconfigdefaultscustomwithscaledistributionmixin) - * [`fn withShow(value)`](#fn-fieldconfigdefaultscustomwithshow) - * [`obj hideFrom`](#obj-fieldconfigdefaultscustomhidefrom) - * [`fn withLegend(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-fieldconfigdefaultscustomhidefromwithviz) - * [`obj labelValue`](#obj-fieldconfigdefaultscustomlabelvalue) - * [`fn withField(value)`](#fn-fieldconfigdefaultscustomlabelvaluewithfield) - * [`fn withFixed(value)`](#fn-fieldconfigdefaultscustomlabelvaluewithfixed) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustomlabelvaluewithmode) - * [`obj lineColor`](#obj-fieldconfigdefaultscustomlinecolor) - * [`fn withField(value)`](#fn-fieldconfigdefaultscustomlinecolorwithfield) - * [`fn withFixed(value)`](#fn-fieldconfigdefaultscustomlinecolorwithfixed) - * [`obj lineStyle`](#obj-fieldconfigdefaultscustomlinestyle) - * [`fn withDash(value)`](#fn-fieldconfigdefaultscustomlinestylewithdash) - * [`fn withDashMixin(value)`](#fn-fieldconfigdefaultscustomlinestylewithdashmixin) - * [`fn withFill(value)`](#fn-fieldconfigdefaultscustomlinestylewithfill) - * [`obj pointColor`](#obj-fieldconfigdefaultscustompointcolor) - * [`fn withField(value)`](#fn-fieldconfigdefaultscustompointcolorwithfield) - * [`fn withFixed(value)`](#fn-fieldconfigdefaultscustompointcolorwithfixed) - * [`obj pointSize`](#obj-fieldconfigdefaultscustompointsize) - * [`fn withField(value)`](#fn-fieldconfigdefaultscustompointsizewithfield) - * [`fn withFixed(value)`](#fn-fieldconfigdefaultscustompointsizewithfixed) - * [`fn withMax(value)`](#fn-fieldconfigdefaultscustompointsizewithmax) - * [`fn withMin(value)`](#fn-fieldconfigdefaultscustompointsizewithmin) - * [`fn withMode(value)`](#fn-fieldconfigdefaultscustompointsizewithmode) - * [`obj scaleDistribution`](#obj-fieldconfigdefaultscustomscaledistribution) - * [`fn withLinearThreshold(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithlog) - * [`fn withType(value)`](#fn-fieldconfigdefaultscustomscaledistributionwithtype) -* [`obj libraryPanel`](#obj-librarypanel) - * [`fn withName(value)`](#fn-librarypanelwithname) - * [`fn withUid(value)`](#fn-librarypanelwithuid) -* [`obj options`](#obj-options) - * [`fn withDims(value)`](#fn-optionswithdims) - * [`fn withDimsMixin(value)`](#fn-optionswithdimsmixin) - * [`fn withLegend(value)`](#fn-optionswithlegend) - * [`fn withLegendMixin(value)`](#fn-optionswithlegendmixin) - * [`fn withSeries(value)`](#fn-optionswithseries) - * [`fn withSeriesMapping(value)`](#fn-optionswithseriesmapping) - * [`fn withSeriesMixin(value)`](#fn-optionswithseriesmixin) - * [`fn withTooltip(value)`](#fn-optionswithtooltip) - * [`fn withTooltipMixin(value)`](#fn-optionswithtooltipmixin) - * [`obj dims`](#obj-optionsdims) - * [`fn withExclude(value)`](#fn-optionsdimswithexclude) - * [`fn withExcludeMixin(value)`](#fn-optionsdimswithexcludemixin) - * [`fn withFrame(value)`](#fn-optionsdimswithframe) - * [`fn withX(value)`](#fn-optionsdimswithx) - * [`obj legend`](#obj-optionslegend) - * [`fn withAsTable(value=true)`](#fn-optionslegendwithastable) - * [`fn withCalcs(value=[])`](#fn-optionslegendwithcalcs) - * [`fn withCalcsMixin(value=[])`](#fn-optionslegendwithcalcsmixin) - * [`fn withDisplayMode(value)`](#fn-optionslegendwithdisplaymode) - * [`fn withIsVisible(value=true)`](#fn-optionslegendwithisvisible) - * [`fn withPlacement(value)`](#fn-optionslegendwithplacement) - * [`fn withShowLegend(value=true)`](#fn-optionslegendwithshowlegend) - * [`fn withSortBy(value)`](#fn-optionslegendwithsortby) - * [`fn withSortDesc(value=true)`](#fn-optionslegendwithsortdesc) - * [`fn withWidth(value)`](#fn-optionslegendwithwidth) - * [`obj tooltip`](#obj-optionstooltip) - * [`fn withMaxHeight(value)`](#fn-optionstooltipwithmaxheight) - * [`fn withMaxWidth(value)`](#fn-optionstooltipwithmaxwidth) - * [`fn withMode(value)`](#fn-optionstooltipwithmode) - * [`fn withSort(value)`](#fn-optionstooltipwithsort) -* [`obj panelOptions`](#obj-paneloptions) - * [`fn withDescription(value)`](#fn-paneloptionswithdescription) - * [`fn withGridPos(h="null", w="null", x="null", y="null")`](#fn-paneloptionswithgridpos) - * [`fn withLinks(value)`](#fn-paneloptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-paneloptionswithlinksmixin) - * [`fn withMaxPerRow(value)`](#fn-paneloptionswithmaxperrow) - * [`fn withRepeat(value)`](#fn-paneloptionswithrepeat) - * [`fn withRepeatDirection(value="h")`](#fn-paneloptionswithrepeatdirection) - * [`fn withTitle(value)`](#fn-paneloptionswithtitle) - * [`fn withTransparent(value=true)`](#fn-paneloptionswithtransparent) -* [`obj queryOptions`](#obj-queryoptions) - * [`fn withDatasource(type, uid)`](#fn-queryoptionswithdatasource) - * [`fn withDatasourceMixin(value)`](#fn-queryoptionswithdatasourcemixin) - * [`fn withHideTimeOverride(value=true)`](#fn-queryoptionswithhidetimeoverride) - * [`fn withInterval(value)`](#fn-queryoptionswithinterval) - * [`fn withMaxDataPoints(value)`](#fn-queryoptionswithmaxdatapoints) - * [`fn withQueryCachingTTL(value)`](#fn-queryoptionswithquerycachingttl) - * [`fn withTargets(value)`](#fn-queryoptionswithtargets) - * [`fn withTargetsMixin(value)`](#fn-queryoptionswithtargetsmixin) - * [`fn withTimeFrom(value)`](#fn-queryoptionswithtimefrom) - * [`fn withTimeShift(value)`](#fn-queryoptionswithtimeshift) - * [`fn withTransformations(value)`](#fn-queryoptionswithtransformations) - * [`fn withTransformationsMixin(value)`](#fn-queryoptionswithtransformationsmixin) -* [`obj standardOptions`](#obj-standardoptions) - * [`fn withDecimals(value)`](#fn-standardoptionswithdecimals) - * [`fn withDisplayName(value)`](#fn-standardoptionswithdisplayname) - * [`fn withFilterable(value=true)`](#fn-standardoptionswithfilterable) - * [`fn withLinks(value)`](#fn-standardoptionswithlinks) - * [`fn withLinksMixin(value)`](#fn-standardoptionswithlinksmixin) - * [`fn withMappings(value)`](#fn-standardoptionswithmappings) - * [`fn withMappingsMixin(value)`](#fn-standardoptionswithmappingsmixin) - * [`fn withMax(value)`](#fn-standardoptionswithmax) - * [`fn withMin(value)`](#fn-standardoptionswithmin) - * [`fn withNoValue(value)`](#fn-standardoptionswithnovalue) - * [`fn withOverrides(value)`](#fn-standardoptionswithoverrides) - * [`fn withOverridesMixin(value)`](#fn-standardoptionswithoverridesmixin) - * [`fn withPath(value)`](#fn-standardoptionswithpath) - * [`fn withUnit(value)`](#fn-standardoptionswithunit) - * [`obj color`](#obj-standardoptionscolor) - * [`fn withFixedColor(value)`](#fn-standardoptionscolorwithfixedcolor) - * [`fn withMode(value)`](#fn-standardoptionscolorwithmode) - * [`fn withSeriesBy(value)`](#fn-standardoptionscolorwithseriesby) - * [`obj thresholds`](#obj-standardoptionsthresholds) - * [`fn withMode(value)`](#fn-standardoptionsthresholdswithmode) - * [`fn withSteps(value)`](#fn-standardoptionsthresholdswithsteps) - * [`fn withStepsMixin(value)`](#fn-standardoptionsthresholdswithstepsmixin) - -## Fields - -### fn new - -```jsonnet -new(title) -``` - -PARAMETERS: - -* **title** (`string`) - -Creates a new xyChart panel with a title. -### obj fieldConfig - - -#### obj fieldConfig.defaults - - -##### obj fieldConfig.defaults.custom - - -###### fn fieldConfig.defaults.custom.withAxisBorderShow - -```jsonnet -fieldConfig.defaults.custom.withAxisBorderShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisCenteredZero - -```jsonnet -fieldConfig.defaults.custom.withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisColorMode - -```jsonnet -fieldConfig.defaults.custom.withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisGridShow - -```jsonnet -fieldConfig.defaults.custom.withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### fn fieldConfig.defaults.custom.withAxisLabel - -```jsonnet -fieldConfig.defaults.custom.withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn fieldConfig.defaults.custom.withAxisPlacement - -```jsonnet -fieldConfig.defaults.custom.withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -###### fn fieldConfig.defaults.custom.withAxisSoftMax - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisSoftMin - -```jsonnet -fieldConfig.defaults.custom.withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withAxisWidth - -```jsonnet -fieldConfig.defaults.custom.withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -###### fn fieldConfig.defaults.custom.withHideFrom - -```jsonnet -fieldConfig.defaults.custom.withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withHideFromMixin - -```jsonnet -fieldConfig.defaults.custom.withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLabel - -```jsonnet -fieldConfig.defaults.custom.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"never"`, `"always"` - -TODO docs -###### fn fieldConfig.defaults.custom.withLabelValue - -```jsonnet -fieldConfig.defaults.custom.withLabelValue(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn fieldConfig.defaults.custom.withLabelValueMixin - -```jsonnet -fieldConfig.defaults.custom.withLabelValueMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn fieldConfig.defaults.custom.withLineColor - -```jsonnet -fieldConfig.defaults.custom.withLineColor(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn fieldConfig.defaults.custom.withLineColorMixin - -```jsonnet -fieldConfig.defaults.custom.withLineColorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn fieldConfig.defaults.custom.withLineStyle - -```jsonnet -fieldConfig.defaults.custom.withLineStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineStyleMixin - -```jsonnet -fieldConfig.defaults.custom.withLineStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withLineWidth - -```jsonnet -fieldConfig.defaults.custom.withLineWidth(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -###### fn fieldConfig.defaults.custom.withPointColor - -```jsonnet -fieldConfig.defaults.custom.withPointColor(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn fieldConfig.defaults.custom.withPointColorMixin - -```jsonnet -fieldConfig.defaults.custom.withPointColorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn fieldConfig.defaults.custom.withPointSize - -```jsonnet -fieldConfig.defaults.custom.withPointSize(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn fieldConfig.defaults.custom.withPointSizeMixin - -```jsonnet -fieldConfig.defaults.custom.withPointSizeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn fieldConfig.defaults.custom.withScaleDistribution - -```jsonnet -fieldConfig.defaults.custom.withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withScaleDistributionMixin - -```jsonnet -fieldConfig.defaults.custom.withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -###### fn fieldConfig.defaults.custom.withShow - -```jsonnet -fieldConfig.defaults.custom.withShow(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"points"`, `"lines"`, `"points+lines"` - - -###### obj fieldConfig.defaults.custom.hideFrom - - -####### fn fieldConfig.defaults.custom.hideFrom.withLegend - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withTooltip - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -####### fn fieldConfig.defaults.custom.hideFrom.withViz - -```jsonnet -fieldConfig.defaults.custom.hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -###### obj fieldConfig.defaults.custom.labelValue - - -####### fn fieldConfig.defaults.custom.labelValue.withField - -```jsonnet -fieldConfig.defaults.custom.labelValue.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -####### fn fieldConfig.defaults.custom.labelValue.withFixed - -```jsonnet -fieldConfig.defaults.custom.labelValue.withFixed(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -####### fn fieldConfig.defaults.custom.labelValue.withMode - -```jsonnet -fieldConfig.defaults.custom.labelValue.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"fixed"`, `"field"`, `"template"` - - -###### obj fieldConfig.defaults.custom.lineColor - - -####### fn fieldConfig.defaults.custom.lineColor.withField - -```jsonnet -fieldConfig.defaults.custom.lineColor.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -####### fn fieldConfig.defaults.custom.lineColor.withFixed - -```jsonnet -fieldConfig.defaults.custom.lineColor.withFixed(value) -``` - -PARAMETERS: - -* **value** (`string`) - -color value -###### obj fieldConfig.defaults.custom.lineStyle - - -####### fn fieldConfig.defaults.custom.lineStyle.withDash - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withDash(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn fieldConfig.defaults.custom.lineStyle.withDashMixin - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withDashMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn fieldConfig.defaults.custom.lineStyle.withFill - -```jsonnet -fieldConfig.defaults.custom.lineStyle.withFill(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` - - -###### obj fieldConfig.defaults.custom.pointColor - - -####### fn fieldConfig.defaults.custom.pointColor.withField - -```jsonnet -fieldConfig.defaults.custom.pointColor.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -####### fn fieldConfig.defaults.custom.pointColor.withFixed - -```jsonnet -fieldConfig.defaults.custom.pointColor.withFixed(value) -``` - -PARAMETERS: - -* **value** (`string`) - -color value -###### obj fieldConfig.defaults.custom.pointSize - - -####### fn fieldConfig.defaults.custom.pointSize.withField - -```jsonnet -fieldConfig.defaults.custom.pointSize.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -####### fn fieldConfig.defaults.custom.pointSize.withFixed - -```jsonnet -fieldConfig.defaults.custom.pointSize.withFixed(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.pointSize.withMax - -```jsonnet -fieldConfig.defaults.custom.pointSize.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.pointSize.withMin - -```jsonnet -fieldConfig.defaults.custom.pointSize.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.pointSize.withMode - -```jsonnet -fieldConfig.defaults.custom.pointSize.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"quad"` - - -###### obj fieldConfig.defaults.custom.scaleDistribution - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withLog - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -####### fn fieldConfig.defaults.custom.scaleDistribution.withType - -```jsonnet -fieldConfig.defaults.custom.scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs -### obj libraryPanel - - -#### fn libraryPanel.withName - -```jsonnet -libraryPanel.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel name -#### fn libraryPanel.withUid - -```jsonnet -libraryPanel.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Library panel uid -### obj options - - -#### fn options.withDims - -```jsonnet -options.withDims(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Configuration for the Table/Auto mode -#### fn options.withDimsMixin - -```jsonnet -options.withDimsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Configuration for the Table/Auto mode -#### fn options.withLegend - -```jsonnet -options.withLegend(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withLegendMixin - -```jsonnet -options.withLegendMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withSeries - -```jsonnet -options.withSeries(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Manual Mode -#### fn options.withSeriesMapping - -```jsonnet -options.withSeriesMapping(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"manual"` - -Auto is "table" in the UI -#### fn options.withSeriesMixin - -```jsonnet -options.withSeriesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Manual Mode -#### fn options.withTooltip - -```jsonnet -options.withTooltip(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### fn options.withTooltipMixin - -```jsonnet -options.withTooltipMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -#### obj options.dims - - -##### fn options.dims.withExclude - -```jsonnet -options.dims.withExclude(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.dims.withExcludeMixin - -```jsonnet -options.dims.withExcludeMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn options.dims.withFrame - -```jsonnet -options.dims.withFrame(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -##### fn options.dims.withX - -```jsonnet -options.dims.withX(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj options.legend - - -##### fn options.legend.withAsTable - -```jsonnet -options.legend.withAsTable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withCalcs - -```jsonnet -options.legend.withCalcs(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withCalcsMixin - -```jsonnet -options.legend.withCalcsMixin(value=[]) -``` - -PARAMETERS: - -* **value** (`array`) - - default value: `[]` - - -##### fn options.legend.withDisplayMode - -```jsonnet -options.legend.withDisplayMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"list"`, `"table"`, `"hidden"` - -TODO docs -Note: "hidden" needs to remain as an option for plugins compatibility -##### fn options.legend.withIsVisible - -```jsonnet -options.legend.withIsVisible(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withPlacement - -```jsonnet -options.legend.withPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"bottom"`, `"right"` - -TODO docs -##### fn options.legend.withShowLegend - -```jsonnet -options.legend.withShowLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withSortBy - -```jsonnet -options.legend.withSortBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn options.legend.withSortDesc - -```jsonnet -options.legend.withSortDesc(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn options.legend.withWidth - -```jsonnet -options.legend.withWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### obj options.tooltip - - -##### fn options.tooltip.withMaxHeight - -```jsonnet -options.tooltip.withMaxHeight(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMaxWidth - -```jsonnet -options.tooltip.withMaxWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn options.tooltip.withMode - -```jsonnet -options.tooltip.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"single"`, `"multi"`, `"none"` - -TODO docs -##### fn options.tooltip.withSort - -```jsonnet -options.tooltip.withSort(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"asc"`, `"desc"`, `"none"` - -TODO docs -### obj panelOptions - - -#### fn panelOptions.withDescription - -```jsonnet -panelOptions.withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel description. -#### fn panelOptions.withGridPos - -```jsonnet -panelOptions.withGridPos(h="null", w="null", x="null", y="null") -``` - -PARAMETERS: - -* **h** (`number`) - - default value: `"null"` -* **w** (`number`) - - default value: `"null"` -* **x** (`number`) - - default value: `"null"` -* **y** (`number`) - - default value: `"null"` - -`withGridPos` configures the height, width and xy coordinates of the panel. Also see `grafonnet.util.grid` for helper functions to calculate these fields. - -All arguments default to `null`, which means they will remain unchanged or unset. - -#### fn panelOptions.withLinks - -```jsonnet -panelOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withLinksMixin - -```jsonnet -panelOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Panel links. -#### fn panelOptions.withMaxPerRow - -```jsonnet -panelOptions.withMaxPerRow(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Option for repeated panels that controls max items per row -Only relevant for horizontally repeated panels -#### fn panelOptions.withRepeat - -```jsonnet -panelOptions.withRepeat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of template variable to repeat for. -#### fn panelOptions.withRepeatDirection - -```jsonnet -panelOptions.withRepeatDirection(value="h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"h"` - - valid values: `"h"`, `"v"` - -Direction to repeat in if 'repeat' is set. -`h` for horizontal, `v` for vertical. -#### fn panelOptions.withTitle - -```jsonnet -panelOptions.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Panel title. -#### fn panelOptions.withTransparent - -```jsonnet -panelOptions.withTransparent(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Whether to display the panel without a background. -### obj queryOptions - - -#### fn queryOptions.withDatasource - -```jsonnet -queryOptions.withDatasource(type, uid) -``` - -PARAMETERS: - -* **type** (`string`) -* **uid** (`string`) - -`withDatasource` sets the datasource for all queries in a panel. - -The default datasource for a panel is set to 'Mixed datasource' so panels can be datasource agnostic, which is a lot more interesting from a reusability standpoint. Note that this requires query targets to explicitly set datasource for the same reason. - -#### fn queryOptions.withDatasourceMixin - -```jsonnet -queryOptions.withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Ref to a DataSource instance -#### fn queryOptions.withHideTimeOverride - -```jsonnet -queryOptions.withHideTimeOverride(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Controls if the timeFrom or timeShift overrides are shown in the panel header -#### fn queryOptions.withInterval - -```jsonnet -queryOptions.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables. -This value must be formatted as a number followed by a valid time -identifier like: "40s", "3d", etc. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withMaxDataPoints - -```jsonnet -queryOptions.withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum number of data points that the panel queries are retrieving. -#### fn queryOptions.withQueryCachingTTL - -```jsonnet -queryOptions.withQueryCachingTTL(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Overrides the data source configured time-to-live for a query cache item in milliseconds -#### fn queryOptions.withTargets - -```jsonnet -queryOptions.withTargets(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTargetsMixin - -```jsonnet -queryOptions.withTargetsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Depends on the panel plugin. See the plugin documentation for details. -#### fn queryOptions.withTimeFrom - -```jsonnet -queryOptions.withTimeFrom(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the relative time range for individual panels, -which causes them to be different than what is selected in -the dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different -time periods or days on the same dashboard. -The value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far), -`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years). -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTimeShift - -```jsonnet -queryOptions.withTimeShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Overrides the time range for individual panels by shifting its start and end relative to the time picker. -For example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`. -Note: Panel time overrides have no effect when the dashboard’s time range is absolute. -See: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options -#### fn queryOptions.withTransformations - -```jsonnet -queryOptions.withTransformations(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -#### fn queryOptions.withTransformationsMixin - -```jsonnet -queryOptions.withTransformationsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of transformations that are applied to the panel data before rendering. -When there are multiple transformations, Grafana applies them in the order they are listed. -Each transformation creates a result set that then passes on to the next transformation in the processing pipeline. -### obj standardOptions - - -#### fn standardOptions.withDecimals - -```jsonnet -standardOptions.withDecimals(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Specify the number of decimals Grafana includes in the rendered value. -If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. -For example 1.1234 will display as 1.12 and 100.456 will display as 100. -To display all decimals, set the unit to `String`. -#### fn standardOptions.withDisplayName - -```jsonnet -standardOptions.withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The display value for this field. This supports template variables blank is auto -#### fn standardOptions.withFilterable - -```jsonnet -standardOptions.withFilterable(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -True if data source field supports ad-hoc filters -#### fn standardOptions.withLinks - -```jsonnet -standardOptions.withLinks(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withLinksMixin - -```jsonnet -standardOptions.withLinksMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -The behavior when clicking on a result -#### fn standardOptions.withMappings - -```jsonnet -standardOptions.withMappings(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMappingsMixin - -```jsonnet -standardOptions.withMappingsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Convert input values into a display string -#### fn standardOptions.withMax - -```jsonnet -standardOptions.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withMin - -```jsonnet -standardOptions.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - -The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields. -#### fn standardOptions.withNoValue - -```jsonnet -standardOptions.withNoValue(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alternative to empty string -#### fn standardOptions.withOverrides - -```jsonnet -standardOptions.withOverrides(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withOverridesMixin - -```jsonnet -standardOptions.withOverridesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Overrides are the options applied to specific fields overriding the defaults. -#### fn standardOptions.withPath - -```jsonnet -standardOptions.withPath(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An explicit path to the field in the datasource. When the frame meta includes a path, -This will default to `${frame.meta.path}/${field.name} - -When defined, this value can be used as an identifier within the datasource scope, and -may be used to update the results -#### fn standardOptions.withUnit - -```jsonnet -standardOptions.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unit a field should use. The unit you select is applied to all fields except time. -You can use the units ID availables in Grafana or a custom unit. -Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts -As custom unit, you can use the following formats: -`suffix:` for custom unit that should go after value. -`prefix:` for custom unit that should go before value. -`time:` For custom date time formats type for example `time:YYYY-MM-DD`. -`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. -`count:` for a custom count unit. -`currency:` for custom a currency unit. -#### obj standardOptions.color - - -##### fn standardOptions.color.withFixedColor - -```jsonnet -standardOptions.color.withFixedColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The fixed color value for fixed or shades color modes. -##### fn standardOptions.color.withMode - -```jsonnet -standardOptions.color.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"thresholds"`, `"palette-classic"`, `"palette-classic-by-name"`, `"continuous-GrYlRd"`, `"continuous-RdYlGr"`, `"continuous-BlYlRd"`, `"continuous-YlRd"`, `"continuous-BlPu"`, `"continuous-YlBl"`, `"continuous-blues"`, `"continuous-reds"`, `"continuous-greens"`, `"continuous-purples"`, `"fixed"`, `"shades"` - -Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value. -Continuous color interpolates a color using the percentage of a value relative to min and max. -Accepted values are: -`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold -`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations -`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations -`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode -`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode -`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode -`continuous-YlRd`: Continuous Yellow-Red palette mode -`continuous-BlPu`: Continuous Blue-Purple palette mode -`continuous-YlBl`: Continuous Yellow-Blue palette mode -`continuous-blues`: Continuous Blue palette mode -`continuous-reds`: Continuous Red palette mode -`continuous-greens`: Continuous Green palette mode -`continuous-purples`: Continuous Purple palette mode -`shades`: Shades of a single color. Specify a single color, useful in an override rule. -`fixed`: Fixed color mode. Specify a single color, useful in an override rule. -##### fn standardOptions.color.withSeriesBy - -```jsonnet -standardOptions.color.withSeriesBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"min"`, `"max"`, `"last"` - -Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value. -#### obj standardOptions.thresholds - - -##### fn standardOptions.thresholds.withMode - -```jsonnet -standardOptions.thresholds.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"absolute"`, `"percentage"` - -Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1). -##### fn standardOptions.thresholds.withSteps - -```jsonnet -standardOptions.thresholds.withSteps(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity -##### fn standardOptions.thresholds.withStepsMixin - -```jsonnet -standardOptions.thresholds.withStepsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Must be sorted by 'value', first value is always -Infinity \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/options/series.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/options/series.md deleted file mode 100644 index 30e01524a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/options/series.md +++ /dev/null @@ -1,663 +0,0 @@ -# series - - - -## Index - -* [`fn withAxisBorderShow(value=true)`](#fn-withaxisbordershow) -* [`fn withAxisCenteredZero(value=true)`](#fn-withaxiscenteredzero) -* [`fn withAxisColorMode(value)`](#fn-withaxiscolormode) -* [`fn withAxisGridShow(value=true)`](#fn-withaxisgridshow) -* [`fn withAxisLabel(value)`](#fn-withaxislabel) -* [`fn withAxisPlacement(value)`](#fn-withaxisplacement) -* [`fn withAxisSoftMax(value)`](#fn-withaxissoftmax) -* [`fn withAxisSoftMin(value)`](#fn-withaxissoftmin) -* [`fn withAxisWidth(value)`](#fn-withaxiswidth) -* [`fn withFrame(value)`](#fn-withframe) -* [`fn withHideFrom(value)`](#fn-withhidefrom) -* [`fn withHideFromMixin(value)`](#fn-withhidefrommixin) -* [`fn withLabel(value)`](#fn-withlabel) -* [`fn withLabelValue(value)`](#fn-withlabelvalue) -* [`fn withLabelValueMixin(value)`](#fn-withlabelvaluemixin) -* [`fn withLineColor(value)`](#fn-withlinecolor) -* [`fn withLineColorMixin(value)`](#fn-withlinecolormixin) -* [`fn withLineStyle(value)`](#fn-withlinestyle) -* [`fn withLineStyleMixin(value)`](#fn-withlinestylemixin) -* [`fn withLineWidth(value)`](#fn-withlinewidth) -* [`fn withName(value)`](#fn-withname) -* [`fn withPointColor(value)`](#fn-withpointcolor) -* [`fn withPointColorMixin(value)`](#fn-withpointcolormixin) -* [`fn withPointSize(value)`](#fn-withpointsize) -* [`fn withPointSizeMixin(value)`](#fn-withpointsizemixin) -* [`fn withScaleDistribution(value)`](#fn-withscaledistribution) -* [`fn withScaleDistributionMixin(value)`](#fn-withscaledistributionmixin) -* [`fn withShow(value)`](#fn-withshow) -* [`fn withX(value)`](#fn-withx) -* [`fn withY(value)`](#fn-withy) -* [`obj hideFrom`](#obj-hidefrom) - * [`fn withLegend(value=true)`](#fn-hidefromwithlegend) - * [`fn withTooltip(value=true)`](#fn-hidefromwithtooltip) - * [`fn withViz(value=true)`](#fn-hidefromwithviz) -* [`obj labelValue`](#obj-labelvalue) - * [`fn withField(value)`](#fn-labelvaluewithfield) - * [`fn withFixed(value)`](#fn-labelvaluewithfixed) - * [`fn withMode(value)`](#fn-labelvaluewithmode) -* [`obj lineColor`](#obj-linecolor) - * [`fn withField(value)`](#fn-linecolorwithfield) - * [`fn withFixed(value)`](#fn-linecolorwithfixed) -* [`obj lineStyle`](#obj-linestyle) - * [`fn withDash(value)`](#fn-linestylewithdash) - * [`fn withDashMixin(value)`](#fn-linestylewithdashmixin) - * [`fn withFill(value)`](#fn-linestylewithfill) -* [`obj pointColor`](#obj-pointcolor) - * [`fn withField(value)`](#fn-pointcolorwithfield) - * [`fn withFixed(value)`](#fn-pointcolorwithfixed) -* [`obj pointSize`](#obj-pointsize) - * [`fn withField(value)`](#fn-pointsizewithfield) - * [`fn withFixed(value)`](#fn-pointsizewithfixed) - * [`fn withMax(value)`](#fn-pointsizewithmax) - * [`fn withMin(value)`](#fn-pointsizewithmin) - * [`fn withMode(value)`](#fn-pointsizewithmode) -* [`obj scaleDistribution`](#obj-scaledistribution) - * [`fn withLinearThreshold(value)`](#fn-scaledistributionwithlinearthreshold) - * [`fn withLog(value)`](#fn-scaledistributionwithlog) - * [`fn withType(value)`](#fn-scaledistributionwithtype) - -## Fields - -### fn withAxisBorderShow - -```jsonnet -withAxisBorderShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withAxisCenteredZero - -```jsonnet -withAxisCenteredZero(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withAxisColorMode - -```jsonnet -withAxisColorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"text"`, `"series"` - -TODO docs -### fn withAxisGridShow - -```jsonnet -withAxisGridShow(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withAxisLabel - -```jsonnet -withAxisLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withAxisPlacement - -```jsonnet -withAxisPlacement(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"top"`, `"right"`, `"bottom"`, `"left"`, `"hidden"` - -TODO docs -### fn withAxisSoftMax - -```jsonnet -withAxisSoftMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### fn withAxisSoftMin - -```jsonnet -withAxisSoftMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### fn withAxisWidth - -```jsonnet -withAxisWidth(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### fn withFrame - -```jsonnet -withFrame(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### fn withHideFrom - -```jsonnet -withHideFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withHideFromMixin - -```jsonnet -withHideFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withLabel - -```jsonnet -withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"auto"`, `"never"`, `"always"` - -TODO docs -### fn withLabelValue - -```jsonnet -withLabelValue(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLabelValueMixin - -```jsonnet -withLabelValueMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLineColor - -```jsonnet -withLineColor(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLineColorMixin - -```jsonnet -withLineColorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLineStyle - -```jsonnet -withLineStyle(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withLineStyleMixin - -```jsonnet -withLineStyleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withLineWidth - -```jsonnet -withLineWidth(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withPointColor - -```jsonnet -withPointColor(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withPointColorMixin - -```jsonnet -withPointColorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withPointSize - -```jsonnet -withPointSize(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withPointSizeMixin - -```jsonnet -withPointSizeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withScaleDistribution - -```jsonnet -withScaleDistribution(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withScaleDistributionMixin - -```jsonnet -withScaleDistributionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TODO docs -### fn withShow - -```jsonnet -withShow(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"points"`, `"lines"`, `"points+lines"` - - -### fn withX - -```jsonnet -withX(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withY - -```jsonnet -withY(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj hideFrom - - -#### fn hideFrom.withLegend - -```jsonnet -hideFrom.withLegend(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn hideFrom.withTooltip - -```jsonnet -hideFrom.withTooltip(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn hideFrom.withViz - -```jsonnet -hideFrom.withViz(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj labelValue - - -#### fn labelValue.withField - -```jsonnet -labelValue.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -#### fn labelValue.withFixed - -```jsonnet -labelValue.withFixed(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn labelValue.withMode - -```jsonnet -labelValue.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"fixed"`, `"field"`, `"template"` - - -### obj lineColor - - -#### fn lineColor.withField - -```jsonnet -lineColor.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -#### fn lineColor.withFixed - -```jsonnet -lineColor.withFixed(value) -``` - -PARAMETERS: - -* **value** (`string`) - -color value -### obj lineStyle - - -#### fn lineStyle.withDash - -```jsonnet -lineStyle.withDash(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn lineStyle.withDashMixin - -```jsonnet -lineStyle.withDashMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn lineStyle.withFill - -```jsonnet -lineStyle.withFill(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"solid"`, `"dash"`, `"dot"`, `"square"` - - -### obj pointColor - - -#### fn pointColor.withField - -```jsonnet -pointColor.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -#### fn pointColor.withFixed - -```jsonnet -pointColor.withFixed(value) -``` - -PARAMETERS: - -* **value** (`string`) - -color value -### obj pointSize - - -#### fn pointSize.withField - -```jsonnet -pointSize.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -fixed: T -- will be added by each element -#### fn pointSize.withFixed - -```jsonnet -pointSize.withFixed(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn pointSize.withMax - -```jsonnet -pointSize.withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn pointSize.withMin - -```jsonnet -pointSize.withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn pointSize.withMode - -```jsonnet -pointSize.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"quad"` - - -### obj scaleDistribution - - -#### fn scaleDistribution.withLinearThreshold - -```jsonnet -scaleDistribution.withLinearThreshold(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn scaleDistribution.withLog - -```jsonnet -scaleDistribution.withLog(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn scaleDistribution.withType - -```jsonnet -scaleDistribution.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"linear"`, `"log"`, `"ordinal"`, `"symlog"` - -TODO docs \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/panelOptions/link.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/panelOptions/link.md deleted file mode 100644 index d744fc5d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/panelOptions/link.md +++ /dev/null @@ -1,146 +0,0 @@ -# link - - - -## Index - -* [`fn withAsDropdown(value=true)`](#fn-withasdropdown) -* [`fn withIcon(value)`](#fn-withicon) -* [`fn withIncludeVars(value=true)`](#fn-withincludevars) -* [`fn withKeepTime(value=true)`](#fn-withkeeptime) -* [`fn withTags(value)`](#fn-withtags) -* [`fn withTagsMixin(value)`](#fn-withtagsmixin) -* [`fn withTargetBlank(value=true)`](#fn-withtargetblank) -* [`fn withTitle(value)`](#fn-withtitle) -* [`fn withTooltip(value)`](#fn-withtooltip) -* [`fn withType(value)`](#fn-withtype) -* [`fn withUrl(value)`](#fn-withurl) - -## Fields - -### fn withAsDropdown - -```jsonnet -withAsDropdown(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards -### fn withIcon - -```jsonnet -withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon name to be displayed with the link -### fn withIncludeVars - -```jsonnet -withIncludeVars(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current template variables values in the link as query params -### fn withKeepTime - -```jsonnet -withKeepTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, includes current time range in the link as query params -### fn withTags - -```jsonnet -withTags(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTagsMixin - -```jsonnet -withTagsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards -### fn withTargetBlank - -```jsonnet -withTargetBlank(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If true, the link will be opened in a new tab -### fn withTitle - -```jsonnet -withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Title to display with the link -### fn withTooltip - -```jsonnet -withTooltip(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Tooltip to display when the user hovers their mouse over it -### fn withType - -```jsonnet -withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"link"`, `"dashboards"` - -Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) -### fn withUrl - -```jsonnet -withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Link URL. Only required/valid if the type is link \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/queryOptions/transformation.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/queryOptions/transformation.md deleted file mode 100644 index 69dda9acf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/queryOptions/transformation.md +++ /dev/null @@ -1,140 +0,0 @@ -# transformation - - - -## Index - -* [`fn withDisabled(value=true)`](#fn-withdisabled) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilterMixin(value)`](#fn-withfiltermixin) -* [`fn withId(value)`](#fn-withid) -* [`fn withOptions(value)`](#fn-withoptions) -* [`fn withOptionsMixin(value)`](#fn-withoptionsmixin) -* [`fn withTopic(value)`](#fn-withtopic) -* [`obj filter`](#obj-filter) - * [`fn withId(value="")`](#fn-filterwithid) - * [`fn withOptions(value)`](#fn-filterwithoptions) - * [`fn withOptionsMixin(value)`](#fn-filterwithoptionsmixin) - -## Fields - -### fn withDisabled - -```jsonnet -withDisabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Disabled transformations are skipped -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withFilterMixin - -```jsonnet -withFilterMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. -It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type. -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique identifier of transformer -### fn withOptions - -```jsonnet -withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withOptionsMixin - -```jsonnet -withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Options to be passed to the transformer -Valid options depend on the transformer id -### fn withTopic - -```jsonnet -withTopic(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"series"`, `"annotations"`, `"alertStates"` - -Where to pull DataFrames from as input to transformation -### obj filter - - -#### fn filter.withId - -```jsonnet -filter.withId(value="") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `""` - -The matcher id. This is used to find the matcher implementation from registry. -#### fn filter.withOptions - -```jsonnet -filter.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. -#### fn filter.withOptionsMixin - -```jsonnet -filter.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The matcher options. This is specific to the matcher implementation. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/standardOptions/mapping.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/standardOptions/mapping.md deleted file mode 100644 index 196c76927..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/standardOptions/mapping.md +++ /dev/null @@ -1,445 +0,0 @@ -# mapping - - - -## Index - -* [`obj RangeMap`](#obj-rangemap) - * [`fn withOptions(value)`](#fn-rangemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-rangemapwithoptionsmixin) - * [`fn withType()`](#fn-rangemapwithtype) - * [`obj options`](#obj-rangemapoptions) - * [`fn withFrom(value)`](#fn-rangemapoptionswithfrom) - * [`fn withResult(value)`](#fn-rangemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-rangemapoptionswithresultmixin) - * [`fn withTo(value)`](#fn-rangemapoptionswithto) - * [`obj result`](#obj-rangemapoptionsresult) - * [`fn withColor(value)`](#fn-rangemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-rangemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-rangemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-rangemapoptionsresultwithtext) -* [`obj RegexMap`](#obj-regexmap) - * [`fn withOptions(value)`](#fn-regexmapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-regexmapwithoptionsmixin) - * [`fn withType()`](#fn-regexmapwithtype) - * [`obj options`](#obj-regexmapoptions) - * [`fn withPattern(value)`](#fn-regexmapoptionswithpattern) - * [`fn withResult(value)`](#fn-regexmapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-regexmapoptionswithresultmixin) - * [`obj result`](#obj-regexmapoptionsresult) - * [`fn withColor(value)`](#fn-regexmapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-regexmapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-regexmapoptionsresultwithindex) - * [`fn withText(value)`](#fn-regexmapoptionsresultwithtext) -* [`obj SpecialValueMap`](#obj-specialvaluemap) - * [`fn withOptions(value)`](#fn-specialvaluemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-specialvaluemapwithoptionsmixin) - * [`fn withType()`](#fn-specialvaluemapwithtype) - * [`obj options`](#obj-specialvaluemapoptions) - * [`fn withMatch(value)`](#fn-specialvaluemapoptionswithmatch) - * [`fn withResult(value)`](#fn-specialvaluemapoptionswithresult) - * [`fn withResultMixin(value)`](#fn-specialvaluemapoptionswithresultmixin) - * [`obj result`](#obj-specialvaluemapoptionsresult) - * [`fn withColor(value)`](#fn-specialvaluemapoptionsresultwithcolor) - * [`fn withIcon(value)`](#fn-specialvaluemapoptionsresultwithicon) - * [`fn withIndex(value)`](#fn-specialvaluemapoptionsresultwithindex) - * [`fn withText(value)`](#fn-specialvaluemapoptionsresultwithtext) -* [`obj ValueMap`](#obj-valuemap) - * [`fn withOptions(value)`](#fn-valuemapwithoptions) - * [`fn withOptionsMixin(value)`](#fn-valuemapwithoptionsmixin) - * [`fn withType()`](#fn-valuemapwithtype) - -## Fields - -### obj RangeMap - - -#### fn RangeMap.withOptions - -```jsonnet -RangeMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withOptionsMixin - -```jsonnet -RangeMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Range to match against and the result to apply when the value is within the range -#### fn RangeMap.withType - -```jsonnet -RangeMap.withType() -``` - - - -#### obj RangeMap.options - - -##### fn RangeMap.options.withFrom - -```jsonnet -RangeMap.options.withFrom(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Min value of the range. It can be null which means -Infinity -##### fn RangeMap.options.withResult - -```jsonnet -RangeMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withResultMixin - -```jsonnet -RangeMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RangeMap.options.withTo - -```jsonnet -RangeMap.options.withTo(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Max value of the range. It can be null which means +Infinity -##### obj RangeMap.options.result - - -###### fn RangeMap.options.result.withColor - -```jsonnet -RangeMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RangeMap.options.result.withIcon - -```jsonnet -RangeMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RangeMap.options.result.withIndex - -```jsonnet -RangeMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RangeMap.options.result.withText - -```jsonnet -RangeMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj RegexMap - - -#### fn RegexMap.withOptions - -```jsonnet -RegexMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withOptionsMixin - -```jsonnet -RegexMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Regular expression to match against and the result to apply when the value matches the regex -#### fn RegexMap.withType - -```jsonnet -RegexMap.withType() -``` - - - -#### obj RegexMap.options - - -##### fn RegexMap.options.withPattern - -```jsonnet -RegexMap.options.withPattern(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Regular expression to match against -##### fn RegexMap.options.withResult - -```jsonnet -RegexMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn RegexMap.options.withResultMixin - -```jsonnet -RegexMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj RegexMap.options.result - - -###### fn RegexMap.options.result.withColor - -```jsonnet -RegexMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn RegexMap.options.result.withIcon - -```jsonnet -RegexMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn RegexMap.options.result.withIndex - -```jsonnet -RegexMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn RegexMap.options.result.withText - -```jsonnet -RegexMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj SpecialValueMap - - -#### fn SpecialValueMap.withOptions - -```jsonnet -SpecialValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withOptionsMixin - -```jsonnet -SpecialValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn SpecialValueMap.withType - -```jsonnet -SpecialValueMap.withType() -``` - - - -#### obj SpecialValueMap.options - - -##### fn SpecialValueMap.options.withMatch - -```jsonnet -SpecialValueMap.options.withMatch(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"true"`, `"false"`, `"null"`, `"nan"`, `"null+nan"`, `"empty"` - -Special value types supported by the `SpecialValueMap` -##### fn SpecialValueMap.options.withResult - -```jsonnet -SpecialValueMap.options.withResult(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### fn SpecialValueMap.options.withResultMixin - -```jsonnet -SpecialValueMap.options.withResultMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Result used as replacement with text and color when the value matches -##### obj SpecialValueMap.options.result - - -###### fn SpecialValueMap.options.result.withColor - -```jsonnet -SpecialValueMap.options.result.withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to use when the value matches -###### fn SpecialValueMap.options.result.withIcon - -```jsonnet -SpecialValueMap.options.result.withIcon(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Icon to display when the value matches. Only specific visualizations. -###### fn SpecialValueMap.options.result.withIndex - -```jsonnet -SpecialValueMap.options.result.withIndex(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Position in the mapping array. Only used internally. -###### fn SpecialValueMap.options.result.withText - -```jsonnet -SpecialValueMap.options.result.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Text to display when the value matches -### obj ValueMap - - -#### fn ValueMap.withOptions - -```jsonnet -ValueMap.withOptions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withOptionsMixin - -```jsonnet -ValueMap.withOptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } } -#### fn ValueMap.withType - -```jsonnet -ValueMap.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/standardOptions/override.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/standardOptions/override.md deleted file mode 100644 index 2997ad7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/standardOptions/override.md +++ /dev/null @@ -1,244 +0,0 @@ -# override - -Overrides allow you to customize visualization settings for specific fields or -series. This is accomplished by adding an override rule that targets -a particular set of fields and that can each define multiple options. - -```jsonnet -override.byType.new('number') -+ override.byType.withPropertiesFromOptions( - panel.standardOptions.withDecimals(2) - + panel.standardOptions.withUnit('s') -) -``` - - -## Index - -* [`obj byName`](#obj-byname) - * [`fn new(value)`](#fn-bynamenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bynamewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bynamewithproperty) -* [`obj byQuery`](#obj-byquery) - * [`fn new(value)`](#fn-byquerynew) - * [`fn withPropertiesFromOptions(options)`](#fn-byquerywithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byquerywithproperty) -* [`obj byRegexp`](#obj-byregexp) - * [`fn new(value)`](#fn-byregexpnew) - * [`fn withPropertiesFromOptions(options)`](#fn-byregexpwithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byregexpwithproperty) -* [`obj byType`](#obj-bytype) - * [`fn new(value)`](#fn-bytypenew) - * [`fn withPropertiesFromOptions(options)`](#fn-bytypewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-bytypewithproperty) -* [`obj byValue`](#obj-byvalue) - * [`fn new(value)`](#fn-byvaluenew) - * [`fn withPropertiesFromOptions(options)`](#fn-byvaluewithpropertiesfromoptions) - * [`fn withProperty(id, value)`](#fn-byvaluewithproperty) - -## Fields - -### obj byName - - -#### fn byName.new - -```jsonnet -byName.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byName`. -#### fn byName.withPropertiesFromOptions - -```jsonnet -byName.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byName.withProperty - -```jsonnet -byName.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byQuery - - -#### fn byQuery.new - -```jsonnet -byQuery.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byFrameRefID`. -#### fn byQuery.withPropertiesFromOptions - -```jsonnet -byQuery.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byQuery.withProperty - -```jsonnet -byQuery.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byRegexp - - -#### fn byRegexp.new - -```jsonnet -byRegexp.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byRegexp`. -#### fn byRegexp.withPropertiesFromOptions - -```jsonnet -byRegexp.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byRegexp.withProperty - -```jsonnet -byRegexp.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byType - - -#### fn byType.new - -```jsonnet -byType.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byType`. -#### fn byType.withPropertiesFromOptions - -```jsonnet -byType.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byType.withProperty - -```jsonnet -byType.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. - -### obj byValue - - -#### fn byValue.new - -```jsonnet -byValue.new(value) -``` - -PARAMETERS: - -* **value** (`string`) - -`new` creates a new override of type `byValue`. -#### fn byValue.withPropertiesFromOptions - -```jsonnet -byValue.withPropertiesFromOptions(options) -``` - -PARAMETERS: - -* **options** (`object`) - -`withPropertiesFromOptions` takes an object with properties that need to be -overridden. See example code above. - -#### fn byValue.withProperty - -```jsonnet -byValue.withProperty(id, value) -``` - -PARAMETERS: - -* **id** (`string`) -* **value** (`any`) - -`withProperty` adds a property that needs to be overridden. This function can -be called multiple time, adding more properties. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/standardOptions/threshold/step.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/standardOptions/threshold/step.md deleted file mode 100644 index 62c49ab0e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/panel/xyChart/standardOptions/threshold/step.md +++ /dev/null @@ -1,34 +0,0 @@ -# threshold.step - - - -## Index - -* [`fn withColor(value)`](#fn-withcolor) -* [`fn withValue(value)`](#fn-withvalue) - -## Fields - -### fn withColor - -```jsonnet -withColor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded. -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded. -Nulls currently appear here when serializing -Infinity to JSON. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/preferences.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/preferences.md deleted file mode 100644 index 79b7bfc87..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/preferences.md +++ /dev/null @@ -1,210 +0,0 @@ -# preferences - -grafonnet.preferences - -## Index - -* [`fn withCookiePreferences(value)`](#fn-withcookiepreferences) -* [`fn withCookiePreferencesMixin(value)`](#fn-withcookiepreferencesmixin) -* [`fn withHomeDashboardUID(value)`](#fn-withhomedashboarduid) -* [`fn withLanguage(value)`](#fn-withlanguage) -* [`fn withQueryHistory(value)`](#fn-withqueryhistory) -* [`fn withQueryHistoryMixin(value)`](#fn-withqueryhistorymixin) -* [`fn withTheme(value)`](#fn-withtheme) -* [`fn withTimezone(value)`](#fn-withtimezone) -* [`fn withWeekStart(value)`](#fn-withweekstart) -* [`obj cookiePreferences`](#obj-cookiepreferences) - * [`fn withAnalytics(value)`](#fn-cookiepreferenceswithanalytics) - * [`fn withAnalyticsMixin(value)`](#fn-cookiepreferenceswithanalyticsmixin) - * [`fn withFunctional(value)`](#fn-cookiepreferenceswithfunctional) - * [`fn withFunctionalMixin(value)`](#fn-cookiepreferenceswithfunctionalmixin) - * [`fn withPerformance(value)`](#fn-cookiepreferenceswithperformance) - * [`fn withPerformanceMixin(value)`](#fn-cookiepreferenceswithperformancemixin) -* [`obj queryHistory`](#obj-queryhistory) - * [`fn withHomeTab(value)`](#fn-queryhistorywithhometab) - -## Fields - -### fn withCookiePreferences - -```jsonnet -withCookiePreferences(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withCookiePreferencesMixin - -```jsonnet -withCookiePreferencesMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withHomeDashboardUID - -```jsonnet -withHomeDashboardUID(value) -``` - -PARAMETERS: - -* **value** (`string`) - -UID for the home dashboard -### fn withLanguage - -```jsonnet -withLanguage(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Selected language (beta) -### fn withQueryHistory - -```jsonnet -withQueryHistory(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withQueryHistoryMixin - -```jsonnet -withQueryHistoryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withTheme - -```jsonnet -withTheme(value) -``` - -PARAMETERS: - -* **value** (`string`) - -light, dark, empty is default -### fn withTimezone - -```jsonnet -withTimezone(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The timezone selection -TODO: this should use the timezone defined in common -### fn withWeekStart - -```jsonnet -withWeekStart(value) -``` - -PARAMETERS: - -* **value** (`string`) - -day of the week (sunday, monday, etc) -### obj cookiePreferences - - -#### fn cookiePreferences.withAnalytics - -```jsonnet -cookiePreferences.withAnalytics(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn cookiePreferences.withAnalyticsMixin - -```jsonnet -cookiePreferences.withAnalyticsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn cookiePreferences.withFunctional - -```jsonnet -cookiePreferences.withFunctional(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn cookiePreferences.withFunctionalMixin - -```jsonnet -cookiePreferences.withFunctionalMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn cookiePreferences.withPerformance - -```jsonnet -cookiePreferences.withPerformance(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn cookiePreferences.withPerformanceMixin - -```jsonnet -cookiePreferences.withPerformanceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### obj queryHistory - - -#### fn queryHistory.withHomeTab - -```jsonnet -queryHistory.withHomeTab(value) -``` - -PARAMETERS: - -* **value** (`string`) - -one of: '' | 'query' | 'starred'; \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/publicdashboard.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/publicdashboard.md deleted file mode 100644 index 9cb78fbd5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/publicdashboard.md +++ /dev/null @@ -1,84 +0,0 @@ -# publicdashboard - -grafonnet.publicdashboard - -## Index - -* [`fn withAccessToken(value)`](#fn-withaccesstoken) -* [`fn withAnnotationsEnabled(value=true)`](#fn-withannotationsenabled) -* [`fn withDashboardUid(value)`](#fn-withdashboarduid) -* [`fn withIsEnabled(value=true)`](#fn-withisenabled) -* [`fn withTimeSelectionEnabled(value=true)`](#fn-withtimeselectionenabled) -* [`fn withUid(value)`](#fn-withuid) - -## Fields - -### fn withAccessToken - -```jsonnet -withAccessToken(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique public access token -### fn withAnnotationsEnabled - -```jsonnet -withAnnotationsEnabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Flag that indicates if annotations are enabled -### fn withDashboardUid - -```jsonnet -withDashboardUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Dashboard unique identifier referenced by this public dashboard -### fn withIsEnabled - -```jsonnet -withIsEnabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Flag that indicates if the public dashboard is enabled -### fn withTimeSelectionEnabled - -```jsonnet -withTimeSelectionEnabled(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Flag that indicates if the time range picker is enabled -### fn withUid - -```jsonnet -withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Unique public dashboard identifier \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/azureMonitor/dimensionFilters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/azureMonitor/dimensionFilters.md deleted file mode 100644 index 43b6cf550..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/azureMonitor/dimensionFilters.md +++ /dev/null @@ -1,69 +0,0 @@ -# dimensionFilters - - - -## Index - -* [`fn withDimension(value)`](#fn-withdimension) -* [`fn withFilter(value)`](#fn-withfilter) -* [`fn withFilters(value)`](#fn-withfilters) -* [`fn withFiltersMixin(value)`](#fn-withfiltersmixin) -* [`fn withOperator(value)`](#fn-withoperator) - -## Fields - -### fn withDimension - -```jsonnet -withDimension(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of Dimension to be filtered on. -### fn withFilter - -```jsonnet -withFilter(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated filter is deprecated in favour of filters to support multiselect. -### fn withFilters - -```jsonnet -withFilters(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Values to match with the filter. -### fn withFiltersMixin - -```jsonnet -withFiltersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Values to match with the filter. -### fn withOperator - -```jsonnet -withOperator(value) -``` - -PARAMETERS: - -* **value** (`string`) - -String denoting the filter operation. Supports 'eq' - equals,'ne' - not equals, 'sw' - starts with. Note that some dimensions may not support all operators. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/azureMonitor/resources.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/azureMonitor/resources.md deleted file mode 100644 index 18bb633af..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/azureMonitor/resources.md +++ /dev/null @@ -1,68 +0,0 @@ -# resources - - - -## Index - -* [`fn withMetricNamespace(value)`](#fn-withmetricnamespace) -* [`fn withRegion(value)`](#fn-withregion) -* [`fn withResourceGroup(value)`](#fn-withresourcegroup) -* [`fn withResourceName(value)`](#fn-withresourcename) -* [`fn withSubscription(value)`](#fn-withsubscription) - -## Fields - -### fn withMetricNamespace - -```jsonnet -withMetricNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withRegion - -```jsonnet -withRegion(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withResourceGroup - -```jsonnet -withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withResourceName - -```jsonnet -withResourceName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withSubscription - -```jsonnet -withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/azureTraces/filters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/azureTraces/filters.md deleted file mode 100644 index 0c5c7182a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/azureTraces/filters.md +++ /dev/null @@ -1,57 +0,0 @@ -# filters - - - -## Index - -* [`fn withFilters(value)`](#fn-withfilters) -* [`fn withFiltersMixin(value)`](#fn-withfiltersmixin) -* [`fn withOperation(value)`](#fn-withoperation) -* [`fn withProperty(value)`](#fn-withproperty) - -## Fields - -### fn withFilters - -```jsonnet -withFilters(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Values to filter by. -### fn withFiltersMixin - -```jsonnet -withFiltersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Values to filter by. -### fn withOperation - -```jsonnet -withOperation(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Comparison operator to use. Either equals or not equals. -### fn withProperty - -```jsonnet -withProperty(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Property name, auto-populated based on available traces. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/index.md deleted file mode 100644 index f60f70e1e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/azureMonitor/index.md +++ /dev/null @@ -1,1495 +0,0 @@ -# azureMonitor - -grafonnet.query.azureMonitor - -## Subpackages - -* [azureMonitor.dimensionFilters](azureMonitor/dimensionFilters.md) -* [azureMonitor.resources](azureMonitor/resources.md) -* [azureTraces.filters](azureTraces/filters.md) - -## Index - -* [`fn withAzureLogAnalytics(value)`](#fn-withazureloganalytics) -* [`fn withAzureLogAnalyticsMixin(value)`](#fn-withazureloganalyticsmixin) -* [`fn withAzureMonitor(value)`](#fn-withazuremonitor) -* [`fn withAzureMonitorMixin(value)`](#fn-withazuremonitormixin) -* [`fn withAzureResourceGraph(value)`](#fn-withazureresourcegraph) -* [`fn withAzureResourceGraphMixin(value)`](#fn-withazureresourcegraphmixin) -* [`fn withAzureTraces(value)`](#fn-withazuretraces) -* [`fn withAzureTracesMixin(value)`](#fn-withazuretracesmixin) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withGrafanaTemplateVariableFn(value)`](#fn-withgrafanatemplatevariablefn) -* [`fn withGrafanaTemplateVariableFnMixin(value)`](#fn-withgrafanatemplatevariablefnmixin) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withNamespace(value)`](#fn-withnamespace) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withRegion(value)`](#fn-withregion) -* [`fn withResource(value)`](#fn-withresource) -* [`fn withResourceGroup(value)`](#fn-withresourcegroup) -* [`fn withSubscription(value)`](#fn-withsubscription) -* [`fn withSubscriptions(value)`](#fn-withsubscriptions) -* [`fn withSubscriptionsMixin(value)`](#fn-withsubscriptionsmixin) -* [`obj azureLogAnalytics`](#obj-azureloganalytics) - * [`fn withDashboardTime(value=true)`](#fn-azureloganalyticswithdashboardtime) - * [`fn withIntersectTime(value=true)`](#fn-azureloganalyticswithintersecttime) - * [`fn withQuery(value)`](#fn-azureloganalyticswithquery) - * [`fn withResource(value)`](#fn-azureloganalyticswithresource) - * [`fn withResources(value)`](#fn-azureloganalyticswithresources) - * [`fn withResourcesMixin(value)`](#fn-azureloganalyticswithresourcesmixin) - * [`fn withResultFormat(value)`](#fn-azureloganalyticswithresultformat) - * [`fn withTimeColumn(value)`](#fn-azureloganalyticswithtimecolumn) - * [`fn withWorkspace(value)`](#fn-azureloganalyticswithworkspace) -* [`obj azureMonitor`](#obj-azuremonitor) - * [`fn withAggregation(value)`](#fn-azuremonitorwithaggregation) - * [`fn withAlias(value)`](#fn-azuremonitorwithalias) - * [`fn withAllowedTimeGrainsMs(value)`](#fn-azuremonitorwithallowedtimegrainsms) - * [`fn withAllowedTimeGrainsMsMixin(value)`](#fn-azuremonitorwithallowedtimegrainsmsmixin) - * [`fn withCustomNamespace(value)`](#fn-azuremonitorwithcustomnamespace) - * [`fn withDimension(value)`](#fn-azuremonitorwithdimension) - * [`fn withDimensionFilter(value)`](#fn-azuremonitorwithdimensionfilter) - * [`fn withDimensionFilters(value)`](#fn-azuremonitorwithdimensionfilters) - * [`fn withDimensionFiltersMixin(value)`](#fn-azuremonitorwithdimensionfiltersmixin) - * [`fn withMetricDefinition(value)`](#fn-azuremonitorwithmetricdefinition) - * [`fn withMetricName(value)`](#fn-azuremonitorwithmetricname) - * [`fn withMetricNamespace(value)`](#fn-azuremonitorwithmetricnamespace) - * [`fn withRegion(value)`](#fn-azuremonitorwithregion) - * [`fn withResourceGroup(value)`](#fn-azuremonitorwithresourcegroup) - * [`fn withResourceName(value)`](#fn-azuremonitorwithresourcename) - * [`fn withResourceUri(value)`](#fn-azuremonitorwithresourceuri) - * [`fn withResources(value)`](#fn-azuremonitorwithresources) - * [`fn withResourcesMixin(value)`](#fn-azuremonitorwithresourcesmixin) - * [`fn withTimeGrain(value)`](#fn-azuremonitorwithtimegrain) - * [`fn withTimeGrainUnit(value)`](#fn-azuremonitorwithtimegrainunit) - * [`fn withTop(value)`](#fn-azuremonitorwithtop) -* [`obj azureResourceGraph`](#obj-azureresourcegraph) - * [`fn withQuery(value)`](#fn-azureresourcegraphwithquery) - * [`fn withResultFormat(value)`](#fn-azureresourcegraphwithresultformat) -* [`obj azureTraces`](#obj-azuretraces) - * [`fn withFilters(value)`](#fn-azuretraceswithfilters) - * [`fn withFiltersMixin(value)`](#fn-azuretraceswithfiltersmixin) - * [`fn withOperationId(value)`](#fn-azuretraceswithoperationid) - * [`fn withQuery(value)`](#fn-azuretraceswithquery) - * [`fn withResources(value)`](#fn-azuretraceswithresources) - * [`fn withResourcesMixin(value)`](#fn-azuretraceswithresourcesmixin) - * [`fn withResultFormat(value)`](#fn-azuretraceswithresultformat) - * [`fn withTraceTypes(value)`](#fn-azuretraceswithtracetypes) - * [`fn withTraceTypesMixin(value)`](#fn-azuretraceswithtracetypesmixin) -* [`obj grafanaTemplateVariableFn`](#obj-grafanatemplatevariablefn) - * [`fn withAppInsightsGroupByQuery(value)`](#fn-grafanatemplatevariablefnwithappinsightsgroupbyquery) - * [`fn withAppInsightsGroupByQueryMixin(value)`](#fn-grafanatemplatevariablefnwithappinsightsgroupbyquerymixin) - * [`fn withAppInsightsMetricNameQuery(value)`](#fn-grafanatemplatevariablefnwithappinsightsmetricnamequery) - * [`fn withAppInsightsMetricNameQueryMixin(value)`](#fn-grafanatemplatevariablefnwithappinsightsmetricnamequerymixin) - * [`fn withMetricDefinitionsQuery(value)`](#fn-grafanatemplatevariablefnwithmetricdefinitionsquery) - * [`fn withMetricDefinitionsQueryMixin(value)`](#fn-grafanatemplatevariablefnwithmetricdefinitionsquerymixin) - * [`fn withMetricNamesQuery(value)`](#fn-grafanatemplatevariablefnwithmetricnamesquery) - * [`fn withMetricNamesQueryMixin(value)`](#fn-grafanatemplatevariablefnwithmetricnamesquerymixin) - * [`fn withMetricNamespaceQuery(value)`](#fn-grafanatemplatevariablefnwithmetricnamespacequery) - * [`fn withMetricNamespaceQueryMixin(value)`](#fn-grafanatemplatevariablefnwithmetricnamespacequerymixin) - * [`fn withResourceGroupsQuery(value)`](#fn-grafanatemplatevariablefnwithresourcegroupsquery) - * [`fn withResourceGroupsQueryMixin(value)`](#fn-grafanatemplatevariablefnwithresourcegroupsquerymixin) - * [`fn withResourceNamesQuery(value)`](#fn-grafanatemplatevariablefnwithresourcenamesquery) - * [`fn withResourceNamesQueryMixin(value)`](#fn-grafanatemplatevariablefnwithresourcenamesquerymixin) - * [`fn withSubscriptionsQuery(value)`](#fn-grafanatemplatevariablefnwithsubscriptionsquery) - * [`fn withSubscriptionsQueryMixin(value)`](#fn-grafanatemplatevariablefnwithsubscriptionsquerymixin) - * [`fn withUnknownQuery(value)`](#fn-grafanatemplatevariablefnwithunknownquery) - * [`fn withUnknownQueryMixin(value)`](#fn-grafanatemplatevariablefnwithunknownquerymixin) - * [`fn withWorkspacesQuery(value)`](#fn-grafanatemplatevariablefnwithworkspacesquery) - * [`fn withWorkspacesQueryMixin(value)`](#fn-grafanatemplatevariablefnwithworkspacesquerymixin) - * [`obj AppInsightsGroupByQuery`](#obj-grafanatemplatevariablefnappinsightsgroupbyquery) - * [`fn withKind()`](#fn-grafanatemplatevariablefnappinsightsgroupbyquerywithkind) - * [`fn withMetricName(value)`](#fn-grafanatemplatevariablefnappinsightsgroupbyquerywithmetricname) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnappinsightsgroupbyquerywithrawquery) - * [`obj AppInsightsMetricNameQuery`](#obj-grafanatemplatevariablefnappinsightsmetricnamequery) - * [`fn withKind()`](#fn-grafanatemplatevariablefnappinsightsmetricnamequerywithkind) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnappinsightsmetricnamequerywithrawquery) - * [`obj MetricDefinitionsQuery`](#obj-grafanatemplatevariablefnmetricdefinitionsquery) - * [`fn withKind()`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithkind) - * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithmetricnamespace) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithrawquery) - * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithresourcegroup) - * [`fn withResourceName(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithresourcename) - * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnmetricdefinitionsquerywithsubscription) - * [`obj MetricNamesQuery`](#obj-grafanatemplatevariablefnmetricnamesquery) - * [`fn withKind()`](#fn-grafanatemplatevariablefnmetricnamesquerywithkind) - * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithmetricnamespace) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithrawquery) - * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithresourcegroup) - * [`fn withResourceName(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithresourcename) - * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnmetricnamesquerywithsubscription) - * [`obj MetricNamespaceQuery`](#obj-grafanatemplatevariablefnmetricnamespacequery) - * [`fn withKind()`](#fn-grafanatemplatevariablefnmetricnamespacequerywithkind) - * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithmetricnamespace) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithrawquery) - * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithresourcegroup) - * [`fn withResourceName(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithresourcename) - * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnmetricnamespacequerywithsubscription) - * [`obj ResourceGroupsQuery`](#obj-grafanatemplatevariablefnresourcegroupsquery) - * [`fn withKind()`](#fn-grafanatemplatevariablefnresourcegroupsquerywithkind) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnresourcegroupsquerywithrawquery) - * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnresourcegroupsquerywithsubscription) - * [`obj ResourceNamesQuery`](#obj-grafanatemplatevariablefnresourcenamesquery) - * [`fn withKind()`](#fn-grafanatemplatevariablefnresourcenamesquerywithkind) - * [`fn withMetricNamespace(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithmetricnamespace) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithrawquery) - * [`fn withResourceGroup(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithresourcegroup) - * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnresourcenamesquerywithsubscription) - * [`obj SubscriptionsQuery`](#obj-grafanatemplatevariablefnsubscriptionsquery) - * [`fn withKind()`](#fn-grafanatemplatevariablefnsubscriptionsquerywithkind) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnsubscriptionsquerywithrawquery) - * [`obj UnknownQuery`](#obj-grafanatemplatevariablefnunknownquery) - * [`fn withKind()`](#fn-grafanatemplatevariablefnunknownquerywithkind) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnunknownquerywithrawquery) - * [`obj WorkspacesQuery`](#obj-grafanatemplatevariablefnworkspacesquery) - * [`fn withKind()`](#fn-grafanatemplatevariablefnworkspacesquerywithkind) - * [`fn withRawQuery(value)`](#fn-grafanatemplatevariablefnworkspacesquerywithrawquery) - * [`fn withSubscription(value)`](#fn-grafanatemplatevariablefnworkspacesquerywithsubscription) - -## Fields - -### fn withAzureLogAnalytics - -```jsonnet -withAzureLogAnalytics(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Azure Monitor Logs sub-query properties -### fn withAzureLogAnalyticsMixin - -```jsonnet -withAzureLogAnalyticsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Azure Monitor Logs sub-query properties -### fn withAzureMonitor - -```jsonnet -withAzureMonitor(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withAzureMonitorMixin - -```jsonnet -withAzureMonitorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withAzureResourceGraph - -```jsonnet -withAzureResourceGraph(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withAzureResourceGraphMixin - -```jsonnet -withAzureResourceGraphMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withAzureTraces - -```jsonnet -withAzureTraces(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Application Insights Traces sub-query properties -### fn withAzureTracesMixin - -```jsonnet -withAzureTracesMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Application Insights Traces sub-query properties -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -### fn withGrafanaTemplateVariableFn - -```jsonnet -withGrafanaTemplateVariableFn(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withGrafanaTemplateVariableFnMixin - -```jsonnet -withGrafanaTemplateVariableFnMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. -### fn withNamespace - -```jsonnet -withNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -### fn withRegion - -```jsonnet -withRegion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Azure Monitor query type. -queryType: #AzureQueryType -### fn withResource - -```jsonnet -withResource(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withResourceGroup - -```jsonnet -withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Template variables params. These exist for backwards compatiblity with legacy template variables. -### fn withSubscription - -```jsonnet -withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Azure subscription containing the resource(s) to be queried. -### fn withSubscriptions - -```jsonnet -withSubscriptions(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Subscriptions to be queried via Azure Resource Graph. -### fn withSubscriptionsMixin - -```jsonnet -withSubscriptionsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Subscriptions to be queried via Azure Resource Graph. -### obj azureLogAnalytics - - -#### fn azureLogAnalytics.withDashboardTime - -```jsonnet -azureLogAnalytics.withDashboardTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If set to true the dashboard time range will be used as a filter for the query. Otherwise the query time ranges will be used. Defaults to false. -#### fn azureLogAnalytics.withIntersectTime - -```jsonnet -azureLogAnalytics.withIntersectTime(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -@deprecated Use dashboardTime instead -#### fn azureLogAnalytics.withQuery - -```jsonnet -azureLogAnalytics.withQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - -KQL query to be executed. -#### fn azureLogAnalytics.withResource - -```jsonnet -azureLogAnalytics.withResource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Use resources instead -#### fn azureLogAnalytics.withResources - -```jsonnet -azureLogAnalytics.withResources(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of resource URIs to be queried. -#### fn azureLogAnalytics.withResourcesMixin - -```jsonnet -azureLogAnalytics.withResourcesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of resource URIs to be queried. -#### fn azureLogAnalytics.withResultFormat - -```jsonnet -azureLogAnalytics.withResultFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"table"`, `"time_series"`, `"trace"`, `"logs"` - - -#### fn azureLogAnalytics.withTimeColumn - -```jsonnet -azureLogAnalytics.withTimeColumn(value) -``` - -PARAMETERS: - -* **value** (`string`) - -If dashboardTime is set to true this value dictates which column the time filter will be applied to. Defaults to the first tables timeSpan column, the first datetime column found, or TimeGenerated -#### fn azureLogAnalytics.withWorkspace - -```jsonnet -azureLogAnalytics.withWorkspace(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Workspace ID. This was removed in Grafana 8, but remains for backwards compat. -### obj azureMonitor - - -#### fn azureMonitor.withAggregation - -```jsonnet -azureMonitor.withAggregation(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The aggregation to be used within the query. Defaults to the primaryAggregationType defined by the metric. -#### fn azureMonitor.withAlias - -```jsonnet -azureMonitor.withAlias(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Aliases can be set to modify the legend labels. e.g. {{ resourceGroup }}. See docs for more detail. -#### fn azureMonitor.withAllowedTimeGrainsMs - -```jsonnet -azureMonitor.withAllowedTimeGrainsMs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Time grains that are supported by the metric. -#### fn azureMonitor.withAllowedTimeGrainsMsMixin - -```jsonnet -azureMonitor.withAllowedTimeGrainsMsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Time grains that are supported by the metric. -#### fn azureMonitor.withCustomNamespace - -```jsonnet -azureMonitor.withCustomNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Used as the value for the metricNamespace property when it's different from the resource namespace. -#### fn azureMonitor.withDimension - -```jsonnet -azureMonitor.withDimension(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration -#### fn azureMonitor.withDimensionFilter - -```jsonnet -azureMonitor.withDimensionFilter(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration -#### fn azureMonitor.withDimensionFilters - -```jsonnet -azureMonitor.withDimensionFilters(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric. -#### fn azureMonitor.withDimensionFiltersMixin - -```jsonnet -azureMonitor.withDimensionFiltersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric. -#### fn azureMonitor.withMetricDefinition - -```jsonnet -azureMonitor.withMetricDefinition(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Use metricNamespace instead -#### fn azureMonitor.withMetricName - -```jsonnet -azureMonitor.withMetricName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The metric to query data for within the specified metricNamespace. e.g. UsedCapacity -#### fn azureMonitor.withMetricNamespace - -```jsonnet -azureMonitor.withMetricNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - -metricNamespace is used as the resource type (or resource namespace). -It's usually equal to the target metric namespace. e.g. microsoft.storage/storageaccounts -Kept the name of the variable as metricNamespace to avoid backward incompatibility issues. -#### fn azureMonitor.withRegion - -```jsonnet -azureMonitor.withRegion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The Azure region containing the resource(s). -#### fn azureMonitor.withResourceGroup - -```jsonnet -azureMonitor.withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Use resources instead -#### fn azureMonitor.withResourceName - -```jsonnet -azureMonitor.withResourceName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Use resources instead -#### fn azureMonitor.withResourceUri - -```jsonnet -azureMonitor.withResourceUri(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Use resourceGroup, resourceName and metricNamespace instead -#### fn azureMonitor.withResources - -```jsonnet -azureMonitor.withResources(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of resource URIs to be queried. -#### fn azureMonitor.withResourcesMixin - -```jsonnet -azureMonitor.withResourcesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of resource URIs to be queried. -#### fn azureMonitor.withTimeGrain - -```jsonnet -azureMonitor.withTimeGrain(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The granularity of data points to be queried. Defaults to auto. -#### fn azureMonitor.withTimeGrainUnit - -```jsonnet -azureMonitor.withTimeGrainUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated -#### fn azureMonitor.withTop - -```jsonnet -azureMonitor.withTop(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Maximum number of records to return. Defaults to 10. -### obj azureResourceGraph - - -#### fn azureResourceGraph.withQuery - -```jsonnet -azureResourceGraph.withQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Azure Resource Graph KQL query to be executed. -#### fn azureResourceGraph.withResultFormat - -```jsonnet -azureResourceGraph.withResultFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specifies the format results should be returned as. Defaults to table. -### obj azureTraces - - -#### fn azureTraces.withFilters - -```jsonnet -azureTraces.withFilters(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Filters for property values. -#### fn azureTraces.withFiltersMixin - -```jsonnet -azureTraces.withFiltersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Filters for property values. -#### fn azureTraces.withOperationId - -```jsonnet -azureTraces.withOperationId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Operation ID. Used only for Traces queries. -#### fn azureTraces.withQuery - -```jsonnet -azureTraces.withQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - -KQL query to be executed. -#### fn azureTraces.withResources - -```jsonnet -azureTraces.withResources(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of resource URIs to be queried. -#### fn azureTraces.withResourcesMixin - -```jsonnet -azureTraces.withResourcesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of resource URIs to be queried. -#### fn azureTraces.withResultFormat - -```jsonnet -azureTraces.withResultFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"table"`, `"time_series"`, `"trace"`, `"logs"` - - -#### fn azureTraces.withTraceTypes - -```jsonnet -azureTraces.withTraceTypes(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Types of events to filter by. -#### fn azureTraces.withTraceTypesMixin - -```jsonnet -azureTraces.withTraceTypesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Types of events to filter by. -### obj grafanaTemplateVariableFn - - -#### fn grafanaTemplateVariableFn.withAppInsightsGroupByQuery - -```jsonnet -grafanaTemplateVariableFn.withAppInsightsGroupByQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withAppInsightsGroupByQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withAppInsightsGroupByQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withAppInsightsMetricNameQuery - -```jsonnet -grafanaTemplateVariableFn.withAppInsightsMetricNameQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withAppInsightsMetricNameQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withAppInsightsMetricNameQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withMetricDefinitionsQuery - -```jsonnet -grafanaTemplateVariableFn.withMetricDefinitionsQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - -@deprecated Use MetricNamespaceQuery instead -#### fn grafanaTemplateVariableFn.withMetricDefinitionsQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withMetricDefinitionsQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -@deprecated Use MetricNamespaceQuery instead -#### fn grafanaTemplateVariableFn.withMetricNamesQuery - -```jsonnet -grafanaTemplateVariableFn.withMetricNamesQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withMetricNamesQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withMetricNamesQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withMetricNamespaceQuery - -```jsonnet -grafanaTemplateVariableFn.withMetricNamespaceQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withMetricNamespaceQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withMetricNamespaceQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withResourceGroupsQuery - -```jsonnet -grafanaTemplateVariableFn.withResourceGroupsQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withResourceGroupsQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withResourceGroupsQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withResourceNamesQuery - -```jsonnet -grafanaTemplateVariableFn.withResourceNamesQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withResourceNamesQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withResourceNamesQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withSubscriptionsQuery - -```jsonnet -grafanaTemplateVariableFn.withSubscriptionsQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withSubscriptionsQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withSubscriptionsQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withUnknownQuery - -```jsonnet -grafanaTemplateVariableFn.withUnknownQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withUnknownQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withUnknownQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withWorkspacesQuery - -```jsonnet -grafanaTemplateVariableFn.withWorkspacesQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn grafanaTemplateVariableFn.withWorkspacesQueryMixin - -```jsonnet -grafanaTemplateVariableFn.withWorkspacesQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### obj grafanaTemplateVariableFn.AppInsightsGroupByQuery - - -##### fn grafanaTemplateVariableFn.AppInsightsGroupByQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.AppInsightsGroupByQuery.withKind() -``` - - - -##### fn grafanaTemplateVariableFn.AppInsightsGroupByQuery.withMetricName - -```jsonnet -grafanaTemplateVariableFn.AppInsightsGroupByQuery.withMetricName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.AppInsightsGroupByQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.AppInsightsGroupByQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.AppInsightsMetricNameQuery - - -##### fn grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withKind() -``` - - - -##### fn grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.AppInsightsMetricNameQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.MetricDefinitionsQuery - - -##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.MetricDefinitionsQuery.withKind() -``` - - - -##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withMetricNamespace - -```jsonnet -grafanaTemplateVariableFn.MetricDefinitionsQuery.withMetricNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.MetricDefinitionsQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceGroup - -```jsonnet -grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceName - -```jsonnet -grafanaTemplateVariableFn.MetricDefinitionsQuery.withResourceName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricDefinitionsQuery.withSubscription - -```jsonnet -grafanaTemplateVariableFn.MetricDefinitionsQuery.withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.MetricNamesQuery - - -##### fn grafanaTemplateVariableFn.MetricNamesQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.MetricNamesQuery.withKind() -``` - - - -##### fn grafanaTemplateVariableFn.MetricNamesQuery.withMetricNamespace - -```jsonnet -grafanaTemplateVariableFn.MetricNamesQuery.withMetricNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamesQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.MetricNamesQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamesQuery.withResourceGroup - -```jsonnet -grafanaTemplateVariableFn.MetricNamesQuery.withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamesQuery.withResourceName - -```jsonnet -grafanaTemplateVariableFn.MetricNamesQuery.withResourceName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamesQuery.withSubscription - -```jsonnet -grafanaTemplateVariableFn.MetricNamesQuery.withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.MetricNamespaceQuery - - -##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.MetricNamespaceQuery.withKind() -``` - - - -##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withMetricNamespace - -```jsonnet -grafanaTemplateVariableFn.MetricNamespaceQuery.withMetricNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.MetricNamespaceQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceGroup - -```jsonnet -grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceName - -```jsonnet -grafanaTemplateVariableFn.MetricNamespaceQuery.withResourceName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.MetricNamespaceQuery.withSubscription - -```jsonnet -grafanaTemplateVariableFn.MetricNamespaceQuery.withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.ResourceGroupsQuery - - -##### fn grafanaTemplateVariableFn.ResourceGroupsQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.ResourceGroupsQuery.withKind() -``` - - - -##### fn grafanaTemplateVariableFn.ResourceGroupsQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.ResourceGroupsQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.ResourceGroupsQuery.withSubscription - -```jsonnet -grafanaTemplateVariableFn.ResourceGroupsQuery.withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.ResourceNamesQuery - - -##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.ResourceNamesQuery.withKind() -``` - - - -##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withMetricNamespace - -```jsonnet -grafanaTemplateVariableFn.ResourceNamesQuery.withMetricNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.ResourceNamesQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withResourceGroup - -```jsonnet -grafanaTemplateVariableFn.ResourceNamesQuery.withResourceGroup(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.ResourceNamesQuery.withSubscription - -```jsonnet -grafanaTemplateVariableFn.ResourceNamesQuery.withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.SubscriptionsQuery - - -##### fn grafanaTemplateVariableFn.SubscriptionsQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.SubscriptionsQuery.withKind() -``` - - - -##### fn grafanaTemplateVariableFn.SubscriptionsQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.SubscriptionsQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.UnknownQuery - - -##### fn grafanaTemplateVariableFn.UnknownQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.UnknownQuery.withKind() -``` - - - -##### fn grafanaTemplateVariableFn.UnknownQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.UnknownQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj grafanaTemplateVariableFn.WorkspacesQuery - - -##### fn grafanaTemplateVariableFn.WorkspacesQuery.withKind - -```jsonnet -grafanaTemplateVariableFn.WorkspacesQuery.withKind() -``` - - - -##### fn grafanaTemplateVariableFn.WorkspacesQuery.withRawQuery - -```jsonnet -grafanaTemplateVariableFn.WorkspacesQuery.withRawQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn grafanaTemplateVariableFn.WorkspacesQuery.withSubscription - -```jsonnet -grafanaTemplateVariableFn.WorkspacesQuery.withSubscription(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchLogsQuery/logGroups.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchLogsQuery/logGroups.md deleted file mode 100644 index a59d7777b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchLogsQuery/logGroups.md +++ /dev/null @@ -1,57 +0,0 @@ -# logGroups - - - -## Index - -* [`fn withAccountId(value)`](#fn-withaccountid) -* [`fn withAccountLabel(value)`](#fn-withaccountlabel) -* [`fn withArn(value)`](#fn-witharn) -* [`fn withName(value)`](#fn-withname) - -## Fields - -### fn withAccountId - -```jsonnet -withAccountId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -AccountId of the log group -### fn withAccountLabel - -```jsonnet -withAccountLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Label of the log group -### fn withArn - -```jsonnet -withArn(value) -``` - -PARAMETERS: - -* **value** (`string`) - -ARN of the log group -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the log group \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md deleted file mode 100644 index d2fb19d90..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md +++ /dev/null @@ -1,29 +0,0 @@ -# parameters - - - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withType()`](#fn-withtype) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/orderBy/parameters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/orderBy/parameters.md deleted file mode 100644 index d2fb19d90..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/orderBy/parameters.md +++ /dev/null @@ -1,29 +0,0 @@ -# parameters - - - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withType()`](#fn-withtype) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/select/parameters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/select/parameters.md deleted file mode 100644 index d2fb19d90..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/CloudWatchMetricsQuery/sql/select/parameters.md +++ /dev/null @@ -1,29 +0,0 @@ -# parameters - - - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withType()`](#fn-withtype) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withType - -```jsonnet -withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/index.md deleted file mode 100644 index 71a7abec1..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/cloudWatch/index.md +++ /dev/null @@ -1,1245 +0,0 @@ -# cloudWatch - -grafonnet.query.cloudWatch - -## Subpackages - -* [CloudWatchLogsQuery.logGroups](CloudWatchLogsQuery/logGroups.md) -* [CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.parameters](CloudWatchMetricsQuery/sql/from/QueryEditorFunctionExpression/parameters.md) -* [CloudWatchMetricsQuery.sql.orderBy.parameters](CloudWatchMetricsQuery/sql/orderBy/parameters.md) -* [CloudWatchMetricsQuery.sql.select.parameters](CloudWatchMetricsQuery/sql/select/parameters.md) - -## Index - -* [`obj CloudWatchAnnotationQuery`](#obj-cloudwatchannotationquery) - * [`fn withAccountId(value)`](#fn-cloudwatchannotationquerywithaccountid) - * [`fn withActionPrefix(value)`](#fn-cloudwatchannotationquerywithactionprefix) - * [`fn withAlarmNamePrefix(value)`](#fn-cloudwatchannotationquerywithalarmnameprefix) - * [`fn withDatasource(value)`](#fn-cloudwatchannotationquerywithdatasource) - * [`fn withDimensions(value)`](#fn-cloudwatchannotationquerywithdimensions) - * [`fn withDimensionsMixin(value)`](#fn-cloudwatchannotationquerywithdimensionsmixin) - * [`fn withHide(value=true)`](#fn-cloudwatchannotationquerywithhide) - * [`fn withMatchExact(value=true)`](#fn-cloudwatchannotationquerywithmatchexact) - * [`fn withMetricName(value)`](#fn-cloudwatchannotationquerywithmetricname) - * [`fn withNamespace(value)`](#fn-cloudwatchannotationquerywithnamespace) - * [`fn withPeriod(value)`](#fn-cloudwatchannotationquerywithperiod) - * [`fn withPrefixMatching(value=true)`](#fn-cloudwatchannotationquerywithprefixmatching) - * [`fn withQueryMode(value)`](#fn-cloudwatchannotationquerywithquerymode) - * [`fn withQueryType(value)`](#fn-cloudwatchannotationquerywithquerytype) - * [`fn withRefId(value)`](#fn-cloudwatchannotationquerywithrefid) - * [`fn withRegion(value)`](#fn-cloudwatchannotationquerywithregion) - * [`fn withStatistic(value)`](#fn-cloudwatchannotationquerywithstatistic) - * [`fn withStatistics(value)`](#fn-cloudwatchannotationquerywithstatistics) - * [`fn withStatisticsMixin(value)`](#fn-cloudwatchannotationquerywithstatisticsmixin) -* [`obj CloudWatchLogsQuery`](#obj-cloudwatchlogsquery) - * [`fn withDatasource(value)`](#fn-cloudwatchlogsquerywithdatasource) - * [`fn withExpression(value)`](#fn-cloudwatchlogsquerywithexpression) - * [`fn withHide(value=true)`](#fn-cloudwatchlogsquerywithhide) - * [`fn withId(value)`](#fn-cloudwatchlogsquerywithid) - * [`fn withLogGroupNames(value)`](#fn-cloudwatchlogsquerywithloggroupnames) - * [`fn withLogGroupNamesMixin(value)`](#fn-cloudwatchlogsquerywithloggroupnamesmixin) - * [`fn withLogGroups(value)`](#fn-cloudwatchlogsquerywithloggroups) - * [`fn withLogGroupsMixin(value)`](#fn-cloudwatchlogsquerywithloggroupsmixin) - * [`fn withQueryMode(value)`](#fn-cloudwatchlogsquerywithquerymode) - * [`fn withQueryType(value)`](#fn-cloudwatchlogsquerywithquerytype) - * [`fn withRefId(value)`](#fn-cloudwatchlogsquerywithrefid) - * [`fn withRegion(value)`](#fn-cloudwatchlogsquerywithregion) - * [`fn withStatsGroups(value)`](#fn-cloudwatchlogsquerywithstatsgroups) - * [`fn withStatsGroupsMixin(value)`](#fn-cloudwatchlogsquerywithstatsgroupsmixin) -* [`obj CloudWatchMetricsQuery`](#obj-cloudwatchmetricsquery) - * [`fn withAccountId(value)`](#fn-cloudwatchmetricsquerywithaccountid) - * [`fn withAlias(value)`](#fn-cloudwatchmetricsquerywithalias) - * [`fn withDatasource(value)`](#fn-cloudwatchmetricsquerywithdatasource) - * [`fn withDimensions(value)`](#fn-cloudwatchmetricsquerywithdimensions) - * [`fn withDimensionsMixin(value)`](#fn-cloudwatchmetricsquerywithdimensionsmixin) - * [`fn withExpression(value)`](#fn-cloudwatchmetricsquerywithexpression) - * [`fn withHide(value=true)`](#fn-cloudwatchmetricsquerywithhide) - * [`fn withId(value)`](#fn-cloudwatchmetricsquerywithid) - * [`fn withLabel(value)`](#fn-cloudwatchmetricsquerywithlabel) - * [`fn withMatchExact(value=true)`](#fn-cloudwatchmetricsquerywithmatchexact) - * [`fn withMetricEditorMode(value)`](#fn-cloudwatchmetricsquerywithmetriceditormode) - * [`fn withMetricName(value)`](#fn-cloudwatchmetricsquerywithmetricname) - * [`fn withMetricQueryType(value)`](#fn-cloudwatchmetricsquerywithmetricquerytype) - * [`fn withNamespace(value)`](#fn-cloudwatchmetricsquerywithnamespace) - * [`fn withPeriod(value)`](#fn-cloudwatchmetricsquerywithperiod) - * [`fn withQueryMode(value)`](#fn-cloudwatchmetricsquerywithquerymode) - * [`fn withQueryType(value)`](#fn-cloudwatchmetricsquerywithquerytype) - * [`fn withRefId(value)`](#fn-cloudwatchmetricsquerywithrefid) - * [`fn withRegion(value)`](#fn-cloudwatchmetricsquerywithregion) - * [`fn withSql(value)`](#fn-cloudwatchmetricsquerywithsql) - * [`fn withSqlExpression(value)`](#fn-cloudwatchmetricsquerywithsqlexpression) - * [`fn withSqlMixin(value)`](#fn-cloudwatchmetricsquerywithsqlmixin) - * [`fn withStatistic(value)`](#fn-cloudwatchmetricsquerywithstatistic) - * [`fn withStatistics(value)`](#fn-cloudwatchmetricsquerywithstatistics) - * [`fn withStatisticsMixin(value)`](#fn-cloudwatchmetricsquerywithstatisticsmixin) - * [`obj sql`](#obj-cloudwatchmetricsquerysql) - * [`fn withFrom(value)`](#fn-cloudwatchmetricsquerysqlwithfrom) - * [`fn withFromMixin(value)`](#fn-cloudwatchmetricsquerysqlwithfrommixin) - * [`fn withGroupBy(value)`](#fn-cloudwatchmetricsquerysqlwithgroupby) - * [`fn withGroupByMixin(value)`](#fn-cloudwatchmetricsquerysqlwithgroupbymixin) - * [`fn withLimit(value)`](#fn-cloudwatchmetricsquerysqlwithlimit) - * [`fn withOrderBy(value)`](#fn-cloudwatchmetricsquerysqlwithorderby) - * [`fn withOrderByDirection(value)`](#fn-cloudwatchmetricsquerysqlwithorderbydirection) - * [`fn withOrderByMixin(value)`](#fn-cloudwatchmetricsquerysqlwithorderbymixin) - * [`fn withSelect(value)`](#fn-cloudwatchmetricsquerysqlwithselect) - * [`fn withSelectMixin(value)`](#fn-cloudwatchmetricsquerysqlwithselectmixin) - * [`fn withWhere(value)`](#fn-cloudwatchmetricsquerysqlwithwhere) - * [`fn withWhereMixin(value)`](#fn-cloudwatchmetricsquerysqlwithwheremixin) - * [`obj from`](#obj-cloudwatchmetricsquerysqlfrom) - * [`fn withQueryEditorFunctionExpression(value)`](#fn-cloudwatchmetricsquerysqlfromwithqueryeditorfunctionexpression) - * [`fn withQueryEditorFunctionExpressionMixin(value)`](#fn-cloudwatchmetricsquerysqlfromwithqueryeditorfunctionexpressionmixin) - * [`fn withQueryEditorPropertyExpression(value)`](#fn-cloudwatchmetricsquerysqlfromwithqueryeditorpropertyexpression) - * [`fn withQueryEditorPropertyExpressionMixin(value)`](#fn-cloudwatchmetricsquerysqlfromwithqueryeditorpropertyexpressionmixin) - * [`obj QueryEditorFunctionExpression`](#obj-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpression) - * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithname) - * [`fn withParameters(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithparameters) - * [`fn withParametersMixin(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithparametersmixin) - * [`fn withType()`](#fn-cloudwatchmetricsquerysqlfromqueryeditorfunctionexpressionwithtype) - * [`obj QueryEditorPropertyExpression`](#obj-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpression) - * [`fn withProperty(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionwithproperty) - * [`fn withPropertyMixin(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionwithpropertymixin) - * [`fn withType()`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionwithtype) - * [`obj property`](#obj-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionproperty) - * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionpropertywithname) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlfromqueryeditorpropertyexpressionpropertywithtype) - * [`obj groupBy`](#obj-cloudwatchmetricsquerysqlgroupby) - * [`fn withExpressions(value)`](#fn-cloudwatchmetricsquerysqlgroupbywithexpressions) - * [`fn withExpressionsMixin(value)`](#fn-cloudwatchmetricsquerysqlgroupbywithexpressionsmixin) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlgroupbywithtype) - * [`obj orderBy`](#obj-cloudwatchmetricsquerysqlorderby) - * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlorderbywithname) - * [`fn withParameters(value)`](#fn-cloudwatchmetricsquerysqlorderbywithparameters) - * [`fn withParametersMixin(value)`](#fn-cloudwatchmetricsquerysqlorderbywithparametersmixin) - * [`fn withType()`](#fn-cloudwatchmetricsquerysqlorderbywithtype) - * [`obj select`](#obj-cloudwatchmetricsquerysqlselect) - * [`fn withName(value)`](#fn-cloudwatchmetricsquerysqlselectwithname) - * [`fn withParameters(value)`](#fn-cloudwatchmetricsquerysqlselectwithparameters) - * [`fn withParametersMixin(value)`](#fn-cloudwatchmetricsquerysqlselectwithparametersmixin) - * [`fn withType()`](#fn-cloudwatchmetricsquerysqlselectwithtype) - * [`obj where`](#obj-cloudwatchmetricsquerysqlwhere) - * [`fn withExpressions(value)`](#fn-cloudwatchmetricsquerysqlwherewithexpressions) - * [`fn withExpressionsMixin(value)`](#fn-cloudwatchmetricsquerysqlwherewithexpressionsmixin) - * [`fn withType(value)`](#fn-cloudwatchmetricsquerysqlwherewithtype) - -## Fields - -### obj CloudWatchAnnotationQuery - - -#### fn CloudWatchAnnotationQuery.withAccountId - -```jsonnet -CloudWatchAnnotationQuery.withAccountId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query. -#### fn CloudWatchAnnotationQuery.withActionPrefix - -```jsonnet -CloudWatchAnnotationQuery.withActionPrefix(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Use this parameter to filter the results of the operation to only those alarms -that use a certain alarm action. For example, you could specify the ARN of -an SNS topic to find all alarms that send notifications to that topic. -e.g. `arn:aws:sns:us-east-1:123456789012:my-app-` would match `arn:aws:sns:us-east-1:123456789012:my-app-action` -but not match `arn:aws:sns:us-east-1:123456789012:your-app-action` -#### fn CloudWatchAnnotationQuery.withAlarmNamePrefix - -```jsonnet -CloudWatchAnnotationQuery.withAlarmNamePrefix(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An alarm name prefix. If you specify this parameter, you receive information -about all alarms that have names that start with this prefix. -e.g. `my-team-service-` would match `my-team-service-high-cpu` but not match `your-team-service-high-cpu` -#### fn CloudWatchAnnotationQuery.withDatasource - -```jsonnet -CloudWatchAnnotationQuery.withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -#### fn CloudWatchAnnotationQuery.withDimensions - -```jsonnet -CloudWatchAnnotationQuery.withDimensions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. -#### fn CloudWatchAnnotationQuery.withDimensionsMixin - -```jsonnet -CloudWatchAnnotationQuery.withDimensionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. -#### fn CloudWatchAnnotationQuery.withHide - -```jsonnet -CloudWatchAnnotationQuery.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. -#### fn CloudWatchAnnotationQuery.withMatchExact - -```jsonnet -CloudWatchAnnotationQuery.withMatchExact(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Only show metrics that exactly match all defined dimension names. -#### fn CloudWatchAnnotationQuery.withMetricName - -```jsonnet -CloudWatchAnnotationQuery.withMetricName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the metric -#### fn CloudWatchAnnotationQuery.withNamespace - -```jsonnet -CloudWatchAnnotationQuery.withNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace. -#### fn CloudWatchAnnotationQuery.withPeriod - -```jsonnet -CloudWatchAnnotationQuery.withPeriod(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes -#### fn CloudWatchAnnotationQuery.withPrefixMatching - -```jsonnet -CloudWatchAnnotationQuery.withPrefixMatching(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Enable matching on the prefix of the action name or alarm name, specify the prefixes with actionPrefix and/or alarmNamePrefix -#### fn CloudWatchAnnotationQuery.withQueryMode - -```jsonnet -CloudWatchAnnotationQuery.withQueryMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"Metrics"`, `"Logs"`, `"Annotations"` - - -#### fn CloudWatchAnnotationQuery.withQueryType - -```jsonnet -CloudWatchAnnotationQuery.withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -#### fn CloudWatchAnnotationQuery.withRefId - -```jsonnet -CloudWatchAnnotationQuery.withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -#### fn CloudWatchAnnotationQuery.withRegion - -```jsonnet -CloudWatchAnnotationQuery.withRegion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -AWS region to query for the metric -#### fn CloudWatchAnnotationQuery.withStatistic - -```jsonnet -CloudWatchAnnotationQuery.withStatistic(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html. -#### fn CloudWatchAnnotationQuery.withStatistics - -```jsonnet -CloudWatchAnnotationQuery.withStatistics(value) -``` - -PARAMETERS: - -* **value** (`array`) - -@deprecated use statistic -#### fn CloudWatchAnnotationQuery.withStatisticsMixin - -```jsonnet -CloudWatchAnnotationQuery.withStatisticsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -@deprecated use statistic -### obj CloudWatchLogsQuery - - -#### fn CloudWatchLogsQuery.withDatasource - -```jsonnet -CloudWatchLogsQuery.withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -#### fn CloudWatchLogsQuery.withExpression - -```jsonnet -CloudWatchLogsQuery.withExpression(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The CloudWatch Logs Insights query to execute -#### fn CloudWatchLogsQuery.withHide - -```jsonnet -CloudWatchLogsQuery.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. -#### fn CloudWatchLogsQuery.withId - -```jsonnet -CloudWatchLogsQuery.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn CloudWatchLogsQuery.withLogGroupNames - -```jsonnet -CloudWatchLogsQuery.withLogGroupNames(value) -``` - -PARAMETERS: - -* **value** (`array`) - -@deprecated use logGroups -#### fn CloudWatchLogsQuery.withLogGroupNamesMixin - -```jsonnet -CloudWatchLogsQuery.withLogGroupNamesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -@deprecated use logGroups -#### fn CloudWatchLogsQuery.withLogGroups - -```jsonnet -CloudWatchLogsQuery.withLogGroups(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Log groups to query -#### fn CloudWatchLogsQuery.withLogGroupsMixin - -```jsonnet -CloudWatchLogsQuery.withLogGroupsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Log groups to query -#### fn CloudWatchLogsQuery.withQueryMode - -```jsonnet -CloudWatchLogsQuery.withQueryMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"Metrics"`, `"Logs"`, `"Annotations"` - - -#### fn CloudWatchLogsQuery.withQueryType - -```jsonnet -CloudWatchLogsQuery.withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -#### fn CloudWatchLogsQuery.withRefId - -```jsonnet -CloudWatchLogsQuery.withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -#### fn CloudWatchLogsQuery.withRegion - -```jsonnet -CloudWatchLogsQuery.withRegion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -AWS region to query for the logs -#### fn CloudWatchLogsQuery.withStatsGroups - -```jsonnet -CloudWatchLogsQuery.withStatsGroups(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Fields to group the results by, this field is automatically populated whenever the query is updated -#### fn CloudWatchLogsQuery.withStatsGroupsMixin - -```jsonnet -CloudWatchLogsQuery.withStatsGroupsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Fields to group the results by, this field is automatically populated whenever the query is updated -### obj CloudWatchMetricsQuery - - -#### fn CloudWatchMetricsQuery.withAccountId - -```jsonnet -CloudWatchMetricsQuery.withAccountId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query. -#### fn CloudWatchMetricsQuery.withAlias - -```jsonnet -CloudWatchMetricsQuery.withAlias(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Deprecated: use label -@deprecated use label -#### fn CloudWatchMetricsQuery.withDatasource - -```jsonnet -CloudWatchMetricsQuery.withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -#### fn CloudWatchMetricsQuery.withDimensions - -```jsonnet -CloudWatchMetricsQuery.withDimensions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. -#### fn CloudWatchMetricsQuery.withDimensionsMixin - -```jsonnet -CloudWatchMetricsQuery.withDimensionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics. -#### fn CloudWatchMetricsQuery.withExpression - -```jsonnet -CloudWatchMetricsQuery.withExpression(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Math expression query -#### fn CloudWatchMetricsQuery.withHide - -```jsonnet -CloudWatchMetricsQuery.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. -#### fn CloudWatchMetricsQuery.withId - -```jsonnet -CloudWatchMetricsQuery.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -ID can be used to reference other queries in math expressions. The ID can include numbers, letters, and underscore, and must start with a lowercase letter. -#### fn CloudWatchMetricsQuery.withLabel - -```jsonnet -CloudWatchMetricsQuery.withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Change the time series legend names using dynamic labels. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html for more details. -#### fn CloudWatchMetricsQuery.withMatchExact - -```jsonnet -CloudWatchMetricsQuery.withMatchExact(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Only show metrics that exactly match all defined dimension names. -#### fn CloudWatchMetricsQuery.withMetricEditorMode - -```jsonnet -CloudWatchMetricsQuery.withMetricEditorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `0`, `1` - - -#### fn CloudWatchMetricsQuery.withMetricName - -```jsonnet -CloudWatchMetricsQuery.withMetricName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the metric -#### fn CloudWatchMetricsQuery.withMetricQueryType - -```jsonnet -CloudWatchMetricsQuery.withMetricQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `0`, `1` - - -#### fn CloudWatchMetricsQuery.withNamespace - -```jsonnet -CloudWatchMetricsQuery.withNamespace(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace. -#### fn CloudWatchMetricsQuery.withPeriod - -```jsonnet -CloudWatchMetricsQuery.withPeriod(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes -#### fn CloudWatchMetricsQuery.withQueryMode - -```jsonnet -CloudWatchMetricsQuery.withQueryMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"Metrics"`, `"Logs"`, `"Annotations"` - - -#### fn CloudWatchMetricsQuery.withQueryType - -```jsonnet -CloudWatchMetricsQuery.withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -#### fn CloudWatchMetricsQuery.withRefId - -```jsonnet -CloudWatchMetricsQuery.withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -#### fn CloudWatchMetricsQuery.withRegion - -```jsonnet -CloudWatchMetricsQuery.withRegion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -AWS region to query for the metric -#### fn CloudWatchMetricsQuery.withSql - -```jsonnet -CloudWatchMetricsQuery.withSql(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn CloudWatchMetricsQuery.withSqlExpression - -```jsonnet -CloudWatchMetricsQuery.withSqlExpression(value) -``` - -PARAMETERS: - -* **value** (`string`) - -When the metric query type is `metricQueryType` is set to `Query`, this field is used to specify the query string. -#### fn CloudWatchMetricsQuery.withSqlMixin - -```jsonnet -CloudWatchMetricsQuery.withSqlMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn CloudWatchMetricsQuery.withStatistic - -```jsonnet -CloudWatchMetricsQuery.withStatistic(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html. -#### fn CloudWatchMetricsQuery.withStatistics - -```jsonnet -CloudWatchMetricsQuery.withStatistics(value) -``` - -PARAMETERS: - -* **value** (`array`) - -@deprecated use statistic -#### fn CloudWatchMetricsQuery.withStatisticsMixin - -```jsonnet -CloudWatchMetricsQuery.withStatisticsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -@deprecated use statistic -#### obj CloudWatchMetricsQuery.sql - - -##### fn CloudWatchMetricsQuery.sql.withFrom - -```jsonnet -CloudWatchMetricsQuery.sql.withFrom(value) -``` - -PARAMETERS: - -* **value** (`object`) - -FROM part of the SQL expression -##### fn CloudWatchMetricsQuery.sql.withFromMixin - -```jsonnet -CloudWatchMetricsQuery.sql.withFromMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -FROM part of the SQL expression -##### fn CloudWatchMetricsQuery.sql.withGroupBy - -```jsonnet -CloudWatchMetricsQuery.sql.withGroupBy(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withGroupByMixin - -```jsonnet -CloudWatchMetricsQuery.sql.withGroupByMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withLimit - -```jsonnet -CloudWatchMetricsQuery.sql.withLimit(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -LIMIT part of the SQL expression -##### fn CloudWatchMetricsQuery.sql.withOrderBy - -```jsonnet -CloudWatchMetricsQuery.sql.withOrderBy(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withOrderByDirection - -```jsonnet -CloudWatchMetricsQuery.sql.withOrderByDirection(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The sort order of the SQL expression, `ASC` or `DESC` -##### fn CloudWatchMetricsQuery.sql.withOrderByMixin - -```jsonnet -CloudWatchMetricsQuery.sql.withOrderByMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withSelect - -```jsonnet -CloudWatchMetricsQuery.sql.withSelect(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withSelectMixin - -```jsonnet -CloudWatchMetricsQuery.sql.withSelectMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withWhere - -```jsonnet -CloudWatchMetricsQuery.sql.withWhere(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn CloudWatchMetricsQuery.sql.withWhereMixin - -```jsonnet -CloudWatchMetricsQuery.sql.withWhereMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### obj CloudWatchMetricsQuery.sql.from - - -###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpression - -```jsonnet -CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpression(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpressionMixin - -```jsonnet -CloudWatchMetricsQuery.sql.from.withQueryEditorFunctionExpressionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpression - -```jsonnet -CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpression(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### fn CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpressionMixin - -```jsonnet -CloudWatchMetricsQuery.sql.from.withQueryEditorPropertyExpressionMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -###### obj CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withName - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParameters - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParameters(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParametersMixin - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withParametersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withType - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorFunctionExpression.withType() -``` - - - -###### obj CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withProperty - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withProperty(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withPropertyMixin - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withPropertyMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -####### fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withType - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.withType() -``` - - - -####### obj CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property - - -######## fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withName - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -######## fn CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withType - -```jsonnet -CloudWatchMetricsQuery.sql.from.QueryEditorPropertyExpression.property.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"string"` - - -##### obj CloudWatchMetricsQuery.sql.groupBy - - -###### fn CloudWatchMetricsQuery.sql.groupBy.withExpressions - -```jsonnet -CloudWatchMetricsQuery.sql.groupBy.withExpressions(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.groupBy.withExpressionsMixin - -```jsonnet -CloudWatchMetricsQuery.sql.groupBy.withExpressionsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.groupBy.withType - -```jsonnet -CloudWatchMetricsQuery.sql.groupBy.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"and"`, `"or"` - - -##### obj CloudWatchMetricsQuery.sql.orderBy - - -###### fn CloudWatchMetricsQuery.sql.orderBy.withName - -```jsonnet -CloudWatchMetricsQuery.sql.orderBy.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn CloudWatchMetricsQuery.sql.orderBy.withParameters - -```jsonnet -CloudWatchMetricsQuery.sql.orderBy.withParameters(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.orderBy.withParametersMixin - -```jsonnet -CloudWatchMetricsQuery.sql.orderBy.withParametersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.orderBy.withType - -```jsonnet -CloudWatchMetricsQuery.sql.orderBy.withType() -``` - - - -##### obj CloudWatchMetricsQuery.sql.select - - -###### fn CloudWatchMetricsQuery.sql.select.withName - -```jsonnet -CloudWatchMetricsQuery.sql.select.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn CloudWatchMetricsQuery.sql.select.withParameters - -```jsonnet -CloudWatchMetricsQuery.sql.select.withParameters(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.select.withParametersMixin - -```jsonnet -CloudWatchMetricsQuery.sql.select.withParametersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.select.withType - -```jsonnet -CloudWatchMetricsQuery.sql.select.withType() -``` - - - -##### obj CloudWatchMetricsQuery.sql.where - - -###### fn CloudWatchMetricsQuery.sql.where.withExpressions - -```jsonnet -CloudWatchMetricsQuery.sql.where.withExpressions(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.where.withExpressionsMixin - -```jsonnet -CloudWatchMetricsQuery.sql.where.withExpressionsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn CloudWatchMetricsQuery.sql.where.withType - -```jsonnet -CloudWatchMetricsQuery.sql.where.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"and"`, `"or"` - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/bucketAggs/Filters/settings/filters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/bucketAggs/Filters/settings/filters.md deleted file mode 100644 index 34d28192c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/bucketAggs/Filters/settings/filters.md +++ /dev/null @@ -1,32 +0,0 @@ -# filters - - - -## Index - -* [`fn withLabel(value)`](#fn-withlabel) -* [`fn withQuery(value)`](#fn-withquery) - -## Fields - -### fn withLabel - -```jsonnet -withLabel(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withQuery - -```jsonnet -withQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/bucketAggs/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/bucketAggs/index.md deleted file mode 100644 index f98cbdea5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/bucketAggs/index.md +++ /dev/null @@ -1,567 +0,0 @@ -# bucketAggs - - - -## Subpackages - -* [Filters.settings.filters](Filters/settings/filters.md) - -## Index - -* [`obj DateHistogram`](#obj-datehistogram) - * [`fn withField(value)`](#fn-datehistogramwithfield) - * [`fn withId(value)`](#fn-datehistogramwithid) - * [`fn withSettings(value)`](#fn-datehistogramwithsettings) - * [`fn withSettingsMixin(value)`](#fn-datehistogramwithsettingsmixin) - * [`fn withType()`](#fn-datehistogramwithtype) - * [`obj settings`](#obj-datehistogramsettings) - * [`fn withInterval(value)`](#fn-datehistogramsettingswithinterval) - * [`fn withMinDocCount(value)`](#fn-datehistogramsettingswithmindoccount) - * [`fn withOffset(value)`](#fn-datehistogramsettingswithoffset) - * [`fn withTimeZone(value)`](#fn-datehistogramsettingswithtimezone) - * [`fn withTrimEdges(value)`](#fn-datehistogramsettingswithtrimedges) -* [`obj Filters`](#obj-filters) - * [`fn withId(value)`](#fn-filterswithid) - * [`fn withSettings(value)`](#fn-filterswithsettings) - * [`fn withSettingsMixin(value)`](#fn-filterswithsettingsmixin) - * [`fn withType()`](#fn-filterswithtype) - * [`obj settings`](#obj-filterssettings) - * [`fn withFilters(value)`](#fn-filterssettingswithfilters) - * [`fn withFiltersMixin(value)`](#fn-filterssettingswithfiltersmixin) -* [`obj GeoHashGrid`](#obj-geohashgrid) - * [`fn withField(value)`](#fn-geohashgridwithfield) - * [`fn withId(value)`](#fn-geohashgridwithid) - * [`fn withSettings(value)`](#fn-geohashgridwithsettings) - * [`fn withSettingsMixin(value)`](#fn-geohashgridwithsettingsmixin) - * [`fn withType()`](#fn-geohashgridwithtype) - * [`obj settings`](#obj-geohashgridsettings) - * [`fn withPrecision(value)`](#fn-geohashgridsettingswithprecision) -* [`obj Histogram`](#obj-histogram) - * [`fn withField(value)`](#fn-histogramwithfield) - * [`fn withId(value)`](#fn-histogramwithid) - * [`fn withSettings(value)`](#fn-histogramwithsettings) - * [`fn withSettingsMixin(value)`](#fn-histogramwithsettingsmixin) - * [`fn withType()`](#fn-histogramwithtype) - * [`obj settings`](#obj-histogramsettings) - * [`fn withInterval(value)`](#fn-histogramsettingswithinterval) - * [`fn withMinDocCount(value)`](#fn-histogramsettingswithmindoccount) -* [`obj Nested`](#obj-nested) - * [`fn withField(value)`](#fn-nestedwithfield) - * [`fn withId(value)`](#fn-nestedwithid) - * [`fn withSettings(value)`](#fn-nestedwithsettings) - * [`fn withSettingsMixin(value)`](#fn-nestedwithsettingsmixin) - * [`fn withType()`](#fn-nestedwithtype) -* [`obj Terms`](#obj-terms) - * [`fn withField(value)`](#fn-termswithfield) - * [`fn withId(value)`](#fn-termswithid) - * [`fn withSettings(value)`](#fn-termswithsettings) - * [`fn withSettingsMixin(value)`](#fn-termswithsettingsmixin) - * [`fn withType()`](#fn-termswithtype) - * [`obj settings`](#obj-termssettings) - * [`fn withMinDocCount(value)`](#fn-termssettingswithmindoccount) - * [`fn withMissing(value)`](#fn-termssettingswithmissing) - * [`fn withOrder(value)`](#fn-termssettingswithorder) - * [`fn withOrderBy(value)`](#fn-termssettingswithorderby) - * [`fn withSize(value)`](#fn-termssettingswithsize) - -## Fields - -### obj DateHistogram - - -#### fn DateHistogram.withField - -```jsonnet -DateHistogram.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn DateHistogram.withId - -```jsonnet -DateHistogram.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn DateHistogram.withSettings - -```jsonnet -DateHistogram.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn DateHistogram.withSettingsMixin - -```jsonnet -DateHistogram.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn DateHistogram.withType - -```jsonnet -DateHistogram.withType() -``` - - - -#### obj DateHistogram.settings - - -##### fn DateHistogram.settings.withInterval - -```jsonnet -DateHistogram.settings.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn DateHistogram.settings.withMinDocCount - -```jsonnet -DateHistogram.settings.withMinDocCount(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn DateHistogram.settings.withOffset - -```jsonnet -DateHistogram.settings.withOffset(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn DateHistogram.settings.withTimeZone - -```jsonnet -DateHistogram.settings.withTimeZone(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn DateHistogram.settings.withTrimEdges - -```jsonnet -DateHistogram.settings.withTrimEdges(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj Filters - - -#### fn Filters.withId - -```jsonnet -Filters.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Filters.withSettings - -```jsonnet -Filters.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Filters.withSettingsMixin - -```jsonnet -Filters.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Filters.withType - -```jsonnet -Filters.withType() -``` - - - -#### obj Filters.settings - - -##### fn Filters.settings.withFilters - -```jsonnet -Filters.settings.withFilters(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn Filters.settings.withFiltersMixin - -```jsonnet -Filters.settings.withFiltersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj GeoHashGrid - - -#### fn GeoHashGrid.withField - -```jsonnet -GeoHashGrid.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn GeoHashGrid.withId - -```jsonnet -GeoHashGrid.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn GeoHashGrid.withSettings - -```jsonnet -GeoHashGrid.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn GeoHashGrid.withSettingsMixin - -```jsonnet -GeoHashGrid.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn GeoHashGrid.withType - -```jsonnet -GeoHashGrid.withType() -``` - - - -#### obj GeoHashGrid.settings - - -##### fn GeoHashGrid.settings.withPrecision - -```jsonnet -GeoHashGrid.settings.withPrecision(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj Histogram - - -#### fn Histogram.withField - -```jsonnet -Histogram.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Histogram.withId - -```jsonnet -Histogram.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Histogram.withSettings - -```jsonnet -Histogram.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Histogram.withSettingsMixin - -```jsonnet -Histogram.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Histogram.withType - -```jsonnet -Histogram.withType() -``` - - - -#### obj Histogram.settings - - -##### fn Histogram.settings.withInterval - -```jsonnet -Histogram.settings.withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn Histogram.settings.withMinDocCount - -```jsonnet -Histogram.settings.withMinDocCount(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj Nested - - -#### fn Nested.withField - -```jsonnet -Nested.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Nested.withId - -```jsonnet -Nested.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Nested.withSettings - -```jsonnet -Nested.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Nested.withSettingsMixin - -```jsonnet -Nested.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Nested.withType - -```jsonnet -Nested.withType() -``` - - - -### obj Terms - - -#### fn Terms.withField - -```jsonnet -Terms.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Terms.withId - -```jsonnet -Terms.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Terms.withSettings - -```jsonnet -Terms.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Terms.withSettingsMixin - -```jsonnet -Terms.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn Terms.withType - -```jsonnet -Terms.withType() -``` - - - -#### obj Terms.settings - - -##### fn Terms.settings.withMinDocCount - -```jsonnet -Terms.settings.withMinDocCount(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn Terms.settings.withMissing - -```jsonnet -Terms.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn Terms.settings.withOrder - -```jsonnet -Terms.settings.withOrder(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"desc"`, `"asc"` - - -##### fn Terms.settings.withOrderBy - -```jsonnet -Terms.settings.withOrderBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn Terms.settings.withSize - -```jsonnet -Terms.settings.withSize(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/index.md deleted file mode 100644 index a84eb5f7c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/index.md +++ /dev/null @@ -1,150 +0,0 @@ -# elasticsearch - -grafonnet.query.elasticsearch - -## Subpackages - -* [bucketAggs](bucketAggs/index.md) -* [metrics](metrics/index.md) - -## Index - -* [`fn withAlias(value)`](#fn-withalias) -* [`fn withBucketAggs(value)`](#fn-withbucketaggs) -* [`fn withBucketAggsMixin(value)`](#fn-withbucketaggsmixin) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withMetrics(value)`](#fn-withmetrics) -* [`fn withMetricsMixin(value)`](#fn-withmetricsmixin) -* [`fn withQuery(value)`](#fn-withquery) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withTimeField(value)`](#fn-withtimefield) - -## Fields - -### fn withAlias - -```jsonnet -withAlias(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alias pattern -### fn withBucketAggs - -```jsonnet -withBucketAggs(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of bucket aggregations -### fn withBucketAggsMixin - -```jsonnet -withBucketAggsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of bucket aggregations -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. -### fn withMetrics - -```jsonnet -withMetrics(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of metric aggregations -### fn withMetricsMixin - -```jsonnet -withMetricsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -List of metric aggregations -### fn withQuery - -```jsonnet -withQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Lucene query -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -### fn withTimeField - -```jsonnet -withTimeField(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of time field \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/metrics/MetricAggregationWithSettings/BucketScript/pipelineVariables.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/metrics/MetricAggregationWithSettings/BucketScript/pipelineVariables.md deleted file mode 100644 index 98f895241..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/metrics/MetricAggregationWithSettings/BucketScript/pipelineVariables.md +++ /dev/null @@ -1,32 +0,0 @@ -# pipelineVariables - - - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withPipelineAgg(value)`](#fn-withpipelineagg) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withPipelineAgg - -```jsonnet -withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/metrics/PipelineMetricAggregation/BucketScript/pipelineVariables.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/metrics/PipelineMetricAggregation/BucketScript/pipelineVariables.md deleted file mode 100644 index 98f895241..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/metrics/PipelineMetricAggregation/BucketScript/pipelineVariables.md +++ /dev/null @@ -1,32 +0,0 @@ -# pipelineVariables - - - -## Index - -* [`fn withName(value)`](#fn-withname) -* [`fn withPipelineAgg(value)`](#fn-withpipelineagg) - -## Fields - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withPipelineAgg - -```jsonnet -withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/metrics/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/metrics/index.md deleted file mode 100644 index fc18efe34..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/elasticsearch/metrics/index.md +++ /dev/null @@ -1,2547 +0,0 @@ -# metrics - - - -## Subpackages - -* [MetricAggregationWithSettings.BucketScript.pipelineVariables](MetricAggregationWithSettings/BucketScript/pipelineVariables.md) -* [PipelineMetricAggregation.BucketScript.pipelineVariables](PipelineMetricAggregation/BucketScript/pipelineVariables.md) - -## Index - -* [`obj Count`](#obj-count) - * [`fn withHide(value=true)`](#fn-countwithhide) - * [`fn withId(value)`](#fn-countwithid) - * [`fn withType()`](#fn-countwithtype) -* [`obj MetricAggregationWithSettings`](#obj-metricaggregationwithsettings) - * [`obj Average`](#obj-metricaggregationwithsettingsaverage) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsaveragewithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsaveragewithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsaveragewithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsaveragewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsaveragewithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingsaveragewithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsaveragesettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsaveragesettingswithmissing) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingsaveragesettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsaveragesettingswithscriptmixin) - * [`obj script`](#obj-metricaggregationwithsettingsaveragesettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingsaveragesettingsscriptwithinline) - * [`obj BucketScript`](#obj-metricaggregationwithsettingsbucketscript) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsbucketscriptwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsbucketscriptwithid) - * [`fn withPipelineVariables(value)`](#fn-metricaggregationwithsettingsbucketscriptwithpipelinevariables) - * [`fn withPipelineVariablesMixin(value)`](#fn-metricaggregationwithsettingsbucketscriptwithpipelinevariablesmixin) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsbucketscriptwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsbucketscriptwithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingsbucketscriptwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsbucketscriptsettings) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingsbucketscriptsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsbucketscriptsettingswithscriptmixin) - * [`obj script`](#obj-metricaggregationwithsettingsbucketscriptsettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingsbucketscriptsettingsscriptwithinline) - * [`obj CumulativeSum`](#obj-metricaggregationwithsettingscumulativesum) - * [`fn withField(value)`](#fn-metricaggregationwithsettingscumulativesumwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingscumulativesumwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingscumulativesumwithid) - * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingscumulativesumwithpipelineagg) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingscumulativesumwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingscumulativesumwithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingscumulativesumwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingscumulativesumsettings) - * [`fn withFormat(value)`](#fn-metricaggregationwithsettingscumulativesumsettingswithformat) - * [`obj Derivative`](#obj-metricaggregationwithsettingsderivative) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsderivativewithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsderivativewithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsderivativewithid) - * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingsderivativewithpipelineagg) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsderivativewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsderivativewithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingsderivativewithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsderivativesettings) - * [`fn withUnit(value)`](#fn-metricaggregationwithsettingsderivativesettingswithunit) - * [`obj ExtendedStats`](#obj-metricaggregationwithsettingsextendedstats) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsextendedstatswithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsextendedstatswithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsextendedstatswithid) - * [`fn withMeta(value)`](#fn-metricaggregationwithsettingsextendedstatswithmeta) - * [`fn withMetaMixin(value)`](#fn-metricaggregationwithsettingsextendedstatswithmetamixin) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsextendedstatswithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsextendedstatswithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingsextendedstatswithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsextendedstatssettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsextendedstatssettingswithmissing) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingsextendedstatssettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsextendedstatssettingswithscriptmixin) - * [`fn withSigma(value)`](#fn-metricaggregationwithsettingsextendedstatssettingswithsigma) - * [`obj script`](#obj-metricaggregationwithsettingsextendedstatssettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingsextendedstatssettingsscriptwithinline) - * [`obj Logs`](#obj-metricaggregationwithsettingslogs) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingslogswithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingslogswithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingslogswithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingslogswithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingslogswithtype) - * [`obj settings`](#obj-metricaggregationwithsettingslogssettings) - * [`fn withLimit(value)`](#fn-metricaggregationwithsettingslogssettingswithlimit) - * [`obj Max`](#obj-metricaggregationwithsettingsmax) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsmaxwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsmaxwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsmaxwithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsmaxwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsmaxwithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingsmaxwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsmaxsettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsmaxsettingswithmissing) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingsmaxsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsmaxsettingswithscriptmixin) - * [`obj script`](#obj-metricaggregationwithsettingsmaxsettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingsmaxsettingsscriptwithinline) - * [`obj Min`](#obj-metricaggregationwithsettingsmin) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsminwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsminwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsminwithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsminwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsminwithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingsminwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsminsettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsminsettingswithmissing) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingsminsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsminsettingswithscriptmixin) - * [`obj script`](#obj-metricaggregationwithsettingsminsettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingsminsettingsscriptwithinline) - * [`obj MovingAverage`](#obj-metricaggregationwithsettingsmovingaverage) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsmovingaveragewithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsmovingaveragewithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsmovingaveragewithid) - * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingsmovingaveragewithpipelineagg) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsmovingaveragewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsmovingaveragewithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingsmovingaveragewithtype) - * [`obj MovingFunction`](#obj-metricaggregationwithsettingsmovingfunction) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsmovingfunctionwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithid) - * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithpipelineagg) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsmovingfunctionwithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingsmovingfunctionwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsmovingfunctionsettings) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingswithscriptmixin) - * [`fn withShift(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingswithshift) - * [`fn withWindow(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingswithwindow) - * [`obj script`](#obj-metricaggregationwithsettingsmovingfunctionsettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingsmovingfunctionsettingsscriptwithinline) - * [`obj Percentiles`](#obj-metricaggregationwithsettingspercentiles) - * [`fn withField(value)`](#fn-metricaggregationwithsettingspercentileswithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingspercentileswithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingspercentileswithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingspercentileswithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingspercentileswithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingspercentileswithtype) - * [`obj settings`](#obj-metricaggregationwithsettingspercentilessettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingspercentilessettingswithmissing) - * [`fn withPercents(value)`](#fn-metricaggregationwithsettingspercentilessettingswithpercents) - * [`fn withPercentsMixin(value)`](#fn-metricaggregationwithsettingspercentilessettingswithpercentsmixin) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingspercentilessettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingspercentilessettingswithscriptmixin) - * [`obj script`](#obj-metricaggregationwithsettingspercentilessettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingspercentilessettingsscriptwithinline) - * [`obj Rate`](#obj-metricaggregationwithsettingsrate) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsratewithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsratewithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsratewithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsratewithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsratewithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingsratewithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsratesettings) - * [`fn withMode(value)`](#fn-metricaggregationwithsettingsratesettingswithmode) - * [`fn withUnit(value)`](#fn-metricaggregationwithsettingsratesettingswithunit) - * [`obj RawData`](#obj-metricaggregationwithsettingsrawdata) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsrawdatawithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsrawdatawithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsrawdatawithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsrawdatawithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingsrawdatawithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsrawdatasettings) - * [`fn withSize(value)`](#fn-metricaggregationwithsettingsrawdatasettingswithsize) - * [`obj RawDocument`](#obj-metricaggregationwithsettingsrawdocument) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsrawdocumentwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsrawdocumentwithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsrawdocumentwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsrawdocumentwithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingsrawdocumentwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsrawdocumentsettings) - * [`fn withSize(value)`](#fn-metricaggregationwithsettingsrawdocumentsettingswithsize) - * [`obj SerialDiff`](#obj-metricaggregationwithsettingsserialdiff) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsserialdiffwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsserialdiffwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsserialdiffwithid) - * [`fn withPipelineAgg(value)`](#fn-metricaggregationwithsettingsserialdiffwithpipelineagg) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsserialdiffwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsserialdiffwithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingsserialdiffwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsserialdiffsettings) - * [`fn withLag(value)`](#fn-metricaggregationwithsettingsserialdiffsettingswithlag) - * [`obj Sum`](#obj-metricaggregationwithsettingssum) - * [`fn withField(value)`](#fn-metricaggregationwithsettingssumwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingssumwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingssumwithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingssumwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingssumwithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingssumwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingssumsettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingssumsettingswithmissing) - * [`fn withScript(value)`](#fn-metricaggregationwithsettingssumsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-metricaggregationwithsettingssumsettingswithscriptmixin) - * [`obj script`](#obj-metricaggregationwithsettingssumsettingsscript) - * [`fn withInline(value)`](#fn-metricaggregationwithsettingssumsettingsscriptwithinline) - * [`obj TopMetrics`](#obj-metricaggregationwithsettingstopmetrics) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingstopmetricswithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingstopmetricswithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingstopmetricswithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingstopmetricswithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingstopmetricswithtype) - * [`obj settings`](#obj-metricaggregationwithsettingstopmetricssettings) - * [`fn withMetrics(value)`](#fn-metricaggregationwithsettingstopmetricssettingswithmetrics) - * [`fn withMetricsMixin(value)`](#fn-metricaggregationwithsettingstopmetricssettingswithmetricsmixin) - * [`fn withOrder(value)`](#fn-metricaggregationwithsettingstopmetricssettingswithorder) - * [`fn withOrderBy(value)`](#fn-metricaggregationwithsettingstopmetricssettingswithorderby) - * [`obj UniqueCount`](#obj-metricaggregationwithsettingsuniquecount) - * [`fn withField(value)`](#fn-metricaggregationwithsettingsuniquecountwithfield) - * [`fn withHide(value=true)`](#fn-metricaggregationwithsettingsuniquecountwithhide) - * [`fn withId(value)`](#fn-metricaggregationwithsettingsuniquecountwithid) - * [`fn withSettings(value)`](#fn-metricaggregationwithsettingsuniquecountwithsettings) - * [`fn withSettingsMixin(value)`](#fn-metricaggregationwithsettingsuniquecountwithsettingsmixin) - * [`fn withType()`](#fn-metricaggregationwithsettingsuniquecountwithtype) - * [`obj settings`](#obj-metricaggregationwithsettingsuniquecountsettings) - * [`fn withMissing(value)`](#fn-metricaggregationwithsettingsuniquecountsettingswithmissing) - * [`fn withPrecisionThreshold(value)`](#fn-metricaggregationwithsettingsuniquecountsettingswithprecisionthreshold) -* [`obj PipelineMetricAggregation`](#obj-pipelinemetricaggregation) - * [`obj BucketScript`](#obj-pipelinemetricaggregationbucketscript) - * [`fn withHide(value=true)`](#fn-pipelinemetricaggregationbucketscriptwithhide) - * [`fn withId(value)`](#fn-pipelinemetricaggregationbucketscriptwithid) - * [`fn withPipelineVariables(value)`](#fn-pipelinemetricaggregationbucketscriptwithpipelinevariables) - * [`fn withPipelineVariablesMixin(value)`](#fn-pipelinemetricaggregationbucketscriptwithpipelinevariablesmixin) - * [`fn withSettings(value)`](#fn-pipelinemetricaggregationbucketscriptwithsettings) - * [`fn withSettingsMixin(value)`](#fn-pipelinemetricaggregationbucketscriptwithsettingsmixin) - * [`fn withType()`](#fn-pipelinemetricaggregationbucketscriptwithtype) - * [`obj settings`](#obj-pipelinemetricaggregationbucketscriptsettings) - * [`fn withScript(value)`](#fn-pipelinemetricaggregationbucketscriptsettingswithscript) - * [`fn withScriptMixin(value)`](#fn-pipelinemetricaggregationbucketscriptsettingswithscriptmixin) - * [`obj script`](#obj-pipelinemetricaggregationbucketscriptsettingsscript) - * [`fn withInline(value)`](#fn-pipelinemetricaggregationbucketscriptsettingsscriptwithinline) - * [`obj CumulativeSum`](#obj-pipelinemetricaggregationcumulativesum) - * [`fn withField(value)`](#fn-pipelinemetricaggregationcumulativesumwithfield) - * [`fn withHide(value=true)`](#fn-pipelinemetricaggregationcumulativesumwithhide) - * [`fn withId(value)`](#fn-pipelinemetricaggregationcumulativesumwithid) - * [`fn withPipelineAgg(value)`](#fn-pipelinemetricaggregationcumulativesumwithpipelineagg) - * [`fn withSettings(value)`](#fn-pipelinemetricaggregationcumulativesumwithsettings) - * [`fn withSettingsMixin(value)`](#fn-pipelinemetricaggregationcumulativesumwithsettingsmixin) - * [`fn withType()`](#fn-pipelinemetricaggregationcumulativesumwithtype) - * [`obj settings`](#obj-pipelinemetricaggregationcumulativesumsettings) - * [`fn withFormat(value)`](#fn-pipelinemetricaggregationcumulativesumsettingswithformat) - * [`obj Derivative`](#obj-pipelinemetricaggregationderivative) - * [`fn withField(value)`](#fn-pipelinemetricaggregationderivativewithfield) - * [`fn withHide(value=true)`](#fn-pipelinemetricaggregationderivativewithhide) - * [`fn withId(value)`](#fn-pipelinemetricaggregationderivativewithid) - * [`fn withPipelineAgg(value)`](#fn-pipelinemetricaggregationderivativewithpipelineagg) - * [`fn withSettings(value)`](#fn-pipelinemetricaggregationderivativewithsettings) - * [`fn withSettingsMixin(value)`](#fn-pipelinemetricaggregationderivativewithsettingsmixin) - * [`fn withType()`](#fn-pipelinemetricaggregationderivativewithtype) - * [`obj settings`](#obj-pipelinemetricaggregationderivativesettings) - * [`fn withUnit(value)`](#fn-pipelinemetricaggregationderivativesettingswithunit) - * [`obj MovingAverage`](#obj-pipelinemetricaggregationmovingaverage) - * [`fn withField(value)`](#fn-pipelinemetricaggregationmovingaveragewithfield) - * [`fn withHide(value=true)`](#fn-pipelinemetricaggregationmovingaveragewithhide) - * [`fn withId(value)`](#fn-pipelinemetricaggregationmovingaveragewithid) - * [`fn withPipelineAgg(value)`](#fn-pipelinemetricaggregationmovingaveragewithpipelineagg) - * [`fn withSettings(value)`](#fn-pipelinemetricaggregationmovingaveragewithsettings) - * [`fn withSettingsMixin(value)`](#fn-pipelinemetricaggregationmovingaveragewithsettingsmixin) - * [`fn withType()`](#fn-pipelinemetricaggregationmovingaveragewithtype) - -## Fields - -### obj Count - - -#### fn Count.withHide - -```jsonnet -Count.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn Count.withId - -```jsonnet -Count.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn Count.withType - -```jsonnet -Count.withType() -``` - - - -### obj MetricAggregationWithSettings - - -#### obj MetricAggregationWithSettings.Average - - -##### fn MetricAggregationWithSettings.Average.withField - -```jsonnet -MetricAggregationWithSettings.Average.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Average.withHide - -```jsonnet -MetricAggregationWithSettings.Average.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Average.withId - -```jsonnet -MetricAggregationWithSettings.Average.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Average.withSettings - -```jsonnet -MetricAggregationWithSettings.Average.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Average.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Average.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Average.withType - -```jsonnet -MetricAggregationWithSettings.Average.withType() -``` - - - -##### obj MetricAggregationWithSettings.Average.settings - - -###### fn MetricAggregationWithSettings.Average.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.Average.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.Average.settings.withScript - -```jsonnet -MetricAggregationWithSettings.Average.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.Average.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.Average.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj MetricAggregationWithSettings.Average.settings.script - - -####### fn MetricAggregationWithSettings.Average.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.Average.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.BucketScript - - -##### fn MetricAggregationWithSettings.BucketScript.withHide - -```jsonnet -MetricAggregationWithSettings.BucketScript.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.BucketScript.withId - -```jsonnet -MetricAggregationWithSettings.BucketScript.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.BucketScript.withPipelineVariables - -```jsonnet -MetricAggregationWithSettings.BucketScript.withPipelineVariables(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn MetricAggregationWithSettings.BucketScript.withPipelineVariablesMixin - -```jsonnet -MetricAggregationWithSettings.BucketScript.withPipelineVariablesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn MetricAggregationWithSettings.BucketScript.withSettings - -```jsonnet -MetricAggregationWithSettings.BucketScript.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.BucketScript.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.BucketScript.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.BucketScript.withType - -```jsonnet -MetricAggregationWithSettings.BucketScript.withType() -``` - - - -##### obj MetricAggregationWithSettings.BucketScript.settings - - -###### fn MetricAggregationWithSettings.BucketScript.settings.withScript - -```jsonnet -MetricAggregationWithSettings.BucketScript.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.BucketScript.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.BucketScript.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj MetricAggregationWithSettings.BucketScript.settings.script - - -####### fn MetricAggregationWithSettings.BucketScript.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.BucketScript.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.CumulativeSum - - -##### fn MetricAggregationWithSettings.CumulativeSum.withField - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.CumulativeSum.withHide - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.CumulativeSum.withId - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.CumulativeSum.withPipelineAgg - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.CumulativeSum.withSettings - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.CumulativeSum.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.CumulativeSum.withType - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.withType() -``` - - - -##### obj MetricAggregationWithSettings.CumulativeSum.settings - - -###### fn MetricAggregationWithSettings.CumulativeSum.settings.withFormat - -```jsonnet -MetricAggregationWithSettings.CumulativeSum.settings.withFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Derivative - - -##### fn MetricAggregationWithSettings.Derivative.withField - -```jsonnet -MetricAggregationWithSettings.Derivative.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Derivative.withHide - -```jsonnet -MetricAggregationWithSettings.Derivative.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Derivative.withId - -```jsonnet -MetricAggregationWithSettings.Derivative.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Derivative.withPipelineAgg - -```jsonnet -MetricAggregationWithSettings.Derivative.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Derivative.withSettings - -```jsonnet -MetricAggregationWithSettings.Derivative.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Derivative.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Derivative.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Derivative.withType - -```jsonnet -MetricAggregationWithSettings.Derivative.withType() -``` - - - -##### obj MetricAggregationWithSettings.Derivative.settings - - -###### fn MetricAggregationWithSettings.Derivative.settings.withUnit - -```jsonnet -MetricAggregationWithSettings.Derivative.settings.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.ExtendedStats - - -##### fn MetricAggregationWithSettings.ExtendedStats.withField - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.ExtendedStats.withHide - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.ExtendedStats.withId - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.ExtendedStats.withMeta - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withMeta(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.ExtendedStats.withMetaMixin - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withMetaMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.ExtendedStats.withSettings - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.ExtendedStats.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.ExtendedStats.withType - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.withType() -``` - - - -##### obj MetricAggregationWithSettings.ExtendedStats.settings - - -###### fn MetricAggregationWithSettings.ExtendedStats.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.ExtendedStats.settings.withScript - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.ExtendedStats.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.ExtendedStats.settings.withSigma - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.settings.withSigma(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### obj MetricAggregationWithSettings.ExtendedStats.settings.script - - -####### fn MetricAggregationWithSettings.ExtendedStats.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.ExtendedStats.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Logs - - -##### fn MetricAggregationWithSettings.Logs.withHide - -```jsonnet -MetricAggregationWithSettings.Logs.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Logs.withId - -```jsonnet -MetricAggregationWithSettings.Logs.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Logs.withSettings - -```jsonnet -MetricAggregationWithSettings.Logs.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Logs.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Logs.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Logs.withType - -```jsonnet -MetricAggregationWithSettings.Logs.withType() -``` - - - -##### obj MetricAggregationWithSettings.Logs.settings - - -###### fn MetricAggregationWithSettings.Logs.settings.withLimit - -```jsonnet -MetricAggregationWithSettings.Logs.settings.withLimit(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Max - - -##### fn MetricAggregationWithSettings.Max.withField - -```jsonnet -MetricAggregationWithSettings.Max.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Max.withHide - -```jsonnet -MetricAggregationWithSettings.Max.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Max.withId - -```jsonnet -MetricAggregationWithSettings.Max.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Max.withSettings - -```jsonnet -MetricAggregationWithSettings.Max.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Max.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Max.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Max.withType - -```jsonnet -MetricAggregationWithSettings.Max.withType() -``` - - - -##### obj MetricAggregationWithSettings.Max.settings - - -###### fn MetricAggregationWithSettings.Max.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.Max.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.Max.settings.withScript - -```jsonnet -MetricAggregationWithSettings.Max.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.Max.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.Max.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj MetricAggregationWithSettings.Max.settings.script - - -####### fn MetricAggregationWithSettings.Max.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.Max.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Min - - -##### fn MetricAggregationWithSettings.Min.withField - -```jsonnet -MetricAggregationWithSettings.Min.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Min.withHide - -```jsonnet -MetricAggregationWithSettings.Min.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Min.withId - -```jsonnet -MetricAggregationWithSettings.Min.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Min.withSettings - -```jsonnet -MetricAggregationWithSettings.Min.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Min.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Min.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Min.withType - -```jsonnet -MetricAggregationWithSettings.Min.withType() -``` - - - -##### obj MetricAggregationWithSettings.Min.settings - - -###### fn MetricAggregationWithSettings.Min.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.Min.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.Min.settings.withScript - -```jsonnet -MetricAggregationWithSettings.Min.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.Min.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.Min.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj MetricAggregationWithSettings.Min.settings.script - - -####### fn MetricAggregationWithSettings.Min.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.Min.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.MovingAverage - - -##### fn MetricAggregationWithSettings.MovingAverage.withField - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.MovingAverage.withHide - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.MovingAverage.withId - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.MovingAverage.withPipelineAgg - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.MovingAverage.withSettings - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.MovingAverage.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.MovingAverage.withType - -```jsonnet -MetricAggregationWithSettings.MovingAverage.withType() -``` - - - -#### obj MetricAggregationWithSettings.MovingFunction - - -##### fn MetricAggregationWithSettings.MovingFunction.withField - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.MovingFunction.withHide - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.MovingFunction.withId - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.MovingFunction.withPipelineAgg - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.MovingFunction.withSettings - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.MovingFunction.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.MovingFunction.withType - -```jsonnet -MetricAggregationWithSettings.MovingFunction.withType() -``` - - - -##### obj MetricAggregationWithSettings.MovingFunction.settings - - -###### fn MetricAggregationWithSettings.MovingFunction.settings.withScript - -```jsonnet -MetricAggregationWithSettings.MovingFunction.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.MovingFunction.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.MovingFunction.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.MovingFunction.settings.withShift - -```jsonnet -MetricAggregationWithSettings.MovingFunction.settings.withShift(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.MovingFunction.settings.withWindow - -```jsonnet -MetricAggregationWithSettings.MovingFunction.settings.withWindow(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### obj MetricAggregationWithSettings.MovingFunction.settings.script - - -####### fn MetricAggregationWithSettings.MovingFunction.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.MovingFunction.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Percentiles - - -##### fn MetricAggregationWithSettings.Percentiles.withField - -```jsonnet -MetricAggregationWithSettings.Percentiles.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Percentiles.withHide - -```jsonnet -MetricAggregationWithSettings.Percentiles.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Percentiles.withId - -```jsonnet -MetricAggregationWithSettings.Percentiles.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Percentiles.withSettings - -```jsonnet -MetricAggregationWithSettings.Percentiles.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Percentiles.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Percentiles.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Percentiles.withType - -```jsonnet -MetricAggregationWithSettings.Percentiles.withType() -``` - - - -##### obj MetricAggregationWithSettings.Percentiles.settings - - -###### fn MetricAggregationWithSettings.Percentiles.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.Percentiles.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.Percentiles.settings.withPercents - -```jsonnet -MetricAggregationWithSettings.Percentiles.settings.withPercents(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn MetricAggregationWithSettings.Percentiles.settings.withPercentsMixin - -```jsonnet -MetricAggregationWithSettings.Percentiles.settings.withPercentsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn MetricAggregationWithSettings.Percentiles.settings.withScript - -```jsonnet -MetricAggregationWithSettings.Percentiles.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.Percentiles.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.Percentiles.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj MetricAggregationWithSettings.Percentiles.settings.script - - -####### fn MetricAggregationWithSettings.Percentiles.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.Percentiles.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Rate - - -##### fn MetricAggregationWithSettings.Rate.withField - -```jsonnet -MetricAggregationWithSettings.Rate.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Rate.withHide - -```jsonnet -MetricAggregationWithSettings.Rate.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Rate.withId - -```jsonnet -MetricAggregationWithSettings.Rate.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Rate.withSettings - -```jsonnet -MetricAggregationWithSettings.Rate.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Rate.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Rate.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Rate.withType - -```jsonnet -MetricAggregationWithSettings.Rate.withType() -``` - - - -##### obj MetricAggregationWithSettings.Rate.settings - - -###### fn MetricAggregationWithSettings.Rate.settings.withMode - -```jsonnet -MetricAggregationWithSettings.Rate.settings.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.Rate.settings.withUnit - -```jsonnet -MetricAggregationWithSettings.Rate.settings.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.RawData - - -##### fn MetricAggregationWithSettings.RawData.withHide - -```jsonnet -MetricAggregationWithSettings.RawData.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.RawData.withId - -```jsonnet -MetricAggregationWithSettings.RawData.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.RawData.withSettings - -```jsonnet -MetricAggregationWithSettings.RawData.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.RawData.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.RawData.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.RawData.withType - -```jsonnet -MetricAggregationWithSettings.RawData.withType() -``` - - - -##### obj MetricAggregationWithSettings.RawData.settings - - -###### fn MetricAggregationWithSettings.RawData.settings.withSize - -```jsonnet -MetricAggregationWithSettings.RawData.settings.withSize(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.RawDocument - - -##### fn MetricAggregationWithSettings.RawDocument.withHide - -```jsonnet -MetricAggregationWithSettings.RawDocument.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.RawDocument.withId - -```jsonnet -MetricAggregationWithSettings.RawDocument.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.RawDocument.withSettings - -```jsonnet -MetricAggregationWithSettings.RawDocument.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.RawDocument.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.RawDocument.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.RawDocument.withType - -```jsonnet -MetricAggregationWithSettings.RawDocument.withType() -``` - - - -##### obj MetricAggregationWithSettings.RawDocument.settings - - -###### fn MetricAggregationWithSettings.RawDocument.settings.withSize - -```jsonnet -MetricAggregationWithSettings.RawDocument.settings.withSize(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.SerialDiff - - -##### fn MetricAggregationWithSettings.SerialDiff.withField - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.SerialDiff.withHide - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.SerialDiff.withId - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.SerialDiff.withPipelineAgg - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.SerialDiff.withSettings - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.SerialDiff.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.SerialDiff.withType - -```jsonnet -MetricAggregationWithSettings.SerialDiff.withType() -``` - - - -##### obj MetricAggregationWithSettings.SerialDiff.settings - - -###### fn MetricAggregationWithSettings.SerialDiff.settings.withLag - -```jsonnet -MetricAggregationWithSettings.SerialDiff.settings.withLag(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.Sum - - -##### fn MetricAggregationWithSettings.Sum.withField - -```jsonnet -MetricAggregationWithSettings.Sum.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Sum.withHide - -```jsonnet -MetricAggregationWithSettings.Sum.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.Sum.withId - -```jsonnet -MetricAggregationWithSettings.Sum.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.Sum.withSettings - -```jsonnet -MetricAggregationWithSettings.Sum.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Sum.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.Sum.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.Sum.withType - -```jsonnet -MetricAggregationWithSettings.Sum.withType() -``` - - - -##### obj MetricAggregationWithSettings.Sum.settings - - -###### fn MetricAggregationWithSettings.Sum.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.Sum.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.Sum.settings.withScript - -```jsonnet -MetricAggregationWithSettings.Sum.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn MetricAggregationWithSettings.Sum.settings.withScriptMixin - -```jsonnet -MetricAggregationWithSettings.Sum.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj MetricAggregationWithSettings.Sum.settings.script - - -####### fn MetricAggregationWithSettings.Sum.settings.script.withInline - -```jsonnet -MetricAggregationWithSettings.Sum.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.TopMetrics - - -##### fn MetricAggregationWithSettings.TopMetrics.withHide - -```jsonnet -MetricAggregationWithSettings.TopMetrics.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.TopMetrics.withId - -```jsonnet -MetricAggregationWithSettings.TopMetrics.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.TopMetrics.withSettings - -```jsonnet -MetricAggregationWithSettings.TopMetrics.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.TopMetrics.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.TopMetrics.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.TopMetrics.withType - -```jsonnet -MetricAggregationWithSettings.TopMetrics.withType() -``` - - - -##### obj MetricAggregationWithSettings.TopMetrics.settings - - -###### fn MetricAggregationWithSettings.TopMetrics.settings.withMetrics - -```jsonnet -MetricAggregationWithSettings.TopMetrics.settings.withMetrics(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn MetricAggregationWithSettings.TopMetrics.settings.withMetricsMixin - -```jsonnet -MetricAggregationWithSettings.TopMetrics.settings.withMetricsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -###### fn MetricAggregationWithSettings.TopMetrics.settings.withOrder - -```jsonnet -MetricAggregationWithSettings.TopMetrics.settings.withOrder(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.TopMetrics.settings.withOrderBy - -```jsonnet -MetricAggregationWithSettings.TopMetrics.settings.withOrderBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj MetricAggregationWithSettings.UniqueCount - - -##### fn MetricAggregationWithSettings.UniqueCount.withField - -```jsonnet -MetricAggregationWithSettings.UniqueCount.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.UniqueCount.withHide - -```jsonnet -MetricAggregationWithSettings.UniqueCount.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn MetricAggregationWithSettings.UniqueCount.withId - -```jsonnet -MetricAggregationWithSettings.UniqueCount.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn MetricAggregationWithSettings.UniqueCount.withSettings - -```jsonnet -MetricAggregationWithSettings.UniqueCount.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.UniqueCount.withSettingsMixin - -```jsonnet -MetricAggregationWithSettings.UniqueCount.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn MetricAggregationWithSettings.UniqueCount.withType - -```jsonnet -MetricAggregationWithSettings.UniqueCount.withType() -``` - - - -##### obj MetricAggregationWithSettings.UniqueCount.settings - - -###### fn MetricAggregationWithSettings.UniqueCount.settings.withMissing - -```jsonnet -MetricAggregationWithSettings.UniqueCount.settings.withMissing(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -###### fn MetricAggregationWithSettings.UniqueCount.settings.withPrecisionThreshold - -```jsonnet -MetricAggregationWithSettings.UniqueCount.settings.withPrecisionThreshold(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj PipelineMetricAggregation - - -#### obj PipelineMetricAggregation.BucketScript - - -##### fn PipelineMetricAggregation.BucketScript.withHide - -```jsonnet -PipelineMetricAggregation.BucketScript.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn PipelineMetricAggregation.BucketScript.withId - -```jsonnet -PipelineMetricAggregation.BucketScript.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.BucketScript.withPipelineVariables - -```jsonnet -PipelineMetricAggregation.BucketScript.withPipelineVariables(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn PipelineMetricAggregation.BucketScript.withPipelineVariablesMixin - -```jsonnet -PipelineMetricAggregation.BucketScript.withPipelineVariablesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -##### fn PipelineMetricAggregation.BucketScript.withSettings - -```jsonnet -PipelineMetricAggregation.BucketScript.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.BucketScript.withSettingsMixin - -```jsonnet -PipelineMetricAggregation.BucketScript.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.BucketScript.withType - -```jsonnet -PipelineMetricAggregation.BucketScript.withType() -``` - - - -##### obj PipelineMetricAggregation.BucketScript.settings - - -###### fn PipelineMetricAggregation.BucketScript.settings.withScript - -```jsonnet -PipelineMetricAggregation.BucketScript.settings.withScript(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### fn PipelineMetricAggregation.BucketScript.settings.withScriptMixin - -```jsonnet -PipelineMetricAggregation.BucketScript.settings.withScriptMixin(value) -``` - -PARAMETERS: - -* **value** (`object`,`string`) - - -###### obj PipelineMetricAggregation.BucketScript.settings.script - - -####### fn PipelineMetricAggregation.BucketScript.settings.script.withInline - -```jsonnet -PipelineMetricAggregation.BucketScript.settings.script.withInline(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj PipelineMetricAggregation.CumulativeSum - - -##### fn PipelineMetricAggregation.CumulativeSum.withField - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.CumulativeSum.withHide - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn PipelineMetricAggregation.CumulativeSum.withId - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.CumulativeSum.withPipelineAgg - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.CumulativeSum.withSettings - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.CumulativeSum.withSettingsMixin - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.CumulativeSum.withType - -```jsonnet -PipelineMetricAggregation.CumulativeSum.withType() -``` - - - -##### obj PipelineMetricAggregation.CumulativeSum.settings - - -###### fn PipelineMetricAggregation.CumulativeSum.settings.withFormat - -```jsonnet -PipelineMetricAggregation.CumulativeSum.settings.withFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj PipelineMetricAggregation.Derivative - - -##### fn PipelineMetricAggregation.Derivative.withField - -```jsonnet -PipelineMetricAggregation.Derivative.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.Derivative.withHide - -```jsonnet -PipelineMetricAggregation.Derivative.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn PipelineMetricAggregation.Derivative.withId - -```jsonnet -PipelineMetricAggregation.Derivative.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.Derivative.withPipelineAgg - -```jsonnet -PipelineMetricAggregation.Derivative.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.Derivative.withSettings - -```jsonnet -PipelineMetricAggregation.Derivative.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.Derivative.withSettingsMixin - -```jsonnet -PipelineMetricAggregation.Derivative.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.Derivative.withType - -```jsonnet -PipelineMetricAggregation.Derivative.withType() -``` - - - -##### obj PipelineMetricAggregation.Derivative.settings - - -###### fn PipelineMetricAggregation.Derivative.settings.withUnit - -```jsonnet -PipelineMetricAggregation.Derivative.settings.withUnit(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### obj PipelineMetricAggregation.MovingAverage - - -##### fn PipelineMetricAggregation.MovingAverage.withField - -```jsonnet -PipelineMetricAggregation.MovingAverage.withField(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.MovingAverage.withHide - -```jsonnet -PipelineMetricAggregation.MovingAverage.withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -##### fn PipelineMetricAggregation.MovingAverage.withId - -```jsonnet -PipelineMetricAggregation.MovingAverage.withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.MovingAverage.withPipelineAgg - -```jsonnet -PipelineMetricAggregation.MovingAverage.withPipelineAgg(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn PipelineMetricAggregation.MovingAverage.withSettings - -```jsonnet -PipelineMetricAggregation.MovingAverage.withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.MovingAverage.withSettingsMixin - -```jsonnet -PipelineMetricAggregation.MovingAverage.withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -##### fn PipelineMetricAggregation.MovingAverage.withType - -```jsonnet -PipelineMetricAggregation.MovingAverage.withType() -``` - - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeClassicConditions/conditions.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeClassicConditions/conditions.md deleted file mode 100644 index 8ad014775..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeClassicConditions/conditions.md +++ /dev/null @@ -1,205 +0,0 @@ -# conditions - - - -## Index - -* [`fn withEvaluator(value)`](#fn-withevaluator) -* [`fn withEvaluatorMixin(value)`](#fn-withevaluatormixin) -* [`fn withOperator(value)`](#fn-withoperator) -* [`fn withOperatorMixin(value)`](#fn-withoperatormixin) -* [`fn withQuery(value)`](#fn-withquery) -* [`fn withQueryMixin(value)`](#fn-withquerymixin) -* [`fn withReducer(value)`](#fn-withreducer) -* [`fn withReducerMixin(value)`](#fn-withreducermixin) -* [`obj evaluator`](#obj-evaluator) - * [`fn withParams(value)`](#fn-evaluatorwithparams) - * [`fn withParamsMixin(value)`](#fn-evaluatorwithparamsmixin) - * [`fn withType(value)`](#fn-evaluatorwithtype) -* [`obj operator`](#obj-operator) - * [`fn withType(value)`](#fn-operatorwithtype) -* [`obj query`](#obj-query) - * [`fn withParams(value)`](#fn-querywithparams) - * [`fn withParamsMixin(value)`](#fn-querywithparamsmixin) -* [`obj reducer`](#obj-reducer) - * [`fn withType(value)`](#fn-reducerwithtype) - -## Fields - -### fn withEvaluator - -```jsonnet -withEvaluator(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withEvaluatorMixin - -```jsonnet -withEvaluatorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withOperator - -```jsonnet -withOperator(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withOperatorMixin - -```jsonnet -withOperatorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withQuery - -```jsonnet -withQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withQueryMixin - -```jsonnet -withQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withReducer - -```jsonnet -withReducer(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withReducerMixin - -```jsonnet -withReducerMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### obj evaluator - - -#### fn evaluator.withParams - -```jsonnet -evaluator.withParams(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn evaluator.withParamsMixin - -```jsonnet -evaluator.withParamsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn evaluator.withType - -```jsonnet -evaluator.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -e.g. "gt" -### obj operator - - -#### fn operator.withType - -```jsonnet -operator.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"and"`, `"or"` - - -### obj query - - -#### fn query.withParams - -```jsonnet -query.withParams(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn query.withParamsMixin - -```jsonnet -query.withParamsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### obj reducer - - -#### fn reducer.withType - -```jsonnet -reducer.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeClassicConditions/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeClassicConditions/index.md deleted file mode 100644 index e2b1f5953..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeClassicConditions/index.md +++ /dev/null @@ -1,324 +0,0 @@ -# TypeClassicConditions - -grafonnet.query.expr.TypeClassicConditions - -## Subpackages - -* [conditions](conditions.md) - -## Index - -* [`fn withConditions(value)`](#fn-withconditions) -* [`fn withConditionsMixin(value)`](#fn-withconditionsmixin) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withIntervalMs(value)`](#fn-withintervalms) -* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withResultAssertions(value)`](#fn-withresultassertions) -* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) -* [`fn withTimeRange(value)`](#fn-withtimerange) -* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) -* [`fn withType()`](#fn-withtype) -* [`obj datasource`](#obj-datasource) - * [`fn withApiVersion(value)`](#fn-datasourcewithapiversion) - * [`fn withType()`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj resultAssertions`](#obj-resultassertions) - * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) - * [`fn withType(value)`](#fn-resultassertionswithtype) - * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) - * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) -* [`obj timeRange`](#obj-timerange) - * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) - * [`fn withTo(value="now")`](#fn-timerangewithto) - -## Fields - -### fn withConditions - -```jsonnet -withConditions(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withConditionsMixin - -```jsonnet -withConditionsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource -### fn withDatasourceMixin - -```jsonnet -withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -NOTE: this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withIntervalMs - -```jsonnet -withIntervalMs(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Interval is the suggested duration between time points in a time series query. -NOTE: the values for intervalMs is not saved in the query model. It is typically calculated -from the interval required to fill a pixels in the visualization -### fn withMaxDataPoints - -```jsonnet -withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -MaxDataPoints is the maximum number of data points that should be returned from a time series query. -NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated -from the number of pixels visible in a visualization -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -QueryType is an optional identifier for the type of query. -It can be used to distinguish different types of queries. -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -RefID is the unique identifier of the query, set by the frontend call. -### fn withResultAssertions - -```jsonnet -withResultAssertions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Optionally define expected query result behavior -### fn withResultAssertionsMixin - -```jsonnet -withResultAssertionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Optionally define expected query result behavior -### fn withTimeRange - -```jsonnet -withTimeRange(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TimeRange represents the query range -NOTE: unlike generic /ds/query, we can now send explicit time values in each query -NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly -### fn withTimeRangeMixin - -```jsonnet -withTimeRangeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TimeRange represents the query range -NOTE: unlike generic /ds/query, we can now send explicit time values in each query -NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly -### fn withType - -```jsonnet -withType() -``` - - - -### obj datasource - - -#### fn datasource.withApiVersion - -```jsonnet -datasource.withApiVersion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The apiserver version -#### fn datasource.withType - -```jsonnet -datasource.withType() -``` - - -The datasource plugin type -#### fn datasource.withUid - -```jsonnet -datasource.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Datasource UID (NOTE: name in k8s) -### obj resultAssertions - - -#### fn resultAssertions.withMaxFrames - -```jsonnet -resultAssertions.withMaxFrames(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Maximum frame count -#### fn resultAssertions.withType - -```jsonnet -resultAssertions.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` - -Type asserts that the frame matches a known type structure. -Possible enum values: - - `""` - - `"timeseries-wide"` - - `"timeseries-long"` - - `"timeseries-many"` - - `"timeseries-multi"` - - `"directory-listing"` - - `"table"` - - `"numeric-wide"` - - `"numeric-multi"` - - `"numeric-long"` - - `"log-lines"` -#### fn resultAssertions.withTypeVersion - -```jsonnet -resultAssertions.withTypeVersion(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -#### fn resultAssertions.withTypeVersionMixin - -```jsonnet -resultAssertions.withTypeVersionMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -### obj timeRange - - -#### fn timeRange.withFrom - -```jsonnet -timeRange.withFrom(value="now-6h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now-6h"` - -From is the start time of the query. -#### fn timeRange.withTo - -```jsonnet -timeRange.withTo(value="now") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now"` - -To is the end time of the query. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeMath.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeMath.md deleted file mode 100644 index a8b85d207..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeMath.md +++ /dev/null @@ -1,308 +0,0 @@ -# TypeMath - -grafonnet.query.expr.TypeMath - -## Index - -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) -* [`fn withExpression(value)`](#fn-withexpression) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withIntervalMs(value)`](#fn-withintervalms) -* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withResultAssertions(value)`](#fn-withresultassertions) -* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) -* [`fn withTimeRange(value)`](#fn-withtimerange) -* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) -* [`fn withType()`](#fn-withtype) -* [`obj datasource`](#obj-datasource) - * [`fn withApiVersion(value)`](#fn-datasourcewithapiversion) - * [`fn withType()`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj resultAssertions`](#obj-resultassertions) - * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) - * [`fn withType(value)`](#fn-resultassertionswithtype) - * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) - * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) -* [`obj timeRange`](#obj-timerange) - * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) - * [`fn withTo(value="now")`](#fn-timerangewithto) - -## Fields - -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource -### fn withDatasourceMixin - -```jsonnet -withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource -### fn withExpression - -```jsonnet -withExpression(value) -``` - -PARAMETERS: - -* **value** (`string`) - -General math expression -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -NOTE: this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withIntervalMs - -```jsonnet -withIntervalMs(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Interval is the suggested duration between time points in a time series query. -NOTE: the values for intervalMs is not saved in the query model. It is typically calculated -from the interval required to fill a pixels in the visualization -### fn withMaxDataPoints - -```jsonnet -withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -MaxDataPoints is the maximum number of data points that should be returned from a time series query. -NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated -from the number of pixels visible in a visualization -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -QueryType is an optional identifier for the type of query. -It can be used to distinguish different types of queries. -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -RefID is the unique identifier of the query, set by the frontend call. -### fn withResultAssertions - -```jsonnet -withResultAssertions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Optionally define expected query result behavior -### fn withResultAssertionsMixin - -```jsonnet -withResultAssertionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Optionally define expected query result behavior -### fn withTimeRange - -```jsonnet -withTimeRange(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TimeRange represents the query range -NOTE: unlike generic /ds/query, we can now send explicit time values in each query -NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly -### fn withTimeRangeMixin - -```jsonnet -withTimeRangeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TimeRange represents the query range -NOTE: unlike generic /ds/query, we can now send explicit time values in each query -NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly -### fn withType - -```jsonnet -withType() -``` - - - -### obj datasource - - -#### fn datasource.withApiVersion - -```jsonnet -datasource.withApiVersion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The apiserver version -#### fn datasource.withType - -```jsonnet -datasource.withType() -``` - - -The datasource plugin type -#### fn datasource.withUid - -```jsonnet -datasource.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Datasource UID (NOTE: name in k8s) -### obj resultAssertions - - -#### fn resultAssertions.withMaxFrames - -```jsonnet -resultAssertions.withMaxFrames(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Maximum frame count -#### fn resultAssertions.withType - -```jsonnet -resultAssertions.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` - -Type asserts that the frame matches a known type structure. -Possible enum values: - - `""` - - `"timeseries-wide"` - - `"timeseries-long"` - - `"timeseries-many"` - - `"timeseries-multi"` - - `"directory-listing"` - - `"table"` - - `"numeric-wide"` - - `"numeric-multi"` - - `"numeric-long"` - - `"log-lines"` -#### fn resultAssertions.withTypeVersion - -```jsonnet -resultAssertions.withTypeVersion(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -#### fn resultAssertions.withTypeVersionMixin - -```jsonnet -resultAssertions.withTypeVersionMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -### obj timeRange - - -#### fn timeRange.withFrom - -```jsonnet -timeRange.withFrom(value="now-6h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now-6h"` - -From is the start time of the query. -#### fn timeRange.withTo - -```jsonnet -timeRange.withTo(value="now") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now"` - -To is the end time of the query. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeReduce.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeReduce.md deleted file mode 100644 index 6ba5d5218..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeReduce.md +++ /dev/null @@ -1,384 +0,0 @@ -# TypeReduce - -grafonnet.query.expr.TypeReduce - -## Index - -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) -* [`fn withExpression(value)`](#fn-withexpression) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withIntervalMs(value)`](#fn-withintervalms) -* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withReducer(value)`](#fn-withreducer) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withResultAssertions(value)`](#fn-withresultassertions) -* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) -* [`fn withSettings(value)`](#fn-withsettings) -* [`fn withSettingsMixin(value)`](#fn-withsettingsmixin) -* [`fn withTimeRange(value)`](#fn-withtimerange) -* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) -* [`fn withType()`](#fn-withtype) -* [`obj datasource`](#obj-datasource) - * [`fn withApiVersion(value)`](#fn-datasourcewithapiversion) - * [`fn withType()`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj resultAssertions`](#obj-resultassertions) - * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) - * [`fn withType(value)`](#fn-resultassertionswithtype) - * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) - * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) -* [`obj settings`](#obj-settings) - * [`fn withMode(value)`](#fn-settingswithmode) - * [`fn withReplaceWithValue(value)`](#fn-settingswithreplacewithvalue) -* [`obj timeRange`](#obj-timerange) - * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) - * [`fn withTo(value="now")`](#fn-timerangewithto) - -## Fields - -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource -### fn withDatasourceMixin - -```jsonnet -withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource -### fn withExpression - -```jsonnet -withExpression(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Reference to single query result -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -NOTE: this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withIntervalMs - -```jsonnet -withIntervalMs(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Interval is the suggested duration between time points in a time series query. -NOTE: the values for intervalMs is not saved in the query model. It is typically calculated -from the interval required to fill a pixels in the visualization -### fn withMaxDataPoints - -```jsonnet -withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -MaxDataPoints is the maximum number of data points that should be returned from a time series query. -NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated -from the number of pixels visible in a visualization -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -QueryType is an optional identifier for the type of query. -It can be used to distinguish different types of queries. -### fn withReducer - -```jsonnet -withReducer(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"sum"`, `"mean"`, `"min"`, `"max"`, `"count"`, `"last"` - -The reducer -Possible enum values: - - `"sum"` - - `"mean"` - - `"min"` - - `"max"` - - `"count"` - - `"last"` -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -RefID is the unique identifier of the query, set by the frontend call. -### fn withResultAssertions - -```jsonnet -withResultAssertions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Optionally define expected query result behavior -### fn withResultAssertionsMixin - -```jsonnet -withResultAssertionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Optionally define expected query result behavior -### fn withSettings - -```jsonnet -withSettings(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Reducer Options -### fn withSettingsMixin - -```jsonnet -withSettingsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Reducer Options -### fn withTimeRange - -```jsonnet -withTimeRange(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TimeRange represents the query range -NOTE: unlike generic /ds/query, we can now send explicit time values in each query -NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly -### fn withTimeRangeMixin - -```jsonnet -withTimeRangeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TimeRange represents the query range -NOTE: unlike generic /ds/query, we can now send explicit time values in each query -NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly -### fn withType - -```jsonnet -withType() -``` - - - -### obj datasource - - -#### fn datasource.withApiVersion - -```jsonnet -datasource.withApiVersion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The apiserver version -#### fn datasource.withType - -```jsonnet -datasource.withType() -``` - - -The datasource plugin type -#### fn datasource.withUid - -```jsonnet -datasource.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Datasource UID (NOTE: name in k8s) -### obj resultAssertions - - -#### fn resultAssertions.withMaxFrames - -```jsonnet -resultAssertions.withMaxFrames(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Maximum frame count -#### fn resultAssertions.withType - -```jsonnet -resultAssertions.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` - -Type asserts that the frame matches a known type structure. -Possible enum values: - - `""` - - `"timeseries-wide"` - - `"timeseries-long"` - - `"timeseries-many"` - - `"timeseries-multi"` - - `"directory-listing"` - - `"table"` - - `"numeric-wide"` - - `"numeric-multi"` - - `"numeric-long"` - - `"log-lines"` -#### fn resultAssertions.withTypeVersion - -```jsonnet -resultAssertions.withTypeVersion(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -#### fn resultAssertions.withTypeVersionMixin - -```jsonnet -resultAssertions.withTypeVersionMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -### obj settings - - -#### fn settings.withMode - -```jsonnet -settings.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"dropNN"`, `"replaceNN"` - -Non-number reduce behavior -Possible enum values: - - `"dropNN"` Drop non-numbers - - `"replaceNN"` Replace non-numbers -#### fn settings.withReplaceWithValue - -```jsonnet -settings.withReplaceWithValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Only valid when mode is replace -### obj timeRange - - -#### fn timeRange.withFrom - -```jsonnet -timeRange.withFrom(value="now-6h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now-6h"` - -From is the start time of the query. -#### fn timeRange.withTo - -```jsonnet -timeRange.withTo(value="now") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now"` - -To is the end time of the query. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeResample.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeResample.md deleted file mode 100644 index c1162c0a4..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeResample.md +++ /dev/null @@ -1,357 +0,0 @@ -# TypeResample - -grafonnet.query.expr.TypeResample - -## Index - -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) -* [`fn withDownsampler(value)`](#fn-withdownsampler) -* [`fn withExpression(value)`](#fn-withexpression) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withIntervalMs(value)`](#fn-withintervalms) -* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withResultAssertions(value)`](#fn-withresultassertions) -* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) -* [`fn withTimeRange(value)`](#fn-withtimerange) -* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) -* [`fn withType()`](#fn-withtype) -* [`fn withUpsampler(value)`](#fn-withupsampler) -* [`fn withWindow(value)`](#fn-withwindow) -* [`obj datasource`](#obj-datasource) - * [`fn withApiVersion(value)`](#fn-datasourcewithapiversion) - * [`fn withType()`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj resultAssertions`](#obj-resultassertions) - * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) - * [`fn withType(value)`](#fn-resultassertionswithtype) - * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) - * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) -* [`obj timeRange`](#obj-timerange) - * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) - * [`fn withTo(value="now")`](#fn-timerangewithto) - -## Fields - -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource -### fn withDatasourceMixin - -```jsonnet -withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource -### fn withDownsampler - -```jsonnet -withDownsampler(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"sum"`, `"mean"`, `"min"`, `"max"`, `"count"`, `"last"` - -The downsample function -Possible enum values: - - `"sum"` - - `"mean"` - - `"min"` - - `"max"` - - `"count"` - - `"last"` -### fn withExpression - -```jsonnet -withExpression(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The math expression -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -NOTE: this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withIntervalMs - -```jsonnet -withIntervalMs(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Interval is the suggested duration between time points in a time series query. -NOTE: the values for intervalMs is not saved in the query model. It is typically calculated -from the interval required to fill a pixels in the visualization -### fn withMaxDataPoints - -```jsonnet -withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -MaxDataPoints is the maximum number of data points that should be returned from a time series query. -NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated -from the number of pixels visible in a visualization -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -QueryType is an optional identifier for the type of query. -It can be used to distinguish different types of queries. -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -RefID is the unique identifier of the query, set by the frontend call. -### fn withResultAssertions - -```jsonnet -withResultAssertions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Optionally define expected query result behavior -### fn withResultAssertionsMixin - -```jsonnet -withResultAssertionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Optionally define expected query result behavior -### fn withTimeRange - -```jsonnet -withTimeRange(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TimeRange represents the query range -NOTE: unlike generic /ds/query, we can now send explicit time values in each query -NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly -### fn withTimeRangeMixin - -```jsonnet -withTimeRangeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TimeRange represents the query range -NOTE: unlike generic /ds/query, we can now send explicit time values in each query -NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly -### fn withType - -```jsonnet -withType() -``` - - - -### fn withUpsampler - -```jsonnet -withUpsampler(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"pad"`, `"backfilling"`, `"fillna"` - -The upsample function -Possible enum values: - - `"pad"` Use the last seen value - - `"backfilling"` backfill - - `"fillna"` Do not fill values (nill) -### fn withWindow - -```jsonnet -withWindow(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The time duration -### obj datasource - - -#### fn datasource.withApiVersion - -```jsonnet -datasource.withApiVersion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The apiserver version -#### fn datasource.withType - -```jsonnet -datasource.withType() -``` - - -The datasource plugin type -#### fn datasource.withUid - -```jsonnet -datasource.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Datasource UID (NOTE: name in k8s) -### obj resultAssertions - - -#### fn resultAssertions.withMaxFrames - -```jsonnet -resultAssertions.withMaxFrames(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Maximum frame count -#### fn resultAssertions.withType - -```jsonnet -resultAssertions.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` - -Type asserts that the frame matches a known type structure. -Possible enum values: - - `""` - - `"timeseries-wide"` - - `"timeseries-long"` - - `"timeseries-many"` - - `"timeseries-multi"` - - `"directory-listing"` - - `"table"` - - `"numeric-wide"` - - `"numeric-multi"` - - `"numeric-long"` - - `"log-lines"` -#### fn resultAssertions.withTypeVersion - -```jsonnet -resultAssertions.withTypeVersion(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -#### fn resultAssertions.withTypeVersionMixin - -```jsonnet -resultAssertions.withTypeVersionMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -### obj timeRange - - -#### fn timeRange.withFrom - -```jsonnet -timeRange.withFrom(value="now-6h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now-6h"` - -From is the start time of the query. -#### fn timeRange.withTo - -```jsonnet -timeRange.withTo(value="now") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now"` - -To is the end time of the query. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeSql.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeSql.md deleted file mode 100644 index f0a46396b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeSql.md +++ /dev/null @@ -1,308 +0,0 @@ -# TypeSql - -grafonnet.query.expr.TypeSql - -## Index - -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) -* [`fn withExpression(value)`](#fn-withexpression) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withIntervalMs(value)`](#fn-withintervalms) -* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withResultAssertions(value)`](#fn-withresultassertions) -* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) -* [`fn withTimeRange(value)`](#fn-withtimerange) -* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) -* [`fn withType()`](#fn-withtype) -* [`obj datasource`](#obj-datasource) - * [`fn withApiVersion(value)`](#fn-datasourcewithapiversion) - * [`fn withType()`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj resultAssertions`](#obj-resultassertions) - * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) - * [`fn withType(value)`](#fn-resultassertionswithtype) - * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) - * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) -* [`obj timeRange`](#obj-timerange) - * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) - * [`fn withTo(value="now")`](#fn-timerangewithto) - -## Fields - -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource -### fn withDatasourceMixin - -```jsonnet -withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource -### fn withExpression - -```jsonnet -withExpression(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -NOTE: this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withIntervalMs - -```jsonnet -withIntervalMs(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Interval is the suggested duration between time points in a time series query. -NOTE: the values for intervalMs is not saved in the query model. It is typically calculated -from the interval required to fill a pixels in the visualization -### fn withMaxDataPoints - -```jsonnet -withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -MaxDataPoints is the maximum number of data points that should be returned from a time series query. -NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated -from the number of pixels visible in a visualization -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -QueryType is an optional identifier for the type of query. -It can be used to distinguish different types of queries. -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -RefID is the unique identifier of the query, set by the frontend call. -### fn withResultAssertions - -```jsonnet -withResultAssertions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Optionally define expected query result behavior -### fn withResultAssertionsMixin - -```jsonnet -withResultAssertionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Optionally define expected query result behavior -### fn withTimeRange - -```jsonnet -withTimeRange(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TimeRange represents the query range -NOTE: unlike generic /ds/query, we can now send explicit time values in each query -NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly -### fn withTimeRangeMixin - -```jsonnet -withTimeRangeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TimeRange represents the query range -NOTE: unlike generic /ds/query, we can now send explicit time values in each query -NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly -### fn withType - -```jsonnet -withType() -``` - - - -### obj datasource - - -#### fn datasource.withApiVersion - -```jsonnet -datasource.withApiVersion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The apiserver version -#### fn datasource.withType - -```jsonnet -datasource.withType() -``` - - -The datasource plugin type -#### fn datasource.withUid - -```jsonnet -datasource.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Datasource UID (NOTE: name in k8s) -### obj resultAssertions - - -#### fn resultAssertions.withMaxFrames - -```jsonnet -resultAssertions.withMaxFrames(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Maximum frame count -#### fn resultAssertions.withType - -```jsonnet -resultAssertions.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` - -Type asserts that the frame matches a known type structure. -Possible enum values: - - `""` - - `"timeseries-wide"` - - `"timeseries-long"` - - `"timeseries-many"` - - `"timeseries-multi"` - - `"directory-listing"` - - `"table"` - - `"numeric-wide"` - - `"numeric-multi"` - - `"numeric-long"` - - `"log-lines"` -#### fn resultAssertions.withTypeVersion - -```jsonnet -resultAssertions.withTypeVersion(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -#### fn resultAssertions.withTypeVersionMixin - -```jsonnet -resultAssertions.withTypeVersionMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -### obj timeRange - - -#### fn timeRange.withFrom - -```jsonnet -timeRange.withFrom(value="now-6h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now-6h"` - -From is the start time of the query. -#### fn timeRange.withTo - -```jsonnet -timeRange.withTo(value="now") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now"` - -To is the end time of the query. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeThreshold/conditions.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeThreshold/conditions.md deleted file mode 100644 index 554ddb929..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeThreshold/conditions.md +++ /dev/null @@ -1,163 +0,0 @@ -# conditions - - - -## Index - -* [`fn withEvaluator(value)`](#fn-withevaluator) -* [`fn withEvaluatorMixin(value)`](#fn-withevaluatormixin) -* [`fn withLoadedDimensions(value)`](#fn-withloadeddimensions) -* [`fn withLoadedDimensionsMixin(value)`](#fn-withloadeddimensionsmixin) -* [`fn withUnloadEvaluator(value)`](#fn-withunloadevaluator) -* [`fn withUnloadEvaluatorMixin(value)`](#fn-withunloadevaluatormixin) -* [`obj evaluator`](#obj-evaluator) - * [`fn withParams(value)`](#fn-evaluatorwithparams) - * [`fn withParamsMixin(value)`](#fn-evaluatorwithparamsmixin) - * [`fn withType(value)`](#fn-evaluatorwithtype) -* [`obj unloadEvaluator`](#obj-unloadevaluator) - * [`fn withParams(value)`](#fn-unloadevaluatorwithparams) - * [`fn withParamsMixin(value)`](#fn-unloadevaluatorwithparamsmixin) - * [`fn withType(value)`](#fn-unloadevaluatorwithtype) - -## Fields - -### fn withEvaluator - -```jsonnet -withEvaluator(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withEvaluatorMixin - -```jsonnet -withEvaluatorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLoadedDimensions - -```jsonnet -withLoadedDimensions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withLoadedDimensionsMixin - -```jsonnet -withLoadedDimensionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withUnloadEvaluator - -```jsonnet -withUnloadEvaluator(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withUnloadEvaluatorMixin - -```jsonnet -withUnloadEvaluatorMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### obj evaluator - - -#### fn evaluator.withParams - -```jsonnet -evaluator.withParams(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn evaluator.withParamsMixin - -```jsonnet -evaluator.withParamsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn evaluator.withType - -```jsonnet -evaluator.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"gt"`, `"lt"`, `"within_range"`, `"outside_range"` - -e.g. "gt" -### obj unloadEvaluator - - -#### fn unloadEvaluator.withParams - -```jsonnet -unloadEvaluator.withParams(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn unloadEvaluator.withParamsMixin - -```jsonnet -unloadEvaluator.withParamsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn unloadEvaluator.withType - -```jsonnet -unloadEvaluator.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"gt"`, `"lt"`, `"within_range"`, `"outside_range"` - -e.g. "gt" \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeThreshold/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeThreshold/index.md deleted file mode 100644 index e2e47f1db..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/TypeThreshold/index.md +++ /dev/null @@ -1,336 +0,0 @@ -# TypeThreshold - -grafonnet.query.expr.TypeThreshold - -## Subpackages - -* [conditions](conditions.md) - -## Index - -* [`fn withConditions(value)`](#fn-withconditions) -* [`fn withConditionsMixin(value)`](#fn-withconditionsmixin) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withDatasourceMixin(value)`](#fn-withdatasourcemixin) -* [`fn withExpression(value)`](#fn-withexpression) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withIntervalMs(value)`](#fn-withintervalms) -* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withResultAssertions(value)`](#fn-withresultassertions) -* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) -* [`fn withTimeRange(value)`](#fn-withtimerange) -* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) -* [`fn withType()`](#fn-withtype) -* [`obj datasource`](#obj-datasource) - * [`fn withApiVersion(value)`](#fn-datasourcewithapiversion) - * [`fn withType()`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj resultAssertions`](#obj-resultassertions) - * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) - * [`fn withType(value)`](#fn-resultassertionswithtype) - * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) - * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) -* [`obj timeRange`](#obj-timerange) - * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) - * [`fn withTo(value="now")`](#fn-timerangewithto) - -## Fields - -### fn withConditions - -```jsonnet -withConditions(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Threshold Conditions -### fn withConditionsMixin - -```jsonnet -withConditionsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Threshold Conditions -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource -### fn withDatasourceMixin - -```jsonnet -withDatasourceMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The datasource -### fn withExpression - -```jsonnet -withExpression(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Reference to single query result -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -NOTE: this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withIntervalMs - -```jsonnet -withIntervalMs(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Interval is the suggested duration between time points in a time series query. -NOTE: the values for intervalMs is not saved in the query model. It is typically calculated -from the interval required to fill a pixels in the visualization -### fn withMaxDataPoints - -```jsonnet -withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -MaxDataPoints is the maximum number of data points that should be returned from a time series query. -NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated -from the number of pixels visible in a visualization -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -QueryType is an optional identifier for the type of query. -It can be used to distinguish different types of queries. -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -RefID is the unique identifier of the query, set by the frontend call. -### fn withResultAssertions - -```jsonnet -withResultAssertions(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Optionally define expected query result behavior -### fn withResultAssertionsMixin - -```jsonnet -withResultAssertionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Optionally define expected query result behavior -### fn withTimeRange - -```jsonnet -withTimeRange(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TimeRange represents the query range -NOTE: unlike generic /ds/query, we can now send explicit time values in each query -NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly -### fn withTimeRangeMixin - -```jsonnet -withTimeRangeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -TimeRange represents the query range -NOTE: unlike generic /ds/query, we can now send explicit time values in each query -NOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly -### fn withType - -```jsonnet -withType() -``` - - - -### obj datasource - - -#### fn datasource.withApiVersion - -```jsonnet -datasource.withApiVersion(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The apiserver version -#### fn datasource.withType - -```jsonnet -datasource.withType() -``` - - -The datasource plugin type -#### fn datasource.withUid - -```jsonnet -datasource.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Datasource UID (NOTE: name in k8s) -### obj resultAssertions - - -#### fn resultAssertions.withMaxFrames - -```jsonnet -resultAssertions.withMaxFrames(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Maximum frame count -#### fn resultAssertions.withType - -```jsonnet -resultAssertions.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` - -Type asserts that the frame matches a known type structure. -Possible enum values: - - `""` - - `"timeseries-wide"` - - `"timeseries-long"` - - `"timeseries-many"` - - `"timeseries-multi"` - - `"directory-listing"` - - `"table"` - - `"numeric-wide"` - - `"numeric-multi"` - - `"numeric-long"` - - `"log-lines"` -#### fn resultAssertions.withTypeVersion - -```jsonnet -resultAssertions.withTypeVersion(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -#### fn resultAssertions.withTypeVersionMixin - -```jsonnet -resultAssertions.withTypeVersionMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -### obj timeRange - - -#### fn timeRange.withFrom - -```jsonnet -timeRange.withFrom(value="now-6h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now-6h"` - -From is the start time of the query. -#### fn timeRange.withTo - -```jsonnet -timeRange.withTo(value="now") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now"` - -To is the end time of the query. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/index.md deleted file mode 100644 index a89a72a11..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/expr/index.md +++ /dev/null @@ -1,12 +0,0 @@ -# expr - -Server Side Expression operations for grafonnet.alerting.ruleGroup.rule - -## Subpackages - -* [TypeClassicConditions](TypeClassicConditions/index.md) -* [TypeMath](TypeMath.md) -* [TypeReduce](TypeReduce.md) -* [TypeResample](TypeResample.md) -* [TypeSql](TypeSql.md) -* [TypeThreshold](TypeThreshold/index.md) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/googleCloudMonitoring.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/googleCloudMonitoring.md deleted file mode 100644 index b728940f1..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/googleCloudMonitoring.md +++ /dev/null @@ -1,595 +0,0 @@ -# googleCloudMonitoring - -grafonnet.query.googleCloudMonitoring - -## Index - -* [`fn withAliasBy(value)`](#fn-withaliasby) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withIntervalMs(value)`](#fn-withintervalms) -* [`fn withPromQLQuery(value)`](#fn-withpromqlquery) -* [`fn withPromQLQueryMixin(value)`](#fn-withpromqlquerymixin) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withSloQuery(value)`](#fn-withsloquery) -* [`fn withSloQueryMixin(value)`](#fn-withsloquerymixin) -* [`fn withTimeSeriesList(value)`](#fn-withtimeserieslist) -* [`fn withTimeSeriesListMixin(value)`](#fn-withtimeserieslistmixin) -* [`fn withTimeSeriesQuery(value)`](#fn-withtimeseriesquery) -* [`fn withTimeSeriesQueryMixin(value)`](#fn-withtimeseriesquerymixin) -* [`obj promQLQuery`](#obj-promqlquery) - * [`fn withExpr(value)`](#fn-promqlquerywithexpr) - * [`fn withProjectName(value)`](#fn-promqlquerywithprojectname) - * [`fn withStep(value)`](#fn-promqlquerywithstep) -* [`obj sloQuery`](#obj-sloquery) - * [`fn withAlignmentPeriod(value)`](#fn-sloquerywithalignmentperiod) - * [`fn withGoal(value)`](#fn-sloquerywithgoal) - * [`fn withLookbackPeriod(value)`](#fn-sloquerywithlookbackperiod) - * [`fn withPerSeriesAligner(value)`](#fn-sloquerywithperseriesaligner) - * [`fn withProjectName(value)`](#fn-sloquerywithprojectname) - * [`fn withSelectorName(value)`](#fn-sloquerywithselectorname) - * [`fn withServiceId(value)`](#fn-sloquerywithserviceid) - * [`fn withServiceName(value)`](#fn-sloquerywithservicename) - * [`fn withSloId(value)`](#fn-sloquerywithsloid) - * [`fn withSloName(value)`](#fn-sloquerywithsloname) -* [`obj timeSeriesList`](#obj-timeserieslist) - * [`fn withAlignmentPeriod(value)`](#fn-timeserieslistwithalignmentperiod) - * [`fn withCrossSeriesReducer(value)`](#fn-timeserieslistwithcrossseriesreducer) - * [`fn withFilters(value)`](#fn-timeserieslistwithfilters) - * [`fn withFiltersMixin(value)`](#fn-timeserieslistwithfiltersmixin) - * [`fn withGroupBys(value)`](#fn-timeserieslistwithgroupbys) - * [`fn withGroupBysMixin(value)`](#fn-timeserieslistwithgroupbysmixin) - * [`fn withPerSeriesAligner(value)`](#fn-timeserieslistwithperseriesaligner) - * [`fn withPreprocessor(value)`](#fn-timeserieslistwithpreprocessor) - * [`fn withProjectName(value)`](#fn-timeserieslistwithprojectname) - * [`fn withSecondaryAlignmentPeriod(value)`](#fn-timeserieslistwithsecondaryalignmentperiod) - * [`fn withSecondaryCrossSeriesReducer(value)`](#fn-timeserieslistwithsecondarycrossseriesreducer) - * [`fn withSecondaryGroupBys(value)`](#fn-timeserieslistwithsecondarygroupbys) - * [`fn withSecondaryGroupBysMixin(value)`](#fn-timeserieslistwithsecondarygroupbysmixin) - * [`fn withSecondaryPerSeriesAligner(value)`](#fn-timeserieslistwithsecondaryperseriesaligner) - * [`fn withText(value)`](#fn-timeserieslistwithtext) - * [`fn withTitle(value)`](#fn-timeserieslistwithtitle) - * [`fn withView(value)`](#fn-timeserieslistwithview) -* [`obj timeSeriesQuery`](#obj-timeseriesquery) - * [`fn withGraphPeriod(value="disabled")`](#fn-timeseriesquerywithgraphperiod) - * [`fn withProjectName(value)`](#fn-timeseriesquerywithprojectname) - * [`fn withQuery(value)`](#fn-timeseriesquerywithquery) - -## Fields - -### fn withAliasBy - -```jsonnet -withAliasBy(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Aliases can be set to modify the legend labels. e.g. {{metric.label.xxx}}. See docs for more detail. -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. -### fn withIntervalMs - -```jsonnet -withIntervalMs(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Time interval in milliseconds. -### fn withPromQLQuery - -```jsonnet -withPromQLQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - -PromQL sub-query properties. -### fn withPromQLQueryMixin - -```jsonnet -withPromQLQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -PromQL sub-query properties. -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -### fn withSloQuery - -```jsonnet -withSloQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - -SLO sub-query properties. -### fn withSloQueryMixin - -```jsonnet -withSloQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -SLO sub-query properties. -### fn withTimeSeriesList - -```jsonnet -withTimeSeriesList(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Time Series List sub-query properties. -### fn withTimeSeriesListMixin - -```jsonnet -withTimeSeriesListMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Time Series List sub-query properties. -### fn withTimeSeriesQuery - -```jsonnet -withTimeSeriesQuery(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Time Series sub-query properties. -### fn withTimeSeriesQueryMixin - -```jsonnet -withTimeSeriesQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -Time Series sub-query properties. -### obj promQLQuery - - -#### fn promQLQuery.withExpr - -```jsonnet -promQLQuery.withExpr(value) -``` - -PARAMETERS: - -* **value** (`string`) - -PromQL expression/query to be executed. -#### fn promQLQuery.withProjectName - -```jsonnet -promQLQuery.withProjectName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -GCP project to execute the query against. -#### fn promQLQuery.withStep - -```jsonnet -promQLQuery.withStep(value) -``` - -PARAMETERS: - -* **value** (`string`) - -PromQL min step -### obj sloQuery - - -#### fn sloQuery.withAlignmentPeriod - -```jsonnet -sloQuery.withAlignmentPeriod(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto. -#### fn sloQuery.withGoal - -```jsonnet -sloQuery.withGoal(value) -``` - -PARAMETERS: - -* **value** (`number`) - -SLO goal value. -#### fn sloQuery.withLookbackPeriod - -```jsonnet -sloQuery.withLookbackPeriod(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specific lookback period for the SLO. -#### fn sloQuery.withPerSeriesAligner - -```jsonnet -sloQuery.withPerSeriesAligner(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alignment function to be used. Defaults to ALIGN_MEAN. -#### fn sloQuery.withProjectName - -```jsonnet -sloQuery.withProjectName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -GCP project to execute the query against. -#### fn sloQuery.withSelectorName - -```jsonnet -sloQuery.withSelectorName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -SLO selector. -#### fn sloQuery.withServiceId - -```jsonnet -sloQuery.withServiceId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -ID for the service the SLO is in. -#### fn sloQuery.withServiceName - -```jsonnet -sloQuery.withServiceName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name for the service the SLO is in. -#### fn sloQuery.withSloId - -```jsonnet -sloQuery.withSloId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -ID for the SLO. -#### fn sloQuery.withSloName - -```jsonnet -sloQuery.withSloName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the SLO. -### obj timeSeriesList - - -#### fn timeSeriesList.withAlignmentPeriod - -```jsonnet -timeSeriesList.withAlignmentPeriod(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto. -#### fn timeSeriesList.withCrossSeriesReducer - -```jsonnet -timeSeriesList.withCrossSeriesReducer(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Reducer applied across a set of time-series values. Defaults to REDUCE_NONE. -#### fn timeSeriesList.withFilters - -```jsonnet -timeSeriesList.withFilters(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of filters to query data by. Labels that can be filtered on are defined by the metric. -#### fn timeSeriesList.withFiltersMixin - -```jsonnet -timeSeriesList.withFiltersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of filters to query data by. Labels that can be filtered on are defined by the metric. -#### fn timeSeriesList.withGroupBys - -```jsonnet -timeSeriesList.withGroupBys(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of labels to group data by. -#### fn timeSeriesList.withGroupBysMixin - -```jsonnet -timeSeriesList.withGroupBysMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Array of labels to group data by. -#### fn timeSeriesList.withPerSeriesAligner - -```jsonnet -timeSeriesList.withPerSeriesAligner(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Alignment function to be used. Defaults to ALIGN_MEAN. -#### fn timeSeriesList.withPreprocessor - -```jsonnet -timeSeriesList.withPreprocessor(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"none"`, `"rate"`, `"delta"` - -Types of pre-processor available. Defined by the metric. -#### fn timeSeriesList.withProjectName - -```jsonnet -timeSeriesList.withProjectName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -GCP project to execute the query against. -#### fn timeSeriesList.withSecondaryAlignmentPeriod - -```jsonnet -timeSeriesList.withSecondaryAlignmentPeriod(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Only present if a preprocessor is selected. Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto. -#### fn timeSeriesList.withSecondaryCrossSeriesReducer - -```jsonnet -timeSeriesList.withSecondaryCrossSeriesReducer(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Only present if a preprocessor is selected. Reducer applied across a set of time-series values. Defaults to REDUCE_NONE. -#### fn timeSeriesList.withSecondaryGroupBys - -```jsonnet -timeSeriesList.withSecondaryGroupBys(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Only present if a preprocessor is selected. Array of labels to group data by. -#### fn timeSeriesList.withSecondaryGroupBysMixin - -```jsonnet -timeSeriesList.withSecondaryGroupBysMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Only present if a preprocessor is selected. Array of labels to group data by. -#### fn timeSeriesList.withSecondaryPerSeriesAligner - -```jsonnet -timeSeriesList.withSecondaryPerSeriesAligner(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Only present if a preprocessor is selected. Alignment function to be used. Defaults to ALIGN_MEAN. -#### fn timeSeriesList.withText - -```jsonnet -timeSeriesList.withText(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Annotation text. -#### fn timeSeriesList.withTitle - -```jsonnet -timeSeriesList.withTitle(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Annotation title. -#### fn timeSeriesList.withView - -```jsonnet -timeSeriesList.withView(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Data view, defaults to FULL. -### obj timeSeriesQuery - - -#### fn timeSeriesQuery.withGraphPeriod - -```jsonnet -timeSeriesQuery.withGraphPeriod(value="disabled") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"disabled"` - -To disable the graphPeriod, it should explictly be set to 'disabled'. -#### fn timeSeriesQuery.withProjectName - -```jsonnet -timeSeriesQuery.withProjectName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -GCP project to execute the query against. -#### fn timeSeriesQuery.withQuery - -```jsonnet -timeSeriesQuery.withQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - -MQL query to be executed. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/grafanaPyroscope.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/grafanaPyroscope.md deleted file mode 100644 index c150bba78..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/grafanaPyroscope.md +++ /dev/null @@ -1,146 +0,0 @@ -# grafanaPyroscope - -grafonnet.query.grafanaPyroscope - -## Index - -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withGroupBy(value)`](#fn-withgroupby) -* [`fn withGroupByMixin(value)`](#fn-withgroupbymixin) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withLabelSelector(value="{}")`](#fn-withlabelselector) -* [`fn withMaxNodes(value)`](#fn-withmaxnodes) -* [`fn withProfileTypeId(value)`](#fn-withprofiletypeid) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withSpanSelector(value)`](#fn-withspanselector) -* [`fn withSpanSelectorMixin(value)`](#fn-withspanselectormixin) - -## Fields - -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -### fn withGroupBy - -```jsonnet -withGroupBy(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Allows to group the results. -### fn withGroupByMixin - -```jsonnet -withGroupByMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Allows to group the results. -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. -### fn withLabelSelector - -```jsonnet -withLabelSelector(value="{}") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"{}"` - -Specifies the query label selectors. -### fn withMaxNodes - -```jsonnet -withMaxNodes(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Sets the maximum number of nodes in the flamegraph. -### fn withProfileTypeId - -```jsonnet -withProfileTypeId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specifies the type of profile to query. -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -### fn withSpanSelector - -```jsonnet -withSpanSelector(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Specifies the query span selectors. -### fn withSpanSelectorMixin - -```jsonnet -withSpanSelectorMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Specifies the query span selectors. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/index.md deleted file mode 100644 index 2e381972e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/index.md +++ /dev/null @@ -1,17 +0,0 @@ -# query - -grafonnet.query - -## Subpackages - -* [azureMonitor](azureMonitor/index.md) -* [cloudWatch](cloudWatch/index.md) -* [elasticsearch](elasticsearch/index.md) -* [expr](expr/index.md) -* [googleCloudMonitoring](googleCloudMonitoring.md) -* [grafanaPyroscope](grafanaPyroscope.md) -* [loki](loki.md) -* [parca](parca.md) -* [prometheus](prometheus.md) -* [tempo](tempo/index.md) -* [testData](testData/index.md) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/loki.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/loki.md deleted file mode 100644 index 2ebd28f26..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/loki.md +++ /dev/null @@ -1,173 +0,0 @@ -# loki - -grafonnet.query.loki - -## Index - -* [`fn new(datasource, expr)`](#fn-new) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withEditorMode(value)`](#fn-witheditormode) -* [`fn withExpr(value)`](#fn-withexpr) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withInstant(value=true)`](#fn-withinstant) -* [`fn withLegendFormat(value)`](#fn-withlegendformat) -* [`fn withMaxLines(value)`](#fn-withmaxlines) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRange(value=true)`](#fn-withrange) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withResolution(value)`](#fn-withresolution) -* [`fn withStep(value)`](#fn-withstep) - -## Fields - -### fn new - -```jsonnet -new(datasource, expr) -``` - -PARAMETERS: - -* **datasource** (`string`) -* **expr** (`string`) - -Creates a new loki query target for panels. -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -### fn withEditorMode - -```jsonnet -withEditorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"code"`, `"builder"` - - -### fn withExpr - -```jsonnet -withExpr(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The LogQL query. -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. -### fn withInstant - -```jsonnet -withInstant(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -@deprecated, now use queryType. -### fn withLegendFormat - -```jsonnet -withLegendFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Used to override the name of the series. -### fn withMaxLines - -```jsonnet -withMaxLines(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Used to limit the number of log rows returned. -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRange - -```jsonnet -withRange(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -@deprecated, now use queryType. -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -### fn withResolution - -```jsonnet -withResolution(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -@deprecated, now use step. -### fn withStep - -```jsonnet -withStep(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Used to set step value for range queries. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/parca.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/parca.md deleted file mode 100644 index 03c73bfef..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/parca.md +++ /dev/null @@ -1,86 +0,0 @@ -# parca - -grafonnet.query.parca - -## Index - -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withLabelSelector(value="{}")`](#fn-withlabelselector) -* [`fn withProfileTypeId(value)`](#fn-withprofiletypeid) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) - -## Fields - -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. -### fn withLabelSelector - -```jsonnet -withLabelSelector(value="{}") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"{}"` - -Specifies the query label selectors. -### fn withProfileTypeId - -```jsonnet -withProfileTypeId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specifies the type of profile to query. -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/prometheus.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/prometheus.md deleted file mode 100644 index df1b14625..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/prometheus.md +++ /dev/null @@ -1,188 +0,0 @@ -# prometheus - -grafonnet.query.prometheus - -## Index - -* [`fn new(datasource, expr)`](#fn-new) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withEditorMode(value)`](#fn-witheditormode) -* [`fn withExemplar(value=true)`](#fn-withexemplar) -* [`fn withExpr(value)`](#fn-withexpr) -* [`fn withFormat(value)`](#fn-withformat) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withInstant(value=true)`](#fn-withinstant) -* [`fn withInterval(value)`](#fn-withinterval) -* [`fn withIntervalFactor(value)`](#fn-withintervalfactor) -* [`fn withLegendFormat(value)`](#fn-withlegendformat) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRange(value=true)`](#fn-withrange) -* [`fn withRefId(value)`](#fn-withrefid) - -## Fields - -### fn new - -```jsonnet -new(datasource, expr) -``` - -PARAMETERS: - -* **datasource** (`string`) -* **expr** (`string`) - -Creates a new prometheus query target for panels. -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -### fn withEditorMode - -```jsonnet -withEditorMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"code"`, `"builder"` - - -### fn withExemplar - -```jsonnet -withExemplar(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Execute an additional query to identify interesting raw samples relevant for the given expr -### fn withExpr - -```jsonnet -withExpr(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The actual expression/query that will be evaluated by Prometheus -### fn withFormat - -```jsonnet -withFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"time_series"`, `"table"`, `"heatmap"` - - -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. -### fn withInstant - -```jsonnet -withInstant(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Returns only the latest value that Prometheus has scraped for the requested time series -### fn withInterval - -```jsonnet -withInterval(value) -``` - -PARAMETERS: - -* **value** (`string`) - -An additional lower limit for the step parameter of the Prometheus query and for the -`$__interval` and `$__rate_interval` variables. -### fn withIntervalFactor - -```jsonnet -withIntervalFactor(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the interval factor for this query. -### fn withLegendFormat - -```jsonnet -withLegendFormat(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the legend format for this query. -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRange - -```jsonnet -withRange(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/tempo/filters.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/tempo/filters.md deleted file mode 100644 index 4482fd27b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/tempo/filters.md +++ /dev/null @@ -1,94 +0,0 @@ -# filters - - - -## Index - -* [`fn withId(value)`](#fn-withid) -* [`fn withOperator(value)`](#fn-withoperator) -* [`fn withScope(value)`](#fn-withscope) -* [`fn withTag(value)`](#fn-withtag) -* [`fn withValue(value)`](#fn-withvalue) -* [`fn withValueMixin(value)`](#fn-withvaluemixin) -* [`fn withValueType(value)`](#fn-withvaluetype) - -## Fields - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Uniquely identify the filter, will not be used in the query generation -### fn withOperator - -```jsonnet -withOperator(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The operator that connects the tag to the value, for example: =, >, !=, =~ -### fn withScope - -```jsonnet -withScope(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"intrinsic"`, `"unscoped"`, `"resource"`, `"span"` - -static fields are pre-set in the UI, dynamic fields are added by the user -### fn withTag - -```jsonnet -withTag(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The tag for the search filter, for example: .http.status_code, .service.name, status -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`array`,`string`) - -The value for the search filter -### fn withValueMixin - -```jsonnet -withValueMixin(value) -``` - -PARAMETERS: - -* **value** (`array`,`string`) - -The value for the search filter -### fn withValueType - -```jsonnet -withValueType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/tempo/groupBy.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/tempo/groupBy.md deleted file mode 100644 index 795b78ef8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/tempo/groupBy.md +++ /dev/null @@ -1,94 +0,0 @@ -# groupBy - - - -## Index - -* [`fn withId(value)`](#fn-withid) -* [`fn withOperator(value)`](#fn-withoperator) -* [`fn withScope(value)`](#fn-withscope) -* [`fn withTag(value)`](#fn-withtag) -* [`fn withValue(value)`](#fn-withvalue) -* [`fn withValueMixin(value)`](#fn-withvaluemixin) -* [`fn withValueType(value)`](#fn-withvaluetype) - -## Fields - -### fn withId - -```jsonnet -withId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Uniquely identify the filter, will not be used in the query generation -### fn withOperator - -```jsonnet -withOperator(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The operator that connects the tag to the value, for example: =, >, !=, =~ -### fn withScope - -```jsonnet -withScope(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"intrinsic"`, `"unscoped"`, `"resource"`, `"span"` - -static fields are pre-set in the UI, dynamic fields are added by the user -### fn withTag - -```jsonnet -withTag(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The tag for the search filter, for example: .http.status_code, .service.name, status -### fn withValue - -```jsonnet -withValue(value) -``` - -PARAMETERS: - -* **value** (`array`,`string`) - -The value for the search filter -### fn withValueMixin - -```jsonnet -withValueMixin(value) -``` - -PARAMETERS: - -* **value** (`array`,`string`) - -The value for the search filter -### fn withValueType - -```jsonnet -withValueType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/tempo/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/tempo/index.md deleted file mode 100644 index 485ab2200..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/tempo/index.md +++ /dev/null @@ -1,274 +0,0 @@ -# tempo - -grafonnet.query.tempo - -## Subpackages - -* [filters](filters.md) -* [groupBy](groupBy.md) - -## Index - -* [`fn new(datasource, query, filters)`](#fn-new) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withFilters(value)`](#fn-withfilters) -* [`fn withFiltersMixin(value)`](#fn-withfiltersmixin) -* [`fn withGroupBy(value)`](#fn-withgroupby) -* [`fn withGroupByMixin(value)`](#fn-withgroupbymixin) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withLimit(value)`](#fn-withlimit) -* [`fn withMaxDuration(value)`](#fn-withmaxduration) -* [`fn withMinDuration(value)`](#fn-withminduration) -* [`fn withQuery(value)`](#fn-withquery) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withSearch(value)`](#fn-withsearch) -* [`fn withServiceMapIncludeNamespace(value=true)`](#fn-withservicemapincludenamespace) -* [`fn withServiceMapQuery(value)`](#fn-withservicemapquery) -* [`fn withServiceMapQueryMixin(value)`](#fn-withservicemapquerymixin) -* [`fn withServiceName(value)`](#fn-withservicename) -* [`fn withSpanName(value)`](#fn-withspanname) -* [`fn withSpss(value)`](#fn-withspss) -* [`fn withTableType(value)`](#fn-withtabletype) - -## Fields - -### fn new - -```jsonnet -new(datasource, query, filters) -``` - -PARAMETERS: - -* **datasource** (`string`) -* **query** (`string`) -* **filters** (`array`) - -Creates a new tempo query target for panels. -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -### fn withFilters - -```jsonnet -withFilters(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withFiltersMixin - -```jsonnet -withFiltersMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withGroupBy - -```jsonnet -withGroupBy(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Filters that are used to query the metrics summary -### fn withGroupByMixin - -```jsonnet -withGroupByMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -Filters that are used to query the metrics summary -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel. -### fn withLimit - -```jsonnet -withLimit(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Defines the maximum number of traces that are returned from Tempo -### fn withMaxDuration - -```jsonnet -withMaxDuration(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms -### fn withMinDuration - -```jsonnet -withMinDuration(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms -### fn withQuery - -```jsonnet -withQuery(value) -``` - -PARAMETERS: - -* **value** (`string`) - -TraceQL query or trace ID -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Specify the query flavor -TODO make this required and give it a default -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -A unique identifier for the query within the list of targets. -In server side expressions, the refId is used as a variable name to identify results. -By default, the UI will assign A->Z; however setting meaningful names may be useful. -### fn withSearch - -```jsonnet -withSearch(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true -### fn withServiceMapIncludeNamespace - -```jsonnet -withServiceMapIncludeNamespace(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Use service.namespace in addition to service.name to uniquely identify a service. -### fn withServiceMapQuery - -```jsonnet -withServiceMapQuery(value) -``` - -PARAMETERS: - -* **value** (`array`,`string`) - -Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}. Providing multiple values will produce union of results for each filter, using PromQL OR operator internally. -### fn withServiceMapQueryMixin - -```jsonnet -withServiceMapQueryMixin(value) -``` - -PARAMETERS: - -* **value** (`array`,`string`) - -Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}. Providing multiple values will produce union of results for each filter, using PromQL OR operator internally. -### fn withServiceName - -```jsonnet -withServiceName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Query traces by service name -### fn withSpanName - -```jsonnet -withSpanName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -@deprecated Query traces by span name -### fn withSpss - -```jsonnet -withSpss(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Defines the maximum number of spans per spanset that are returned from Tempo -### fn withTableType - -```jsonnet -withTableType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"traces"`, `"spans"` - -The type of the table that is used to display the search results \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/testData/csvWave.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/testData/csvWave.md deleted file mode 100644 index 8927e1ccd..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/testData/csvWave.md +++ /dev/null @@ -1,56 +0,0 @@ -# csvWave - - - -## Index - -* [`fn withLabels(value)`](#fn-withlabels) -* [`fn withName(value)`](#fn-withname) -* [`fn withTimeStep(value)`](#fn-withtimestep) -* [`fn withValuesCSV(value)`](#fn-withvaluescsv) - -## Fields - -### fn withLabels - -```jsonnet -withLabels(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withTimeStep - -```jsonnet -withTimeStep(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### fn withValuesCSV - -```jsonnet -withValuesCSV(value) -``` - -PARAMETERS: - -* **value** (`string`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/testData/index.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/testData/index.md deleted file mode 100644 index f1c88286b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/query/testData/index.md +++ /dev/null @@ -1,1107 +0,0 @@ -# testData - -grafonnet.query.testData - -## Subpackages - -* [csvWave](csvWave.md) - -## Index - -* [`fn withAlias(value)`](#fn-withalias) -* [`fn withChannel(value)`](#fn-withchannel) -* [`fn withCsvContent(value)`](#fn-withcsvcontent) -* [`fn withCsvFileName(value)`](#fn-withcsvfilename) -* [`fn withCsvWave(value)`](#fn-withcsvwave) -* [`fn withCsvWaveMixin(value)`](#fn-withcsvwavemixin) -* [`fn withDatasource(value)`](#fn-withdatasource) -* [`fn withDropPercent(value)`](#fn-withdroppercent) -* [`fn withErrorType(value)`](#fn-witherrortype) -* [`fn withFlamegraphDiff(value=true)`](#fn-withflamegraphdiff) -* [`fn withHide(value=true)`](#fn-withhide) -* [`fn withIntervalMs(value)`](#fn-withintervalms) -* [`fn withLabels(value)`](#fn-withlabels) -* [`fn withLevelColumn(value=true)`](#fn-withlevelcolumn) -* [`fn withLines(value)`](#fn-withlines) -* [`fn withMax(value)`](#fn-withmax) -* [`fn withMaxDataPoints(value)`](#fn-withmaxdatapoints) -* [`fn withMin(value)`](#fn-withmin) -* [`fn withNodes(value)`](#fn-withnodes) -* [`fn withNodesMixin(value)`](#fn-withnodesmixin) -* [`fn withNoise(value)`](#fn-withnoise) -* [`fn withPoints(value)`](#fn-withpoints) -* [`fn withPointsMixin(value)`](#fn-withpointsmixin) -* [`fn withPulseWave(value)`](#fn-withpulsewave) -* [`fn withPulseWaveMixin(value)`](#fn-withpulsewavemixin) -* [`fn withQueryType(value)`](#fn-withquerytype) -* [`fn withRawFrameContent(value)`](#fn-withrawframecontent) -* [`fn withRefId(value)`](#fn-withrefid) -* [`fn withResultAssertions(value)`](#fn-withresultassertions) -* [`fn withResultAssertionsMixin(value)`](#fn-withresultassertionsmixin) -* [`fn withScenarioId(value)`](#fn-withscenarioid) -* [`fn withSeriesCount(value)`](#fn-withseriescount) -* [`fn withSim(value)`](#fn-withsim) -* [`fn withSimMixin(value)`](#fn-withsimmixin) -* [`fn withSpanCount(value)`](#fn-withspancount) -* [`fn withSpread(value)`](#fn-withspread) -* [`fn withStartValue(value)`](#fn-withstartvalue) -* [`fn withStream(value)`](#fn-withstream) -* [`fn withStreamMixin(value)`](#fn-withstreammixin) -* [`fn withStringInput(value)`](#fn-withstringinput) -* [`fn withTimeRange(value)`](#fn-withtimerange) -* [`fn withTimeRangeMixin(value)`](#fn-withtimerangemixin) -* [`fn withUsa(value)`](#fn-withusa) -* [`fn withUsaMixin(value)`](#fn-withusamixin) -* [`fn withWithNil(value=true)`](#fn-withwithnil) -* [`obj datasource`](#obj-datasource) - * [`fn withType(value)`](#fn-datasourcewithtype) - * [`fn withUid(value)`](#fn-datasourcewithuid) -* [`obj nodes`](#obj-nodes) - * [`fn withCount(value)`](#fn-nodeswithcount) - * [`fn withSeed(value)`](#fn-nodeswithseed) - * [`fn withType(value)`](#fn-nodeswithtype) -* [`obj pulseWave`](#obj-pulsewave) - * [`fn withOffCount(value)`](#fn-pulsewavewithoffcount) - * [`fn withOffValue(value)`](#fn-pulsewavewithoffvalue) - * [`fn withOnCount(value)`](#fn-pulsewavewithoncount) - * [`fn withOnValue(value)`](#fn-pulsewavewithonvalue) - * [`fn withTimeStep(value)`](#fn-pulsewavewithtimestep) -* [`obj resultAssertions`](#obj-resultassertions) - * [`fn withMaxFrames(value)`](#fn-resultassertionswithmaxframes) - * [`fn withType(value)`](#fn-resultassertionswithtype) - * [`fn withTypeVersion(value)`](#fn-resultassertionswithtypeversion) - * [`fn withTypeVersionMixin(value)`](#fn-resultassertionswithtypeversionmixin) -* [`obj sim`](#obj-sim) - * [`fn withConfig(value)`](#fn-simwithconfig) - * [`fn withConfigMixin(value)`](#fn-simwithconfigmixin) - * [`fn withKey(value)`](#fn-simwithkey) - * [`fn withKeyMixin(value)`](#fn-simwithkeymixin) - * [`fn withLast(value=true)`](#fn-simwithlast) - * [`fn withStream(value=true)`](#fn-simwithstream) - * [`obj key`](#obj-simkey) - * [`fn withTick(value)`](#fn-simkeywithtick) - * [`fn withType(value)`](#fn-simkeywithtype) - * [`fn withUid(value)`](#fn-simkeywithuid) -* [`obj stream`](#obj-stream) - * [`fn withBands(value)`](#fn-streamwithbands) - * [`fn withNoise(value)`](#fn-streamwithnoise) - * [`fn withSpeed(value)`](#fn-streamwithspeed) - * [`fn withSpread(value)`](#fn-streamwithspread) - * [`fn withType(value)`](#fn-streamwithtype) - * [`fn withUrl(value)`](#fn-streamwithurl) -* [`obj timeRange`](#obj-timerange) - * [`fn withFrom(value="now-6h")`](#fn-timerangewithfrom) - * [`fn withTo(value="now")`](#fn-timerangewithto) -* [`obj usa`](#obj-usa) - * [`fn withFields(value)`](#fn-usawithfields) - * [`fn withFieldsMixin(value)`](#fn-usawithfieldsmixin) - * [`fn withMode(value)`](#fn-usawithmode) - * [`fn withPeriod(value)`](#fn-usawithperiod) - * [`fn withStates(value)`](#fn-usawithstates) - * [`fn withStatesMixin(value)`](#fn-usawithstatesmixin) - -## Fields - -### fn withAlias - -```jsonnet -withAlias(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withChannel - -```jsonnet -withChannel(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Used for live query -### fn withCsvContent - -```jsonnet -withCsvContent(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withCsvFileName - -```jsonnet -withCsvFileName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withCsvWave - -```jsonnet -withCsvWave(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withCsvWaveMixin - -```jsonnet -withCsvWaveMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withDatasource - -```jsonnet -withDatasource(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Set the datasource for this query. -### fn withDropPercent - -```jsonnet -withDropPercent(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Drop percentage (the chance we will lose a point 0-100) -### fn withErrorType - -```jsonnet -withErrorType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"frontend_exception"`, `"frontend_observable"`, `"server_panic"` - -Possible enum values: - - `"frontend_exception"` - - `"frontend_observable"` - - `"server_panic"` -### fn withFlamegraphDiff - -```jsonnet -withFlamegraphDiff(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withHide - -```jsonnet -withHide(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -true if query is disabled (ie should not be returned to the dashboard) -NOTE: this does not always imply that the query should not be executed since -the results from a hidden query may be used as the input to other queries (SSE etc) -### fn withIntervalMs - -```jsonnet -withIntervalMs(value) -``` - -PARAMETERS: - -* **value** (`number`) - -Interval is the suggested duration between time points in a time series query. -NOTE: the values for intervalMs is not saved in the query model. It is typically calculated -from the interval required to fill a pixels in the visualization -### fn withLabels - -```jsonnet -withLabels(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withLevelColumn - -```jsonnet -withLevelColumn(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### fn withLines - -```jsonnet -withLines(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### fn withMax - -```jsonnet -withMax(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### fn withMaxDataPoints - -```jsonnet -withMaxDataPoints(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -MaxDataPoints is the maximum number of data points that should be returned from a time series query. -NOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated -from the number of pixels visible in a visualization -### fn withMin - -```jsonnet -withMin(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### fn withNodes - -```jsonnet -withNodes(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withNodesMixin - -```jsonnet -withNodesMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withNoise - -```jsonnet -withNoise(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### fn withPoints - -```jsonnet -withPoints(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withPointsMixin - -```jsonnet -withPointsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -### fn withPulseWave - -```jsonnet -withPulseWave(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withPulseWaveMixin - -```jsonnet -withPulseWaveMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withQueryType - -```jsonnet -withQueryType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -QueryType is an optional identifier for the type of query. -It can be used to distinguish different types of queries. -### fn withRawFrameContent - -```jsonnet -withRawFrameContent(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### fn withRefId - -```jsonnet -withRefId(value) -``` - -PARAMETERS: - -* **value** (`string`) - -RefID is the unique identifier of the query, set by the frontend call. -### fn withResultAssertions - -```jsonnet -withResultAssertions(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withResultAssertionsMixin - -```jsonnet -withResultAssertionsMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withScenarioId - -```jsonnet -withScenarioId(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"annotations"`, `"arrow"`, `"csv_content"`, `"csv_file"`, `"csv_metric_values"`, `"datapoints_outside_range"`, `"exponential_heatmap_bucket_data"`, `"flame_graph"`, `"grafana_api"`, `"linear_heatmap_bucket_data"`, `"live"`, `"logs"`, `"manual_entry"`, `"no_data_points"`, `"node_graph"`, `"predictable_csv_wave"`, `"predictable_pulse"`, `"random_walk"`, `"random_walk_table"`, `"random_walk_with_error"`, `"raw_frame"`, `"server_error_500"`, `"simulation"`, `"slow_query"`, `"streaming_client"`, `"table_static"`, `"trace"`, `"usa"`, `"variables-query"` - -Possible enum values: - - `"annotations"` - - `"arrow"` - - `"csv_content"` - - `"csv_file"` - - `"csv_metric_values"` - - `"datapoints_outside_range"` - - `"exponential_heatmap_bucket_data"` - - `"flame_graph"` - - `"grafana_api"` - - `"linear_heatmap_bucket_data"` - - `"live"` - - `"logs"` - - `"manual_entry"` - - `"no_data_points"` - - `"node_graph"` - - `"predictable_csv_wave"` - - `"predictable_pulse"` - - `"random_walk"` - - `"random_walk_table"` - - `"random_walk_with_error"` - - `"raw_frame"` - - `"server_error_500"` - - `"simulation"` - - `"slow_query"` - - `"streaming_client"` - - `"table_static"` - - `"trace"` - - `"usa"` - - `"variables-query"` -### fn withSeriesCount - -```jsonnet -withSeriesCount(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### fn withSim - -```jsonnet -withSim(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withSimMixin - -```jsonnet -withSimMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withSpanCount - -```jsonnet -withSpanCount(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### fn withSpread - -```jsonnet -withSpread(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### fn withStartValue - -```jsonnet -withStartValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -### fn withStream - -```jsonnet -withStream(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withStreamMixin - -```jsonnet -withStreamMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withStringInput - -```jsonnet -withStringInput(value) -``` - -PARAMETERS: - -* **value** (`string`) - -common parameter used by many query types -### fn withTimeRange - -```jsonnet -withTimeRange(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withTimeRangeMixin - -```jsonnet -withTimeRangeMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withUsa - -```jsonnet -withUsa(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withUsaMixin - -```jsonnet -withUsaMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withWithNil - -```jsonnet -withWithNil(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -### obj datasource - - -#### fn datasource.withType - -```jsonnet -datasource.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The datasource plugin type -#### fn datasource.withUid - -```jsonnet -datasource.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Datasource UID -### obj nodes - - -#### fn nodes.withCount - -```jsonnet -nodes.withCount(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn nodes.withSeed - -```jsonnet -nodes.withSeed(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn nodes.withType - -```jsonnet -nodes.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"random"`, `"random edges"`, `"response_medium"`, `"response_small"`, `"feature_showcase"` - -Possible enum values: - - `"random"` - - `"random edges"` - - `"response_medium"` - - `"response_small"` - - `"feature_showcase"` -### obj pulseWave - - -#### fn pulseWave.withOffCount - -```jsonnet -pulseWave.withOffCount(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn pulseWave.withOffValue - -```jsonnet -pulseWave.withOffValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn pulseWave.withOnCount - -```jsonnet -pulseWave.withOnCount(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn pulseWave.withOnValue - -```jsonnet -pulseWave.withOnValue(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn pulseWave.withTimeStep - -```jsonnet -pulseWave.withTimeStep(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -### obj resultAssertions - - -#### fn resultAssertions.withMaxFrames - -```jsonnet -resultAssertions.withMaxFrames(value) -``` - -PARAMETERS: - -* **value** (`integer`) - -Maximum frame count -#### fn resultAssertions.withType - -```jsonnet -resultAssertions.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `""`, `"timeseries-wide"`, `"timeseries-long"`, `"timeseries-many"`, `"timeseries-multi"`, `"directory-listing"`, `"table"`, `"numeric-wide"`, `"numeric-multi"`, `"numeric-long"`, `"log-lines"` - -Type asserts that the frame matches a known type structure. -Possible enum values: - - `""` - - `"timeseries-wide"` - - `"timeseries-long"` - - `"timeseries-many"` - - `"timeseries-multi"` - - `"directory-listing"` - - `"table"` - - `"numeric-wide"` - - `"numeric-multi"` - - `"numeric-long"` - - `"log-lines"` -#### fn resultAssertions.withTypeVersion - -```jsonnet -resultAssertions.withTypeVersion(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -#### fn resultAssertions.withTypeVersionMixin - -```jsonnet -resultAssertions.withTypeVersionMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - -TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane -contract documentation https://grafana.github.io/dataplane/contract/. -### obj sim - - -#### fn sim.withConfig - -```jsonnet -sim.withConfig(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn sim.withConfigMixin - -```jsonnet -sim.withConfigMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn sim.withKey - -```jsonnet -sim.withKey(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn sim.withKeyMixin - -```jsonnet -sim.withKeyMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn sim.withLast - -```jsonnet -sim.withLast(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### fn sim.withStream - -```jsonnet -sim.withStream(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - - -#### obj sim.key - - -##### fn sim.key.withTick - -```jsonnet -sim.key.withTick(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -##### fn sim.key.withType - -```jsonnet -sim.key.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -##### fn sim.key.withUid - -```jsonnet -sim.key.withUid(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj stream - - -#### fn stream.withBands - -```jsonnet -stream.withBands(value) -``` - -PARAMETERS: - -* **value** (`integer`) - - -#### fn stream.withNoise - -```jsonnet -stream.withNoise(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn stream.withSpeed - -```jsonnet -stream.withSpeed(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn stream.withSpread - -```jsonnet -stream.withSpread(value) -``` - -PARAMETERS: - -* **value** (`number`) - - -#### fn stream.withType - -```jsonnet -stream.withType(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"fetch"`, `"logs"`, `"signal"`, `"traces"` - -Possible enum values: - - `"fetch"` - - `"logs"` - - `"signal"` - - `"traces"` -#### fn stream.withUrl - -```jsonnet -stream.withUrl(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj timeRange - - -#### fn timeRange.withFrom - -```jsonnet -timeRange.withFrom(value="now-6h") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now-6h"` - -From is the start time of the query. -#### fn timeRange.withTo - -```jsonnet -timeRange.withTo(value="now") -``` - -PARAMETERS: - -* **value** (`string`) - - default value: `"now"` - -To is the end time of the query. -### obj usa - - -#### fn usa.withFields - -```jsonnet -usa.withFields(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn usa.withFieldsMixin - -```jsonnet -usa.withFieldsMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn usa.withMode - -```jsonnet -usa.withMode(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn usa.withPeriod - -```jsonnet -usa.withPeriod(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -#### fn usa.withStates - -```jsonnet -usa.withStates(value) -``` - -PARAMETERS: - -* **value** (`array`) - - -#### fn usa.withStatesMixin - -```jsonnet -usa.withStatesMixin(value) -``` - -PARAMETERS: - -* **value** (`array`) - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/role.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/role.md deleted file mode 100644 index b5b551cc4..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/role.md +++ /dev/null @@ -1,70 +0,0 @@ -# role - -grafonnet.role - -## Index - -* [`fn withDescription(value)`](#fn-withdescription) -* [`fn withDisplayName(value)`](#fn-withdisplayname) -* [`fn withGroupName(value)`](#fn-withgroupname) -* [`fn withHidden(value=true)`](#fn-withhidden) -* [`fn withName(value)`](#fn-withname) - -## Fields - -### fn withDescription - -```jsonnet -withDescription(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Role description -### fn withDisplayName - -```jsonnet -withDisplayName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Optional display -### fn withGroupName - -```jsonnet -withGroupName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the team. -### fn withHidden - -```jsonnet -withHidden(value=true) -``` - -PARAMETERS: - -* **value** (`boolean`) - - default value: `true` - -Do not show this role -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The role identifier `managed:builtins:editor:permissions` \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/rolebinding.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/rolebinding.md deleted file mode 100644 index 9a1e904ba..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/rolebinding.md +++ /dev/null @@ -1,189 +0,0 @@ -# rolebinding - -grafonnet.rolebinding - -## Index - -* [`fn withRole(value)`](#fn-withrole) -* [`fn withRoleMixin(value)`](#fn-withrolemixin) -* [`fn withSubject(value)`](#fn-withsubject) -* [`fn withSubjectMixin(value)`](#fn-withsubjectmixin) -* [`obj role`](#obj-role) - * [`fn withBuiltinRoleRef(value)`](#fn-rolewithbuiltinroleref) - * [`fn withBuiltinRoleRefMixin(value)`](#fn-rolewithbuiltinrolerefmixin) - * [`fn withCustomRoleRef(value)`](#fn-rolewithcustomroleref) - * [`fn withCustomRoleRefMixin(value)`](#fn-rolewithcustomrolerefmixin) - * [`obj BuiltinRoleRef`](#obj-rolebuiltinroleref) - * [`fn withKind()`](#fn-rolebuiltinrolerefwithkind) - * [`fn withName(value)`](#fn-rolebuiltinrolerefwithname) - * [`obj CustomRoleRef`](#obj-rolecustomroleref) - * [`fn withKind()`](#fn-rolecustomrolerefwithkind) - * [`fn withName(value)`](#fn-rolecustomrolerefwithname) -* [`obj subject`](#obj-subject) - * [`fn withKind(value)`](#fn-subjectwithkind) - * [`fn withName(value)`](#fn-subjectwithname) - -## Fields - -### fn withRole - -```jsonnet -withRole(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The role we are discussing -### fn withRoleMixin - -```jsonnet -withRoleMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - -The role we are discussing -### fn withSubject - -```jsonnet -withSubject(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### fn withSubjectMixin - -```jsonnet -withSubjectMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -### obj role - - -#### fn role.withBuiltinRoleRef - -```jsonnet -role.withBuiltinRoleRef(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn role.withBuiltinRoleRefMixin - -```jsonnet -role.withBuiltinRoleRefMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn role.withCustomRoleRef - -```jsonnet -role.withCustomRoleRef(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### fn role.withCustomRoleRefMixin - -```jsonnet -role.withCustomRoleRefMixin(value) -``` - -PARAMETERS: - -* **value** (`object`) - - -#### obj role.BuiltinRoleRef - - -##### fn role.BuiltinRoleRef.withKind - -```jsonnet -role.BuiltinRoleRef.withKind() -``` - - - -##### fn role.BuiltinRoleRef.withName - -```jsonnet -role.BuiltinRoleRef.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"viewer"`, `"editor"`, `"admin"` - - -#### obj role.CustomRoleRef - - -##### fn role.CustomRoleRef.withKind - -```jsonnet -role.CustomRoleRef.withKind() -``` - - - -##### fn role.CustomRoleRef.withName - -```jsonnet -role.CustomRoleRef.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - - -### obj subject - - -#### fn subject.withKind - -```jsonnet -subject.withKind(value) -``` - -PARAMETERS: - -* **value** (`string`) - - valid values: `"Team"`, `"User"` - - -#### fn subject.withName - -```jsonnet -subject.withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -The team/user identifier name \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/team.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/team.md deleted file mode 100644 index cce602b98..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/team.md +++ /dev/null @@ -1,33 +0,0 @@ -# team - -grafonnet.team - -## Index - -* [`fn withEmail(value)`](#fn-withemail) -* [`fn withName(value)`](#fn-withname) - -## Fields - -### fn withEmail - -```jsonnet -withEmail(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Email of the team. -### fn withName - -```jsonnet -withName(value) -``` - -PARAMETERS: - -* **value** (`string`) - -Name of the team. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/util.md b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/util.md deleted file mode 100644 index af88a40ba..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/docs/util.md +++ /dev/null @@ -1,328 +0,0 @@ -# util - -Helper functions that work well with Grafonnet. - -## Index - -* [`obj dashboard`](#obj-dashboard) - * [`fn getOptionsForCustomQuery(query)`](#fn-dashboardgetoptionsforcustomquery) -* [`obj grid`](#obj-grid) - * [`fn makeGrid(panels, panelWidth, panelHeight, startY)`](#fn-gridmakegrid) - * [`fn wrapPanels(panels, panelWidth, panelHeight, startY)`](#fn-gridwrappanels) -* [`obj panel`](#obj-panel) - * [`fn calculateLowestYforPanel(panel, panels)`](#fn-panelcalculatelowestyforpanel) - * [`fn dedupeQueryTargets(panels)`](#fn-paneldedupequerytargets) - * [`fn getPanelIDs(panels)`](#fn-panelgetpanelids) - * [`fn getPanelsBeforeNextRow(panels)`](#fn-panelgetpanelsbeforenextrow) - * [`fn groupPanelsInRows(panels)`](#fn-panelgrouppanelsinrows) - * [`fn mapToRows(func, panels)`](#fn-panelmaptorows) - * [`fn normalizeY(panels)`](#fn-panelnormalizey) - * [`fn normalizeYInRow(rowPanel)`](#fn-panelnormalizeyinrow) - * [`fn resolveCollapsedFlagOnRows(panels)`](#fn-panelresolvecollapsedflagonrows) - * [`fn sanitizePanel(panel, defaultX=0, defaultY=0, defaultHeight=8, defaultWidth=8)`](#fn-panelsanitizepanel) - * [`fn setPanelIDs(panels, overrideExistingIDs=true)`](#fn-panelsetpanelids) - * [`fn setRefIDs(panel, overrideExistingIDs=true)`](#fn-panelsetrefids) - * [`fn setRefIDsOnPanels(panels)`](#fn-panelsetrefidsonpanels) - * [`fn sortPanelsByXY(panels)`](#fn-panelsortpanelsbyxy) - * [`fn sortPanelsInRow(rowPanel)`](#fn-panelsortpanelsinrow) - * [`fn validatePanelIDs(panels)`](#fn-panelvalidatepanelids) -* [`obj string`](#obj-string) - * [`fn slugify(string)`](#fn-stringslugify) - -## Fields - -### obj dashboard - - -#### fn dashboard.getOptionsForCustomQuery - -```jsonnet -dashboard.getOptionsForCustomQuery(query) -``` - -PARAMETERS: - -* **query** (`string`) - -`getOptionsForCustomQuery` provides values for the `options` and `current` fields. -These are required for template variables of type 'custom'but do not automatically -get populated by Grafana when importing a dashboard from JSON. - -This is a bit of a hack and should always be called on functions that set `type` on -a template variable. Ideally Grafana populates these fields from the `query` value -but this provides a backwards compatible solution. - -### obj grid - - -#### fn grid.makeGrid - -```jsonnet -grid.makeGrid(panels, panelWidth, panelHeight, startY) -``` - -PARAMETERS: - -* **panels** (`array`) -* **panelWidth** (`number`) -* **panelHeight** (`number`) -* **startY** (`number`) - -`makeGrid` returns an array of `panels` organized in a grid with equal `panelWidth` -and `panelHeight`. Row panels are used as "linebreaks", if a Row panel is collapsed, -then all panels below it will be folded into the row. - -This function will use the full grid of 24 columns, setting `panelWidth` to a value -that can divide 24 into equal parts will fill up the page nicely. (1, 2, 3, 4, 6, 8, 12) -Other value for `panelWidth` will leave a gap on the far right. - -Optional `startY` can be provided to place generated grid above or below existing panels. - -#### fn grid.wrapPanels - -```jsonnet -grid.wrapPanels(panels, panelWidth, panelHeight, startY) -``` - -PARAMETERS: - -* **panels** (`array`) -* **panelWidth** (`number`) -* **panelHeight** (`number`) -* **startY** (`number`) - -`wrapPanels` returns an array of `panels` organized in a grid, wrapping up to next 'row' if total width exceeds full grid of 24 columns. -'panelHeight' and 'panelWidth' are used unless panels already have height and width defined. - -### obj panel - - -#### fn panel.calculateLowestYforPanel - -```jsonnet -panel.calculateLowestYforPanel(panel, panels) -``` - -PARAMETERS: - -* **panel** (`object`) -* **panels** (`array`) - -`calculateLowestYforPanel` calculates Y for a given `panel` from the `gridPos` of an array of `panels`. This function is used in `normalizeY`. - -#### fn panel.dedupeQueryTargets - -```jsonnet -panel.dedupeQueryTargets(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`dedupeQueryTargets` dedupes the query targets in a set of panels and replaces the duplicates with a ['shared query'](https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/share-query/). Sharing query results across panels reduces the number of queries made to your data source, which can improve the performance of your dashboard. - -This function requires that the query targets have `refId` set, `setRefIDs` and `setRefIDsOnPanels` can help with that. - -#### fn panel.getPanelIDs - -```jsonnet -panel.getPanelIDs(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`getPanelIDs` returns an array with all panel IDs including IDs from panels in rows. - -#### fn panel.getPanelsBeforeNextRow - -```jsonnet -panel.getPanelsBeforeNextRow(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`getPanelsBeforeNextRow` returns all panels in an array up until a row has been found. Used in `groupPanelsInRows`. - -#### fn panel.groupPanelsInRows - -```jsonnet -panel.groupPanelsInRows(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`groupPanelsInRows` ensures that panels that come after a row panel in an array are added to the `row.panels` attribute. This can be useful to apply intermediate functions to only the panels that belong to a row. Finally the panel array should get processed by `resolveCollapsedFlagOnRows` to "unfold" the rows that are not collapsed into the main array. - -#### fn panel.mapToRows - -```jsonnet -panel.mapToRows(func, panels) -``` - -PARAMETERS: - -* **func** (`function`) -* **panels** (`array`) - -`mapToRows` is a little helper function that applies `func` to all row panels in an array. Other panels in that array are returned ad verbatim. - -#### fn panel.normalizeY - -```jsonnet -panel.normalizeY(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`normalizeY` applies negative gravity on the inverted Y axis. This mimics the behavior of Grafana: when a panel is created without panel above it, then it'll float upward. - -This is strictly not required as Grafana will do this on dashboard load, however it might be helpful when used when calculating the correct `gridPos`. - -#### fn panel.normalizeYInRow - -```jsonnet -panel.normalizeYInRow(rowPanel) -``` - -PARAMETERS: - -* **rowPanel** (`object`) - -`normalizeYInRow` applies `normalizeY` to the panels in a row panel. - -#### fn panel.resolveCollapsedFlagOnRows - -```jsonnet -panel.resolveCollapsedFlagOnRows(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`resolveCollapsedFlagOnRows` should be applied to the final panel array to "unfold" the rows that are not collapsed into the main array. - -#### fn panel.sanitizePanel - -```jsonnet -panel.sanitizePanel(panel, defaultX=0, defaultY=0, defaultHeight=8, defaultWidth=8) -``` - -PARAMETERS: - -* **panel** (`object`) -* **defaultX** (`number`) - - default value: `0` -* **defaultY** (`number`) - - default value: `0` -* **defaultHeight** (`number`) - - default value: `8` -* **defaultWidth** (`number`) - - default value: `8` - -`sanitizePanel` ensures the panel has a valid `gridPos` and row panels have `collapsed` and `panels`. This function is recursively applied to panels inside row panels. - -The default values for x,y,h,w are only applied if not already set. - -#### fn panel.setPanelIDs - -```jsonnet -panel.setPanelIDs(panels, overrideExistingIDs=true) -``` - -PARAMETERS: - -* **panels** (`array`) -* **overrideExistingIDs** (`bool`) - - default value: `true` - -`setPanelIDs` ensures that all `panels` have a unique ID, this function is used in `dashboard.withPanels` and `dashboard.withPanelsMixin` to provide a consistent experience. - -`overrideExistingIDs` can be set to not replace existing IDs, consider validating the IDs with `validatePanelIDs()` to ensure there are no duplicate IDs. - -#### fn panel.setRefIDs - -```jsonnet -panel.setRefIDs(panel, overrideExistingIDs=true) -``` - -PARAMETERS: - -* **panel** (`object`) -* **overrideExistingIDs** (`bool`) - - default value: `true` - -`setRefIDs` calculates the `refId` field for each target on a panel. - -#### fn panel.setRefIDsOnPanels - -```jsonnet -panel.setRefIDsOnPanels(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`setRefIDsOnPanels` applies `setRefIDs on all `panels`. - -#### fn panel.sortPanelsByXY - -```jsonnet -panel.sortPanelsByXY(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`sortPanelsByXY` applies a simple sorting algorithm, first by x then again by y. This does not take width and height into account. - -#### fn panel.sortPanelsInRow - -```jsonnet -panel.sortPanelsInRow(rowPanel) -``` - -PARAMETERS: - -* **rowPanel** (`object`) - -`sortPanelsInRow` applies `sortPanelsByXY` on the panels in a rowPanel. - -#### fn panel.validatePanelIDs - -```jsonnet -panel.validatePanelIDs(panels) -``` - -PARAMETERS: - -* **panels** (`array`) - -`validatePanelIDs` validates returns `false` if there are duplicate panel IDs in `panels`. - -### obj string - - -#### fn string.slugify - -```jsonnet -string.slugify(string) -``` - -PARAMETERS: - -* **string** (`string`) - -`slugify` will create a simple slug from `string`, keeping only alphanumeric -characters and replacing spaces with dashes. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/folder.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/folder.libsonnet deleted file mode 100644 index e462d4848..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/folder.libsonnet +++ /dev/null @@ -1,16 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.folder', name: 'folder' }, - '#withParentUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'only used if nested folders are enabled' } }, - withParentUid(value): { - parentUid: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Folder title' } }, - withTitle(value): { - title: value, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique folder id' } }, - withUid(value): { - uid: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/jsonnetfile.json deleted file mode 100644 index 8479d5a93..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/jsonnetfile.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/jsonnet-libs/docsonnet.git", - "subdir": "doc-util" - } - }, - "version": "master" - }, - { - "source": { - "git": { - "remote": "https://github.com/jsonnet-libs/xtd.git", - "subdir": "" - } - }, - "version": "master" - } - ], - "legacyImports": true, - "version": 1 -} \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/librarypanel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/librarypanel.libsonnet deleted file mode 100644 index 6182588f2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/librarypanel.libsonnet +++ /dev/null @@ -1,1130 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.librarypanel', name: 'librarypanel' }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel description' } }, - withDescription(value): { - description: value, - }, - '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Folder UID' } }, - withFolderUid(value): { - folderUid: value, - }, - '#withMeta': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMeta(value): { - meta: value, - }, - '#withMetaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMetaMixin(value): { - meta+: value, - }, - meta+: - { - '#withConnectedDashboards': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withConnectedDashboards(value): { - meta+: { - connectedDashboards: value, - }, - }, - '#withCreated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withCreated(value): { - meta+: { - created: value, - }, - }, - '#withCreatedBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCreatedBy(value): { - meta+: { - createdBy: value, - }, - }, - '#withCreatedByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCreatedByMixin(value): { - meta+: { - createdBy+: value, - }, - }, - createdBy+: - { - '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAvatarUrl(value): { - meta+: { - createdBy+: { - avatarUrl: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withId(value): { - meta+: { - createdBy+: { - id: value, - }, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - meta+: { - createdBy+: { - name: value, - }, - }, - }, - }, - '#withFolderName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFolderName(value): { - meta+: { - folderName: value, - }, - }, - '#withFolderUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFolderUid(value): { - meta+: { - folderUid: value, - }, - }, - '#withUpdated': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUpdated(value): { - meta+: { - updated: value, - }, - }, - '#withUpdatedBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUpdatedBy(value): { - meta+: { - updatedBy: value, - }, - }, - '#withUpdatedByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUpdatedByMixin(value): { - meta+: { - updatedBy+: value, - }, - }, - updatedBy+: - { - '#withAvatarUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAvatarUrl(value): { - meta+: { - updatedBy+: { - avatarUrl: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withId(value): { - meta+: { - updatedBy+: { - id: value, - }, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - meta+: { - updatedBy+: { - name: value, - }, - }, - }, - }, - }, - '#withModel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "TODO: should be the same panel schema defined in dashboard\nTypescript: Omit;" } }, - withModel(value): { - model: value, - }, - '#withModelMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "TODO: should be the same panel schema defined in dashboard\nTypescript: Omit;" } }, - withModelMixin(value): { - model+: value, - }, - model+: - { - '#withCacheTimeout': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets panel queries cache timeout.' } }, - withCacheTimeout(value): { - model+: { - cacheTimeout: value, - }, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasource(value): { - model+: { - datasource: value, - }, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasourceMixin(value): { - model+: { - datasource+: value, - }, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, - withType(value): { - model+: { - datasource+: { - type: value, - }, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, - withUid(value): { - model+: { - datasource+: { - uid: value, - }, - }, - }, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel description.' } }, - withDescription(value): { - model+: { - description: value, - }, - }, - '#withFieldConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results.\nEach column within this structure is called a field. A field can represent a single time series or table column.\nField options allow you to change how the data is displayed in your visualizations.' } }, - withFieldConfig(value): { - model+: { - fieldConfig: value, - }, - }, - '#withFieldConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results.\nEach column within this structure is called a field. A field can represent a single time series or table column.\nField options allow you to change how the data is displayed in your visualizations.' } }, - withFieldConfigMixin(value): { - model+: { - fieldConfig+: value, - }, - }, - fieldConfig+: - { - '#withDefaults': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results.\nEach column within this structure is called a field. A field can represent a single time series or table column.\nField options allow you to change how the data is displayed in your visualizations.' } }, - withDefaults(value): { - model+: { - fieldConfig+: { - defaults: value, - }, - }, - }, - '#withDefaultsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results.\nEach column within this structure is called a field. A field can represent a single time series or table column.\nField options allow you to change how the data is displayed in your visualizations.' } }, - withDefaultsMixin(value): { - model+: { - fieldConfig+: { - defaults+: value, - }, - }, - }, - defaults+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map a field to a color.' } }, - withColor(value): { - model+: { - fieldConfig+: { - defaults+: { - color: value, - }, - }, - }, - }, - '#withColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map a field to a color.' } }, - withColorMixin(value): { - model+: { - fieldConfig+: { - defaults+: { - color+: value, - }, - }, - }, - }, - color+: - { - '#withFixedColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The fixed color value for fixed or shades color modes.' } }, - withFixedColor(value): { - model+: { - fieldConfig+: { - defaults+: { - color+: { - fixedColor: value, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['thresholds', 'palette-classic', 'palette-classic-by-name', 'continuous-GrYlRd', 'continuous-RdYlGr', 'continuous-BlYlRd', 'continuous-YlRd', 'continuous-BlPu', 'continuous-YlBl', 'continuous-blues', 'continuous-reds', 'continuous-greens', 'continuous-purples', 'fixed', 'shades'], name: 'value', type: ['string'] }], help: 'Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value.\nContinuous color interpolates a color using the percentage of a value relative to min and max.\nAccepted values are:\n`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold\n`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations\n`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations\n`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode\n`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode\n`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode\n`continuous-YlRd`: Continuous Yellow-Red palette mode\n`continuous-BlPu`: Continuous Blue-Purple palette mode\n`continuous-YlBl`: Continuous Yellow-Blue palette mode\n`continuous-blues`: Continuous Blue palette mode\n`continuous-reds`: Continuous Red palette mode\n`continuous-greens`: Continuous Green palette mode\n`continuous-purples`: Continuous Purple palette mode\n`shades`: Shades of a single color. Specify a single color, useful in an override rule.\n`fixed`: Fixed color mode. Specify a single color, useful in an override rule.' } }, - withMode(value): { - model+: { - fieldConfig+: { - defaults+: { - color+: { - mode: value, - }, - }, - }, - }, - }, - '#withSeriesBy': { 'function': { args: [{ default: null, enums: ['min', 'max', 'last'], name: 'value', type: ['string'] }], help: 'Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value.' } }, - withSeriesBy(value): { - model+: { - fieldConfig+: { - defaults+: { - color+: { - seriesBy: value, - }, - }, - }, - }, - }, - }, - '#withCustom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'custom is specified by the FieldConfig field\nin panel plugin schemas.' } }, - withCustom(value): { - model+: { - fieldConfig+: { - defaults+: { - custom: value, - }, - }, - }, - }, - '#withCustomMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'custom is specified by the FieldConfig field\nin panel plugin schemas.' } }, - withCustomMixin(value): { - model+: { - fieldConfig+: { - defaults+: { - custom+: value, - }, - }, - }, - }, - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Specify the number of decimals Grafana includes in the rendered value.\nIf you leave this field blank, Grafana automatically truncates the number of decimals based on the value.\nFor example 1.1234 will display as 1.12 and 100.456 will display as 100.\nTo display all decimals, set the unit to `String`.' } }, - withDecimals(value): { - model+: { - fieldConfig+: { - defaults+: { - decimals: value, - }, - }, - }, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Human readable field metadata' } }, - withDescription(value): { - model+: { - fieldConfig+: { - defaults+: { - description: value, - }, - }, - }, - }, - '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The display value for this field. This supports template variables blank is auto' } }, - withDisplayName(value): { - model+: { - fieldConfig+: { - defaults+: { - displayName: value, - }, - }, - }, - }, - '#withDisplayNameFromDS': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'This can be used by data sources that return and explicit naming structure for values and labels\nWhen this property is configured, this value is used rather than the default naming strategy.' } }, - withDisplayNameFromDS(value): { - model+: { - fieldConfig+: { - defaults+: { - displayNameFromDS: value, - }, - }, - }, - }, - '#withFilterable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'True if data source field supports ad-hoc filters' } }, - withFilterable(value=true): { - model+: { - fieldConfig+: { - defaults+: { - filterable: value, - }, - }, - }, - }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The behavior when clicking on a result' } }, - withLinks(value): { - model+: { - fieldConfig+: { - defaults+: { - links: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The behavior when clicking on a result' } }, - withLinksMixin(value): { - model+: { - fieldConfig+: { - defaults+: { - links+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - '#withMappings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Convert input values into a display string' } }, - withMappings(value): { - model+: { - fieldConfig+: { - defaults+: { - mappings: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - '#withMappingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Convert input values into a display string' } }, - withMappingsMixin(value): { - model+: { - fieldConfig+: { - defaults+: { - mappings+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - mappings+: - { - ValueMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } }' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } }' } }, - withOptionsMixin(value): { - options+: value, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'value', - }, - }, - RangeMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Range to match against and the result to apply when the value is within the range' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Range to match against and the result to apply when the value is within the range' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Min value of the range. It can be null which means -Infinity' } }, - withFrom(value): { - options+: { - from: value, - }, - }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, - withResult(value): { - options+: { - result: value, - }, - }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, - withResultMixin(value): { - options+: { - result+: value, - }, - }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to use when the value matches' } }, - withColor(value): { - options+: { - result+: { - color: value, - }, - }, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon to display when the value matches. Only specific visualizations.' } }, - withIcon(value): { - options+: { - result+: { - icon: value, - }, - }, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Position in the mapping array. Only used internally.' } }, - withIndex(value): { - options+: { - result+: { - index: value, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to display when the value matches' } }, - withText(value): { - options+: { - result+: { - text: value, - }, - }, - }, - }, - '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Max value of the range. It can be null which means +Infinity' } }, - withTo(value): { - options+: { - to: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'range', - }, - }, - RegexMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Regular expression to match against and the result to apply when the value matches the regex' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Regular expression to match against and the result to apply when the value matches the regex' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Regular expression to match against' } }, - withPattern(value): { - options+: { - pattern: value, - }, - }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, - withResult(value): { - options+: { - result: value, - }, - }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, - withResultMixin(value): { - options+: { - result+: value, - }, - }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to use when the value matches' } }, - withColor(value): { - options+: { - result+: { - color: value, - }, - }, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon to display when the value matches. Only specific visualizations.' } }, - withIcon(value): { - options+: { - result+: { - icon: value, - }, - }, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Position in the mapping array. Only used internally.' } }, - withIndex(value): { - options+: { - result+: { - index: value, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to display when the value matches' } }, - withText(value): { - options+: { - result+: { - text: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'regex', - }, - }, - SpecialValueMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withMatch': { 'function': { args: [{ default: null, enums: ['true', 'false', 'null', 'nan', 'null+nan', 'empty'], name: 'value', type: ['string'] }], help: 'Special value types supported by the `SpecialValueMap`' } }, - withMatch(value): { - options+: { - match: value, - }, - }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, - withResult(value): { - options+: { - result: value, - }, - }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, - withResultMixin(value): { - options+: { - result+: value, - }, - }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to use when the value matches' } }, - withColor(value): { - options+: { - result+: { - color: value, - }, - }, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon to display when the value matches. Only specific visualizations.' } }, - withIcon(value): { - options+: { - result+: { - icon: value, - }, - }, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Position in the mapping array. Only used internally.' } }, - withIndex(value): { - options+: { - result+: { - index: value, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to display when the value matches' } }, - withText(value): { - options+: { - result+: { - text: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'special', - }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.' } }, - withMax(value): { - model+: { - fieldConfig+: { - defaults+: { - max: value, - }, - }, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.' } }, - withMin(value): { - model+: { - fieldConfig+: { - defaults+: { - min: value, - }, - }, - }, - }, - '#withNoValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alternative to empty string' } }, - withNoValue(value): { - model+: { - fieldConfig+: { - defaults+: { - noValue: value, - }, - }, - }, - }, - '#withPath': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'An explicit path to the field in the datasource. When the frame meta includes a path,\nThis will default to `${frame.meta.path}/${field.name}\n\nWhen defined, this value can be used as an identifier within the datasource scope, and\nmay be used to update the results' } }, - withPath(value): { - model+: { - fieldConfig+: { - defaults+: { - path: value, - }, - }, - }, - }, - '#withThresholds': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Thresholds configuration for the panel' } }, - withThresholds(value): { - model+: { - fieldConfig+: { - defaults+: { - thresholds: value, - }, - }, - }, - }, - '#withThresholdsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Thresholds configuration for the panel' } }, - withThresholdsMixin(value): { - model+: { - fieldConfig+: { - defaults+: { - thresholds+: value, - }, - }, - }, - }, - thresholds+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['absolute', 'percentage'], name: 'value', type: ['string'] }], help: 'Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1).' } }, - withMode(value): { - model+: { - fieldConfig+: { - defaults+: { - thresholds+: { - mode: value, - }, - }, - }, - }, - }, - '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: "Must be sorted by 'value', first value is always -Infinity" } }, - withSteps(value): { - model+: { - fieldConfig+: { - defaults+: { - thresholds+: { - steps: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withStepsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: "Must be sorted by 'value', first value is always -Infinity" } }, - withStepsMixin(value): { - model+: { - fieldConfig+: { - defaults+: { - thresholds+: { - steps+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - steps+: - { - '#': { help: '', name: 'steps' }, - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded.' } }, - withColor(value): { - color: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded.\nNulls currently appear here when serializing -Infinity to JSON.' } }, - withValue(value): { - value: value, - }, - }, - }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit a field should use. The unit you select is applied to all fields except time.\nYou can use the units ID availables in Grafana or a custom unit.\nAvailable units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts\nAs custom unit, you can use the following formats:\n`suffix:` for custom unit that should go after value.\n`prefix:` for custom unit that should go before value.\n`time:` For custom date time formats type for example `time:YYYY-MM-DD`.\n`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character.\n`count:` for a custom count unit.\n`currency:` for custom a currency unit.' } }, - withUnit(value): { - model+: { - fieldConfig+: { - defaults+: { - unit: value, - }, - }, - }, - }, - '#withWriteable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'True if data source can write a value to the path. Auth/authz are supported separately' } }, - withWriteable(value=true): { - model+: { - fieldConfig+: { - defaults+: { - writeable: value, - }, - }, - }, - }, - }, - '#withOverrides': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Overrides are the options applied to specific fields overriding the defaults.' } }, - withOverrides(value): { - model+: { - fieldConfig+: { - overrides: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withOverridesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Overrides are the options applied to specific fields overriding the defaults.' } }, - withOverridesMixin(value): { - model+: { - fieldConfig+: { - overrides+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - overrides+: - { - '#': { help: '', name: 'overrides' }, - '#withMatcher': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, - withMatcher(value): { - matcher: value, - }, - '#withMatcherMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, - withMatcherMixin(value): { - matcher+: value, - }, - matcher+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: 'The matcher id. This is used to find the matcher implementation from registry.' } }, - withId(value=''): { - matcher+: { - id: value, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, - withOptions(value): { - matcher+: { - options: value, - }, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, - withOptionsMixin(value): { - matcher+: { - options+: value, - }, - }, - }, - '#withProperties': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withProperties(value): { - properties: - (if std.isArray(value) - then value - else [value]), - }, - '#withPropertiesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPropertiesMixin(value): { - properties+: - (if std.isArray(value) - then value - else [value]), - }, - properties+: - { - '#': { help: '', name: 'properties' }, - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value=''): { - id: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withValue(value): { - value: value, - }, - '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withValueMixin(value): { - value+: value, - }, - }, - }, - }, - '#withHideTimeOverride': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the timeFrom or timeShift overrides are shown in the panel header' } }, - withHideTimeOverride(value=true): { - model+: { - hideTimeOverride: value, - }, - }, - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables.\nThis value must be formatted as a number followed by a valid time\nidentifier like: "40s", "3d", etc.\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options' } }, - withInterval(value): { - model+: { - interval: value, - }, - }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel links.' } }, - withLinks(value): { - model+: { - links: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel links.' } }, - withLinksMixin(value): { - model+: { - links+: - (if std.isArray(value) - then value - else [value]), - }, - }, - links+: - { - '#': { help: '', name: 'links' }, - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards' } }, - withAsDropdown(value=true): { - asDropdown: value, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon name to be displayed with the link' } }, - withIcon(value): { - icon: value, - }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current template variables values in the link as query params' } }, - withIncludeVars(value=true): { - includeVars: value, - }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current time range in the link as query params' } }, - withKeepTime(value=true): { - keepTime: value, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards' } }, - withTags(value): { - tags: - (if std.isArray(value) - then value - else [value]), - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards' } }, - withTagsMixin(value): { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, the link will be opened in a new tab' } }, - withTargetBlank(value=true): { - targetBlank: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title to display with the link' } }, - withTitle(value): { - title: value, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Tooltip to display when the user hovers their mouse over it' } }, - withTooltip(value): { - tooltip: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource)' } }, - withType(value): { - type: value, - }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Link URL. Only required/valid if the type is link' } }, - withUrl(value): { - url: value, - }, - }, - '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'The maximum number of data points that the panel queries are retrieving.' } }, - withMaxDataPoints(value): { - model+: { - maxDataPoints: value, - }, - }, - '#withMaxPerRow': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Option for repeated panels that controls max items per row\nOnly relevant for horizontally repeated panels' } }, - withMaxPerRow(value): { - model+: { - maxPerRow: value, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'It depends on the panel plugin. They are specified by the Options field in panel plugin schemas.' } }, - withOptions(value): { - model+: { - options: value, - }, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'It depends on the panel plugin. They are specified by the Options field in panel plugin schemas.' } }, - withOptionsMixin(value): { - model+: { - options+: value, - }, - }, - '#withPluginVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The version of the plugin that is used for this panel. This is used to find the plugin to display the panel and to migrate old panel configs.' } }, - withPluginVersion(value): { - model+: { - pluginVersion: value, - }, - }, - '#withQueryCachingTTL': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Overrides the data source configured time-to-live for a query cache item in milliseconds' } }, - withQueryCachingTTL(value): { - model+: { - queryCachingTTL: value, - }, - }, - '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of template variable to repeat for.' } }, - withRepeat(value): { - model+: { - repeat: value, - }, - }, - '#withRepeatDirection': { 'function': { args: [{ default: 'h', enums: ['h', 'v'], name: 'value', type: ['string'] }], help: "Direction to repeat in if 'repeat' is set.\n`h` for horizontal, `v` for vertical." } }, - withRepeatDirection(value='h'): { - model+: { - repeatDirection: value, - }, - }, - '#withTargets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Depends on the panel plugin. See the plugin documentation for details.' } }, - withTargets(value): { - model+: { - targets: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTargetsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Depends on the panel plugin. See the plugin documentation for details.' } }, - withTargetsMixin(value): { - model+: { - targets+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimeFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Overrides the relative time range for individual panels,\nwhich causes them to be different than what is selected in\nthe dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different\ntime periods or days on the same dashboard.\nThe value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far),\n`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years).\nNote: Panel time overrides have no effect when the dashboard’s time range is absolute.\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options' } }, - withTimeFrom(value): { - model+: { - timeFrom: value, - }, - }, - '#withTimeShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Overrides the time range for individual panels by shifting its start and end relative to the time picker.\nFor example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`.\nNote: Panel time overrides have no effect when the dashboard’s time range is absolute.\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options' } }, - withTimeShift(value): { - model+: { - timeShift: value, - }, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel title.' } }, - withTitle(value): { - model+: { - title: value, - }, - }, - '#withTransformations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of transformations that are applied to the panel data before rendering.\nWhen there are multiple transformations, Grafana applies them in the order they are listed.\nEach transformation creates a result set that then passes on to the next transformation in the processing pipeline.' } }, - withTransformations(value): { - model+: { - transformations: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTransformationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of transformations that are applied to the panel data before rendering.\nWhen there are multiple transformations, Grafana applies them in the order they are listed.\nEach transformation creates a result set that then passes on to the next transformation in the processing pipeline.' } }, - withTransformationsMixin(value): { - model+: { - transformations+: - (if std.isArray(value) - then value - else [value]), - }, - }, - transformations+: - { - '#': { help: '', name: 'transformations' }, - '#withDisabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Disabled transformations are skipped' } }, - withDisabled(value=true): { - disabled: value, - }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, - withFilter(value): { - filter: value, - }, - '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, - withFilterMixin(value): { - filter+: value, - }, - filter+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: 'The matcher id. This is used to find the matcher implementation from registry.' } }, - withId(value=''): { - filter+: { - id: value, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, - withOptions(value): { - filter+: { - options: value, - }, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, - withOptionsMixin(value): { - filter+: { - options+: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique identifier of transformer' } }, - withId(value): { - id: value, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, - withOptionsMixin(value): { - options+: value, - }, - '#withTopic': { 'function': { args: [{ default: null, enums: ['series', 'annotations', 'alertStates'], name: 'value', type: ['string'] }], help: 'Where to pull DataFrames from as input to transformation' } }, - withTopic(value): { - topic: value, - }, - }, - '#withTransparent': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether to display the panel without a background.' } }, - withTransparent(value=true): { - model+: { - transparent: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The panel plugin type id. This is used to find the plugin to display the panel.' } }, - withType(value): { - model+: { - type: value, - }, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel name (also saved in the model)' } }, - withName(value): { - name: value, - }, - '#withSchemaVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Dashboard version when this was saved (zero if unknown)' } }, - withSchemaVersion(value): { - schemaVersion: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The panel type (from inside the model)' } }, - withType(value): { - type: value, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Library element UID' } }, - withUid(value): { - uid: value, - }, - '#withVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'panel version, incremented each time the dashboard is updated.' } }, - withVersion(value): { - version: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/main.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/main.libsonnet deleted file mode 100644 index f4688b2ee..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/main.libsonnet +++ /dev/null @@ -1,26 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { - filename: 'main.libsonnet', - help: 'Jsonnet library for rendering Grafana resources\n## Install\n\n```\njb install github.com/grafana/grafonnet/gen/grafonnet-v11.0.0@main\n```\n\n## Usage\n\n```jsonnet\nlocal grafonnet = import "github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/main.libsonnet"\n```\n', - 'import': 'github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/main.libsonnet', - installTemplate: '\n## Install\n\n```\njb install %(url)s@%(version)s\n```\n', - name: 'grafonnet', - url: 'github.com/grafana/grafonnet/gen/grafonnet-v11.0.0', - usageTemplate: '\n## Usage\n\n```jsonnet\nlocal %(name)s = import "%(import)s"\n```\n', - version: 'main', - }, - accesspolicy: import 'accesspolicy.libsonnet', - dashboard: import 'dashboard.libsonnet', - librarypanel: import 'librarypanel.libsonnet', - preferences: import 'preferences.libsonnet', - publicdashboard: import 'publicdashboard.libsonnet', - role: import 'role.libsonnet', - rolebinding: import 'rolebinding.libsonnet', - team: import 'team.libsonnet', - folder: import 'folder.libsonnet', - panel: import 'panelindex.libsonnet', - query: import 'query.libsonnet', - util: import 'custom/util/main.libsonnet', - alerting: import 'alerting.libsonnet', -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel.libsonnet deleted file mode 100644 index fb6d68a66..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel.libsonnet +++ /dev/null @@ -1,803 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel', name: 'panel' }, - panelOptions+: - { - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel title.' } }, - withTitle(value): { - title: value, - }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Panel description.' } }, - withDescription(value): { - description: value, - }, - '#withTransparent': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether to display the panel without a background.' } }, - withTransparent(value=true): { - transparent: value, - }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel links.' } }, - withLinks(value): { - links: - (if std.isArray(value) - then value - else [value]), - }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Panel links.' } }, - withLinksMixin(value): { - links+: - (if std.isArray(value) - then value - else [value]), - }, - '#withMaxPerRow': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Option for repeated panels that controls max items per row\nOnly relevant for horizontally repeated panels' } }, - withMaxPerRow(value): { - maxPerRow: value, - }, - '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of template variable to repeat for.' } }, - withRepeat(value): { - repeat: value, - }, - '#withRepeatDirection': { 'function': { args: [{ default: 'h', enums: ['h', 'v'], name: 'value', type: ['string'] }], help: "Direction to repeat in if 'repeat' is set.\n`h` for horizontal, `v` for vertical." } }, - withRepeatDirection(value='h'): { - repeatDirection: value, - }, - '#withPluginVersion': { 'function': { args: [], help: '' } }, - withPluginVersion(): { - pluginVersion: 'v11.0.0', - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The panel plugin type id. This is used to find the plugin to display the panel.' } }, - withType(value): { - type: value, - }, - link+: - { - '#': { help: '', name: 'link' }, - '#withAsDropdown': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards' } }, - withAsDropdown(value=true): { - asDropdown: value, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon name to be displayed with the link' } }, - withIcon(value): { - icon: value, - }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current template variables values in the link as query params' } }, - withIncludeVars(value=true): { - includeVars: value, - }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, includes current time range in the link as query params' } }, - withKeepTime(value=true): { - keepTime: value, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards' } }, - withTags(value): { - tags: - (if std.isArray(value) - then value - else [value]), - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards' } }, - withTagsMixin(value): { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTargetBlank': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true, the link will be opened in a new tab' } }, - withTargetBlank(value=true): { - targetBlank: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Title to display with the link' } }, - withTitle(value): { - title: value, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Tooltip to display when the user hovers their mouse over it' } }, - withTooltip(value): { - tooltip: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['link', 'dashboards'], name: 'value', type: ['string'] }], help: 'Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource)' } }, - withType(value): { - type: value, - }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Link URL. Only required/valid if the type is link' } }, - withUrl(value): { - url: value, - }, - }, - }, - queryOptions+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'The maximum number of data points that the panel queries are retrieving.' } }, - withMaxDataPoints(value): { - maxDataPoints: value, - }, - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables.\nThis value must be formatted as a number followed by a valid time\nidentifier like: "40s", "3d", etc.\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options' } }, - withInterval(value): { - interval: value, - }, - '#withQueryCachingTTL': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Overrides the data source configured time-to-live for a query cache item in milliseconds' } }, - withQueryCachingTTL(value): { - queryCachingTTL: value, - }, - '#withTimeFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Overrides the relative time range for individual panels,\nwhich causes them to be different than what is selected in\nthe dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different\ntime periods or days on the same dashboard.\nThe value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far),\n`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years).\nNote: Panel time overrides have no effect when the dashboard’s time range is absolute.\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options' } }, - withTimeFrom(value): { - timeFrom: value, - }, - '#withTimeShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Overrides the time range for individual panels by shifting its start and end relative to the time picker.\nFor example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`.\nNote: Panel time overrides have no effect when the dashboard’s time range is absolute.\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options' } }, - withTimeShift(value): { - timeShift: value, - }, - '#withHideTimeOverride': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the timeFrom or timeShift overrides are shown in the panel header' } }, - withHideTimeOverride(value=true): { - hideTimeOverride: value, - }, - '#withTargets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Depends on the panel plugin. See the plugin documentation for details.' } }, - withTargets(value): { - targets: - (if std.isArray(value) - then value - else [value]), - }, - '#withTargetsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Depends on the panel plugin. See the plugin documentation for details.' } }, - withTargetsMixin(value): { - targets+: - (if std.isArray(value) - then value - else [value]), - }, - '#withTransformations': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of transformations that are applied to the panel data before rendering.\nWhen there are multiple transformations, Grafana applies them in the order they are listed.\nEach transformation creates a result set that then passes on to the next transformation in the processing pipeline.' } }, - withTransformations(value): { - transformations: - (if std.isArray(value) - then value - else [value]), - }, - '#withTransformationsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of transformations that are applied to the panel data before rendering.\nWhen there are multiple transformations, Grafana applies them in the order they are listed.\nEach transformation creates a result set that then passes on to the next transformation in the processing pipeline.' } }, - withTransformationsMixin(value): { - transformations+: - (if std.isArray(value) - then value - else [value]), - }, - transformation+: - { - '#': { help: '', name: 'transformation' }, - '#withDisabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Disabled transformations are skipped' } }, - withDisabled(value=true): { - disabled: value, - }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, - withFilter(value): { - filter: value, - }, - '#withFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, - withFilterMixin(value): { - filter+: value, - }, - filter+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: 'The matcher id. This is used to find the matcher implementation from registry.' } }, - withId(value=''): { - filter+: { - id: value, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, - withOptions(value): { - filter+: { - options: value, - }, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, - withOptionsMixin(value): { - filter+: { - options+: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique identifier of transformer' } }, - withId(value): { - id: value, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Options to be passed to the transformer\nValid options depend on the transformer id' } }, - withOptionsMixin(value): { - options+: value, - }, - '#withTopic': { 'function': { args: [{ default: null, enums: ['series', 'annotations', 'alertStates'], name: 'value', type: ['string'] }], help: 'Where to pull DataFrames from as input to transformation' } }, - withTopic(value): { - topic: value, - }, - }, - }, - standardOptions+: - { - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit a field should use. The unit you select is applied to all fields except time.\nYou can use the units ID availables in Grafana or a custom unit.\nAvailable units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts\nAs custom unit, you can use the following formats:\n`suffix:` for custom unit that should go after value.\n`prefix:` for custom unit that should go before value.\n`time:` For custom date time formats type for example `time:YYYY-MM-DD`.\n`si:` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character.\n`count:` for a custom count unit.\n`currency:` for custom a currency unit.' } }, - withUnit(value): { - fieldConfig+: { - defaults+: { - unit: value, - }, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.' } }, - withMin(value): { - fieldConfig+: { - defaults+: { - min: value, - }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.' } }, - withMax(value): { - fieldConfig+: { - defaults+: { - max: value, - }, - }, - }, - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Specify the number of decimals Grafana includes in the rendered value.\nIf you leave this field blank, Grafana automatically truncates the number of decimals based on the value.\nFor example 1.1234 will display as 1.12 and 100.456 will display as 100.\nTo display all decimals, set the unit to `String`.' } }, - withDecimals(value): { - fieldConfig+: { - defaults+: { - decimals: value, - }, - }, - }, - '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The display value for this field. This supports template variables blank is auto' } }, - withDisplayName(value): { - fieldConfig+: { - defaults+: { - displayName: value, - }, - }, - }, - color+: - { - '#withFixedColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The fixed color value for fixed or shades color modes.' } }, - withFixedColor(value): { - fieldConfig+: { - defaults+: { - color+: { - fixedColor: value, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['thresholds', 'palette-classic', 'palette-classic-by-name', 'continuous-GrYlRd', 'continuous-RdYlGr', 'continuous-BlYlRd', 'continuous-YlRd', 'continuous-BlPu', 'continuous-YlBl', 'continuous-blues', 'continuous-reds', 'continuous-greens', 'continuous-purples', 'fixed', 'shades'], name: 'value', type: ['string'] }], help: 'Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value.\nContinuous color interpolates a color using the percentage of a value relative to min and max.\nAccepted values are:\n`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold\n`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations\n`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations\n`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode\n`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode\n`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode\n`continuous-YlRd`: Continuous Yellow-Red palette mode\n`continuous-BlPu`: Continuous Blue-Purple palette mode\n`continuous-YlBl`: Continuous Yellow-Blue palette mode\n`continuous-blues`: Continuous Blue palette mode\n`continuous-reds`: Continuous Red palette mode\n`continuous-greens`: Continuous Green palette mode\n`continuous-purples`: Continuous Purple palette mode\n`shades`: Shades of a single color. Specify a single color, useful in an override rule.\n`fixed`: Fixed color mode. Specify a single color, useful in an override rule.' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - color+: { - mode: value, - }, - }, - }, - }, - '#withSeriesBy': { 'function': { args: [{ default: null, enums: ['min', 'max', 'last'], name: 'value', type: ['string'] }], help: 'Defines how to assign a series color from "by value" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value.' } }, - withSeriesBy(value): { - fieldConfig+: { - defaults+: { - color+: { - seriesBy: value, - }, - }, - }, - }, - }, - '#withNoValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alternative to empty string' } }, - withNoValue(value): { - fieldConfig+: { - defaults+: { - noValue: value, - }, - }, - }, - '#withLinks': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The behavior when clicking on a result' } }, - withLinks(value): { - fieldConfig+: { - defaults+: { - links: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withLinksMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The behavior when clicking on a result' } }, - withLinksMixin(value): { - fieldConfig+: { - defaults+: { - links+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withMappings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Convert input values into a display string' } }, - withMappings(value): { - fieldConfig+: { - defaults+: { - mappings: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withMappingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Convert input values into a display string' } }, - withMappingsMixin(value): { - fieldConfig+: { - defaults+: { - mappings+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withOverrides': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Overrides are the options applied to specific fields overriding the defaults.' } }, - withOverrides(value): { - fieldConfig+: { - overrides: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withOverridesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Overrides are the options applied to specific fields overriding the defaults.' } }, - withOverridesMixin(value): { - fieldConfig+: { - overrides+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withFilterable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'True if data source field supports ad-hoc filters' } }, - withFilterable(value=true): { - fieldConfig+: { - defaults+: { - filterable: value, - }, - }, - }, - '#withPath': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'An explicit path to the field in the datasource. When the frame meta includes a path,\nThis will default to `${frame.meta.path}/${field.name}\n\nWhen defined, this value can be used as an identifier within the datasource scope, and\nmay be used to update the results' } }, - withPath(value): { - fieldConfig+: { - defaults+: { - path: value, - }, - }, - }, - thresholds+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['absolute', 'percentage'], name: 'value', type: ['string'] }], help: 'Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1).' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - thresholds+: { - mode: value, - }, - }, - }, - }, - '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: "Must be sorted by 'value', first value is always -Infinity" } }, - withSteps(value): { - fieldConfig+: { - defaults+: { - thresholds+: { - steps: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - '#withStepsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: "Must be sorted by 'value', first value is always -Infinity" } }, - withStepsMixin(value): { - fieldConfig+: { - defaults+: { - thresholds+: { - steps+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - mapping+: - { - '#': { help: '', name: 'mapping' }, - ValueMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } }' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Map with : ValueMappingResult. For example: { "10": { text: "Perfection!", color: "green" } }' } }, - withOptionsMixin(value): { - options+: value, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'value', - }, - }, - RangeMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Range to match against and the result to apply when the value is within the range' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Range to match against and the result to apply when the value is within the range' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Min value of the range. It can be null which means -Infinity' } }, - withFrom(value): { - options+: { - from: value, - }, - }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, - withResult(value): { - options+: { - result: value, - }, - }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, - withResultMixin(value): { - options+: { - result+: value, - }, - }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to use when the value matches' } }, - withColor(value): { - options+: { - result+: { - color: value, - }, - }, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon to display when the value matches. Only specific visualizations.' } }, - withIcon(value): { - options+: { - result+: { - icon: value, - }, - }, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Position in the mapping array. Only used internally.' } }, - withIndex(value): { - options+: { - result+: { - index: value, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to display when the value matches' } }, - withText(value): { - options+: { - result+: { - text: value, - }, - }, - }, - }, - '#withTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Max value of the range. It can be null which means +Infinity' } }, - withTo(value): { - options+: { - to: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'range', - }, - }, - RegexMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Regular expression to match against and the result to apply when the value matches the regex' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Regular expression to match against and the result to apply when the value matches the regex' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withPattern': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Regular expression to match against' } }, - withPattern(value): { - options+: { - pattern: value, - }, - }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, - withResult(value): { - options+: { - result: value, - }, - }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, - withResultMixin(value): { - options+: { - result+: value, - }, - }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to use when the value matches' } }, - withColor(value): { - options+: { - result+: { - color: value, - }, - }, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon to display when the value matches. Only specific visualizations.' } }, - withIcon(value): { - options+: { - result+: { - icon: value, - }, - }, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Position in the mapping array. Only used internally.' } }, - withIndex(value): { - options+: { - result+: { - index: value, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to display when the value matches' } }, - withText(value): { - options+: { - result+: { - text: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'regex', - }, - }, - SpecialValueMap+: - { - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptions(value): { - options: value, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOptionsMixin(value): { - options+: value, - }, - options+: - { - '#withMatch': { 'function': { args: [{ default: null, enums: ['true', 'false', 'null', 'nan', 'null+nan', 'empty'], name: 'value', type: ['string'] }], help: 'Special value types supported by the `SpecialValueMap`' } }, - withMatch(value): { - options+: { - match: value, - }, - }, - '#withResult': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, - withResult(value): { - options+: { - result: value, - }, - }, - '#withResultMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Result used as replacement with text and color when the value matches' } }, - withResultMixin(value): { - options+: { - result+: value, - }, - }, - result+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to use when the value matches' } }, - withColor(value): { - options+: { - result+: { - color: value, - }, - }, - }, - '#withIcon': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Icon to display when the value matches. Only specific visualizations.' } }, - withIcon(value): { - options+: { - result+: { - icon: value, - }, - }, - }, - '#withIndex': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Position in the mapping array. Only used internally.' } }, - withIndex(value): { - options+: { - result+: { - index: value, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Text to display when the value matches' } }, - withText(value): { - options+: { - result+: { - text: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'special', - }, - }, - }, - threshold+: { - step+: - { - '#': { help: '', name: 'step' }, - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded.' } }, - withColor(value): { - color: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded.\nNulls currently appear here when serializing -Infinity to JSON.' } }, - withValue(value): { - value: value, - }, - }, - }, - override+: - { - '#': { help: '', name: 'override' }, - '#withMatcher': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, - withMatcher(value): { - matcher: value, - }, - '#withMatcherMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.' } }, - withMatcherMixin(value): { - matcher+: value, - }, - matcher+: - { - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: 'The matcher id. This is used to find the matcher implementation from registry.' } }, - withId(value=''): { - matcher+: { - id: value, - }, - }, - '#withOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, - withOptions(value): { - matcher+: { - options: value, - }, - }, - '#withOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The matcher options. This is specific to the matcher implementation.' } }, - withOptionsMixin(value): { - matcher+: { - options+: value, - }, - }, - }, - '#withProperties': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withProperties(value): { - properties: - (if std.isArray(value) - then value - else [value]), - }, - '#withPropertiesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPropertiesMixin(value): { - properties+: - (if std.isArray(value) - then value - else [value]), - }, - properties+: - { - '#': { help: '', name: 'properties' }, - '#withId': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value=''): { - id: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withValue(value): { - value: value, - }, - '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withValueMixin(value): { - value+: value, - }, - }, - }, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, - withType(value): { - datasource+: { - type: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - libraryPanel+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Library panel name' } }, - withName(value): { - libraryPanel+: { - name: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Library panel uid' } }, - withUid(value): { - libraryPanel+: { - uid: value, - }, - }, - }, - gridPos+: - { - '#withH': { 'function': { args: [{ default: 9, enums: null, name: 'value', type: ['integer'] }], help: 'Panel height. The height is the number of rows from the top edge of the panel.' } }, - withH(value=9): { - gridPos+: { - h: value, - }, - }, - '#withStatic': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: "Whether the panel is fixed within the grid. If true, the panel will not be affected by other panels' interactions" } }, - withStatic(value=true): { - gridPos+: { - static: value, - }, - }, - '#withW': { 'function': { args: [{ default: 12, enums: null, name: 'value', type: ['integer'] }], help: 'Panel width. The width is the number of columns from the left edge of the panel.' } }, - withW(value=12): { - gridPos+: { - w: value, - }, - }, - '#withX': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel x. The x coordinate is the number of columns from the left edge of the grid' } }, - withX(value=0): { - gridPos+: { - x: value, - }, - }, - '#withY': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel y. The y coordinate is the number of rows from the top edge of the grid' } }, - withY(value=0): { - gridPos+: { - y: value, - }, - }, - }, -} -+ (import 'custom/panel.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/alertList.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/alertList.libsonnet deleted file mode 100644 index 0865829a6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/alertList.libsonnet +++ /dev/null @@ -1,341 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.alertList', name: 'alertList' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'alertlist', - }, - }, - options+: - { - '#withAlertListOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAlertListOptions(value): { - options+: { - AlertListOptions: value, - }, - }, - '#withAlertListOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAlertListOptionsMixin(value): { - options+: { - AlertListOptions+: value, - }, - }, - AlertListOptions+: - { - '#withAlertName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAlertName(value): { - options+: { - alertName: value, - }, - }, - '#withDashboardAlerts': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withDashboardAlerts(value=true): { - options+: { - dashboardAlerts: value, - }, - }, - '#withDashboardTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withDashboardTitle(value): { - options+: { - dashboardTitle: value, - }, - }, - '#withFolderId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFolderId(value): { - options+: { - folderId: value, - }, - }, - '#withMaxItems': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxItems(value): { - options+: { - maxItems: value, - }, - }, - '#withShowOptions': { 'function': { args: [{ default: null, enums: ['current', 'changes'], name: 'value', type: ['string'] }], help: '' } }, - withShowOptions(value): { - options+: { - showOptions: value, - }, - }, - '#withSortOrder': { 'function': { args: [{ default: null, enums: [1, 2, 3, 4, 5], name: 'value', type: ['number'] }], help: '' } }, - withSortOrder(value): { - options+: { - sortOrder: value, - }, - }, - '#withStateFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStateFilter(value): { - options+: { - stateFilter: value, - }, - }, - '#withStateFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStateFilterMixin(value): { - options+: { - stateFilter+: value, - }, - }, - stateFilter+: - { - '#withAlerting': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAlerting(value=true): { - options+: { - stateFilter+: { - alerting: value, - }, - }, - }, - '#withExecutionError': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withExecutionError(value=true): { - options+: { - stateFilter+: { - execution_error: value, - }, - }, - }, - '#withNoData': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withNoData(value=true): { - options+: { - stateFilter+: { - no_data: value, - }, - }, - }, - '#withOk': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withOk(value=true): { - options+: { - stateFilter+: { - ok: value, - }, - }, - }, - '#withPaused': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withPaused(value=true): { - options+: { - stateFilter+: { - paused: value, - }, - }, - }, - '#withPending': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withPending(value=true): { - options+: { - stateFilter+: { - pending: value, - }, - }, - }, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTags(value): { - options+: { - tags: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTagsMixin(value): { - options+: { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withUnifiedAlertListOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUnifiedAlertListOptions(value): { - options+: { - UnifiedAlertListOptions: value, - }, - }, - '#withUnifiedAlertListOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUnifiedAlertListOptionsMixin(value): { - options+: { - UnifiedAlertListOptions+: value, - }, - }, - UnifiedAlertListOptions+: - { - '#withAlertInstanceLabelFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAlertInstanceLabelFilter(value): { - options+: { - alertInstanceLabelFilter: value, - }, - }, - '#withAlertName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAlertName(value): { - options+: { - alertName: value, - }, - }, - '#withDashboardAlerts': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withDashboardAlerts(value=true): { - options+: { - dashboardAlerts: value, - }, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withDatasource(value): { - options+: { - datasource: value, - }, - }, - '#withFolder': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFolder(value): { - options+: { - folder: value, - }, - }, - '#withFolderMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFolderMixin(value): { - options+: { - folder+: value, - }, - }, - folder+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withId(value): { - options+: { - folder+: { - id: value, - }, - }, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTitle(value): { - options+: { - folder+: { - title: value, - }, - }, - }, - }, - '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withGroupBy(value): { - options+: { - groupBy: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withGroupByMixin(value): { - options+: { - groupBy+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withGroupMode': { 'function': { args: [{ default: null, enums: ['default', 'custom'], name: 'value', type: ['string'] }], help: '' } }, - withGroupMode(value): { - options+: { - groupMode: value, - }, - }, - '#withMaxItems': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxItems(value): { - options+: { - maxItems: value, - }, - }, - '#withShowInstances': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowInstances(value=true): { - options+: { - showInstances: value, - }, - }, - '#withSortOrder': { 'function': { args: [{ default: null, enums: [1, 2, 3, 4, 5], name: 'value', type: ['number'] }], help: '' } }, - withSortOrder(value): { - options+: { - sortOrder: value, - }, - }, - '#withStateFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStateFilter(value): { - options+: { - stateFilter: value, - }, - }, - '#withStateFilterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStateFilterMixin(value): { - options+: { - stateFilter+: value, - }, - }, - stateFilter+: - { - '#withError': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withError(value=true): { - options+: { - stateFilter+: { - 'error': value, - }, - }, - }, - '#withFiring': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withFiring(value=true): { - options+: { - stateFilter+: { - firing: value, - }, - }, - }, - '#withInactive': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withInactive(value=true): { - options+: { - stateFilter+: { - inactive: value, - }, - }, - }, - '#withNoData': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withNoData(value=true): { - options+: { - stateFilter+: { - noData: value, - }, - }, - }, - '#withNormal': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withNormal(value=true): { - options+: { - stateFilter+: { - normal: value, - }, - }, - }, - '#withPending': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withPending(value=true): { - options+: { - stateFilter+: { - pending: value, - }, - }, - }, - }, - '#withViewMode': { 'function': { args: [{ default: null, enums: ['list', 'stat'], name: 'value', type: ['string'] }], help: '' } }, - withViewMode(value): { - options+: { - viewMode: value, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/annotationsList.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/annotationsList.libsonnet deleted file mode 100644 index ccf1c124e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/annotationsList.libsonnet +++ /dev/null @@ -1,94 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.annotationsList', name: 'annotationsList' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'annolist', - }, - }, - options+: - { - '#withLimit': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLimit(value=10): { - options+: { - limit: value, - }, - }, - '#withNavigateAfter': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withNavigateAfter(value='10m'): { - options+: { - navigateAfter: value, - }, - }, - '#withNavigateBefore': { 'function': { args: [{ default: '10m', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withNavigateBefore(value='10m'): { - options+: { - navigateBefore: value, - }, - }, - '#withNavigateToPanel': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withNavigateToPanel(value=true): { - options+: { - navigateToPanel: value, - }, - }, - '#withOnlyFromThisDashboard': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withOnlyFromThisDashboard(value=true): { - options+: { - onlyFromThisDashboard: value, - }, - }, - '#withOnlyInTimeRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withOnlyInTimeRange(value=true): { - options+: { - onlyInTimeRange: value, - }, - }, - '#withShowTags': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowTags(value=true): { - options+: { - showTags: value, - }, - }, - '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowTime(value=true): { - options+: { - showTime: value, - }, - }, - '#withShowUser': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowUser(value=true): { - options+: { - showUser: value, - }, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTags(value): { - options+: { - tags: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTagsMixin(value): { - options+: { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/barChart.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/barChart.libsonnet deleted file mode 100644 index f86fafdf7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/barChart.libsonnet +++ /dev/null @@ -1,553 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.barChart', name: 'barChart' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'barchart', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisBorderShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisBorderShow: value, - }, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the fill opacity of the bars.' } }, - withFillOpacity(value=80): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - gradientMode: value, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: 'Controls line width of the bars.' } }, - withLineWidth(value=1): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle: value, - }, - }, - }, - }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: value, - }, - }, - }, - }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: { - mode: value, - }, - }, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withBarRadius': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['number'] }], help: 'Controls the radius of each bar.' } }, - withBarRadius(value=0): { - options+: { - barRadius: value, - }, - }, - '#withBarWidth': { 'function': { args: [{ default: 0.97, enums: null, name: 'value', type: ['number'] }], help: 'Controls the width of bars. 1 = Max width, 0 = Min width.' } }, - withBarWidth(value=0.97): { - options+: { - barWidth: value, - }, - }, - '#withColorByField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Use the color value for a sibling field to color each bar value.' } }, - withColorByField(value): { - options+: { - colorByField: value, - }, - }, - '#withFullHighlight': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Enables mode which highlights the entire bar area and shows tooltip when cursor\nhovers over highlighted area' } }, - withFullHighlight(value=true): { - options+: { - fullHighlight: value, - }, - }, - '#withGroupWidth': { 'function': { args: [{ default: 0.7, enums: null, name: 'value', type: ['number'] }], help: 'Controls the width of groups. 1 = max with, 0 = min width.' } }, - withGroupWidth(value=0.7): { - options+: { - groupWidth: value, - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowValue(value): { - options+: { - showValue: value, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withStacking(value): { - options+: { - stacking: value, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxHeight(value): { - options+: { - tooltip+: { - maxHeight: value, - }, - }, - }, - '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxWidth(value): { - options+: { - tooltip+: { - maxWidth: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Manually select which field from the dataset to represent the x field.' } }, - withXField(value): { - options+: { - xField: value, - }, - }, - '#withXTickLabelMaxLength': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Sets the max length that a label can have before it is truncated.' } }, - withXTickLabelMaxLength(value): { - options+: { - xTickLabelMaxLength: value, - }, - }, - '#withXTickLabelRotation': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the rotation of the x axis labels.' } }, - withXTickLabelRotation(value=0): { - options+: { - xTickLabelRotation: value, - }, - }, - '#withXTickLabelSpacing': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the spacing between x axis labels.\nnegative values indicate backwards skipping behavior' } }, - withXTickLabelSpacing(value=0): { - options+: { - xTickLabelSpacing: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/barGauge.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/barGauge.libsonnet deleted file mode 100644 index 5e20a6103..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/barGauge.libsonnet +++ /dev/null @@ -1,168 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.barGauge', name: 'barGauge' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'bargauge', - }, - }, - options+: - { - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['basic', 'lcd', 'gradient'], name: 'value', type: ['string'] }], help: 'Enum expressing the possible display modes\nfor the bar gauge component of Grafana UI' } }, - withDisplayMode(value): { - options+: { - displayMode: value, - }, - }, - '#withMaxVizHeight': { 'function': { args: [{ default: 300, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMaxVizHeight(value=300): { - options+: { - maxVizHeight: value, - }, - }, - '#withMinVizHeight': { 'function': { args: [{ default: 16, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMinVizHeight(value=16): { - options+: { - minVizHeight: value, - }, - }, - '#withMinVizWidth': { 'function': { args: [{ default: 8, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMinVizWidth(value=8): { - options+: { - minVizWidth: value, - }, - }, - '#withNamePlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'left'], name: 'value', type: ['string'] }], help: 'Allows for the bar gauge name to be placed explicitly' } }, - withNamePlacement(value): { - options+: { - namePlacement: value, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptions(value): { - options+: { - reduceOptions: value, - }, - }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { - options+: { - reduceOptions+: value, - }, - }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { - options+: { - reduceOptions+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { - options+: { - reduceOptions+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { - options+: { - reduceOptions+: { - fields: value, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, - withLimit(value): { - options+: { - reduceOptions+: { - limit: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, - withValues(value=true): { - options+: { - reduceOptions+: { - values: value, - }, - }, - }, - }, - '#withShowUnfilled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowUnfilled(value=true): { - options+: { - showUnfilled: value, - }, - }, - '#withSizing': { 'function': { args: [{ default: null, enums: ['auto', 'manual'], name: 'value', type: ['string'] }], help: 'Allows for the bar gauge size to be set explicitly' } }, - withSizing(value): { - options+: { - sizing: value, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withValueMode': { 'function': { args: [{ default: null, enums: ['color', 'text', 'hidden'], name: 'value', type: ['string'] }], help: 'Allows for the table cell gauge display type to set the gauge mode.' } }, - withValueMode(value): { - options+: { - valueMode: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/candlestick.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/candlestick.libsonnet deleted file mode 100644 index feb03c7cd..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/candlestick.libsonnet +++ /dev/null @@ -1,850 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.candlestick', name: 'candlestick' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'candlestick', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisBorderShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisBorderShow: value, - }, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withBarAlignment(value): { - fieldConfig+: { - defaults+: { - custom+: { - barAlignment: value, - }, - }, - }, - }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarMaxWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - barMaxWidth: value, - }, - }, - }, - }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarWidthFactor(value): { - fieldConfig+: { - defaults+: { - custom+: { - barWidthFactor: value, - }, - }, - }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withDrawStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - drawStyle: value, - }, - }, - }, - }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillBelowTo(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillBelowTo: value, - }, - }, - }, - }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillColor: value, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFillOpacity(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - gradientMode: value, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withInsertNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'integer'] }], help: '' } }, - withInsertNulls(value): { - fieldConfig+: { - defaults+: { - custom+: { - insertNulls: value, - }, - }, - }, - }, - '#withInsertNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'integer'] }], help: '' } }, - withInsertNullsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - insertNulls+: value, - }, - }, - }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLineColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineColor: value, - }, - }, - }, - }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLineInterpolation(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineInterpolation: value, - }, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle: value, - }, - }, - }, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: value, - }, - }, - }, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - fill: value, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLineWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointColor: value, - }, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withPointSize(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize: value, - }, - }, - }, - }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointSymbol(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSymbol: value, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowPoints(value): { - fieldConfig+: { - defaults+: { - custom+: { - showPoints: value, - }, - }, - }, - }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls: value, - }, - }, - }, - }, - '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNullsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls+: value, - }, - }, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStacking(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking: value, - }, - }, - }, - }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStackingMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: value, - }, - }, - }, - }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroup(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - group: value, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle: value, - }, - }, - }, - }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: value, - }, - }, - }, - }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withTransform(value): { - fieldConfig+: { - defaults+: { - custom+: { - transform: value, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withCandleStyle': { 'function': { args: [{ default: null, enums: ['candles', 'ohlcbars'], name: 'value', type: ['string'] }], help: '' } }, - withCandleStyle(value): { - options+: { - candleStyle: value, - }, - }, - '#withColorStrategy': { 'function': { args: [{ default: null, enums: ['open-close', 'close-close'], name: 'value', type: ['string'] }], help: '' } }, - withColorStrategy(value): { - options+: { - colorStrategy: value, - }, - }, - '#withColors': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withColors(value): { - options+: { - colors: value, - }, - }, - '#withColorsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withColorsMixin(value): { - options+: { - colors+: value, - }, - }, - colors+: - { - '#withDown': { 'function': { args: [{ default: 'red', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withDown(value='red'): { - options+: { - colors+: { - down: value, - }, - }, - }, - '#withFlat': { 'function': { args: [{ default: 'gray', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFlat(value='gray'): { - options+: { - colors+: { - flat: value, - }, - }, - }, - '#withUp': { 'function': { args: [{ default: 'green', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUp(value='green'): { - options+: { - colors+: { - up: value, - }, - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFields(value): { - options+: { - fields: value, - }, - }, - '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFieldsMixin(value): { - options+: { - fields+: value, - }, - }, - fields+: - { - '#withClose': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Corresponds to the final (end) value of the given period' } }, - withClose(value): { - options+: { - fields+: { - close: value, - }, - }, - }, - '#withHigh': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Corresponds to the highest value of the given period' } }, - withHigh(value): { - options+: { - fields+: { - high: value, - }, - }, - }, - '#withLow': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Corresponds to the lowest value of the given period' } }, - withLow(value): { - options+: { - fields+: { - low: value, - }, - }, - }, - '#withOpen': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Corresponds to the starting value of the given period' } }, - withOpen(value): { - options+: { - fields+: { - open: value, - }, - }, - }, - '#withVolume': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Corresponds to the sample count in the given period. (e.g. number of trades)' } }, - withVolume(value): { - options+: { - fields+: { - volume: value, - }, - }, - }, - }, - '#withIncludeAllFields': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'When enabled, all fields will be sent to the graph' } }, - withIncludeAllFields(value=true): { - options+: { - includeAllFields: value, - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['candles+volume', 'candles', 'volume'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - mode: value, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxHeight(value): { - options+: { - tooltip+: { - maxHeight: value, - }, - }, - }, - '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxWidth(value): { - options+: { - tooltip+: { - maxWidth: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/canvas.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/canvas.libsonnet deleted file mode 100644 index 79af6fd45..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/canvas.libsonnet +++ /dev/null @@ -1,544 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.canvas', name: 'canvas' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'canvas', - }, - }, - options+: - { - '#withInfinitePan': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Enable infinite pan' } }, - withInfinitePan(value=true): { - options+: { - infinitePan: value, - }, - }, - '#withInlineEditing': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Enable inline editing' } }, - withInlineEditing(value=true): { - options+: { - inlineEditing: value, - }, - }, - '#withPanZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Enable pan and zoom' } }, - withPanZoom(value=true): { - options+: { - panZoom: value, - }, - }, - '#withRoot': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The root element of canvas (frame), where all canvas elements are nested\nTODO: Figure out how to define a default value for this' } }, - withRoot(value): { - options+: { - root: value, - }, - }, - '#withRootMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The root element of canvas (frame), where all canvas elements are nested\nTODO: Figure out how to define a default value for this' } }, - withRootMixin(value): { - options+: { - root+: value, - }, - }, - root+: - { - '#withElements': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The list of canvas elements attached to the root element' } }, - withElements(value): { - options+: { - root+: { - elements: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withElementsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'The list of canvas elements attached to the root element' } }, - withElementsMixin(value): { - options+: { - root+: { - elements+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - elements+: - { - '#': { help: '', name: 'elements' }, - '#withBackground': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withBackground(value): { - background: value, - }, - '#withBackgroundMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withBackgroundMixin(value): { - background+: value, - }, - background+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withColor(value): { - background+: { - color: value, - }, - }, - '#withColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withColorMixin(value): { - background+: { - color+: value, - }, - }, - color+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - background+: { - color+: { - field: value, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, - withFixed(value): { - background+: { - color+: { - fixed: value, - }, - }, - }, - }, - '#withImage': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Links to a resource (image/svg path)' } }, - withImage(value): { - background+: { - image: value, - }, - }, - '#withImageMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Links to a resource (image/svg path)' } }, - withImageMixin(value): { - background+: { - image+: value, - }, - }, - image+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - background+: { - image+: { - field: value, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - background+: { - image+: { - fixed: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'mapping'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - background+: { - image+: { - mode: value, - }, - }, - }, - }, - '#withSize': { 'function': { args: [{ default: null, enums: ['original', 'contain', 'cover', 'fill', 'tile'], name: 'value', type: ['string'] }], help: '' } }, - withSize(value): { - background+: { - size: value, - }, - }, - }, - '#withBorder': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withBorder(value): { - border: value, - }, - '#withBorderMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withBorderMixin(value): { - border+: value, - }, - border+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withColor(value): { - border+: { - color: value, - }, - }, - '#withColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withColorMixin(value): { - border+: { - color+: value, - }, - }, - color+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - border+: { - color+: { - field: value, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, - withFixed(value): { - border+: { - color+: { - fixed: value, - }, - }, - }, - }, - '#withRadius': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withRadius(value): { - border+: { - radius: value, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - border+: { - width: value, - }, - }, - }, - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: figure out how to define this (element config(s))' } }, - withConfig(value): { - config: value, - }, - '#withConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO: figure out how to define this (element config(s))' } }, - withConfigMixin(value): { - config+: value, - }, - '#withConnections': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withConnections(value): { - connections: - (if std.isArray(value) - then value - else [value]), - }, - '#withConnectionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withConnectionsMixin(value): { - connections+: - (if std.isArray(value) - then value - else [value]), - }, - connections+: - { - '#': { help: '', name: 'connections' }, - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withColor(value): { - color: value, - }, - '#withColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withColorMixin(value): { - color+: value, - }, - color+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - color+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, - withFixed(value): { - color+: { - fixed: value, - }, - }, - }, - '#withPath': { 'function': { args: [{ default: null, enums: ['straight'], name: 'value', type: ['string'] }], help: '' } }, - withPath(value): { - path: value, - }, - '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSize(value): { - size: value, - }, - '#withSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSizeMixin(value): { - size+: value, - }, - size+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - size+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFixed(value): { - size+: { - fixed: value, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMax(value): { - size+: { - max: value, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMin(value): { - size+: { - min: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - size+: { - mode: value, - }, - }, - }, - '#withSource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSource(value): { - source: value, - }, - '#withSourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSourceMixin(value): { - source+: value, - }, - source+: - { - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withX(value): { - source+: { - x: value, - }, - }, - '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withY(value): { - source+: { - y: value, - }, - }, - }, - '#withSourceOriginal': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSourceOriginal(value): { - sourceOriginal: value, - }, - '#withSourceOriginalMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSourceOriginalMixin(value): { - sourceOriginal+: value, - }, - sourceOriginal+: - { - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withX(value): { - sourceOriginal+: { - x: value, - }, - }, - '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withY(value): { - sourceOriginal+: { - y: value, - }, - }, - }, - '#withTarget': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTarget(value): { - target: value, - }, - '#withTargetMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTargetMixin(value): { - target+: value, - }, - target+: - { - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withX(value): { - target+: { - x: value, - }, - }, - '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withY(value): { - target+: { - y: value, - }, - }, - }, - '#withTargetName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTargetName(value): { - targetName: value, - }, - '#withTargetOriginal': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTargetOriginal(value): { - targetOriginal: value, - }, - '#withTargetOriginalMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTargetOriginalMixin(value): { - targetOriginal+: value, - }, - targetOriginal+: - { - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withX(value): { - targetOriginal+: { - x: value, - }, - }, - '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withY(value): { - targetOriginal+: { - y: value, - }, - }, - }, - '#withVertices': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withVertices(value): { - vertices: - (if std.isArray(value) - then value - else [value]), - }, - '#withVerticesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withVerticesMixin(value): { - vertices+: - (if std.isArray(value) - then value - else [value]), - }, - vertices+: - { - '#': { help: '', name: 'vertices' }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withX(value): { - x: value, - }, - '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withY(value): { - y: value, - }, - }, - }, - '#withConstraint': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withConstraint(value): { - constraint: value, - }, - '#withConstraintMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withConstraintMixin(value): { - constraint+: value, - }, - constraint+: - { - '#withHorizontal': { 'function': { args: [{ default: null, enums: ['left', 'right', 'leftright', 'center', 'scale'], name: 'value', type: ['string'] }], help: '' } }, - withHorizontal(value): { - constraint+: { - horizontal: value, - }, - }, - '#withVertical': { 'function': { args: [{ default: null, enums: ['top', 'bottom', 'topbottom', 'center', 'scale'], name: 'value', type: ['string'] }], help: '' } }, - withVertical(value): { - constraint+: { - vertical: value, - }, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPlacement(value): { - placement: value, - }, - '#withPlacementMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPlacementMixin(value): { - placement+: value, - }, - placement+: - { - '#withBottom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBottom(value): { - placement+: { - bottom: value, - }, - }, - '#withHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withHeight(value): { - placement+: { - height: value, - }, - }, - '#withLeft': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLeft(value): { - placement+: { - left: value, - }, - }, - '#withRight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withRight(value): { - placement+: { - right: value, - }, - }, - '#withRotation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withRotation(value): { - placement+: { - rotation: value, - }, - }, - '#withTop': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withTop(value): { - placement+: { - top: value, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - placement+: { - width: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the root element' } }, - withName(value): { - options+: { - root+: { - name: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: 'Type of root element (frame)' } }, - withType(): { - options+: { - root+: { - type: 'frame', - }, - }, - }, - }, - '#withShowAdvancedTypes': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Show all available element types' } }, - withShowAdvancedTypes(value=true): { - options+: { - showAdvancedTypes: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/dashboardList.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/dashboardList.libsonnet deleted file mode 100644 index 94a0e4716..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/dashboardList.libsonnet +++ /dev/null @@ -1,100 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.dashboardList', name: 'dashboardList' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'dashlist', - }, - }, - options+: - { - '#withFolderId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'folderId is deprecated, and migrated to folderUid on panel init' } }, - withFolderId(value): { - options+: { - folderId: value, - }, - }, - '#withFolderUID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFolderUID(value): { - options+: { - folderUID: value, - }, - }, - '#withIncludeVars': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIncludeVars(value=true): { - options+: { - includeVars: value, - }, - }, - '#withKeepTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withKeepTime(value=true): { - options+: { - keepTime: value, - }, - }, - '#withMaxItems': { 'function': { args: [{ default: 10, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMaxItems(value=10): { - options+: { - maxItems: value, - }, - }, - '#withQuery': { 'function': { args: [{ default: '', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withQuery(value=''): { - options+: { - query: value, - }, - }, - '#withShowHeadings': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowHeadings(value=true): { - options+: { - showHeadings: value, - }, - }, - '#withShowRecentlyViewed': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowRecentlyViewed(value=true): { - options+: { - showRecentlyViewed: value, - }, - }, - '#withShowSearch': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowSearch(value=true): { - options+: { - showSearch: value, - }, - }, - '#withShowStarred': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowStarred(value=true): { - options+: { - showStarred: value, - }, - }, - '#withTags': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTags(value): { - options+: { - tags: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTagsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTagsMixin(value): { - options+: { - tags+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/datagrid.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/datagrid.libsonnet deleted file mode 100644 index c93f78770..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/datagrid.libsonnet +++ /dev/null @@ -1,28 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.datagrid', name: 'datagrid' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'datagrid', - }, - }, - options+: - { - '#withSelectedSeries': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withSelectedSeries(value=0): { - options+: { - selectedSeries: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/debug.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/debug.libsonnet deleted file mode 100644 index 3cc3f99cf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/debug.libsonnet +++ /dev/null @@ -1,67 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.debug', name: 'debug' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'debug', - }, - }, - options+: - { - '#withCounters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCounters(value): { - options+: { - counters: value, - }, - }, - '#withCountersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCountersMixin(value): { - options+: { - counters+: value, - }, - }, - counters+: - { - '#withDataChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withDataChanged(value=true): { - options+: { - counters+: { - dataChanged: value, - }, - }, - }, - '#withRender': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withRender(value=true): { - options+: { - counters+: { - render: value, - }, - }, - }, - '#withSchemaChanged': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSchemaChanged(value=true): { - options+: { - counters+: { - schemaChanged: value, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['render', 'events', 'cursor', 'State', 'ThrowError'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - mode: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/gauge.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/gauge.libsonnet deleted file mode 100644 index 02ebaff20..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/gauge.libsonnet +++ /dev/null @@ -1,150 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.gauge', name: 'gauge' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'gauge', - }, - }, - options+: - { - '#withMinVizHeight': { 'function': { args: [{ default: 75, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMinVizHeight(value=75): { - options+: { - minVizHeight: value, - }, - }, - '#withMinVizWidth': { 'function': { args: [{ default: 75, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMinVizWidth(value=75): { - options+: { - minVizWidth: value, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptions(value): { - options+: { - reduceOptions: value, - }, - }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { - options+: { - reduceOptions+: value, - }, - }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { - options+: { - reduceOptions+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { - options+: { - reduceOptions+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { - options+: { - reduceOptions+: { - fields: value, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, - withLimit(value): { - options+: { - reduceOptions+: { - limit: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, - withValues(value=true): { - options+: { - reduceOptions+: { - values: value, - }, - }, - }, - }, - '#withShowThresholdLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowThresholdLabels(value=true): { - options+: { - showThresholdLabels: value, - }, - }, - '#withShowThresholdMarkers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowThresholdMarkers(value=true): { - options+: { - showThresholdMarkers: value, - }, - }, - '#withSizing': { 'function': { args: [{ default: null, enums: ['auto', 'manual'], name: 'value', type: ['string'] }], help: 'Allows for the bar gauge size to be set explicitly' } }, - withSizing(value): { - options+: { - sizing: value, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/geomap.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/geomap.libsonnet deleted file mode 100644 index b8e9cc6b2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/geomap.libsonnet +++ /dev/null @@ -1,486 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.geomap', name: 'geomap' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'geomap', - }, - }, - options+: - { - '#withBasemap': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withBasemap(value): { - options+: { - basemap: value, - }, - }, - '#withBasemapMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withBasemapMixin(value): { - options+: { - basemap+: value, - }, - }, - basemap+: - { - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Custom options depending on the type' } }, - withConfig(value): { - options+: { - basemap+: { - config: value, - }, - }, - }, - '#withConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Custom options depending on the type' } }, - withConfigMixin(value): { - options+: { - basemap+: { - config+: value, - }, - }, - }, - '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, - withFilterData(value): { - options+: { - basemap+: { - filterData: value, - }, - }, - }, - '#withFilterDataMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, - withFilterDataMixin(value): { - options+: { - basemap+: { - filterData+: value, - }, - }, - }, - '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLocation(value): { - options+: { - basemap+: { - location: value, - }, - }, - }, - '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLocationMixin(value): { - options+: { - basemap+: { - location+: value, - }, - }, - }, - location+: - { - '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Path to Gazetteer' } }, - withGazetteer(value): { - options+: { - basemap+: { - location+: { - gazetteer: value, - }, - }, - }, - }, - '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field mappings' } }, - withGeohash(value): { - options+: { - basemap+: { - location+: { - geohash: value, - }, - }, - }, - }, - '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLatitude(value): { - options+: { - basemap+: { - location+: { - latitude: value, - }, - }, - }, - }, - '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLongitude(value): { - options+: { - basemap+: { - location+: { - longitude: value, - }, - }, - }, - }, - '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLookup(value): { - options+: { - basemap+: { - location+: { - lookup: value, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - basemap+: { - location+: { - mode: value, - }, - }, - }, - }, - '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withWkt(value): { - options+: { - basemap+: { - location+: { - wkt: value, - }, - }, - }, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'configured unique display name' } }, - withName(value): { - options+: { - basemap+: { - name: value, - }, - }, - }, - '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, - withOpacity(value): { - options+: { - basemap+: { - opacity: value, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Check tooltip (defaults to true)' } }, - withTooltip(value=true): { - options+: { - basemap+: { - tooltip: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - options+: { - basemap+: { - type: value, - }, - }, - }, - }, - '#withControls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withControls(value): { - options+: { - controls: value, - }, - }, - '#withControlsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withControlsMixin(value): { - options+: { - controls+: value, - }, - }, - controls+: - { - '#withMouseWheelZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'let the mouse wheel zoom' } }, - withMouseWheelZoom(value=true): { - options+: { - controls+: { - mouseWheelZoom: value, - }, - }, - }, - '#withShowAttribution': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Lower right' } }, - withShowAttribution(value=true): { - options+: { - controls+: { - showAttribution: value, - }, - }, - }, - '#withShowDebug': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Show debug' } }, - withShowDebug(value=true): { - options+: { - controls+: { - showDebug: value, - }, - }, - }, - '#withShowMeasure': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Show measure' } }, - withShowMeasure(value=true): { - options+: { - controls+: { - showMeasure: value, - }, - }, - }, - '#withShowScale': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Scale options' } }, - withShowScale(value=true): { - options+: { - controls+: { - showScale: value, - }, - }, - }, - '#withShowZoom': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Zoom (upper left)' } }, - withShowZoom(value=true): { - options+: { - controls+: { - showZoom: value, - }, - }, - }, - }, - '#withLayers': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withLayers(value): { - options+: { - layers: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withLayersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withLayersMixin(value): { - options+: { - layers+: - (if std.isArray(value) - then value - else [value]), - }, - }, - layers+: - { - '#': { help: '', name: 'layers' }, - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Custom options depending on the type' } }, - withConfig(value): { - config: value, - }, - '#withConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Custom options depending on the type' } }, - withConfigMixin(value): { - config+: value, - }, - '#withFilterData': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, - withFilterData(value): { - filterData: value, - }, - '#withFilterDataMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Defines a frame MatcherConfig that may filter data for the given layer' } }, - withFilterDataMixin(value): { - filterData+: value, - }, - '#withLocation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLocation(value): { - location: value, - }, - '#withLocationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLocationMixin(value): { - location+: value, - }, - location+: - { - '#withGazetteer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Path to Gazetteer' } }, - withGazetteer(value): { - location+: { - gazetteer: value, - }, - }, - '#withGeohash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field mappings' } }, - withGeohash(value): { - location+: { - geohash: value, - }, - }, - '#withLatitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLatitude(value): { - location+: { - latitude: value, - }, - }, - '#withLongitude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLongitude(value): { - location+: { - longitude: value, - }, - }, - '#withLookup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLookup(value): { - location+: { - lookup: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['auto', 'geohash', 'coords', 'lookup'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - location+: { - mode: value, - }, - }, - '#withWkt': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withWkt(value): { - location+: { - wkt: value, - }, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'configured unique display name' } }, - withName(value): { - name: value, - }, - '#withOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Common properties:\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\nLayer opacity (0-1)' } }, - withOpacity(value): { - opacity: value, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Check tooltip (defaults to true)' } }, - withTooltip(value=true): { - tooltip: value, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - type: value, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'details'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - }, - '#withView': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withView(value): { - options+: { - view: value, - }, - }, - '#withViewMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withViewMixin(value): { - options+: { - view+: value, - }, - }, - view+: - { - '#withAllLayers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAllLayers(value=true): { - options+: { - view+: { - allLayers: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: 'zero', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value='zero'): { - options+: { - view+: { - id: value, - }, - }, - }, - '#withLastOnly': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLastOnly(value=true): { - options+: { - view+: { - lastOnly: value, - }, - }, - }, - '#withLat': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLat(value=0): { - options+: { - view+: { - lat: value, - }, - }, - }, - '#withLayer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLayer(value): { - options+: { - view+: { - layer: value, - }, - }, - }, - '#withLon': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLon(value=0): { - options+: { - view+: { - lon: value, - }, - }, - }, - '#withMaxZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMaxZoom(value): { - options+: { - view+: { - maxZoom: value, - }, - }, - }, - '#withMinZoom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withMinZoom(value): { - options+: { - view+: { - minZoom: value, - }, - }, - }, - '#withPadding': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withPadding(value): { - options+: { - view+: { - padding: value, - }, - }, - }, - '#withShared': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShared(value=true): { - options+: { - view+: { - shared: value, - }, - }, - }, - '#withZoom': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withZoom(value=1): { - options+: { - view+: { - zoom: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/heatmap.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/heatmap.libsonnet deleted file mode 100644 index 2c974fc5c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/heatmap.libsonnet +++ /dev/null @@ -1,839 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.heatmap', name: 'heatmap' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'heatmap', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withCalculate': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the heatmap should be calculated from data' } }, - withCalculate(value=true): { - options+: { - calculate: value, - }, - }, - '#withCalculation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCalculation(value): { - options+: { - calculation: value, - }, - }, - '#withCalculationMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCalculationMixin(value): { - options+: { - calculation+: value, - }, - }, - calculation+: - { - '#withXBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withXBuckets(value): { - options+: { - calculation+: { - xBuckets: value, - }, - }, - }, - '#withXBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withXBucketsMixin(value): { - options+: { - calculation+: { - xBuckets+: value, - }, - }, - }, - xBuckets+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - calculation+: { - xBuckets+: { - mode: value, - }, - }, - }, - }, - '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScale(value): { - options+: { - calculation+: { - xBuckets+: { - scale: value, - }, - }, - }, - }, - '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleMixin(value): { - options+: { - calculation+: { - xBuckets+: { - scale+: value, - }, - }, - }, - }, - scale+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - options+: { - calculation+: { - xBuckets+: { - scale+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - options+: { - calculation+: { - xBuckets+: { - scale+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - options+: { - calculation+: { - xBuckets+: { - scale+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The number of buckets to use for the axis in the heatmap' } }, - withValue(value): { - options+: { - calculation+: { - xBuckets+: { - value: value, - }, - }, - }, - }, - }, - '#withYBuckets': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withYBuckets(value): { - options+: { - calculation+: { - yBuckets: value, - }, - }, - }, - '#withYBucketsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withYBucketsMixin(value): { - options+: { - calculation+: { - yBuckets+: value, - }, - }, - }, - yBuckets+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['size', 'count'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - calculation+: { - yBuckets+: { - mode: value, - }, - }, - }, - }, - '#withScale': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScale(value): { - options+: { - calculation+: { - yBuckets+: { - scale: value, - }, - }, - }, - }, - '#withScaleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleMixin(value): { - options+: { - calculation+: { - yBuckets+: { - scale+: value, - }, - }, - }, - }, - scale+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - options+: { - calculation+: { - yBuckets+: { - scale+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - options+: { - calculation+: { - yBuckets+: { - scale+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - options+: { - calculation+: { - yBuckets+: { - scale+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The number of buckets to use for the axis in the heatmap' } }, - withValue(value): { - options+: { - calculation+: { - yBuckets+: { - value: value, - }, - }, - }, - }, - }, - }, - '#withCellGap': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: 'Controls gap between cells' } }, - withCellGap(value=1): { - options+: { - cellGap: value, - }, - }, - '#withCellRadius': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls cell radius' } }, - withCellRadius(value): { - options+: { - cellRadius: value, - }, - }, - '#withCellValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value options' } }, - withCellValues(value): { - options+: { - cellValues: value, - }, - }, - '#withCellValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls cell value options' } }, - withCellValuesMixin(value): { - options+: { - cellValues+: value, - }, - }, - cellValues+: - { - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the number of decimals for cell values' } }, - withDecimals(value): { - options+: { - cellValues+: { - decimals: value, - }, - }, - }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the cell value unit' } }, - withUnit(value): { - options+: { - cellValues+: { - unit: value, - }, - }, - }, - }, - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls various color options' } }, - withColor(value): { - options+: { - color: value, - }, - }, - '#withColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls various color options' } }, - withColorMixin(value): { - options+: { - color+: value, - }, - }, - color+: - { - '#withExponent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the exponent when scale is set to exponential' } }, - withExponent(value): { - options+: { - color+: { - exponent: value, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the color fill when in opacity mode' } }, - withFill(value): { - options+: { - color+: { - fill: value, - }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the maximum value for the color scale' } }, - withMax(value): { - options+: { - color+: { - max: value, - }, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the minimum value for the color scale' } }, - withMin(value): { - options+: { - color+: { - min: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['opacity', 'scheme'], name: 'value', type: ['string'] }], help: 'Controls the color mode of the heatmap' } }, - withMode(value): { - options+: { - color+: { - mode: value, - }, - }, - }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Reverses the color scheme' } }, - withReverse(value=true): { - options+: { - color+: { - reverse: value, - }, - }, - }, - '#withScale': { 'function': { args: [{ default: null, enums: ['linear', 'exponential'], name: 'value', type: ['string'] }], help: 'Controls the color scale of the heatmap' } }, - withScale(value): { - options+: { - color+: { - scale: value, - }, - }, - }, - '#withScheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Controls the color scheme used' } }, - withScheme(value): { - options+: { - color+: { - scheme: value, - }, - }, - }, - '#withSteps': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the number of color steps' } }, - withSteps(value): { - options+: { - color+: { - steps: value, - }, - }, - }, - }, - '#withExemplars': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls exemplar options' } }, - withExemplars(value): { - options+: { - exemplars: value, - }, - }, - '#withExemplarsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls exemplar options' } }, - withExemplarsMixin(value): { - options+: { - exemplars+: value, - }, - }, - exemplars+: - { - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the color of the exemplar markers' } }, - withColor(value): { - options+: { - exemplars+: { - color: value, - }, - }, - }, - }, - '#withFilterValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls the value filter range' } }, - withFilterValues(value): { - options+: { - filterValues: value, - }, - }, - '#withFilterValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls the value filter range' } }, - withFilterValuesMixin(value): { - options+: { - filterValues+: value, - }, - }, - filterValues+: - { - '#withGe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the filter range to values greater than or equal to the given value' } }, - withGe(value): { - options+: { - filterValues+: { - ge: value, - }, - }, - }, - '#withLe': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the filter range to values less than or equal to the given value' } }, - withLe(value): { - options+: { - filterValues+: { - le: value, - }, - }, - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls legend options' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls legend options' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the legend is shown' } }, - withShow(value=true): { - options+: { - legend+: { - show: value, - }, - }, - }, - }, - '#withRowsFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls frame rows options' } }, - withRowsFrame(value): { - options+: { - rowsFrame: value, - }, - }, - '#withRowsFrameMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls frame rows options' } }, - withRowsFrameMixin(value): { - options+: { - rowsFrame+: value, - }, - }, - rowsFrame+: - { - '#withLayout': { 'function': { args: [{ default: null, enums: ['le', 'ge', 'unknown', 'auto'], name: 'value', type: ['string'] }], help: '' } }, - withLayout(value): { - options+: { - rowsFrame+: { - layout: value, - }, - }, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the name of the cell when not calculating from data' } }, - withValue(value): { - options+: { - rowsFrame+: { - value: value, - }, - }, - }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowValue(value): { - options+: { - showValue: value, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls tooltip options' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Controls tooltip options' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxHeight(value): { - options+: { - tooltip+: { - maxHeight: value, - }, - }, - }, - '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxWidth(value): { - options+: { - tooltip+: { - maxWidth: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withShowColorScale': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the tooltip shows a color scale in header' } }, - withShowColorScale(value=true): { - options+: { - tooltip+: { - showColorScale: value, - }, - }, - }, - '#withYHistogram': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls if the tooltip shows a histogram of the y-axis values' } }, - withYHistogram(value=true): { - options+: { - tooltip+: { - yHistogram: value, - }, - }, - }, - }, - '#withYAxis': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration options for the yAxis' } }, - withYAxis(value): { - options+: { - yAxis: value, - }, - }, - '#withYAxisMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration options for the yAxis' } }, - withYAxisMixin(value): { - options+: { - yAxis+: value, - }, - }, - yAxis+: - { - '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisBorderShow(value=true): { - options+: { - yAxis+: { - axisBorderShow: value, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - options+: { - yAxis+: { - axisCenteredZero: value, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - options+: { - yAxis+: { - axisColorMode: value, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - options+: { - yAxis+: { - axisGridShow: value, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - options+: { - yAxis+: { - axisLabel: value, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - options+: { - yAxis+: { - axisPlacement: value, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - options+: { - yAxis+: { - axisSoftMax: value, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - options+: { - yAxis+: { - axisSoftMin: value, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - options+: { - yAxis+: { - axisWidth: value, - }, - }, - }, - '#withDecimals': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Controls the number of decimals for yAxis values' } }, - withDecimals(value): { - options+: { - yAxis+: { - decimals: value, - }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the maximum value for the yAxis' } }, - withMax(value): { - options+: { - yAxis+: { - max: value, - }, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Sets the minimum value for the yAxis' } }, - withMin(value): { - options+: { - yAxis+: { - min: value, - }, - }, - }, - '#withReverse': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Reverses the yAxis' } }, - withReverse(value=true): { - options+: { - yAxis+: { - reverse: value, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - options+: { - yAxis+: { - scaleDistribution: value, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - options+: { - yAxis+: { - scaleDistribution+: value, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - options+: { - yAxis+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - options+: { - yAxis+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - options+: { - yAxis+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the yAxis unit' } }, - withUnit(value): { - options+: { - yAxis+: { - unit: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/histogram.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/histogram.libsonnet deleted file mode 100644 index cb8ce7afe..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/histogram.libsonnet +++ /dev/null @@ -1,486 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.histogram', name: 'histogram' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'histogram', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisBorderShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisBorderShow: value, - }, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: 80, enums: null, name: 'value', type: ['integer'] }], help: 'Controls the fill opacity of the bars.' } }, - withFillOpacity(value=80): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - gradientMode: value, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: 'Controls line width of the bars.' } }, - withLineWidth(value=1): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStacking(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking: value, - }, - }, - }, - }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStackingMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: value, - }, - }, - }, - }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroup(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - group: value, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - mode: value, - }, - }, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withBucketCount': { 'function': { args: [{ default: 30, enums: null, name: 'value', type: ['integer'] }], help: 'Bucket count (approx)' } }, - withBucketCount(value=30): { - options+: { - bucketCount: value, - }, - }, - '#withBucketOffset': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['number'] }], help: 'Offset buckets by this amount' } }, - withBucketOffset(value=0): { - options+: { - bucketOffset: value, - }, - }, - '#withBucketSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Size of each bucket' } }, - withBucketSize(value): { - options+: { - bucketSize: value, - }, - }, - '#withCombine': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Combines multiple series into a single histogram' } }, - withCombine(value=true): { - options+: { - combine: value, - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxHeight(value): { - options+: { - tooltip+: { - maxHeight: value, - }, - }, - }, - '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxWidth(value): { - options+: { - tooltip+: { - maxWidth: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/logs.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/logs.libsonnet deleted file mode 100644 index a21ed84fd..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/logs.libsonnet +++ /dev/null @@ -1,76 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.logs', name: 'logs' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'logs', - }, - }, - options+: - { - '#withDedupStrategy': { 'function': { args: [{ default: null, enums: ['none', 'exact', 'numbers', 'signature'], name: 'value', type: ['string'] }], help: '' } }, - withDedupStrategy(value): { - options+: { - dedupStrategy: value, - }, - }, - '#withEnableLogDetails': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withEnableLogDetails(value=true): { - options+: { - enableLogDetails: value, - }, - }, - '#withPrettifyLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withPrettifyLogMessage(value=true): { - options+: { - prettifyLogMessage: value, - }, - }, - '#withShowCommonLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowCommonLabels(value=true): { - options+: { - showCommonLabels: value, - }, - }, - '#withShowLabels': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLabels(value=true): { - options+: { - showLabels: value, - }, - }, - '#withShowLogContextToggle': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLogContextToggle(value=true): { - options+: { - showLogContextToggle: value, - }, - }, - '#withShowTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowTime(value=true): { - options+: { - showTime: value, - }, - }, - '#withSortOrder': { 'function': { args: [{ default: null, enums: ['Descending', 'Ascending'], name: 'value', type: ['string'] }], help: '' } }, - withSortOrder(value): { - options+: { - sortOrder: value, - }, - }, - '#withWrapLogMessage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withWrapLogMessage(value=true): { - options+: { - wrapLogMessage: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/news.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/news.libsonnet deleted file mode 100644 index eede4876d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/news.libsonnet +++ /dev/null @@ -1,34 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.news', name: 'news' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'news', - }, - }, - options+: - { - '#withFeedUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'empty/missing will default to grafana blog' } }, - withFeedUrl(value): { - options+: { - feedUrl: value, - }, - }, - '#withShowImage': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowImage(value=true): { - options+: { - showImage: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/nodeGraph.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/nodeGraph.libsonnet deleted file mode 100644 index 75e183af2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/nodeGraph.libsonnet +++ /dev/null @@ -1,118 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.nodeGraph', name: 'nodeGraph' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'nodeGraph', - }, - }, - options+: - { - '#withEdges': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withEdges(value): { - options+: { - edges: value, - }, - }, - '#withEdgesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withEdgesMixin(value): { - options+: { - edges+: value, - }, - }, - edges+: - { - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { - options+: { - edges+: { - mainStatUnit: value, - }, - }, - }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { - options+: { - edges+: { - secondaryStatUnit: value, - }, - }, - }, - }, - '#withNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withNodes(value): { - options+: { - nodes: value, - }, - }, - '#withNodesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withNodesMixin(value): { - options+: { - nodes+: value, - }, - }, - nodes+: - { - '#withArcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcs(value): { - options+: { - nodes+: { - arcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withArcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Define which fields are shown as part of the node arc (colored circle around the node).' } }, - withArcsMixin(value): { - options+: { - nodes+: { - arcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - arcs+: - { - '#': { help: '', name: 'arcs' }, - '#withColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The color of the arc.' } }, - withColor(value): { - color: value, - }, - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Field from which to get the value. Values should be less than 1, representing fraction of a circle.' } }, - withField(value): { - field: value, - }, - }, - '#withMainStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the main stat to override what ever is set in the data frame.' } }, - withMainStatUnit(value): { - options+: { - nodes+: { - mainStatUnit: value, - }, - }, - }, - '#withSecondaryStatUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unit for the secondary stat to override what ever is set in the data frame.' } }, - withSecondaryStatUnit(value): { - options+: { - nodes+: { - secondaryStatUnit: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/pieChart.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/pieChart.libsonnet deleted file mode 100644 index 9ec5edc63..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/pieChart.libsonnet +++ /dev/null @@ -1,380 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.pieChart', name: 'pieChart' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'piechart', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withDisplayLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDisplayLabels(value): { - options+: { - displayLabels: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withDisplayLabelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDisplayLabelsMixin(value): { - options+: { - displayLabels+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withValues(value): { - options+: { - legend+: { - values: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withValuesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withValuesMixin(value): { - options+: { - legend+: { - values+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withPieType': { 'function': { args: [{ default: null, enums: ['pie', 'donut'], name: 'value', type: ['string'] }], help: 'Select the pie chart display style.' } }, - withPieType(value): { - options+: { - pieType: value, - }, - }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptions(value): { - options+: { - reduceOptions: value, - }, - }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { - options+: { - reduceOptions+: value, - }, - }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { - options+: { - reduceOptions+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { - options+: { - reduceOptions+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { - options+: { - reduceOptions+: { - fields: value, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, - withLimit(value): { - options+: { - reduceOptions+: { - limit: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, - withValues(value=true): { - options+: { - reduceOptions+: { - values: value, - }, - }, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxHeight(value): { - options+: { - tooltip+: { - maxHeight: value, - }, - }, - }, - '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxWidth(value): { - options+: { - tooltip+: { - maxWidth: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/row.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/row.libsonnet deleted file mode 100644 index 1548d38a5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/row.libsonnet +++ /dev/null @@ -1,103 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel.row', name: 'row' }, - '#withCollapsed': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Whether this row should be collapsed or not.' } }, - withCollapsed(value=true): { - collapsed: value, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Ref to a DataSource instance' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The plugin type-id' } }, - withType(value): { - datasource+: { - type: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific datasource instance' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withGridPos': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Position and dimensions of a panel in the grid' } }, - withGridPos(value): { - gridPos: value, - }, - '#withGridPosMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Position and dimensions of a panel in the grid' } }, - withGridPosMixin(value): { - gridPos+: value, - }, - gridPos+: - { - '#withH': { 'function': { args: [{ default: 9, enums: null, name: 'value', type: ['integer'] }], help: 'Panel height. The height is the number of rows from the top edge of the panel.' } }, - withH(value=9): { - gridPos+: { - h: value, - }, - }, - '#withStatic': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: "Whether the panel is fixed within the grid. If true, the panel will not be affected by other panels' interactions" } }, - withStatic(value=true): { - gridPos+: { - static: value, - }, - }, - '#withW': { 'function': { args: [{ default: 12, enums: null, name: 'value', type: ['integer'] }], help: 'Panel width. The width is the number of columns from the left edge of the panel.' } }, - withW(value=12): { - gridPos+: { - w: value, - }, - }, - '#withX': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel x. The x coordinate is the number of columns from the left edge of the grid' } }, - withX(value=0): { - gridPos+: { - x: value, - }, - }, - '#withY': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: 'Panel y. The y coordinate is the number of rows from the top edge of the grid' } }, - withY(value=0): { - gridPos+: { - y: value, - }, - }, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Unique identifier of the panel. Generated by Grafana when creating a new panel. It must be unique within a dashboard, but not globally.' } }, - withId(value): { - id: value, - }, - '#withPanels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPanels(value): { - panels: - (if std.isArray(value) - then value - else [value]), - }, - '#withPanelsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPanelsMixin(value): { - panels+: - (if std.isArray(value) - then value - else [value]), - }, - '#withRepeat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of template variable to repeat for.' } }, - withRepeat(value): { - repeat: value, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Row title' } }, - withTitle(value): { - title: value, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'row', - }, -} -+ (import '../custom/row.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/stat.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/stat.libsonnet deleted file mode 100644 index 7b6b25b3e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/stat.libsonnet +++ /dev/null @@ -1,156 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.stat', name: 'stat' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'stat', - }, - }, - options+: - { - '#withColorMode': { 'function': { args: [{ default: null, enums: ['value', 'background', 'background_solid', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withColorMode(value): { - options+: { - colorMode: value, - }, - }, - '#withGraphMode': { 'function': { args: [{ default: null, enums: ['none', 'line', 'area'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGraphMode(value): { - options+: { - graphMode: value, - }, - }, - '#withJustifyMode': { 'function': { args: [{ default: null, enums: ['auto', 'center'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withJustifyMode(value): { - options+: { - justifyMode: value, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withReduceOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptions(value): { - options+: { - reduceOptions: value, - }, - }, - '#withReduceOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withReduceOptionsMixin(value): { - options+: { - reduceOptions+: value, - }, - }, - reduceOptions+: - { - '#withCalcs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcs(value): { - options+: { - reduceOptions+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'When !values, pick one value for the whole field' } }, - withCalcsMixin(value): { - options+: { - reduceOptions+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Which fields to show. By default this is only numeric fields' } }, - withFields(value): { - options+: { - reduceOptions+: { - fields: value, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'if showing all values limit' } }, - withLimit(value): { - options+: { - reduceOptions+: { - limit: value, - }, - }, - }, - '#withValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If true show each row value' } }, - withValues(value=true): { - options+: { - reduceOptions+: { - values: value, - }, - }, - }, - }, - '#withShowPercentChange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowPercentChange(value=true): { - options+: { - showPercentChange: value, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withText(value): { - options+: { - text: value, - }, - }, - '#withTextMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTextMixin(value): { - options+: { - text+: value, - }, - }, - text+: - { - '#withTitleSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit title text size' } }, - withTitleSize(value): { - options+: { - text+: { - titleSize: value, - }, - }, - }, - '#withValueSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Explicit value text size' } }, - withValueSize(value): { - options+: { - text+: { - valueSize: value, - }, - }, - }, - }, - '#withTextMode': { 'function': { args: [{ default: null, enums: ['auto', 'value', 'value_and_name', 'name', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withTextMode(value): { - options+: { - textMode: value, - }, - }, - '#withWideLayout': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withWideLayout(value=true): { - options+: { - wideLayout: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/stateTimeline.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/stateTimeline.libsonnet deleted file mode 100644 index a18899dd0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/stateTimeline.libsonnet +++ /dev/null @@ -1,309 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.stateTimeline', name: 'stateTimeline' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'state-timeline', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withFillOpacity(value=70): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLineWidth(value=0): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withAlignValue': { 'function': { args: [{ default: null, enums: ['center', 'left', 'right'], name: 'value', type: ['string'] }], help: 'Controls the value alignment in the TimelineChart component' } }, - withAlignValue(value): { - options+: { - alignValue: value, - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withMergeValues': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Merge equal consecutive values' } }, - withMergeValues(value=true): { - options+: { - mergeValues: value, - }, - }, - '#withRowHeight': { 'function': { args: [{ default: 0.9, enums: null, name: 'value', type: ['number'] }], help: 'Controls the row height' } }, - withRowHeight(value=0.9): { - options+: { - rowHeight: value, - }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowValue(value): { - options+: { - showValue: value, - }, - }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezone(value): { - options+: { - timezone: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezoneMixin(value): { - options+: { - timezone+: - (if std.isArray(value) - then value - else [value]), - }, - }, - timezone+: - { - '#withTimeZoneUtc': { 'function': { args: [], help: 'Use UTC/GMT timezone' } }, - withTimeZoneUtc(): { - TimeZoneUtc: 'utc', - }, - '#withTimeZoneBrowser': { 'function': { args: [], help: 'Use the timezone defined by end user web browser' } }, - withTimeZoneBrowser(): { - TimeZoneBrowser: 'browser', - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxHeight(value): { - options+: { - tooltip+: { - maxHeight: value, - }, - }, - }, - '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxWidth(value): { - options+: { - tooltip+: { - maxWidth: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/statusHistory.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/statusHistory.libsonnet deleted file mode 100644 index 676b5f783..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/statusHistory.libsonnet +++ /dev/null @@ -1,303 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.statusHistory', name: 'statusHistory' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'status-history', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withFillOpacity': { 'function': { args: [{ default: 70, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withFillOpacity(value=70): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: 1, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLineWidth(value=1): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withColWidth': { 'function': { args: [{ default: 0.9, enums: null, name: 'value', type: ['number'] }], help: 'Controls the column width' } }, - withColWidth(value=0.9): { - options+: { - colWidth: value, - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withRowHeight': { 'function': { args: [{ default: 0.9, enums: null, name: 'value', type: ['number'] }], help: 'Set the height of the rows' } }, - withRowHeight(value=0.9): { - options+: { - rowHeight: value, - }, - }, - '#withShowValue': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowValue(value): { - options+: { - showValue: value, - }, - }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezone(value): { - options+: { - timezone: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezoneMixin(value): { - options+: { - timezone+: - (if std.isArray(value) - then value - else [value]), - }, - }, - timezone+: - { - '#withTimeZoneUtc': { 'function': { args: [], help: 'Use UTC/GMT timezone' } }, - withTimeZoneUtc(): { - TimeZoneUtc: 'utc', - }, - '#withTimeZoneBrowser': { 'function': { args: [], help: 'Use the timezone defined by end user web browser' } }, - withTimeZoneBrowser(): { - TimeZoneBrowser: 'browser', - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxHeight(value): { - options+: { - tooltip+: { - maxHeight: value, - }, - }, - }, - '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxWidth(value): { - options+: { - tooltip+: { - maxWidth: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/table.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/table.libsonnet deleted file mode 100644 index 2e0816384..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/table.libsonnet +++ /dev/null @@ -1,1274 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.table', name: 'table' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'table', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withAlign': { 'function': { args: [{ default: null, enums: ['auto', 'left', 'right', 'center'], name: 'value', type: ['string'] }], help: 'TODO -- should not be table specific!\nTODO docs' } }, - withAlign(value): { - fieldConfig+: { - defaults+: { - custom+: { - align: value, - }, - }, - }, - }, - '#withCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object', 'object', 'object', 'object', 'object', 'object', 'object'] }], help: 'Table cell options. Each cell has a display mode\nand other potential options for that display.' } }, - withCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions: value, - }, - }, - }, - }, - '#withCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object', 'object', 'object', 'object', 'object', 'object', 'object'] }], help: 'Table cell options. Each cell has a display mode\nand other potential options for that display.' } }, - withCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: value, - }, - }, - }, - }, - cellOptions+: - { - '#withTableAutoCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Auto mode table cell options' } }, - withTableAutoCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableAutoCellOptions: value, - }, - }, - }, - }, - }, - '#withTableAutoCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Auto mode table cell options' } }, - withTableAutoCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableAutoCellOptions+: value, - }, - }, - }, - }, - }, - TableAutoCellOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'auto', - }, - }, - }, - }, - }, - }, - '#withTableSparklineCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Sparkline cell options' } }, - withTableSparklineCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableSparklineCellOptions: value, - }, - }, - }, - }, - }, - '#withTableSparklineCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Sparkline cell options' } }, - withTableSparklineCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableSparklineCellOptions+: value, - }, - }, - }, - }, - }, - TableSparklineCellOptions+: - { - '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisBorderShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisBorderShow: value, - }, - }, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisCenteredZero: value, - }, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisColorMode: value, - }, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisGridShow: value, - }, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisLabel: value, - }, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisPlacement: value, - }, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisSoftMax: value, - }, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisSoftMin: value, - }, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - axisWidth: value, - }, - }, - }, - }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withBarAlignment(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - barAlignment: value, - }, - }, - }, - }, - }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarMaxWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - barMaxWidth: value, - }, - }, - }, - }, - }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarWidthFactor(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - barWidthFactor: value, - }, - }, - }, - }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withDrawStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - drawStyle: value, - }, - }, - }, - }, - }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillBelowTo(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - fillBelowTo: value, - }, - }, - }, - }, - }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - fillColor: value, - }, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFillOpacity(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - fillOpacity: value, - }, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - gradientMode: value, - }, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom: value, - }, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom+: value, - }, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - }, - '#withHideValue': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHideValue(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - hideValue: value, - }, - }, - }, - }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLineColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineColor: value, - }, - }, - }, - }, - }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLineInterpolation(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineInterpolation: value, - }, - }, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle: value, - }, - }, - }, - }, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle+: value, - }, - }, - }, - }, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineStyle+: { - fill: value, - }, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLineWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - lineWidth: value, - }, - }, - }, - }, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - pointColor: value, - }, - }, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withPointSize(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - pointSize: value, - }, - }, - }, - }, - }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointSymbol(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - pointSymbol: value, - }, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution: value, - }, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution+: value, - }, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowPoints(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - showPoints: value, - }, - }, - }, - }, - }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - spanNulls: value, - }, - }, - }, - }, - }, - '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNullsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - spanNulls+: value, - }, - }, - }, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStacking(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - stacking: value, - }, - }, - }, - }, - }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStackingMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - stacking+: value, - }, - }, - }, - }, - }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroup(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - stacking+: { - group: value, - }, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - stacking+: { - mode: value, - }, - }, - }, - }, - }, - }, - }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - thresholdsStyle: value, - }, - }, - }, - }, - }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - thresholdsStyle+: value, - }, - }, - }, - }, - }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - thresholdsStyle+: { - mode: value, - }, - }, - }, - }, - }, - }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withTransform(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - transform: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'sparkline', - }, - }, - }, - }, - }, - }, - '#withTableBarGaugeCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Gauge cell options' } }, - withTableBarGaugeCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableBarGaugeCellOptions: value, - }, - }, - }, - }, - }, - '#withTableBarGaugeCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Gauge cell options' } }, - withTableBarGaugeCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableBarGaugeCellOptions+: value, - }, - }, - }, - }, - }, - TableBarGaugeCellOptions+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['basic', 'lcd', 'gradient'], name: 'value', type: ['string'] }], help: 'Enum expressing the possible display modes\nfor the bar gauge component of Grafana UI' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - mode: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'gauge', - }, - }, - }, - }, - }, - '#withValueDisplayMode': { 'function': { args: [{ default: null, enums: ['color', 'text', 'hidden'], name: 'value', type: ['string'] }], help: 'Allows for the table cell gauge display type to set the gauge mode.' } }, - withValueDisplayMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - valueDisplayMode: value, - }, - }, - }, - }, - }, - }, - '#withTableColoredBackgroundCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored background cell options' } }, - withTableColoredBackgroundCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableColoredBackgroundCellOptions: value, - }, - }, - }, - }, - }, - '#withTableColoredBackgroundCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored background cell options' } }, - withTableColoredBackgroundCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableColoredBackgroundCellOptions+: value, - }, - }, - }, - }, - }, - TableColoredBackgroundCellOptions+: - { - '#withApplyToRow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withApplyToRow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - applyToRow: value, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['basic', 'gradient'], name: 'value', type: ['string'] }], help: 'Display mode to the "Colored Background" display\nmode for table cells. Either displays a solid color (basic mode)\nor a gradient.' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - mode: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'color-background', - }, - }, - }, - }, - }, - }, - '#withTableColorTextCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored text cell options' } }, - withTableColorTextCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableColorTextCellOptions: value, - }, - }, - }, - }, - }, - '#withTableColorTextCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Colored text cell options' } }, - withTableColorTextCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableColorTextCellOptions+: value, - }, - }, - }, - }, - }, - TableColorTextCellOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'color-text', - }, - }, - }, - }, - }, - }, - '#withTableImageCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, - withTableImageCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableImageCellOptions: value, - }, - }, - }, - }, - }, - '#withTableImageCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, - withTableImageCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableImageCellOptions+: value, - }, - }, - }, - }, - }, - TableImageCellOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'image', - }, - }, - }, - }, - }, - }, - '#withTableDataLinksCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Show data links in the cell' } }, - withTableDataLinksCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableDataLinksCellOptions: value, - }, - }, - }, - }, - }, - '#withTableDataLinksCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Show data links in the cell' } }, - withTableDataLinksCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableDataLinksCellOptions+: value, - }, - }, - }, - }, - }, - TableDataLinksCellOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'data-links', - }, - }, - }, - }, - }, - }, - '#withTableJsonViewCellOptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, - withTableJsonViewCellOptions(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableJsonViewCellOptions: value, - }, - }, - }, - }, - }, - '#withTableJsonViewCellOptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Json view cell options' } }, - withTableJsonViewCellOptionsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - TableJsonViewCellOptions+: value, - }, - }, - }, - }, - }, - TableJsonViewCellOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - fieldConfig+: { - defaults+: { - custom+: { - cellOptions+: { - type: 'json-view', - }, - }, - }, - }, - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['auto', 'color-text', 'color-background', 'color-background-solid', 'gradient-gauge', 'lcd-gauge', 'json-view', 'basic', 'image', 'gauge', 'sparkline', 'data-links', 'custom'], name: 'value', type: ['string'] }], help: "Internally, this is the \"type\" of cell that's being displayed\nin the table such as colored text, JSON, gauge, etc.\nThe color-background-solid, gradient-gauge, and lcd-gauge\nmodes are deprecated in favor of new cell subOptions" } }, - withDisplayMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - displayMode: value, - }, - }, - }, - }, - '#withFilterable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withFilterable(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - filterable: value, - }, - }, - }, - }, - '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '?? default is missing or false ??' } }, - withHidden(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hidden: value, - }, - }, - }, - }, - '#withHideHeader': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Hides any header for a column, useful for columns that show some static content or buttons.' } }, - withHideHeader(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideHeader: value, - }, - }, - }, - }, - '#withInspect': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withInspect(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - inspect: value, - }, - }, - }, - }, - '#withMinWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMinWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - minWidth: value, - }, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - width: value, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withCellHeight': { 'function': { args: [{ default: null, enums: ['sm', 'md', 'lg'], name: 'value', type: ['string'] }], help: 'Height of a table cell' } }, - withCellHeight(value): { - options+: { - cellHeight: value, - }, - }, - '#withFooter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Footer options' } }, - withFooter(value): { - options+: { - footer: value, - }, - }, - '#withFooterMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Footer options' } }, - withFooterMixin(value): { - options+: { - footer+: value, - }, - }, - footer+: - { - '#withCountRows': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withCountRows(value=true): { - options+: { - footer+: { - countRows: value, - }, - }, - }, - '#withEnablePagination': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withEnablePagination(value=true): { - options+: { - footer+: { - enablePagination: value, - }, - }, - }, - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFields(value): { - options+: { - footer+: { - fields: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFieldsMixin(value): { - options+: { - footer+: { - fields+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'actually 1 value' } }, - withReducer(value): { - options+: { - footer+: { - reducer: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withReducerMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'actually 1 value' } }, - withReducerMixin(value): { - options+: { - footer+: { - reducer+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShow(value=true): { - options+: { - footer+: { - show: value, - }, - }, - }, - }, - '#withFrameIndex': { 'function': { args: [{ default: 0, enums: null, name: 'value', type: ['number'] }], help: 'Represents the index of the selected frame' } }, - withFrameIndex(value=0): { - options+: { - frameIndex: value, - }, - }, - '#withShowHeader': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls whether the panel should show the header' } }, - withShowHeader(value=true): { - options+: { - showHeader: value, - }, - }, - '#withShowTypeIcons': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Controls whether the header should show icons for the column types' } }, - withShowTypeIcons(value=true): { - options+: { - showTypeIcons: value, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Used to control row sorting' } }, - withSortBy(value): { - options+: { - sortBy: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withSortByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Used to control row sorting' } }, - withSortByMixin(value): { - options+: { - sortBy+: - (if std.isArray(value) - then value - else [value]), - }, - }, - sortBy+: - { - '#': { help: '', name: 'sortBy' }, - '#withDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Flag used to indicate descending sort order' } }, - withDesc(value=true): { - desc: value, - }, - '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Sets the display name of the field to sort by' } }, - withDisplayName(value): { - displayName: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/text.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/text.libsonnet deleted file mode 100644 index 2fd04fd01..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/text.libsonnet +++ /dev/null @@ -1,73 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.text', name: 'text' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'text', - }, - }, - options+: - { - '#withCode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCode(value): { - options+: { - code: value, - }, - }, - '#withCodeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCodeMixin(value): { - options+: { - code+: value, - }, - }, - code+: - { - '#withLanguage': { 'function': { args: [{ default: null, enums: ['json', 'yaml', 'xml', 'typescript', 'sql', 'go', 'markdown', 'html', 'plaintext'], name: 'value', type: ['string'] }], help: '' } }, - withLanguage(value): { - options+: { - code+: { - language: value, - }, - }, - }, - '#withShowLineNumbers': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLineNumbers(value=true): { - options+: { - code+: { - showLineNumbers: value, - }, - }, - }, - '#withShowMiniMap': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowMiniMap(value=true): { - options+: { - code+: { - showMiniMap: value, - }, - }, - }, - }, - '#withContent': { 'function': { args: [{ default: '# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)', enums: null, name: 'value', type: ['string'] }], help: '' } }, - withContent(value='# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)'): { - options+: { - content: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['html', 'markdown', 'code'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - options+: { - mode: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/timeSeries.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/timeSeries.libsonnet deleted file mode 100644 index f9bf740d9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/timeSeries.libsonnet +++ /dev/null @@ -1,767 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.timeSeries', name: 'timeSeries' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'timeseries', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisBorderShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisBorderShow: value, - }, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withBarAlignment(value): { - fieldConfig+: { - defaults+: { - custom+: { - barAlignment: value, - }, - }, - }, - }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarMaxWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - barMaxWidth: value, - }, - }, - }, - }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarWidthFactor(value): { - fieldConfig+: { - defaults+: { - custom+: { - barWidthFactor: value, - }, - }, - }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withDrawStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - drawStyle: value, - }, - }, - }, - }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillBelowTo(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillBelowTo: value, - }, - }, - }, - }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillColor: value, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFillOpacity(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - gradientMode: value, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withInsertNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'integer'] }], help: '' } }, - withInsertNulls(value): { - fieldConfig+: { - defaults+: { - custom+: { - insertNulls: value, - }, - }, - }, - }, - '#withInsertNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'integer'] }], help: '' } }, - withInsertNullsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - insertNulls+: value, - }, - }, - }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLineColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineColor: value, - }, - }, - }, - }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLineInterpolation(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineInterpolation: value, - }, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle: value, - }, - }, - }, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: value, - }, - }, - }, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - fill: value, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLineWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointColor: value, - }, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withPointSize(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize: value, - }, - }, - }, - }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointSymbol(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSymbol: value, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowPoints(value): { - fieldConfig+: { - defaults+: { - custom+: { - showPoints: value, - }, - }, - }, - }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls: value, - }, - }, - }, - }, - '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNullsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls+: value, - }, - }, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStacking(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking: value, - }, - }, - }, - }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStackingMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: value, - }, - }, - }, - }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroup(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - group: value, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle: value, - }, - }, - }, - }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: value, - }, - }, - }, - }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withTransform(value): { - fieldConfig+: { - defaults+: { - custom+: { - transform: value, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withOrientation': { 'function': { args: [{ default: null, enums: ['auto', 'vertical', 'horizontal'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withOrientation(value): { - options+: { - orientation: value, - }, - }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezone(value): { - options+: { - timezone: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTimezoneMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withTimezoneMixin(value): { - options+: { - timezone+: - (if std.isArray(value) - then value - else [value]), - }, - }, - timezone+: - { - '#withTimeZoneUtc': { 'function': { args: [], help: 'Use UTC/GMT timezone' } }, - withTimeZoneUtc(): { - TimeZoneUtc: 'utc', - }, - '#withTimeZoneBrowser': { 'function': { args: [], help: 'Use the timezone defined by end user web browser' } }, - withTimeZoneBrowser(): { - TimeZoneBrowser: 'browser', - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxHeight(value): { - options+: { - tooltip+: { - maxHeight: value, - }, - }, - }, - '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxWidth(value): { - options+: { - tooltip+: { - maxWidth: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/trend.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/trend.libsonnet deleted file mode 100644 index 929422f27..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/trend.libsonnet +++ /dev/null @@ -1,738 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.trend', name: 'trend' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'trend', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisBorderShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisBorderShow: value, - }, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withBarAlignment': { 'function': { args: [{ default: null, enums: [-1, 0, 1], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withBarAlignment(value): { - fieldConfig+: { - defaults+: { - custom+: { - barAlignment: value, - }, - }, - }, - }, - '#withBarMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarMaxWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - barMaxWidth: value, - }, - }, - }, - }, - '#withBarWidthFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withBarWidthFactor(value): { - fieldConfig+: { - defaults+: { - custom+: { - barWidthFactor: value, - }, - }, - }, - }, - '#withDrawStyle': { 'function': { args: [{ default: null, enums: ['line', 'bars', 'points'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withDrawStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - drawStyle: value, - }, - }, - }, - }, - '#withFillBelowTo': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillBelowTo(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillBelowTo: value, - }, - }, - }, - }, - '#withFillColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFillColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillColor: value, - }, - }, - }, - }, - '#withFillOpacity': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFillOpacity(value): { - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: value, - }, - }, - }, - }, - '#withGradientMode': { 'function': { args: [{ default: null, enums: ['none', 'opacity', 'hue', 'scheme'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withGradientMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - gradientMode: value, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withInsertNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'integer'] }], help: '' } }, - withInsertNulls(value): { - fieldConfig+: { - defaults+: { - custom+: { - insertNulls: value, - }, - }, - }, - }, - '#withInsertNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'integer'] }], help: '' } }, - withInsertNullsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - insertNulls+: value, - }, - }, - }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLineColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineColor: value, - }, - }, - }, - }, - '#withLineInterpolation': { 'function': { args: [{ default: null, enums: ['linear', 'smooth', 'stepBefore', 'stepAfter'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLineInterpolation(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineInterpolation: value, - }, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle: value, - }, - }, - }, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: value, - }, - }, - }, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - fill: value, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLineWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointColor: value, - }, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withPointSize(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize: value, - }, - }, - }, - }, - '#withPointSymbol': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPointSymbol(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSymbol: value, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withShowPoints': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withShowPoints(value): { - fieldConfig+: { - defaults+: { - custom+: { - showPoints: value, - }, - }, - }, - }, - '#withSpanNulls': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNulls(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls: value, - }, - }, - }, - }, - '#withSpanNullsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['boolean', 'number'] }], help: 'Indicate if null values should be treated as gaps or connected.\nWhen the value is a number, it represents the maximum delta in the\nX axis that should be considered connected. For timeseries, this is milliseconds' } }, - withSpanNullsMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - spanNulls+: value, - }, - }, - }, - }, - '#withStacking': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStacking(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking: value, - }, - }, - }, - }, - '#withStackingMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withStackingMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: value, - }, - }, - }, - }, - stacking+: - { - '#withGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withGroup(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - group: value, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['none', 'normal', 'percent'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - stacking+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withThresholdsStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle: value, - }, - }, - }, - }, - '#withThresholdsStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withThresholdsStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: value, - }, - }, - }, - }, - thresholdsStyle+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['off', 'line', 'dashed', 'area', 'line+area', 'dashed+area', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - thresholdsStyle+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withTransform': { 'function': { args: [{ default: null, enums: ['constant', 'negative-Y'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withTransform(value): { - fieldConfig+: { - defaults+: { - custom+: { - transform: value, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxHeight(value): { - options+: { - tooltip+: { - maxHeight: value, - }, - }, - }, - '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxWidth(value): { - options+: { - tooltip+: { - maxWidth: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - '#withXField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the x field to use (defaults to first number)' } }, - withXField(value): { - options+: { - xField: value, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/xyChart.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/xyChart.libsonnet deleted file mode 100644 index f8f3a2a20..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panel/xyChart.libsonnet +++ /dev/null @@ -1,1070 +0,0 @@ -// This file is generated, do not manually edit. -(import '../panel.libsonnet') -+ { - '#': { help: 'grafonnet.panel.xyChart', name: 'xyChart' }, - panelOptions+: - { - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'xychart', - }, - }, - fieldConfig+: { - defaults+: { - custom+: - { - '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisBorderShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisBorderShow: value, - }, - }, - }, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisCenteredZero: value, - }, - }, - }, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisColorMode: value, - }, - }, - }, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - axisGridShow: value, - }, - }, - }, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisLabel: value, - }, - }, - }, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisPlacement: value, - }, - }, - }, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMax: value, - }, - }, - }, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisSoftMin: value, - }, - }, - }, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - axisWidth: value, - }, - }, - }, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom: value, - }, - }, - }, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: value, - }, - }, - }, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - legend: value, - }, - }, - }, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - tooltip: value, - }, - }, - }, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - fieldConfig+: { - defaults+: { - custom+: { - hideFrom+: { - viz: value, - }, - }, - }, - }, - }, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLabel(value): { - fieldConfig+: { - defaults+: { - custom+: { - label: value, - }, - }, - }, - }, - '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelValue(value): { - fieldConfig+: { - defaults+: { - custom+: { - labelValue: value, - }, - }, - }, - }, - '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelValueMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - labelValue+: value, - }, - }, - }, - }, - labelValue+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - fieldConfig+: { - defaults+: { - custom+: { - labelValue+: { - field: value, - }, - }, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - fieldConfig+: { - defaults+: { - custom+: { - labelValue+: { - fixed: value, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - labelValue+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLineColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineColor: value, - }, - }, - }, - }, - '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLineColorMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineColor+: value, - }, - }, - }, - }, - lineColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineColor+: { - field: value, - }, - }, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, - withFixed(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineColor+: { - fixed: value, - }, - }, - }, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle: value, - }, - }, - }, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: value, - }, - }, - }, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineStyle+: { - fill: value, - }, - }, - }, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLineWidth(value): { - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: value, - }, - }, - }, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointColor(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointColor: value, - }, - }, - }, - }, - '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointColorMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointColor+: value, - }, - }, - }, - }, - pointColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointColor+: { - field: value, - }, - }, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, - withFixed(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointColor+: { - fixed: value, - }, - }, - }, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointSize(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize: value, - }, - }, - }, - }, - '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointSizeMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize+: value, - }, - }, - }, - }, - pointSize+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize+: { - field: value, - }, - }, - }, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFixed(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize+: { - fixed: value, - }, - }, - }, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMax(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize+: { - max: value, - }, - }, - }, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMin(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize+: { - min: value, - }, - }, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - fieldConfig+: { - defaults+: { - custom+: { - pointSize+: { - mode: value, - }, - }, - }, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution: value, - }, - }, - }, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: value, - }, - }, - }, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - linearThreshold: value, - }, - }, - }, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - log: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - fieldConfig+: { - defaults+: { - custom+: { - scaleDistribution+: { - type: value, - }, - }, - }, - }, - }, - }, - '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: ['string'] }], help: '' } }, - withShow(value): { - fieldConfig+: { - defaults+: { - custom+: { - show: value, - }, - }, - }, - }, - }, - }, - }, - options+: - { - '#withDims': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration for the Table/Auto mode' } }, - withDims(value): { - options+: { - dims: value, - }, - }, - '#withDimsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Configuration for the Table/Auto mode' } }, - withDimsMixin(value): { - options+: { - dims+: value, - }, - }, - dims+: - { - '#withExclude': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExclude(value): { - options+: { - dims+: { - exclude: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withExcludeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExcludeMixin(value): { - options+: { - dims+: { - exclude+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withFrame(value): { - options+: { - dims+: { - frame: value, - }, - }, - }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withX(value): { - options+: { - dims+: { - x: value, - }, - }, - }, - }, - '#withLegend': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegend(value): { - options+: { - legend: value, - }, - }, - '#withLegendMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLegendMixin(value): { - options+: { - legend+: value, - }, - }, - legend+: - { - '#withAsTable': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAsTable(value=true): { - options+: { - legend+: { - asTable: value, - }, - }, - }, - '#withCalcs': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcs(value): { - options+: { - legend+: { - calcs: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withCalcsMixin': { 'function': { args: [{ default: [], enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCalcsMixin(value): { - options+: { - legend+: { - calcs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDisplayMode': { 'function': { args: [{ default: null, enums: ['list', 'table', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs\nNote: "hidden" needs to remain as an option for plugins compatibility' } }, - withDisplayMode(value): { - options+: { - legend+: { - displayMode: value, - }, - }, - }, - '#withIsVisible': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withIsVisible(value=true): { - options+: { - legend+: { - isVisible: value, - }, - }, - }, - '#withPlacement': { 'function': { args: [{ default: null, enums: ['bottom', 'right'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withPlacement(value): { - options+: { - legend+: { - placement: value, - }, - }, - }, - '#withShowLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withShowLegend(value=true): { - options+: { - legend+: { - showLegend: value, - }, - }, - }, - '#withSortBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSortBy(value): { - options+: { - legend+: { - sortBy: value, - }, - }, - }, - '#withSortDesc': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withSortDesc(value=true): { - options+: { - legend+: { - sortDesc: value, - }, - }, - }, - '#withWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withWidth(value): { - options+: { - legend+: { - width: value, - }, - }, - }, - }, - '#withSeries': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Manual Mode' } }, - withSeries(value): { - options+: { - series: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withSeriesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Manual Mode' } }, - withSeriesMixin(value): { - options+: { - series+: - (if std.isArray(value) - then value - else [value]), - }, - }, - series+: - { - '#': { help: '', name: 'series' }, - '#withAxisBorderShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisBorderShow(value=true): { - axisBorderShow: value, - }, - '#withAxisCenteredZero': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisCenteredZero(value=true): { - axisCenteredZero: value, - }, - '#withAxisColorMode': { 'function': { args: [{ default: null, enums: ['text', 'series'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisColorMode(value): { - axisColorMode: value, - }, - '#withAxisGridShow': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withAxisGridShow(value=true): { - axisGridShow: value, - }, - '#withAxisLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAxisLabel(value): { - axisLabel: value, - }, - '#withAxisPlacement': { 'function': { args: [{ default: null, enums: ['auto', 'top', 'right', 'bottom', 'left', 'hidden'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withAxisPlacement(value): { - axisPlacement: value, - }, - '#withAxisSoftMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMax(value): { - axisSoftMax: value, - }, - '#withAxisSoftMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisSoftMin(value): { - axisSoftMin: value, - }, - '#withAxisWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withAxisWidth(value): { - axisWidth: value, - }, - '#withFrame': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFrame(value): { - frame: value, - }, - '#withHideFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFrom(value): { - hideFrom: value, - }, - '#withHideFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withHideFromMixin(value): { - hideFrom+: value, - }, - hideFrom+: - { - '#withLegend': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLegend(value=true): { - hideFrom+: { - legend: value, - }, - }, - '#withTooltip': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withTooltip(value=true): { - hideFrom+: { - tooltip: value, - }, - }, - '#withViz': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withViz(value=true): { - hideFrom+: { - viz: value, - }, - }, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: ['auto', 'never', 'always'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withLabel(value): { - label: value, - }, - '#withLabelValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelValue(value): { - labelValue: value, - }, - '#withLabelValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLabelValueMixin(value): { - labelValue+: value, - }, - labelValue+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - labelValue+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFixed(value): { - labelValue+: { - fixed: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['fixed', 'field', 'template'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - labelValue+: { - mode: value, - }, - }, - }, - '#withLineColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLineColor(value): { - lineColor: value, - }, - '#withLineColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLineColorMixin(value): { - lineColor+: value, - }, - lineColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - lineColor+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, - withFixed(value): { - lineColor+: { - fixed: value, - }, - }, - }, - '#withLineStyle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyle(value): { - lineStyle: value, - }, - '#withLineStyleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withLineStyleMixin(value): { - lineStyle+: value, - }, - lineStyle+: - { - '#withDash': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDash(value): { - lineStyle+: { - dash: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withDashMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withDashMixin(value): { - lineStyle+: { - dash+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withFill': { 'function': { args: [{ default: null, enums: ['solid', 'dash', 'dot', 'square'], name: 'value', type: ['string'] }], help: '' } }, - withFill(value): { - lineStyle+: { - fill: value, - }, - }, - }, - '#withLineWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLineWidth(value): { - lineWidth: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withPointColor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointColor(value): { - pointColor: value, - }, - '#withPointColorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointColorMixin(value): { - pointColor+: value, - }, - pointColor+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - pointColor+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'color value' } }, - withFixed(value): { - pointColor+: { - fixed: value, - }, - }, - }, - '#withPointSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointSize(value): { - pointSize: value, - }, - '#withPointSizeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPointSizeMixin(value): { - pointSize+: value, - }, - pointSize+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'fixed: T -- will be added by each element' } }, - withField(value): { - pointSize+: { - field: value, - }, - }, - '#withFixed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withFixed(value): { - pointSize+: { - fixed: value, - }, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMax(value): { - pointSize+: { - max: value, - }, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMin(value): { - pointSize+: { - min: value, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['linear', 'quad'], name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - pointSize+: { - mode: value, - }, - }, - }, - '#withScaleDistribution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistribution(value): { - scaleDistribution: value, - }, - '#withScaleDistributionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withScaleDistributionMixin(value): { - scaleDistribution+: value, - }, - scaleDistribution+: - { - '#withLinearThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLinearThreshold(value): { - scaleDistribution+: { - linearThreshold: value, - }, - }, - '#withLog': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withLog(value): { - scaleDistribution+: { - log: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['linear', 'log', 'ordinal', 'symlog'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withType(value): { - scaleDistribution+: { - type: value, - }, - }, - }, - '#withShow': { 'function': { args: [{ default: null, enums: ['points', 'lines', 'points+lines'], name: 'value', type: ['string'] }], help: '' } }, - withShow(value): { - show: value, - }, - '#withX': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withX(value): { - x: value, - }, - '#withY': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withY(value): { - y: value, - }, - }, - '#withSeriesMapping': { 'function': { args: [{ default: null, enums: ['auto', 'manual'], name: 'value', type: ['string'] }], help: 'Auto is "table" in the UI' } }, - withSeriesMapping(value): { - options+: { - seriesMapping: value, - }, - }, - '#withTooltip': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltip(value): { - options+: { - tooltip: value, - }, - }, - '#withTooltipMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TODO docs' } }, - withTooltipMixin(value): { - options+: { - tooltip+: value, - }, - }, - tooltip+: - { - '#withMaxHeight': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxHeight(value): { - options+: { - tooltip+: { - maxHeight: value, - }, - }, - }, - '#withMaxWidth': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMaxWidth(value): { - options+: { - tooltip+: { - maxWidth: value, - }, - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: ['single', 'multi', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withMode(value): { - options+: { - tooltip+: { - mode: value, - }, - }, - }, - '#withSort': { 'function': { args: [{ default: null, enums: ['asc', 'desc', 'none'], name: 'value', type: ['string'] }], help: 'TODO docs' } }, - withSort(value): { - options+: { - tooltip+: { - sort: value, - }, - }, - }, - }, - }, -} -+ { - panelOptions+: { - '#withType':: { - ignore: true, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panelindex.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panelindex.libsonnet deleted file mode 100644 index cffcdad00..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/panelindex.libsonnet +++ /dev/null @@ -1,30 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.panel', name: 'panel' }, - alertList: import 'panel/alertList.libsonnet', - annotationsList: import 'panel/annotationsList.libsonnet', - barChart: import 'panel/barChart.libsonnet', - barGauge: import 'panel/barGauge.libsonnet', - candlestick: import 'panel/candlestick.libsonnet', - canvas: import 'panel/canvas.libsonnet', - dashboardList: import 'panel/dashboardList.libsonnet', - datagrid: import 'panel/datagrid.libsonnet', - debug: import 'panel/debug.libsonnet', - gauge: import 'panel/gauge.libsonnet', - geomap: import 'panel/geomap.libsonnet', - heatmap: import 'panel/heatmap.libsonnet', - histogram: import 'panel/histogram.libsonnet', - logs: import 'panel/logs.libsonnet', - news: import 'panel/news.libsonnet', - nodeGraph: import 'panel/nodeGraph.libsonnet', - pieChart: import 'panel/pieChart.libsonnet', - stat: import 'panel/stat.libsonnet', - stateTimeline: import 'panel/stateTimeline.libsonnet', - statusHistory: import 'panel/statusHistory.libsonnet', - table: import 'panel/table.libsonnet', - text: import 'panel/text.libsonnet', - timeSeries: import 'panel/timeSeries.libsonnet', - trend: import 'panel/trend.libsonnet', - xyChart: import 'panel/xyChart.libsonnet', - row: import 'panel/row.libsonnet', -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/preferences.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/preferences.libsonnet deleted file mode 100644 index e91b0377e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/preferences.libsonnet +++ /dev/null @@ -1,88 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.preferences', name: 'preferences' }, - '#withCookiePreferences': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCookiePreferences(value): { - cookiePreferences: value, - }, - '#withCookiePreferencesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCookiePreferencesMixin(value): { - cookiePreferences+: value, - }, - cookiePreferences+: - { - '#withAnalytics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAnalytics(value): { - cookiePreferences+: { - analytics: value, - }, - }, - '#withAnalyticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAnalyticsMixin(value): { - cookiePreferences+: { - analytics+: value, - }, - }, - '#withFunctional': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFunctional(value): { - cookiePreferences+: { - functional: value, - }, - }, - '#withFunctionalMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withFunctionalMixin(value): { - cookiePreferences+: { - functional+: value, - }, - }, - '#withPerformance': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPerformance(value): { - cookiePreferences+: { - performance: value, - }, - }, - '#withPerformanceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPerformanceMixin(value): { - cookiePreferences+: { - performance+: value, - }, - }, - }, - '#withHomeDashboardUID': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'UID for the home dashboard' } }, - withHomeDashboardUID(value): { - homeDashboardUID: value, - }, - '#withLanguage': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Selected language (beta)' } }, - withLanguage(value): { - language: value, - }, - '#withQueryHistory': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQueryHistory(value): { - queryHistory: value, - }, - '#withQueryHistoryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQueryHistoryMixin(value): { - queryHistory+: value, - }, - queryHistory+: - { - '#withHomeTab': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "one of: '' | 'query' | 'starred';" } }, - withHomeTab(value): { - queryHistory+: { - homeTab: value, - }, - }, - }, - '#withTheme': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'light, dark, empty is default' } }, - withTheme(value): { - theme: value, - }, - '#withTimezone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The timezone selection\nTODO: this should use the timezone defined in common' } }, - withTimezone(value): { - timezone: value, - }, - '#withWeekStart': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'day of the week (sunday, monday, etc)' } }, - withWeekStart(value): { - weekStart: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/publicdashboard.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/publicdashboard.libsonnet deleted file mode 100644 index 200e63821..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/publicdashboard.libsonnet +++ /dev/null @@ -1,28 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.publicdashboard', name: 'publicdashboard' }, - '#withAccessToken': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique public access token' } }, - withAccessToken(value): { - accessToken: value, - }, - '#withAnnotationsEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Flag that indicates if annotations are enabled' } }, - withAnnotationsEnabled(value=true): { - annotationsEnabled: value, - }, - '#withDashboardUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Dashboard unique identifier referenced by this public dashboard' } }, - withDashboardUid(value): { - dashboardUid: value, - }, - '#withIsEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Flag that indicates if the public dashboard is enabled' } }, - withIsEnabled(value=true): { - isEnabled: value, - }, - '#withTimeSelectionEnabled': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Flag that indicates if the time range picker is enabled' } }, - withTimeSelectionEnabled(value=true): { - timeSelectionEnabled: value, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Unique public dashboard identifier' } }, - withUid(value): { - uid: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query.libsonnet deleted file mode 100644 index 129a0ea0c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query.libsonnet +++ /dev/null @@ -1,15 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query', name: 'query' }, - azureMonitor: import 'query/azureMonitor.libsonnet', - cloudWatch: import 'query/cloudWatch.libsonnet', - elasticsearch: import 'query/elasticsearch.libsonnet', - expr: import 'query/expr.libsonnet', - googleCloudMonitoring: import 'query/googleCloudMonitoring.libsonnet', - grafanaPyroscope: import 'query/grafanaPyroscope.libsonnet', - loki: import 'query/loki.libsonnet', - parca: import 'query/parca.libsonnet', - prometheus: import 'query/prometheus.libsonnet', - tempo: import 'query/tempo.libsonnet', - testData: import 'query/testData.libsonnet', -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/azureMonitor.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/azureMonitor.libsonnet deleted file mode 100644 index 0188b394d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/azureMonitor.libsonnet +++ /dev/null @@ -1,860 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.azureMonitor', name: 'azureMonitor' }, - '#withAzureLogAnalytics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Azure Monitor Logs sub-query properties' } }, - withAzureLogAnalytics(value): { - azureLogAnalytics: value, - }, - '#withAzureLogAnalyticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Azure Monitor Logs sub-query properties' } }, - withAzureLogAnalyticsMixin(value): { - azureLogAnalytics+: value, - }, - azureLogAnalytics+: - { - '#withDashboardTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If set to true the dashboard time range will be used as a filter for the query. Otherwise the query time ranges will be used. Defaults to false.' } }, - withDashboardTime(value=true): { - azureLogAnalytics+: { - dashboardTime: value, - }, - }, - '#withIntersectTime': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '@deprecated Use dashboardTime instead' } }, - withIntersectTime(value=true): { - azureLogAnalytics+: { - intersectTime: value, - }, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'KQL query to be executed.' } }, - withQuery(value): { - azureLogAnalytics+: { - query: value, - }, - }, - '#withResource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use resources instead' } }, - withResource(value): { - azureLogAnalytics+: { - resource: value, - }, - }, - '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, - withResources(value): { - azureLogAnalytics+: { - resources: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, - withResourcesMixin(value): { - azureLogAnalytics+: { - resources+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withResultFormat': { 'function': { args: [{ default: null, enums: ['table', 'time_series', 'trace', 'logs'], name: 'value', type: ['string'] }], help: '' } }, - withResultFormat(value): { - azureLogAnalytics+: { - resultFormat: value, - }, - }, - '#withTimeColumn': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'If dashboardTime is set to true this value dictates which column the time filter will be applied to. Defaults to the first tables timeSpan column, the first datetime column found, or TimeGenerated' } }, - withTimeColumn(value): { - azureLogAnalytics+: { - timeColumn: value, - }, - }, - '#withWorkspace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Workspace ID. This was removed in Grafana 8, but remains for backwards compat.' } }, - withWorkspace(value): { - azureLogAnalytics+: { - workspace: value, - }, - }, - }, - '#withAzureMonitor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAzureMonitor(value): { - azureMonitor: value, - }, - '#withAzureMonitorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAzureMonitorMixin(value): { - azureMonitor+: value, - }, - azureMonitor+: - { - '#withAggregation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The aggregation to be used within the query. Defaults to the primaryAggregationType defined by the metric.' } }, - withAggregation(value): { - azureMonitor+: { - aggregation: value, - }, - }, - '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Aliases can be set to modify the legend labels. e.g. {{ resourceGroup }}. See docs for more detail.' } }, - withAlias(value): { - azureMonitor+: { - alias: value, - }, - }, - '#withAllowedTimeGrainsMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Time grains that are supported by the metric.' } }, - withAllowedTimeGrainsMs(value): { - azureMonitor+: { - allowedTimeGrainsMs: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withAllowedTimeGrainsMsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Time grains that are supported by the metric.' } }, - withAllowedTimeGrainsMsMixin(value): { - azureMonitor+: { - allowedTimeGrainsMs+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withCustomNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "Used as the value for the metricNamespace property when it's different from the resource namespace." } }, - withCustomNamespace(value): { - azureMonitor+: { - customNamespace: value, - }, - }, - '#withDimension': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration' } }, - withDimension(value): { - azureMonitor+: { - dimension: value, - }, - }, - '#withDimensionFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration' } }, - withDimensionFilter(value): { - azureMonitor+: { - dimensionFilter: value, - }, - }, - '#withDimensionFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.' } }, - withDimensionFilters(value): { - azureMonitor+: { - dimensionFilters: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withDimensionFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.' } }, - withDimensionFiltersMixin(value): { - azureMonitor+: { - dimensionFilters+: - (if std.isArray(value) - then value - else [value]), - }, - }, - dimensionFilters+: - { - '#': { help: '', name: 'dimensionFilters' }, - '#withDimension': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of Dimension to be filtered on.' } }, - withDimension(value): { - dimension: value, - }, - '#withFilter': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated filter is deprecated in favour of filters to support multiselect.' } }, - withFilter(value): { - filter: value, - }, - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Values to match with the filter.' } }, - withFilters(value): { - filters: - (if std.isArray(value) - then value - else [value]), - }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Values to match with the filter.' } }, - withFiltersMixin(value): { - filters+: - (if std.isArray(value) - then value - else [value]), - }, - '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "String denoting the filter operation. Supports 'eq' - equals,'ne' - not equals, 'sw' - starts with. Note that some dimensions may not support all operators." } }, - withOperator(value): { - operator: value, - }, - }, - '#withMetricDefinition': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use metricNamespace instead' } }, - withMetricDefinition(value): { - azureMonitor+: { - metricDefinition: value, - }, - }, - '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The metric to query data for within the specified metricNamespace. e.g. UsedCapacity' } }, - withMetricName(value): { - azureMonitor+: { - metricName: value, - }, - }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "metricNamespace is used as the resource type (or resource namespace).\nIt's usually equal to the target metric namespace. e.g. microsoft.storage/storageaccounts\nKept the name of the variable as metricNamespace to avoid backward incompatibility issues." } }, - withMetricNamespace(value): { - azureMonitor+: { - metricNamespace: value, - }, - }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The Azure region containing the resource(s).' } }, - withRegion(value): { - azureMonitor+: { - region: value, - }, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use resources instead' } }, - withResourceGroup(value): { - azureMonitor+: { - resourceGroup: value, - }, - }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use resources instead' } }, - withResourceName(value): { - azureMonitor+: { - resourceName: value, - }, - }, - '#withResourceUri': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Use resourceGroup, resourceName and metricNamespace instead' } }, - withResourceUri(value): { - azureMonitor+: { - resourceUri: value, - }, - }, - '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, - withResources(value): { - azureMonitor+: { - resources: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, - withResourcesMixin(value): { - azureMonitor+: { - resources+: - (if std.isArray(value) - then value - else [value]), - }, - }, - resources+: - { - '#': { help: '', name: 'resources' }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMetricNamespace(value): { - metricNamespace: value, - }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRegion(value): { - region: value, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceGroup(value): { - resourceGroup: value, - }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceName(value): { - resourceName: value, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - subscription: value, - }, - }, - '#withTimeGrain': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The granularity of data points to be queried. Defaults to auto.' } }, - withTimeGrain(value): { - azureMonitor+: { - timeGrain: value, - }, - }, - '#withTimeGrainUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated' } }, - withTimeGrainUnit(value): { - azureMonitor+: { - timeGrainUnit: value, - }, - }, - '#withTop': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Maximum number of records to return. Defaults to 10.' } }, - withTop(value): { - azureMonitor+: { - top: value, - }, - }, - }, - '#withAzureResourceGraph': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAzureResourceGraph(value): { - azureResourceGraph: value, - }, - '#withAzureResourceGraphMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAzureResourceGraphMixin(value): { - azureResourceGraph+: value, - }, - azureResourceGraph+: - { - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Azure Resource Graph KQL query to be executed.' } }, - withQuery(value): { - azureResourceGraph+: { - query: value, - }, - }, - '#withResultFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specifies the format results should be returned as. Defaults to table.' } }, - withResultFormat(value): { - azureResourceGraph+: { - resultFormat: value, - }, - }, - }, - '#withAzureTraces': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Application Insights Traces sub-query properties' } }, - withAzureTraces(value): { - azureTraces: value, - }, - '#withAzureTracesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Application Insights Traces sub-query properties' } }, - withAzureTracesMixin(value): { - azureTraces+: value, - }, - azureTraces+: - { - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters for property values.' } }, - withFilters(value): { - azureTraces+: { - filters: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters for property values.' } }, - withFiltersMixin(value): { - azureTraces+: { - filters+: - (if std.isArray(value) - then value - else [value]), - }, - }, - filters+: - { - '#': { help: '', name: 'filters' }, - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Values to filter by.' } }, - withFilters(value): { - filters: - (if std.isArray(value) - then value - else [value]), - }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Values to filter by.' } }, - withFiltersMixin(value): { - filters+: - (if std.isArray(value) - then value - else [value]), - }, - '#withOperation': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Comparison operator to use. Either equals or not equals.' } }, - withOperation(value): { - operation: value, - }, - '#withProperty': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Property name, auto-populated based on available traces.' } }, - withProperty(value): { - property: value, - }, - }, - '#withOperationId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Operation ID. Used only for Traces queries.' } }, - withOperationId(value): { - azureTraces+: { - operationId: value, - }, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'KQL query to be executed.' } }, - withQuery(value): { - azureTraces+: { - query: value, - }, - }, - '#withResources': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, - withResources(value): { - azureTraces+: { - resources: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withResourcesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of resource URIs to be queried.' } }, - withResourcesMixin(value): { - azureTraces+: { - resources+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withResultFormat': { 'function': { args: [{ default: null, enums: ['table', 'time_series', 'trace', 'logs'], name: 'value', type: ['string'] }], help: '' } }, - withResultFormat(value): { - azureTraces+: { - resultFormat: value, - }, - }, - '#withTraceTypes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Types of events to filter by.' } }, - withTraceTypes(value): { - azureTraces+: { - traceTypes: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTraceTypesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Types of events to filter by.' } }, - withTraceTypesMixin(value): { - azureTraces+: { - traceTypes+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasourceMixin(value): { - datasource+: value, - }, - '#withGrafanaTemplateVariableFn': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object', 'object', 'object', 'object', 'object', 'object', 'object', 'object', 'object'] }], help: '' } }, - withGrafanaTemplateVariableFn(value): { - grafanaTemplateVariableFn: value, - }, - '#withGrafanaTemplateVariableFnMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object', 'object', 'object', 'object', 'object', 'object', 'object', 'object', 'object'] }], help: '' } }, - withGrafanaTemplateVariableFnMixin(value): { - grafanaTemplateVariableFn+: value, - }, - grafanaTemplateVariableFn+: - { - '#withAppInsightsMetricNameQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAppInsightsMetricNameQuery(value): { - grafanaTemplateVariableFn+: { - AppInsightsMetricNameQuery: value, - }, - }, - '#withAppInsightsMetricNameQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAppInsightsMetricNameQueryMixin(value): { - grafanaTemplateVariableFn+: { - AppInsightsMetricNameQuery+: value, - }, - }, - AppInsightsMetricNameQuery+: - { - '#withKind': { 'function': { args: [], help: '' } }, - withKind(): { - grafanaTemplateVariableFn+: { - kind: 'AppInsightsMetricNameQuery', - }, - }, - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - }, - '#withAppInsightsGroupByQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAppInsightsGroupByQuery(value): { - grafanaTemplateVariableFn+: { - AppInsightsGroupByQuery: value, - }, - }, - '#withAppInsightsGroupByQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withAppInsightsGroupByQueryMixin(value): { - grafanaTemplateVariableFn+: { - AppInsightsGroupByQuery+: value, - }, - }, - AppInsightsGroupByQuery+: - { - '#withKind': { 'function': { args: [], help: '' } }, - withKind(): { - grafanaTemplateVariableFn+: { - kind: 'AppInsightsGroupByQuery', - }, - }, - '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMetricName(value): { - grafanaTemplateVariableFn+: { - metricName: value, - }, - }, - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - }, - '#withSubscriptionsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSubscriptionsQuery(value): { - grafanaTemplateVariableFn+: { - SubscriptionsQuery: value, - }, - }, - '#withSubscriptionsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSubscriptionsQueryMixin(value): { - grafanaTemplateVariableFn+: { - SubscriptionsQuery+: value, - }, - }, - SubscriptionsQuery+: - { - '#withKind': { 'function': { args: [], help: '' } }, - withKind(): { - grafanaTemplateVariableFn+: { - kind: 'SubscriptionsQuery', - }, - }, - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - }, - '#withResourceGroupsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withResourceGroupsQuery(value): { - grafanaTemplateVariableFn+: { - ResourceGroupsQuery: value, - }, - }, - '#withResourceGroupsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withResourceGroupsQueryMixin(value): { - grafanaTemplateVariableFn+: { - ResourceGroupsQuery+: value, - }, - }, - ResourceGroupsQuery+: - { - '#withKind': { 'function': { args: [], help: '' } }, - withKind(): { - grafanaTemplateVariableFn+: { - kind: 'ResourceGroupsQuery', - }, - }, - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - grafanaTemplateVariableFn+: { - subscription: value, - }, - }, - }, - '#withResourceNamesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withResourceNamesQuery(value): { - grafanaTemplateVariableFn+: { - ResourceNamesQuery: value, - }, - }, - '#withResourceNamesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withResourceNamesQueryMixin(value): { - grafanaTemplateVariableFn+: { - ResourceNamesQuery+: value, - }, - }, - ResourceNamesQuery+: - { - '#withKind': { 'function': { args: [], help: '' } }, - withKind(): { - grafanaTemplateVariableFn+: { - kind: 'ResourceNamesQuery', - }, - }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMetricNamespace(value): { - grafanaTemplateVariableFn+: { - metricNamespace: value, - }, - }, - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceGroup(value): { - grafanaTemplateVariableFn+: { - resourceGroup: value, - }, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - grafanaTemplateVariableFn+: { - subscription: value, - }, - }, - }, - '#withMetricNamespaceQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMetricNamespaceQuery(value): { - grafanaTemplateVariableFn+: { - MetricNamespaceQuery: value, - }, - }, - '#withMetricNamespaceQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMetricNamespaceQueryMixin(value): { - grafanaTemplateVariableFn+: { - MetricNamespaceQuery+: value, - }, - }, - MetricNamespaceQuery+: - { - '#withKind': { 'function': { args: [], help: '' } }, - withKind(): { - grafanaTemplateVariableFn+: { - kind: 'MetricNamespaceQuery', - }, - }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMetricNamespace(value): { - grafanaTemplateVariableFn+: { - metricNamespace: value, - }, - }, - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceGroup(value): { - grafanaTemplateVariableFn+: { - resourceGroup: value, - }, - }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceName(value): { - grafanaTemplateVariableFn+: { - resourceName: value, - }, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - grafanaTemplateVariableFn+: { - subscription: value, - }, - }, - }, - '#withMetricDefinitionsQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '@deprecated Use MetricNamespaceQuery instead' } }, - withMetricDefinitionsQuery(value): { - grafanaTemplateVariableFn+: { - MetricDefinitionsQuery: value, - }, - }, - '#withMetricDefinitionsQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '@deprecated Use MetricNamespaceQuery instead' } }, - withMetricDefinitionsQueryMixin(value): { - grafanaTemplateVariableFn+: { - MetricDefinitionsQuery+: value, - }, - }, - MetricDefinitionsQuery+: - { - '#withKind': { 'function': { args: [], help: '' } }, - withKind(): { - grafanaTemplateVariableFn+: { - kind: 'MetricDefinitionsQuery', - }, - }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMetricNamespace(value): { - grafanaTemplateVariableFn+: { - metricNamespace: value, - }, - }, - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceGroup(value): { - grafanaTemplateVariableFn+: { - resourceGroup: value, - }, - }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceName(value): { - grafanaTemplateVariableFn+: { - resourceName: value, - }, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - grafanaTemplateVariableFn+: { - subscription: value, - }, - }, - }, - '#withMetricNamesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMetricNamesQuery(value): { - grafanaTemplateVariableFn+: { - MetricNamesQuery: value, - }, - }, - '#withMetricNamesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMetricNamesQueryMixin(value): { - grafanaTemplateVariableFn+: { - MetricNamesQuery+: value, - }, - }, - MetricNamesQuery+: - { - '#withKind': { 'function': { args: [], help: '' } }, - withKind(): { - grafanaTemplateVariableFn+: { - kind: 'MetricNamesQuery', - }, - }, - '#withMetricNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMetricNamespace(value): { - grafanaTemplateVariableFn+: { - metricNamespace: value, - }, - }, - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceGroup(value): { - grafanaTemplateVariableFn+: { - resourceGroup: value, - }, - }, - '#withResourceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResourceName(value): { - grafanaTemplateVariableFn+: { - resourceName: value, - }, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - grafanaTemplateVariableFn+: { - subscription: value, - }, - }, - }, - '#withWorkspacesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withWorkspacesQuery(value): { - grafanaTemplateVariableFn+: { - WorkspacesQuery: value, - }, - }, - '#withWorkspacesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withWorkspacesQueryMixin(value): { - grafanaTemplateVariableFn+: { - WorkspacesQuery+: value, - }, - }, - WorkspacesQuery+: - { - '#withKind': { 'function': { args: [], help: '' } }, - withKind(): { - grafanaTemplateVariableFn+: { - kind: 'WorkspacesQuery', - }, - }, - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSubscription(value): { - grafanaTemplateVariableFn+: { - subscription: value, - }, - }, - }, - '#withUnknownQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUnknownQuery(value): { - grafanaTemplateVariableFn+: { - UnknownQuery: value, - }, - }, - '#withUnknownQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUnknownQueryMixin(value): { - grafanaTemplateVariableFn+: { - UnknownQuery+: value, - }, - }, - UnknownQuery+: - { - '#withKind': { 'function': { args: [], help: '' } }, - withKind(): { - grafanaTemplateVariableFn+: { - kind: 'UnknownQuery', - }, - }, - '#withRawQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawQuery(value): { - grafanaTemplateVariableFn+: { - rawQuery: value, - }, - }, - }, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, - withHide(value=true): { - hide: value, - }, - '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withNamespace(value): { - namespace: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Azure Monitor query type.\nqueryType: #AzureQueryType' } }, - withRegion(value): { - region: value, - }, - '#withResource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withResource(value): { - resource: value, - }, - '#withResourceGroup': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Template variables params. These exist for backwards compatiblity with legacy template variables.' } }, - withResourceGroup(value): { - resourceGroup: value, - }, - '#withSubscription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Azure subscription containing the resource(s) to be queried.' } }, - withSubscription(value): { - subscription: value, - }, - '#withSubscriptions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Subscriptions to be queried via Azure Resource Graph.' } }, - withSubscriptions(value): { - subscriptions: - (if std.isArray(value) - then value - else [value]), - }, - '#withSubscriptionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Subscriptions to be queried via Azure Resource Graph.' } }, - withSubscriptionsMixin(value): { - subscriptions+: - (if std.isArray(value) - then value - else [value]), - }, -} -+ (import '../custom/query/azureMonitor.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/cloudWatch.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/cloudWatch.libsonnet deleted file mode 100644 index fa54d6e12..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/cloudWatch.libsonnet +++ /dev/null @@ -1,693 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.cloudWatch', name: 'cloudWatch' }, - CloudWatchAnnotationQuery+: - { - '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.' } }, - withAccountId(value): { - accountId: value, - }, - '#withActionPrefix': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Use this parameter to filter the results of the operation to only those alarms\nthat use a certain alarm action. For example, you could specify the ARN of\nan SNS topic to find all alarms that send notifications to that topic.\ne.g. `arn:aws:sns:us-east-1:123456789012:my-app-` would match `arn:aws:sns:us-east-1:123456789012:my-app-action`\nbut not match `arn:aws:sns:us-east-1:123456789012:your-app-action`' } }, - withActionPrefix(value): { - actionPrefix: value, - }, - '#withAlarmNamePrefix': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'An alarm name prefix. If you specify this parameter, you receive information\nabout all alarms that have names that start with this prefix.\ne.g. `my-team-service-` would match `my-team-service-high-cpu` but not match `your-team-service-high-cpu`' } }, - withAlarmNamePrefix(value): { - alarmNamePrefix: value, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasourceMixin(value): { - datasource+: value, - }, - '#withDimensions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, - withDimensions(value): { - dimensions: value, - }, - '#withDimensionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, - withDimensionsMixin(value): { - dimensions+: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, - withHide(value=true): { - hide: value, - }, - '#withMatchExact': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Only show metrics that exactly match all defined dimension names.' } }, - withMatchExact(value=true): { - matchExact: value, - }, - '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the metric' } }, - withMetricName(value): { - metricName: value, - }, - '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.' } }, - withNamespace(value): { - namespace: value, - }, - '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes" } }, - withPeriod(value): { - period: value, - }, - '#withPrefixMatching': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Enable matching on the prefix of the action name or alarm name, specify the prefixes with actionPrefix and/or alarmNamePrefix' } }, - withPrefixMatching(value=true): { - prefixMatching: value, - }, - '#withQueryMode': { 'function': { args: [{ default: null, enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: ['string'] }], help: '' } }, - withQueryMode(value): { - queryMode: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'AWS region to query for the metric' } }, - withRegion(value): { - region: value, - }, - '#withStatistic': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.' } }, - withStatistic(value): { - statistic: value, - }, - '#withStatistics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use statistic' } }, - withStatistics(value): { - statistics: - (if std.isArray(value) - then value - else [value]), - }, - '#withStatisticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use statistic' } }, - withStatisticsMixin(value): { - statistics+: - (if std.isArray(value) - then value - else [value]), - }, - }, - CloudWatchLogsQuery+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasourceMixin(value): { - datasource+: value, - }, - '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The CloudWatch Logs Insights query to execute' } }, - withExpression(value): { - expression: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withLogGroupNames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use logGroups' } }, - withLogGroupNames(value): { - logGroupNames: - (if std.isArray(value) - then value - else [value]), - }, - '#withLogGroupNamesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use logGroups' } }, - withLogGroupNamesMixin(value): { - logGroupNames+: - (if std.isArray(value) - then value - else [value]), - }, - '#withLogGroups': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Log groups to query' } }, - withLogGroups(value): { - logGroups: - (if std.isArray(value) - then value - else [value]), - }, - '#withLogGroupsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Log groups to query' } }, - withLogGroupsMixin(value): { - logGroups+: - (if std.isArray(value) - then value - else [value]), - }, - logGroups+: - { - '#': { help: '', name: 'logGroups' }, - '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'AccountId of the log group' } }, - withAccountId(value): { - accountId: value, - }, - '#withAccountLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Label of the log group' } }, - withAccountLabel(value): { - accountLabel: value, - }, - '#withArn': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'ARN of the log group' } }, - withArn(value): { - arn: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the log group' } }, - withName(value): { - name: value, - }, - }, - '#withQueryMode': { 'function': { args: [{ default: null, enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: ['string'] }], help: '' } }, - withQueryMode(value): { - queryMode: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'AWS region to query for the logs' } }, - withRegion(value): { - region: value, - }, - '#withStatsGroups': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Fields to group the results by, this field is automatically populated whenever the query is updated' } }, - withStatsGroups(value): { - statsGroups: - (if std.isArray(value) - then value - else [value]), - }, - '#withStatsGroupsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Fields to group the results by, this field is automatically populated whenever the query is updated' } }, - withStatsGroupsMixin(value): { - statsGroups+: - (if std.isArray(value) - then value - else [value]), - }, - }, - CloudWatchMetricsQuery+: - { - '#withAccountId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.' } }, - withAccountId(value): { - accountId: value, - }, - '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Deprecated: use label\n@deprecated use label' } }, - withAlias(value): { - alias: value, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasourceMixin(value): { - datasource+: value, - }, - '#withDimensions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, - withDimensions(value): { - dimensions: value, - }, - '#withDimensionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.' } }, - withDimensionsMixin(value): { - dimensions+: value, - }, - '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Math expression query' } }, - withExpression(value): { - expression: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'ID can be used to reference other queries in math expressions. The ID can include numbers, letters, and underscore, and must start with a lowercase letter.' } }, - withId(value): { - id: value, - }, - '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Change the time series legend names using dynamic labels. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html for more details.' } }, - withLabel(value): { - label: value, - }, - '#withMatchExact': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Only show metrics that exactly match all defined dimension names.' } }, - withMatchExact(value=true): { - matchExact: value, - }, - '#withMetricEditorMode': { 'function': { args: [{ default: null, enums: [0, 1], name: 'value', type: ['string'] }], help: '' } }, - withMetricEditorMode(value): { - metricEditorMode: value, - }, - '#withMetricName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the metric' } }, - withMetricName(value): { - metricName: value, - }, - '#withMetricQueryType': { 'function': { args: [{ default: null, enums: [0, 1], name: 'value', type: ['string'] }], help: '' } }, - withMetricQueryType(value): { - metricQueryType: value, - }, - '#withNamespace': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.' } }, - withNamespace(value): { - namespace: value, - }, - '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: "The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes" } }, - withPeriod(value): { - period: value, - }, - '#withQueryMode': { 'function': { args: [{ default: null, enums: ['Metrics', 'Logs', 'Annotations'], name: 'value', type: ['string'] }], help: '' } }, - withQueryMode(value): { - queryMode: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withRegion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'AWS region to query for the metric' } }, - withRegion(value): { - region: value, - }, - '#withSql': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSql(value): { - sql: value, - }, - '#withSqlMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSqlMixin(value): { - sql+: value, - }, - sql+: - { - '#withFrom': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object'] }], help: 'FROM part of the SQL expression' } }, - withFrom(value): { - sql+: { - from: value, - }, - }, - '#withFromMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object'] }], help: 'FROM part of the SQL expression' } }, - withFromMixin(value): { - sql+: { - from+: value, - }, - }, - from+: - { - '#withQueryEditorPropertyExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQueryEditorPropertyExpression(value): { - sql+: { - from+: { - QueryEditorPropertyExpression: value, - }, - }, - }, - '#withQueryEditorPropertyExpressionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQueryEditorPropertyExpressionMixin(value): { - sql+: { - from+: { - QueryEditorPropertyExpression+: value, - }, - }, - }, - QueryEditorPropertyExpression+: - { - '#withProperty': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withProperty(value): { - sql+: { - from+: { - property: value, - }, - }, - }, - '#withPropertyMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPropertyMixin(value): { - sql+: { - from+: { - property+: value, - }, - }, - }, - property+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - sql+: { - from+: { - property+: { - name: value, - }, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['string'], name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - sql+: { - from+: { - property+: { - type: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - sql+: { - from+: { - type: 'property', - }, - }, - }, - }, - '#withQueryEditorFunctionExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQueryEditorFunctionExpression(value): { - sql+: { - from+: { - QueryEditorFunctionExpression: value, - }, - }, - }, - '#withQueryEditorFunctionExpressionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQueryEditorFunctionExpressionMixin(value): { - sql+: { - from+: { - QueryEditorFunctionExpression+: value, - }, - }, - }, - QueryEditorFunctionExpression+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - sql+: { - from+: { - name: value, - }, - }, - }, - '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParameters(value): { - sql+: { - from+: { - parameters: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParametersMixin(value): { - sql+: { - from+: { - parameters+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - parameters+: - { - '#': { help: '', name: 'parameters' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'functionParameter', - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - sql+: { - from+: { - type: 'function', - }, - }, - }, - }, - }, - '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withGroupBy(value): { - sql+: { - groupBy: value, - }, - }, - '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withGroupByMixin(value): { - sql+: { - groupBy+: value, - }, - }, - groupBy+: - { - '#withExpressions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExpressions(value): { - sql+: { - groupBy+: { - expressions: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withExpressionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExpressionsMixin(value): { - sql+: { - groupBy+: { - expressions+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['and', 'or'], name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - sql+: { - groupBy+: { - type: value, - }, - }, - }, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'LIMIT part of the SQL expression' } }, - withLimit(value): { - sql+: { - limit: value, - }, - }, - '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOrderBy(value): { - sql+: { - orderBy: value, - }, - }, - '#withOrderByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOrderByMixin(value): { - sql+: { - orderBy+: value, - }, - }, - orderBy+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - sql+: { - orderBy+: { - name: value, - }, - }, - }, - '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParameters(value): { - sql+: { - orderBy+: { - parameters: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParametersMixin(value): { - sql+: { - orderBy+: { - parameters+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - parameters+: - { - '#': { help: '', name: 'parameters' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'functionParameter', - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - sql+: { - orderBy+: { - type: 'function', - }, - }, - }, - }, - '#withOrderByDirection': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The sort order of the SQL expression, `ASC` or `DESC`' } }, - withOrderByDirection(value): { - sql+: { - orderByDirection: value, - }, - }, - '#withSelect': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSelect(value): { - sql+: { - select: value, - }, - }, - '#withSelectMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSelectMixin(value): { - sql+: { - select+: value, - }, - }, - select+: - { - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - sql+: { - select+: { - name: value, - }, - }, - }, - '#withParameters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParameters(value): { - sql+: { - select+: { - parameters: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withParametersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParametersMixin(value): { - sql+: { - select+: { - parameters+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - parameters+: - { - '#': { help: '', name: 'parameters' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'functionParameter', - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - sql+: { - select+: { - type: 'function', - }, - }, - }, - }, - '#withWhere': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withWhere(value): { - sql+: { - where: value, - }, - }, - '#withWhereMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withWhereMixin(value): { - sql+: { - where+: value, - }, - }, - where+: - { - '#withExpressions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExpressions(value): { - sql+: { - where+: { - expressions: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withExpressionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withExpressionsMixin(value): { - sql+: { - where+: { - expressions+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['and', 'or'], name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - sql+: { - where+: { - type: value, - }, - }, - }, - }, - }, - '#withSqlExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'When the metric query type is `metricQueryType` is set to `Query`, this field is used to specify the query string.' } }, - withSqlExpression(value): { - sqlExpression: value, - }, - '#withStatistic': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.' } }, - withStatistic(value): { - statistic: value, - }, - '#withStatistics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use statistic' } }, - withStatistics(value): { - statistics: - (if std.isArray(value) - then value - else [value]), - }, - '#withStatisticsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '@deprecated use statistic' } }, - withStatisticsMixin(value): { - statistics+: - (if std.isArray(value) - then value - else [value]), - }, - }, -} -+ (import '../custom/query/cloudWatch.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/elasticsearch.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/elasticsearch.libsonnet deleted file mode 100644 index 99171aa32..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/elasticsearch.libsonnet +++ /dev/null @@ -1,1452 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.elasticsearch', name: 'elasticsearch' }, - '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alias pattern' } }, - withAlias(value): { - alias: value, - }, - '#withBucketAggs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of bucket aggregations' } }, - withBucketAggs(value): { - bucketAggs: - (if std.isArray(value) - then value - else [value]), - }, - '#withBucketAggsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of bucket aggregations' } }, - withBucketAggsMixin(value): { - bucketAggs+: - (if std.isArray(value) - then value - else [value]), - }, - bucketAggs+: - { - DateHistogram+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInterval(value): { - settings+: { - interval: value, - }, - }, - '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMinDocCount(value): { - settings+: { - min_doc_count: value, - }, - }, - '#withOffset': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withOffset(value): { - settings+: { - offset: value, - }, - }, - '#withTimeZone': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTimeZone(value): { - settings+: { - timeZone: value, - }, - }, - '#withTrimEdges': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withTrimEdges(value): { - settings+: { - trimEdges: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'date_histogram', - }, - }, - Histogram+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInterval(value): { - settings+: { - interval: value, - }, - }, - '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMinDocCount(value): { - settings+: { - min_doc_count: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'histogram', - }, - }, - Terms+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMinDocCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMinDocCount(value): { - settings+: { - min_doc_count: value, - }, - }, - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - '#withOrder': { 'function': { args: [{ default: null, enums: ['desc', 'asc'], name: 'value', type: ['string'] }], help: '' } }, - withOrder(value): { - settings+: { - order: value, - }, - }, - '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withOrderBy(value): { - settings+: { - orderBy: value, - }, - }, - '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSize(value): { - settings+: { - size: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'terms', - }, - }, - Filters+: - { - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFilters(value): { - settings+: { - filters: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFiltersMixin(value): { - settings+: { - filters+: - (if std.isArray(value) - then value - else [value]), - }, - }, - filters+: - { - '#': { help: '', name: 'filters' }, - '#withLabel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLabel(value): { - label: value, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withQuery(value): { - query: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'filters', - }, - }, - GeoHashGrid+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withPrecision': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPrecision(value): { - settings+: { - precision: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'geohash_grid', - }, - }, - Nested+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'nested', - }, - }, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasourceMixin(value): { - datasource+: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, - withHide(value=true): { - hide: value, - }, - '#withMetrics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of metric aggregations' } }, - withMetrics(value): { - metrics: - (if std.isArray(value) - then value - else [value]), - }, - '#withMetricsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'List of metric aggregations' } }, - withMetricsMixin(value): { - metrics+: - (if std.isArray(value) - then value - else [value]), - }, - metrics+: - { - Count+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'count', - }, - }, - PipelineMetricAggregation+: - { - MovingAverage+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'moving_avg', - }, - }, - Derivative+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUnit(value): { - settings+: { - unit: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'derivative', - }, - }, - CumulativeSum+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFormat(value): { - settings+: { - format: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'cumulative_sum', - }, - }, - BucketScript+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withPipelineVariables': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPipelineVariables(value): { - pipelineVariables: - (if std.isArray(value) - then value - else [value]), - }, - '#withPipelineVariablesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPipelineVariablesMixin(value): { - pipelineVariables+: - (if std.isArray(value) - then value - else [value]), - }, - pipelineVariables+: - { - '#': { help: '', name: 'pipelineVariables' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'bucket_script', - }, - }, - }, - MetricAggregationWithSettings+: - { - BucketScript+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withPipelineVariables': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPipelineVariables(value): { - pipelineVariables: - (if std.isArray(value) - then value - else [value]), - }, - '#withPipelineVariablesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPipelineVariablesMixin(value): { - pipelineVariables+: - (if std.isArray(value) - then value - else [value]), - }, - pipelineVariables+: - { - '#': { help: '', name: 'pipelineVariables' }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'bucket_script', - }, - }, - CumulativeSum+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withFormat(value): { - settings+: { - format: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'cumulative_sum', - }, - }, - Derivative+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUnit(value): { - settings+: { - unit: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'derivative', - }, - }, - SerialDiff+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withLag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLag(value): { - settings+: { - lag: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'serial_diff', - }, - }, - RawData+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSize(value): { - settings+: { - size: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'raw_data', - }, - }, - RawDocument+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withSize': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSize(value): { - settings+: { - size: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'raw_document', - }, - }, - UniqueCount+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - '#withPrecisionThreshold': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPrecisionThreshold(value): { - settings+: { - precision_threshold: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'cardinality', - }, - }, - Percentiles+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - '#withPercents': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPercents(value): { - settings+: { - percents: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withPercentsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPercentsMixin(value): { - settings+: { - percents+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'percentiles', - }, - }, - ExtendedStats+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withMeta': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMeta(value): { - meta: value, - }, - '#withMetaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withMetaMixin(value): { - meta+: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - '#withSigma': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withSigma(value): { - settings+: { - sigma: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'extended_stats', - }, - }, - Min+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'min', - }, - }, - Max+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'max', - }, - }, - Sum+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'sum', - }, - }, - Average+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMissing': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMissing(value): { - settings+: { - missing: value, - }, - }, - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'avg', - }, - }, - MovingAverage+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'moving_avg', - }, - }, - MovingFunction+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withPipelineAgg': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPipelineAgg(value): { - pipelineAgg: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withScript': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScript(value): { - settings+: { - script: value, - }, - }, - '#withScriptMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'object'] }], help: '' } }, - withScriptMixin(value): { - settings+: { - script+: value, - }, - }, - script+: - { - '#withInline': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withInline(value): { - settings+: { - script+: { - inline: value, - }, - }, - }, - }, - '#withShift': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withShift(value): { - settings+: { - shift: value, - }, - }, - '#withWindow': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withWindow(value): { - settings+: { - window: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'moving_fn', - }, - }, - Logs+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLimit(value): { - settings+: { - limit: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'logs', - }, - }, - Rate+: - { - '#withField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withField(value): { - field: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - settings+: { - mode: value, - }, - }, - '#withUnit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUnit(value): { - settings+: { - unit: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'rate', - }, - }, - TopMetrics+: - { - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withHide(value=true): { - hide: value, - }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withId(value): { - id: value, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMetrics': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMetrics(value): { - settings+: { - metrics: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withMetricsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withMetricsMixin(value): { - settings+: { - metrics+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withOrder': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withOrder(value): { - settings+: { - order: value, - }, - }, - '#withOrderBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withOrderBy(value): { - settings+: { - orderBy: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'top_metrics', - }, - }, - }, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Lucene query' } }, - withQuery(value): { - query: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withTimeField': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of time field' } }, - withTimeField(value): { - timeField: value, - }, -} -+ (import '../custom/query/elasticsearch.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/expr.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/expr.libsonnet deleted file mode 100644 index fa34bc8ac..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/expr.libsonnet +++ /dev/null @@ -1,996 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.expr', name: 'expr' }, - TypeMath+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withApiVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The apiserver version' } }, - withApiVersion(value): { - datasource+: { - apiVersion: value, - }, - }, - '#withType': { 'function': { args: [], help: 'The datasource plugin type' } }, - withType(): { - datasource+: { - type: '__expr__', - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Datasource UID (NOTE: name in k8s)' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'General math expression' } }, - withExpression(value): { - expression: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, - withIntervalMs(value): { - intervalMs: value, - }, - '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, - withMaxDataPoints(value): { - maxDataPoints: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, - withRefId(value): { - refId: value, - }, - '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, - withResultAssertions(value): { - resultAssertions: value, - }, - '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, - withResultAssertionsMixin(value): { - resultAssertions+: value, - }, - resultAssertions+: - { - '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, - withMaxFrames(value): { - resultAssertions+: { - maxFrames: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, - withType(value): { - resultAssertions+: { - type: value, - }, - }, - '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersion(value): { - resultAssertions+: { - typeVersion: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersionMixin(value): { - resultAssertions+: { - typeVersion+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, - withTimeRange(value): { - timeRange: value, - }, - '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, - withTimeRangeMixin(value): { - timeRange+: value, - }, - timeRange+: - { - '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, - withFrom(value='now-6h'): { - timeRange+: { - from: value, - }, - }, - '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, - withTo(value='now'): { - timeRange+: { - to: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'math', - }, - }, - TypeReduce+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withApiVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The apiserver version' } }, - withApiVersion(value): { - datasource+: { - apiVersion: value, - }, - }, - '#withType': { 'function': { args: [], help: 'The datasource plugin type' } }, - withType(): { - datasource+: { - type: '__expr__', - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Datasource UID (NOTE: name in k8s)' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Reference to single query result' } }, - withExpression(value): { - expression: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, - withIntervalMs(value): { - intervalMs: value, - }, - '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, - withMaxDataPoints(value): { - maxDataPoints: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, - withQueryType(value): { - queryType: value, - }, - '#withReducer': { 'function': { args: [{ default: null, enums: ['sum', 'mean', 'min', 'max', 'count', 'last'], name: 'value', type: ['string'] }], help: 'The reducer\nPossible enum values:\n - `"sum"` \n - `"mean"` \n - `"min"` \n - `"max"` \n - `"count"` \n - `"last"` ' } }, - withReducer(value): { - reducer: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, - withRefId(value): { - refId: value, - }, - '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, - withResultAssertions(value): { - resultAssertions: value, - }, - '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, - withResultAssertionsMixin(value): { - resultAssertions+: value, - }, - resultAssertions+: - { - '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, - withMaxFrames(value): { - resultAssertions+: { - maxFrames: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, - withType(value): { - resultAssertions+: { - type: value, - }, - }, - '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersion(value): { - resultAssertions+: { - typeVersion: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersionMixin(value): { - resultAssertions+: { - typeVersion+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withSettings': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Reducer Options' } }, - withSettings(value): { - settings: value, - }, - '#withSettingsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Reducer Options' } }, - withSettingsMixin(value): { - settings+: value, - }, - settings+: - { - '#withMode': { 'function': { args: [{ default: null, enums: ['dropNN', 'replaceNN'], name: 'value', type: ['string'] }], help: 'Non-number reduce behavior\nPossible enum values:\n - `"dropNN"` Drop non-numbers\n - `"replaceNN"` Replace non-numbers' } }, - withMode(value): { - settings+: { - mode: value, - }, - }, - '#withReplaceWithValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Only valid when mode is replace' } }, - withReplaceWithValue(value): { - settings+: { - replaceWithValue: value, - }, - }, - }, - '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, - withTimeRange(value): { - timeRange: value, - }, - '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, - withTimeRangeMixin(value): { - timeRange+: value, - }, - timeRange+: - { - '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, - withFrom(value='now-6h'): { - timeRange+: { - from: value, - }, - }, - '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, - withTo(value='now'): { - timeRange+: { - to: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'reduce', - }, - }, - TypeResample+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withApiVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The apiserver version' } }, - withApiVersion(value): { - datasource+: { - apiVersion: value, - }, - }, - '#withType': { 'function': { args: [], help: 'The datasource plugin type' } }, - withType(): { - datasource+: { - type: '__expr__', - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Datasource UID (NOTE: name in k8s)' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withDownsampler': { 'function': { args: [{ default: null, enums: ['sum', 'mean', 'min', 'max', 'count', 'last'], name: 'value', type: ['string'] }], help: 'The downsample function\nPossible enum values:\n - `"sum"` \n - `"mean"` \n - `"min"` \n - `"max"` \n - `"count"` \n - `"last"` ' } }, - withDownsampler(value): { - downsampler: value, - }, - '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The math expression' } }, - withExpression(value): { - expression: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, - withIntervalMs(value): { - intervalMs: value, - }, - '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, - withMaxDataPoints(value): { - maxDataPoints: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, - withRefId(value): { - refId: value, - }, - '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, - withResultAssertions(value): { - resultAssertions: value, - }, - '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, - withResultAssertionsMixin(value): { - resultAssertions+: value, - }, - resultAssertions+: - { - '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, - withMaxFrames(value): { - resultAssertions+: { - maxFrames: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, - withType(value): { - resultAssertions+: { - type: value, - }, - }, - '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersion(value): { - resultAssertions+: { - typeVersion: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersionMixin(value): { - resultAssertions+: { - typeVersion+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, - withTimeRange(value): { - timeRange: value, - }, - '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, - withTimeRangeMixin(value): { - timeRange+: value, - }, - timeRange+: - { - '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, - withFrom(value='now-6h'): { - timeRange+: { - from: value, - }, - }, - '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, - withTo(value='now'): { - timeRange+: { - to: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'resample', - }, - '#withUpsampler': { 'function': { args: [{ default: null, enums: ['pad', 'backfilling', 'fillna'], name: 'value', type: ['string'] }], help: 'The upsample function\nPossible enum values:\n - `"pad"` Use the last seen value\n - `"backfilling"` backfill\n - `"fillna"` Do not fill values (nill)' } }, - withUpsampler(value): { - upsampler: value, - }, - '#withWindow': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The time duration' } }, - withWindow(value): { - window: value, - }, - }, - TypeClassicConditions+: - { - '#withConditions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withConditions(value): { - conditions: - (if std.isArray(value) - then value - else [value]), - }, - '#withConditionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withConditionsMixin(value): { - conditions+: - (if std.isArray(value) - then value - else [value]), - }, - conditions+: - { - '#': { help: '', name: 'conditions' }, - '#withEvaluator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withEvaluator(value): { - evaluator: value, - }, - '#withEvaluatorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withEvaluatorMixin(value): { - evaluator+: value, - }, - evaluator+: - { - '#withParams': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParams(value): { - evaluator+: { - params: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withParamsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParamsMixin(value): { - evaluator+: { - params+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'e.g. "gt"' } }, - withType(value): { - evaluator+: { - type: value, - }, - }, - }, - '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOperator(value): { - operator: value, - }, - '#withOperatorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withOperatorMixin(value): { - operator+: value, - }, - operator+: - { - '#withType': { 'function': { args: [{ default: null, enums: ['and', 'or'], name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - operator+: { - type: value, - }, - }, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQuery(value): { - query: value, - }, - '#withQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withQueryMixin(value): { - query+: value, - }, - query+: - { - '#withParams': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParams(value): { - query+: { - params: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withParamsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParamsMixin(value): { - query+: { - params+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withReducer(value): { - reducer: value, - }, - '#withReducerMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withReducerMixin(value): { - reducer+: value, - }, - reducer+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - reducer+: { - type: value, - }, - }, - }, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withApiVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The apiserver version' } }, - withApiVersion(value): { - datasource+: { - apiVersion: value, - }, - }, - '#withType': { 'function': { args: [], help: 'The datasource plugin type' } }, - withType(): { - datasource+: { - type: '__expr__', - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Datasource UID (NOTE: name in k8s)' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, - withIntervalMs(value): { - intervalMs: value, - }, - '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, - withMaxDataPoints(value): { - maxDataPoints: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, - withRefId(value): { - refId: value, - }, - '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, - withResultAssertions(value): { - resultAssertions: value, - }, - '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, - withResultAssertionsMixin(value): { - resultAssertions+: value, - }, - resultAssertions+: - { - '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, - withMaxFrames(value): { - resultAssertions+: { - maxFrames: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, - withType(value): { - resultAssertions+: { - type: value, - }, - }, - '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersion(value): { - resultAssertions+: { - typeVersion: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersionMixin(value): { - resultAssertions+: { - typeVersion+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, - withTimeRange(value): { - timeRange: value, - }, - '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, - withTimeRangeMixin(value): { - timeRange+: value, - }, - timeRange+: - { - '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, - withFrom(value='now-6h'): { - timeRange+: { - from: value, - }, - }, - '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, - withTo(value='now'): { - timeRange+: { - to: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'classic_conditions', - }, - }, - TypeThreshold+: - { - '#withConditions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Threshold Conditions' } }, - withConditions(value): { - conditions: - (if std.isArray(value) - then value - else [value]), - }, - '#withConditionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Threshold Conditions' } }, - withConditionsMixin(value): { - conditions+: - (if std.isArray(value) - then value - else [value]), - }, - conditions+: - { - '#': { help: '', name: 'conditions' }, - '#withEvaluator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withEvaluator(value): { - evaluator: value, - }, - '#withEvaluatorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withEvaluatorMixin(value): { - evaluator+: value, - }, - evaluator+: - { - '#withParams': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParams(value): { - evaluator+: { - params: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withParamsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParamsMixin(value): { - evaluator+: { - params+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['gt', 'lt', 'within_range', 'outside_range'], name: 'value', type: ['string'] }], help: 'e.g. "gt"' } }, - withType(value): { - evaluator+: { - type: value, - }, - }, - }, - '#withLoadedDimensions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLoadedDimensions(value): { - loadedDimensions: value, - }, - '#withLoadedDimensionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withLoadedDimensionsMixin(value): { - loadedDimensions+: value, - }, - '#withUnloadEvaluator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUnloadEvaluator(value): { - unloadEvaluator: value, - }, - '#withUnloadEvaluatorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUnloadEvaluatorMixin(value): { - unloadEvaluator+: value, - }, - unloadEvaluator+: - { - '#withParams': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParams(value): { - unloadEvaluator+: { - params: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withParamsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withParamsMixin(value): { - unloadEvaluator+: { - params+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['gt', 'lt', 'within_range', 'outside_range'], name: 'value', type: ['string'] }], help: 'e.g. "gt"' } }, - withType(value): { - unloadEvaluator+: { - type: value, - }, - }, - }, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withApiVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The apiserver version' } }, - withApiVersion(value): { - datasource+: { - apiVersion: value, - }, - }, - '#withType': { 'function': { args: [], help: 'The datasource plugin type' } }, - withType(): { - datasource+: { - type: '__expr__', - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Datasource UID (NOTE: name in k8s)' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Reference to single query result' } }, - withExpression(value): { - expression: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, - withIntervalMs(value): { - intervalMs: value, - }, - '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, - withMaxDataPoints(value): { - maxDataPoints: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, - withRefId(value): { - refId: value, - }, - '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, - withResultAssertions(value): { - resultAssertions: value, - }, - '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, - withResultAssertionsMixin(value): { - resultAssertions+: value, - }, - resultAssertions+: - { - '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, - withMaxFrames(value): { - resultAssertions+: { - maxFrames: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, - withType(value): { - resultAssertions+: { - type: value, - }, - }, - '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersion(value): { - resultAssertions+: { - typeVersion: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersionMixin(value): { - resultAssertions+: { - typeVersion+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, - withTimeRange(value): { - timeRange: value, - }, - '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, - withTimeRangeMixin(value): { - timeRange+: value, - }, - timeRange+: - { - '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, - withFrom(value='now-6h'): { - timeRange+: { - from: value, - }, - }, - '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, - withTo(value='now'): { - timeRange+: { - to: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'threshold', - }, - }, - TypeSql+: - { - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'The datasource' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withApiVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The apiserver version' } }, - withApiVersion(value): { - datasource+: { - apiVersion: value, - }, - }, - '#withType': { 'function': { args: [], help: 'The datasource plugin type' } }, - withType(): { - datasource+: { - type: '__expr__', - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Datasource UID (NOTE: name in k8s)' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withExpression': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withExpression(value): { - expression: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, - withIntervalMs(value): { - intervalMs: value, - }, - '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, - withMaxDataPoints(value): { - maxDataPoints: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, - withRefId(value): { - refId: value, - }, - '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, - withResultAssertions(value): { - resultAssertions: value, - }, - '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Optionally define expected query result behavior' } }, - withResultAssertionsMixin(value): { - resultAssertions+: value, - }, - resultAssertions+: - { - '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, - withMaxFrames(value): { - resultAssertions+: { - maxFrames: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, - withType(value): { - resultAssertions+: { - type: value, - }, - }, - '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersion(value): { - resultAssertions+: { - typeVersion: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersionMixin(value): { - resultAssertions+: { - typeVersion+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, - withTimeRange(value): { - timeRange: value, - }, - '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'TimeRange represents the query range\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly' } }, - withTimeRangeMixin(value): { - timeRange+: value, - }, - timeRange+: - { - '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, - withFrom(value='now-6h'): { - timeRange+: { - from: value, - }, - }, - '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, - withTo(value='now'): { - timeRange+: { - to: value, - }, - }, - }, - '#withType': { 'function': { args: [], help: '' } }, - withType(): { - type: 'sql', - }, - }, -} -+ (import '../custom/query/expr.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/googleCloudMonitoring.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/googleCloudMonitoring.libsonnet deleted file mode 100644 index 478a49cde..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/googleCloudMonitoring.libsonnet +++ /dev/null @@ -1,293 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.googleCloudMonitoring', name: 'googleCloudMonitoring' }, - '#withAliasBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Aliases can be set to modify the legend labels. e.g. {{metric.label.xxx}}. See docs for more detail.' } }, - withAliasBy(value): { - aliasBy: value, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasourceMixin(value): { - datasource+: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, - withHide(value=true): { - hide: value, - }, - '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Time interval in milliseconds.' } }, - withIntervalMs(value): { - intervalMs: value, - }, - '#withPromQLQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'PromQL sub-query properties.' } }, - withPromQLQuery(value): { - promQLQuery: value, - }, - '#withPromQLQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'PromQL sub-query properties.' } }, - withPromQLQueryMixin(value): { - promQLQuery+: value, - }, - promQLQuery+: - { - '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'PromQL expression/query to be executed.' } }, - withExpr(value): { - promQLQuery+: { - expr: value, - }, - }, - '#withProjectName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'GCP project to execute the query against.' } }, - withProjectName(value): { - promQLQuery+: { - projectName: value, - }, - }, - '#withStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'PromQL min step' } }, - withStep(value): { - promQLQuery+: { - step: value, - }, - }, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withSloQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'SLO sub-query properties.' } }, - withSloQuery(value): { - sloQuery: value, - }, - '#withSloQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'SLO sub-query properties.' } }, - withSloQueryMixin(value): { - sloQuery+: value, - }, - sloQuery+: - { - '#withAlignmentPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.' } }, - withAlignmentPeriod(value): { - sloQuery+: { - alignmentPeriod: value, - }, - }, - '#withGoal': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'SLO goal value.' } }, - withGoal(value): { - sloQuery+: { - goal: value, - }, - }, - '#withLookbackPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specific lookback period for the SLO.' } }, - withLookbackPeriod(value): { - sloQuery+: { - lookbackPeriod: value, - }, - }, - '#withPerSeriesAligner': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alignment function to be used. Defaults to ALIGN_MEAN.' } }, - withPerSeriesAligner(value): { - sloQuery+: { - perSeriesAligner: value, - }, - }, - '#withProjectName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'GCP project to execute the query against.' } }, - withProjectName(value): { - sloQuery+: { - projectName: value, - }, - }, - '#withSelectorName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'SLO selector.' } }, - withSelectorName(value): { - sloQuery+: { - selectorName: value, - }, - }, - '#withServiceId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'ID for the service the SLO is in.' } }, - withServiceId(value): { - sloQuery+: { - serviceId: value, - }, - }, - '#withServiceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name for the service the SLO is in.' } }, - withServiceName(value): { - sloQuery+: { - serviceName: value, - }, - }, - '#withSloId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'ID for the SLO.' } }, - withSloId(value): { - sloQuery+: { - sloId: value, - }, - }, - '#withSloName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the SLO.' } }, - withSloName(value): { - sloQuery+: { - sloName: value, - }, - }, - }, - '#withTimeSeriesList': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Time Series List sub-query properties.' } }, - withTimeSeriesList(value): { - timeSeriesList: value, - }, - '#withTimeSeriesListMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Time Series List sub-query properties.' } }, - withTimeSeriesListMixin(value): { - timeSeriesList+: value, - }, - timeSeriesList+: - { - '#withAlignmentPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.' } }, - withAlignmentPeriod(value): { - timeSeriesList+: { - alignmentPeriod: value, - }, - }, - '#withCrossSeriesReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Reducer applied across a set of time-series values. Defaults to REDUCE_NONE.' } }, - withCrossSeriesReducer(value): { - timeSeriesList+: { - crossSeriesReducer: value, - }, - }, - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of filters to query data by. Labels that can be filtered on are defined by the metric.' } }, - withFilters(value): { - timeSeriesList+: { - filters: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of filters to query data by. Labels that can be filtered on are defined by the metric.' } }, - withFiltersMixin(value): { - timeSeriesList+: { - filters+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withGroupBys': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of labels to group data by.' } }, - withGroupBys(value): { - timeSeriesList+: { - groupBys: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withGroupBysMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Array of labels to group data by.' } }, - withGroupBysMixin(value): { - timeSeriesList+: { - groupBys+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withPerSeriesAligner': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Alignment function to be used. Defaults to ALIGN_MEAN.' } }, - withPerSeriesAligner(value): { - timeSeriesList+: { - perSeriesAligner: value, - }, - }, - '#withPreprocessor': { 'function': { args: [{ default: null, enums: ['none', 'rate', 'delta'], name: 'value', type: ['string'] }], help: 'Types of pre-processor available. Defined by the metric.' } }, - withPreprocessor(value): { - timeSeriesList+: { - preprocessor: value, - }, - }, - '#withProjectName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'GCP project to execute the query against.' } }, - withProjectName(value): { - timeSeriesList+: { - projectName: value, - }, - }, - '#withSecondaryAlignmentPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Only present if a preprocessor is selected. Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.' } }, - withSecondaryAlignmentPeriod(value): { - timeSeriesList+: { - secondaryAlignmentPeriod: value, - }, - }, - '#withSecondaryCrossSeriesReducer': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Only present if a preprocessor is selected. Reducer applied across a set of time-series values. Defaults to REDUCE_NONE.' } }, - withSecondaryCrossSeriesReducer(value): { - timeSeriesList+: { - secondaryCrossSeriesReducer: value, - }, - }, - '#withSecondaryGroupBys': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Only present if a preprocessor is selected. Array of labels to group data by.' } }, - withSecondaryGroupBys(value): { - timeSeriesList+: { - secondaryGroupBys: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withSecondaryGroupBysMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Only present if a preprocessor is selected. Array of labels to group data by.' } }, - withSecondaryGroupBysMixin(value): { - timeSeriesList+: { - secondaryGroupBys+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withSecondaryPerSeriesAligner': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Only present if a preprocessor is selected. Alignment function to be used. Defaults to ALIGN_MEAN.' } }, - withSecondaryPerSeriesAligner(value): { - timeSeriesList+: { - secondaryPerSeriesAligner: value, - }, - }, - '#withText': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Annotation text.' } }, - withText(value): { - timeSeriesList+: { - text: value, - }, - }, - '#withTitle': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Annotation title.' } }, - withTitle(value): { - timeSeriesList+: { - title: value, - }, - }, - '#withView': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Data view, defaults to FULL.' } }, - withView(value): { - timeSeriesList+: { - view: value, - }, - }, - }, - '#withTimeSeriesQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Time Series sub-query properties.' } }, - withTimeSeriesQuery(value): { - timeSeriesQuery: value, - }, - '#withTimeSeriesQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: 'Time Series sub-query properties.' } }, - withTimeSeriesQueryMixin(value): { - timeSeriesQuery+: value, - }, - timeSeriesQuery+: - { - '#withGraphPeriod': { 'function': { args: [{ default: 'disabled', enums: null, name: 'value', type: ['string'] }], help: "To disable the graphPeriod, it should explictly be set to 'disabled'." } }, - withGraphPeriod(value='disabled'): { - timeSeriesQuery+: { - graphPeriod: value, - }, - }, - '#withProjectName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'GCP project to execute the query against.' } }, - withProjectName(value): { - timeSeriesQuery+: { - projectName: value, - }, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'MQL query to be executed.' } }, - withQuery(value): { - timeSeriesQuery+: { - query: value, - }, - }, - }, -} -+ (import '../custom/query/googleCloudMonitoring.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/grafanaPyroscope.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/grafanaPyroscope.libsonnet deleted file mode 100644 index 67a756649..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/grafanaPyroscope.libsonnet +++ /dev/null @@ -1,65 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.grafanaPyroscope', name: 'grafanaPyroscope' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasourceMixin(value): { - datasource+: value, - }, - '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Allows to group the results.' } }, - withGroupBy(value): { - groupBy: - (if std.isArray(value) - then value - else [value]), - }, - '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Allows to group the results.' } }, - withGroupByMixin(value): { - groupBy+: - (if std.isArray(value) - then value - else [value]), - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, - withHide(value=true): { - hide: value, - }, - '#withLabelSelector': { 'function': { args: [{ default: '{}', enums: null, name: 'value', type: ['string'] }], help: 'Specifies the query label selectors.' } }, - withLabelSelector(value='{}'): { - labelSelector: value, - }, - '#withMaxNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Sets the maximum number of nodes in the flamegraph.' } }, - withMaxNodes(value): { - maxNodes: value, - }, - '#withProfileTypeId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specifies the type of profile to query.' } }, - withProfileTypeId(value): { - profileTypeId: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withSpanSelector': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Specifies the query span selectors.' } }, - withSpanSelector(value): { - spanSelector: - (if std.isArray(value) - then value - else [value]), - }, - '#withSpanSelectorMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Specifies the query span selectors.' } }, - withSpanSelectorMixin(value): { - spanSelector+: - (if std.isArray(value) - then value - else [value]), - }, -} -+ (import '../custom/query/grafanaPyroscope.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/loki.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/loki.libsonnet deleted file mode 100644 index 2d77f4b57..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/loki.libsonnet +++ /dev/null @@ -1,57 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.loki', name: 'loki' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasourceMixin(value): { - datasource+: value, - }, - '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: ['string'] }], help: '' } }, - withEditorMode(value): { - editorMode: value, - }, - '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The LogQL query.' } }, - withExpr(value): { - expr: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, - withHide(value=true): { - hide: value, - }, - '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '@deprecated, now use queryType.' } }, - withInstant(value=true): { - instant: value, - }, - '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Used to override the name of the series.' } }, - withLegendFormat(value): { - legendFormat: value, - }, - '#withMaxLines': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Used to limit the number of log rows returned.' } }, - withMaxLines(value): { - maxLines: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '@deprecated, now use queryType.' } }, - withRange(value=true): { - range: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withResolution': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '@deprecated, now use step.' } }, - withResolution(value): { - resolution: value, - }, - '#withStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Used to set step value for range queries.' } }, - withStep(value): { - step: value, - }, -} -+ (import '../custom/query/loki.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/parca.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/parca.libsonnet deleted file mode 100644 index 94f6f231a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/parca.libsonnet +++ /dev/null @@ -1,33 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.parca', name: 'parca' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasourceMixin(value): { - datasource+: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, - withHide(value=true): { - hide: value, - }, - '#withLabelSelector': { 'function': { args: [{ default: '{}', enums: null, name: 'value', type: ['string'] }], help: 'Specifies the query label selectors.' } }, - withLabelSelector(value='{}'): { - labelSelector: value, - }, - '#withProfileTypeId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specifies the type of profile to query.' } }, - withProfileTypeId(value): { - profileTypeId: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, -} -+ (import '../custom/query/parca.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/prometheus.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/prometheus.libsonnet deleted file mode 100644 index 1d42ef3b3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/prometheus.libsonnet +++ /dev/null @@ -1,61 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.prometheus', name: 'prometheus' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasourceMixin(value): { - datasource+: value, - }, - '#withEditorMode': { 'function': { args: [{ default: null, enums: ['code', 'builder'], name: 'value', type: ['string'] }], help: '' } }, - withEditorMode(value): { - editorMode: value, - }, - '#withExemplar': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Execute an additional query to identify interesting raw samples relevant for the given expr' } }, - withExemplar(value=true): { - exemplar: value, - }, - '#withExpr': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The actual expression/query that will be evaluated by Prometheus' } }, - withExpr(value): { - expr: value, - }, - '#withFormat': { 'function': { args: [{ default: null, enums: ['time_series', 'table', 'heatmap'], name: 'value', type: ['string'] }], help: '' } }, - withFormat(value): { - format: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, - withHide(value=true): { - hide: value, - }, - '#withInstant': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Returns only the latest value that Prometheus has scraped for the requested time series' } }, - withInstant(value=true): { - instant: value, - }, - '#withInterval': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'An additional lower limit for the step parameter of the Prometheus query and for the\n`$__interval` and `$__rate_interval` variables.' } }, - withInterval(value): { - interval: value, - }, - '#withIntervalFactor': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '@deprecated Used to specify how many times to divide max data points by. We use max data points under query options\nSee https://github.com/grafana/grafana/issues/48081' } }, - withIntervalFactor(value): { - intervalFactor: value, - }, - '#withLegendFormat': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Series name override or template. Ex. {{hostname}} will be replaced with label value for hostname' } }, - withLegendFormat(value): { - legendFormat: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRange': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series' } }, - withRange(value=true): { - range: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, -} -+ (import '../custom/query/prometheus.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/tempo.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/tempo.libsonnet deleted file mode 100644 index 61ed29016..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/tempo.libsonnet +++ /dev/null @@ -1,165 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.tempo', name: 'tempo' }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null" } }, - withDatasourceMixin(value): { - datasource+: value, - }, - '#withFilters': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFilters(value): { - filters: - (if std.isArray(value) - then value - else [value]), - }, - '#withFiltersMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFiltersMixin(value): { - filters+: - (if std.isArray(value) - then value - else [value]), - }, - filters+: - { - '#': { help: '', name: 'filters' }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Uniquely identify the filter, will not be used in the query generation' } }, - withId(value): { - id: value, - }, - '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The operator that connects the tag to the value, for example: =, >, !=, =~' } }, - withOperator(value): { - operator: value, - }, - '#withScope': { 'function': { args: [{ default: null, enums: ['intrinsic', 'unscoped', 'resource', 'span'], name: 'value', type: ['string'] }], help: 'static fields are pre-set in the UI, dynamic fields are added by the user' } }, - withScope(value): { - scope: value, - }, - '#withTag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The tag for the search filter, for example: .http.status_code, .service.name, status' } }, - withTag(value): { - tag: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'The value for the search filter' } }, - withValue(value): { - value: value, - }, - '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'The value for the search filter' } }, - withValueMixin(value): { - value+: value, - }, - '#withValueType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query' } }, - withValueType(value): { - valueType: value, - }, - }, - '#withGroupBy': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters that are used to query the metrics summary' } }, - withGroupBy(value): { - groupBy: - (if std.isArray(value) - then value - else [value]), - }, - '#withGroupByMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'Filters that are used to query the metrics summary' } }, - withGroupByMixin(value): { - groupBy+: - (if std.isArray(value) - then value - else [value]), - }, - groupBy+: - { - '#': { help: '', name: 'groupBy' }, - '#withId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Uniquely identify the filter, will not be used in the query generation' } }, - withId(value): { - id: value, - }, - '#withOperator': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The operator that connects the tag to the value, for example: =, >, !=, =~' } }, - withOperator(value): { - operator: value, - }, - '#withScope': { 'function': { args: [{ default: null, enums: ['intrinsic', 'unscoped', 'resource', 'span'], name: 'value', type: ['string'] }], help: 'static fields are pre-set in the UI, dynamic fields are added by the user' } }, - withScope(value): { - scope: value, - }, - '#withTag': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The tag for the search filter, for example: .http.status_code, .service.name, status' } }, - withTag(value): { - tag: value, - }, - '#withValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'The value for the search filter' } }, - withValue(value): { - value: value, - }, - '#withValueMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'The value for the search filter' } }, - withValueMixin(value): { - value+: value, - }, - '#withValueType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query' } }, - withValueType(value): { - valueType: value, - }, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.' } }, - withHide(value=true): { - hide: value, - }, - '#withLimit': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Defines the maximum number of traces that are returned from Tempo' } }, - withLimit(value): { - limit: value, - }, - '#withMaxDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, - withMaxDuration(value): { - maxDuration: value, - }, - '#withMinDuration': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms' } }, - withMinDuration(value): { - minDuration: value, - }, - '#withQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'TraceQL query or trace ID' } }, - withQuery(value): { - query: value, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Specify the query flavor\nTODO make this required and give it a default' } }, - withQueryType(value): { - queryType: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.' } }, - withRefId(value): { - refId: value, - }, - '#withSearch': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true' } }, - withSearch(value): { - search: value, - }, - '#withServiceMapIncludeNamespace': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Use service.namespace in addition to service.name to uniquely identify a service.' } }, - withServiceMapIncludeNamespace(value=true): { - serviceMapIncludeNamespace: value, - }, - '#withServiceMapQuery': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}. Providing multiple values will produce union of results for each filter, using PromQL OR operator internally.' } }, - withServiceMapQuery(value): { - serviceMapQuery: value, - }, - '#withServiceMapQueryMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string', 'array'] }], help: 'Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}. Providing multiple values will produce union of results for each filter, using PromQL OR operator internally.' } }, - withServiceMapQueryMixin(value): { - serviceMapQuery+: value, - }, - '#withServiceName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Query traces by service name' } }, - withServiceName(value): { - serviceName: value, - }, - '#withSpanName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '@deprecated Query traces by span name' } }, - withSpanName(value): { - spanName: value, - }, - '#withSpss': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Defines the maximum number of spans per spanset that are returned from Tempo' } }, - withSpss(value): { - spss: value, - }, - '#withTableType': { 'function': { args: [{ default: null, enums: ['traces', 'spans'], name: 'value', type: ['string'] }], help: 'The type of the table that is used to display the search results' } }, - withTableType(value): { - tableType: value, - }, -} -+ (import '../custom/query/tempo.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/testData.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/testData.libsonnet deleted file mode 100644 index a0bdee57e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/query/testData.libsonnet +++ /dev/null @@ -1,494 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.query.testData', name: 'testData' }, - '#withAlias': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withAlias(value): { - alias: value, - }, - '#withChannel': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Used for live query' } }, - withChannel(value): { - channel: value, - }, - '#withCsvContent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withCsvContent(value): { - csvContent: value, - }, - '#withCsvFileName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withCsvFileName(value): { - csvFileName: value, - }, - '#withCsvWave': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCsvWave(value): { - csvWave: - (if std.isArray(value) - then value - else [value]), - }, - '#withCsvWaveMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withCsvWaveMixin(value): { - csvWave+: - (if std.isArray(value) - then value - else [value]), - }, - csvWave+: - { - '#': { help: '', name: 'csvWave' }, - '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLabels(value): { - labels: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - name: value, - }, - '#withTimeStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withTimeStep(value): { - timeStep: value, - }, - '#withValuesCSV': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withValuesCSV(value): { - valuesCSV: value, - }, - }, - '#withDatasource': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDatasource(value): { - datasource: value, - }, - '#withDatasourceMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withDatasourceMixin(value): { - datasource+: value, - }, - datasource+: - { - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The datasource plugin type' } }, - withType(value): { - datasource+: { - type: value, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Datasource UID' } }, - withUid(value): { - datasource+: { - uid: value, - }, - }, - }, - '#withDropPercent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Drop percentage (the chance we will lose a point 0-100)' } }, - withDropPercent(value): { - dropPercent: value, - }, - '#withErrorType': { 'function': { args: [{ default: null, enums: ['frontend_exception', 'frontend_observable', 'server_panic'], name: 'value', type: ['string'] }], help: 'Possible enum values:\n - `"frontend_exception"` \n - `"frontend_observable"` \n - `"server_panic"` ' } }, - withErrorType(value): { - errorType: value, - }, - '#withFlamegraphDiff': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withFlamegraphDiff(value=true): { - flamegraphDiff: value, - }, - '#withHide': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'true if query is disabled (ie should not be returned to the dashboard)\nNOTE: this does not always imply that the query should not be executed since\nthe results from a hidden query may be used as the input to other queries (SSE etc)' } }, - withHide(value=true): { - hide: value, - }, - '#withIntervalMs': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: 'Interval is the suggested duration between time points in a time series query.\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\nfrom the interval required to fill a pixels in the visualization' } }, - withIntervalMs(value): { - intervalMs: value, - }, - '#withLabels': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withLabels(value): { - labels: value, - }, - '#withLevelColumn': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLevelColumn(value=true): { - levelColumn: value, - }, - '#withLines': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withLines(value): { - lines: value, - }, - '#withMax': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMax(value): { - max: value, - }, - '#withMaxDataPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'MaxDataPoints is the maximum number of data points that should be returned from a time series query.\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\nfrom the number of pixels visible in a visualization' } }, - withMaxDataPoints(value): { - maxDataPoints: value, - }, - '#withMin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withMin(value): { - min: value, - }, - '#withNodes': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withNodes(value): { - nodes: value, - }, - '#withNodesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withNodesMixin(value): { - nodes+: value, - }, - nodes+: - { - '#withCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withCount(value): { - nodes+: { - count: value, - }, - }, - '#withSeed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withSeed(value): { - nodes+: { - seed: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['random', 'random edges', 'response_medium', 'response_small', 'feature_showcase'], name: 'value', type: ['string'] }], help: 'Possible enum values:\n - `"random"` \n - `"random edges"` \n - `"response_medium"` \n - `"response_small"` \n - `"feature_showcase"` ' } }, - withType(value): { - nodes+: { - type: value, - }, - }, - }, - '#withNoise': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withNoise(value): { - noise: value, - }, - '#withPoints': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPoints(value): { - points: - (if std.isArray(value) - then value - else [value]), - }, - '#withPointsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withPointsMixin(value): { - points+: - (if std.isArray(value) - then value - else [value]), - }, - '#withPulseWave': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPulseWave(value): { - pulseWave: value, - }, - '#withPulseWaveMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withPulseWaveMixin(value): { - pulseWave+: value, - }, - pulseWave+: - { - '#withOffCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withOffCount(value): { - pulseWave+: { - offCount: value, - }, - }, - '#withOffValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withOffValue(value): { - pulseWave+: { - offValue: value, - }, - }, - '#withOnCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withOnCount(value): { - pulseWave+: { - onCount: value, - }, - }, - '#withOnValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withOnValue(value): { - pulseWave+: { - onValue: value, - }, - }, - '#withTimeStep': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withTimeStep(value): { - pulseWave+: { - timeStep: value, - }, - }, - }, - '#withQueryType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'QueryType is an optional identifier for the type of query.\nIt can be used to distinguish different types of queries.' } }, - withQueryType(value): { - queryType: value, - }, - '#withRawFrameContent': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withRawFrameContent(value): { - rawFrameContent: value, - }, - '#withRefId': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'RefID is the unique identifier of the query, set by the frontend call.' } }, - withRefId(value): { - refId: value, - }, - '#withResultAssertions': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withResultAssertions(value): { - resultAssertions: value, - }, - '#withResultAssertionsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withResultAssertionsMixin(value): { - resultAssertions+: value, - }, - resultAssertions+: - { - '#withMaxFrames': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: 'Maximum frame count' } }, - withMaxFrames(value): { - resultAssertions+: { - maxFrames: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['', 'timeseries-wide', 'timeseries-long', 'timeseries-many', 'timeseries-multi', 'directory-listing', 'table', 'numeric-wide', 'numeric-multi', 'numeric-long', 'log-lines'], name: 'value', type: ['string'] }], help: 'Type asserts that the frame matches a known type structure.\nPossible enum values:\n - `""` \n - `"timeseries-wide"` \n - `"timeseries-long"` \n - `"timeseries-many"` \n - `"timeseries-multi"` \n - `"directory-listing"` \n - `"table"` \n - `"numeric-wide"` \n - `"numeric-multi"` \n - `"numeric-long"` \n - `"log-lines"` ' } }, - withType(value): { - resultAssertions+: { - type: value, - }, - }, - '#withTypeVersion': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersion(value): { - resultAssertions+: { - typeVersion: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withTypeVersionMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: 'TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\ncontract documentation https://grafana.github.io/dataplane/contract/.' } }, - withTypeVersionMixin(value): { - resultAssertions+: { - typeVersion+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withScenarioId': { 'function': { args: [{ default: null, enums: ['annotations', 'arrow', 'csv_content', 'csv_file', 'csv_metric_values', 'datapoints_outside_range', 'exponential_heatmap_bucket_data', 'flame_graph', 'grafana_api', 'linear_heatmap_bucket_data', 'live', 'logs', 'manual_entry', 'no_data_points', 'node_graph', 'predictable_csv_wave', 'predictable_pulse', 'random_walk', 'random_walk_table', 'random_walk_with_error', 'raw_frame', 'server_error_500', 'simulation', 'slow_query', 'streaming_client', 'table_static', 'trace', 'usa', 'variables-query'], name: 'value', type: ['string'] }], help: 'Possible enum values:\n - `"annotations"` \n - `"arrow"` \n - `"csv_content"` \n - `"csv_file"` \n - `"csv_metric_values"` \n - `"datapoints_outside_range"` \n - `"exponential_heatmap_bucket_data"` \n - `"flame_graph"` \n - `"grafana_api"` \n - `"linear_heatmap_bucket_data"` \n - `"live"` \n - `"logs"` \n - `"manual_entry"` \n - `"no_data_points"` \n - `"node_graph"` \n - `"predictable_csv_wave"` \n - `"predictable_pulse"` \n - `"random_walk"` \n - `"random_walk_table"` \n - `"random_walk_with_error"` \n - `"raw_frame"` \n - `"server_error_500"` \n - `"simulation"` \n - `"slow_query"` \n - `"streaming_client"` \n - `"table_static"` \n - `"trace"` \n - `"usa"` \n - `"variables-query"` ' } }, - withScenarioId(value): { - scenarioId: value, - }, - '#withSeriesCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withSeriesCount(value): { - seriesCount: value, - }, - '#withSim': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSim(value): { - sim: value, - }, - '#withSimMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSimMixin(value): { - sim+: value, - }, - sim+: - { - '#withConfig': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withConfig(value): { - sim+: { - config: value, - }, - }, - '#withConfigMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withConfigMixin(value): { - sim+: { - config+: value, - }, - }, - '#withKey': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withKey(value): { - sim+: { - key: value, - }, - }, - '#withKeyMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withKeyMixin(value): { - sim+: { - key+: value, - }, - }, - key+: - { - '#withTick': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withTick(value): { - sim+: { - key+: { - tick: value, - }, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withType(value): { - sim+: { - key+: { - type: value, - }, - }, - }, - '#withUid': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUid(value): { - sim+: { - key+: { - uid: value, - }, - }, - }, - }, - '#withLast': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withLast(value=true): { - sim+: { - last: value, - }, - }, - '#withStream': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withStream(value=true): { - sim+: { - stream: value, - }, - }, - }, - '#withSpanCount': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withSpanCount(value): { - spanCount: value, - }, - '#withSpread': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withSpread(value): { - spread: value, - }, - '#withStartValue': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withStartValue(value): { - startValue: value, - }, - '#withStream': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStream(value): { - stream: value, - }, - '#withStreamMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withStreamMixin(value): { - stream+: value, - }, - stream+: - { - '#withBands': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['integer'] }], help: '' } }, - withBands(value): { - stream+: { - bands: value, - }, - }, - '#withNoise': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withNoise(value): { - stream+: { - noise: value, - }, - }, - '#withSpeed': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withSpeed(value): { - stream+: { - speed: value, - }, - }, - '#withSpread': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['number'] }], help: '' } }, - withSpread(value): { - stream+: { - spread: value, - }, - }, - '#withType': { 'function': { args: [{ default: null, enums: ['fetch', 'logs', 'signal', 'traces'], name: 'value', type: ['string'] }], help: 'Possible enum values:\n - `"fetch"` \n - `"logs"` \n - `"signal"` \n - `"traces"` ' } }, - withType(value): { - stream+: { - type: value, - }, - }, - '#withUrl': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withUrl(value): { - stream+: { - url: value, - }, - }, - }, - '#withStringInput': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'common parameter used by many query types' } }, - withStringInput(value): { - stringInput: value, - }, - '#withTimeRange': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTimeRange(value): { - timeRange: value, - }, - '#withTimeRangeMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withTimeRangeMixin(value): { - timeRange+: value, - }, - timeRange+: - { - '#withFrom': { 'function': { args: [{ default: 'now-6h', enums: null, name: 'value', type: ['string'] }], help: 'From is the start time of the query.' } }, - withFrom(value='now-6h'): { - timeRange+: { - from: value, - }, - }, - '#withTo': { 'function': { args: [{ default: 'now', enums: null, name: 'value', type: ['string'] }], help: 'To is the end time of the query.' } }, - withTo(value='now'): { - timeRange+: { - to: value, - }, - }, - }, - '#withUsa': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUsa(value): { - usa: value, - }, - '#withUsaMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withUsaMixin(value): { - usa+: value, - }, - usa+: - { - '#withFields': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFields(value): { - usa+: { - fields: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withFieldsMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withFieldsMixin(value): { - usa+: { - fields+: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withMode': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withMode(value): { - usa+: { - mode: value, - }, - }, - '#withPeriod': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withPeriod(value): { - usa+: { - period: value, - }, - }, - '#withStates': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withStates(value): { - usa+: { - states: - (if std.isArray(value) - then value - else [value]), - }, - }, - '#withStatesMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['array'] }], help: '' } }, - withStatesMixin(value): { - usa+: { - states+: - (if std.isArray(value) - then value - else [value]), - }, - }, - }, - '#withWithNil': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: '' } }, - withWithNil(value=true): { - withNil: value, - }, -} -+ (import '../custom/query/testData.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/role.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/role.libsonnet deleted file mode 100644 index 552f5a31a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/role.libsonnet +++ /dev/null @@ -1,24 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.role', name: 'role' }, - '#withDescription': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Role description' } }, - withDescription(value): { - description: value, - }, - '#withDisplayName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Optional display' } }, - withDisplayName(value): { - displayName: value, - }, - '#withGroupName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the team.' } }, - withGroupName(value): { - groupName: value, - }, - '#withHidden': { 'function': { args: [{ default: true, enums: null, name: 'value', type: ['boolean'] }], help: 'Do not show this role' } }, - withHidden(value=true): { - hidden: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The role identifier `managed:builtins:editor:permissions`' } }, - withName(value): { - name: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/rolebinding.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/rolebinding.libsonnet deleted file mode 100644 index acf521ed4..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/rolebinding.libsonnet +++ /dev/null @@ -1,92 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.rolebinding', name: 'rolebinding' }, - '#withRole': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object'] }], help: 'The role we are discussing' } }, - withRole(value): { - role: value, - }, - '#withRoleMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object', 'object'] }], help: 'The role we are discussing' } }, - withRoleMixin(value): { - role+: value, - }, - role+: - { - '#withBuiltinRoleRef': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withBuiltinRoleRef(value): { - role+: { - BuiltinRoleRef: value, - }, - }, - '#withBuiltinRoleRefMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withBuiltinRoleRefMixin(value): { - role+: { - BuiltinRoleRef+: value, - }, - }, - BuiltinRoleRef+: - { - '#withKind': { 'function': { args: [], help: '' } }, - withKind(): { - role+: { - kind: 'BuiltinRole', - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: ['viewer', 'editor', 'admin'], name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - role+: { - name: value, - }, - }, - }, - '#withCustomRoleRef': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCustomRoleRef(value): { - role+: { - CustomRoleRef: value, - }, - }, - '#withCustomRoleRefMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withCustomRoleRefMixin(value): { - role+: { - CustomRoleRef+: value, - }, - }, - CustomRoleRef+: - { - '#withKind': { 'function': { args: [], help: '' } }, - withKind(): { - role+: { - kind: 'Role', - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: '' } }, - withName(value): { - role+: { - name: value, - }, - }, - }, - }, - '#withSubject': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSubject(value): { - subject: value, - }, - '#withSubjectMixin': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['object'] }], help: '' } }, - withSubjectMixin(value): { - subject+: value, - }, - subject+: - { - '#withKind': { 'function': { args: [{ default: null, enums: ['Team', 'User'], name: 'value', type: ['string'] }], help: '' } }, - withKind(value): { - subject+: { - kind: value, - }, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'The team/user identifier name' } }, - withName(value): { - subject+: { - name: value, - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/team.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/team.libsonnet deleted file mode 100644 index 429a64fc0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/grafonnet/gen/grafonnet-v11.0.0/team.libsonnet +++ /dev/null @@ -1,12 +0,0 @@ -// This file is generated, do not manually edit. -{ - '#': { help: 'grafonnet.team', name: 'team' }, - '#withEmail': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Email of the team.' } }, - withEmail(value): { - email: value, - }, - '#withName': { 'function': { args: [{ default: null, enums: null, name: 'value', type: ['string'] }], help: 'Name of the team.' } }, - withName(value): { - name: value, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet deleted file mode 100644 index be43616c8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet +++ /dev/null @@ -1,646 +0,0 @@ -local utils = import 'mixin-utils/utils.libsonnet'; - -{ - dashboard(title, uid='', datasource='default', datasource_regex=''):: { - // Stuff that isn't materialised. - _nextPanel:: 1, - addRow(row):: self { - // automatically number panels in added rows. - local n = std.length(row.panels), - local nextPanel = super._nextPanel, - local panels = std.makeArray(n, function(i) - row.panels[i] { id: nextPanel + i }), - - _nextPanel: nextPanel + n, - rows+: [row { panels: panels }], - }, - - addTemplate(name, metric_name, label_name, hide=0, allValue=null, includeAll=false, sort=2):: self { - templating+: { - list+: [{ - allValue: allValue, - current: { - text: 'prod', - value: 'prod', - }, - datasource: '$datasource', - hide: hide, - includeAll: includeAll, - label: name, - multi: false, - name: name, - options: [], - query: 'label_values(%s, %s)' % [metric_name, label_name], - refresh: 1, - regex: '', - sort: sort, - tagValuesQuery: '', - tags: [], - tagsQuery: '', - type: 'query', - useTags: false, - }], - }, - }, - - addMultiTemplate(name, metric_name, label_name, hide=0, allValue='.+', sort=2, includeAll=true):: self { - templating+: { - list+: [{ - allValue: allValue, - current: { - selected: true, - text: 'All', - value: '$__all', - }, - datasource: '$datasource', - hide: hide, - includeAll: includeAll, - label: name, - multi: true, - name: name, - options: [], - query: 'label_values(%s, %s)' % [metric_name, label_name], - refresh: 1, - regex: '', - sort: sort, - tagValuesQuery: '', - tags: [], - tagsQuery: '', - type: 'query', - useTags: false, - }], - }, - }, - - addShowNativeLatencyVariable():: self { - templating+: { - list+: [{ - current: { - selected: true, - text: 'classic', - value: '1', - }, - description: 'Choose between showing latencies based on low precision classic or high precision native histogram metrics.', - hide: 0, - includeAll: false, - label: 'Latency metrics', - multi: false, - name: 'latency_metrics', - query: 'native : -1,classic : 1', - options: [ - { - selected: false, - text: 'native', - value: '-1', - }, - { - selected: true, - text: 'classic', - value: '1', - }, - ], - skipUrlSync: false, - type: 'custom', - useTags: false, - }], - }, - }, - - dashboardLinkUrl(title, url):: self { - links+: [ - { - asDropdown: false, - icon: 'external link', - includeVars: true, - keepTime: true, - tags: [], - targetBlank: true, - title: title, - tooltip: '', - type: 'link', - url: url, - }, - ], - }, - - // Stuff that is materialised. - uid: uid, - annotations: { - list: [], - }, - hideControls: false, - links: [], - rows: [], - schemaVersion: 14, - style: 'dark', - tags: [], - editable: true, - gnetId: null, - graphTooltip: 0, - templating: { - list: [ - { - current: { - text: datasource, - value: datasource, - }, - hide: 0, - label: 'Data source', - name: 'datasource', - options: [], - query: 'prometheus', - refresh: 1, - regex: datasource_regex, - type: 'datasource', - }, - ], - }, - time: { - from: 'now-1h', - to: 'now', - }, - refresh: '10s', - timepicker: { - refresh_intervals: [ - '5s', - '10s', - '30s', - '1m', - '5m', - '15m', - '30m', - '1h', - '2h', - '1d', - ], - time_options: [ - '5m', - '15m', - '1h', - '6h', - '12h', - '24h', - '2d', - '7d', - '30d', - ], - }, - timezone: 'utc', - title: title, - version: 0, - }, - - row(title):: { - _panels:: [], - addPanel(panel):: self { - _panels+: [panel], - }, - - panels: - // Automatically distribute panels within a row. - local n = std.length(self._panels); - [ - p { span: std.floor(12 / n) } - for p in self._panels - ], - - collapse: false, - height: '250px', - repeat: null, - repeatIteration: null, - repeatRowId: null, - showTitle: true, - title: title, - titleSize: 'h6', - }, - - // "graph" type, now deprecated. - panel(title):: { - aliasColors: {}, - bars: false, - dashLength: 10, - dashes: false, - datasource: '$datasource', - fill: 1, - legend: { - avg: false, - current: false, - max: false, - min: false, - show: true, - total: false, - values: false, - }, - lines: true, - linewidth: 1, - links: [], - nullPointMode: 'null as zero', - percentage: false, - pointradius: 5, - points: false, - renderer: 'flot', - seriesOverrides: [], - spaceLength: 10, - span: 6, - stack: false, - steppedLine: false, - targets: [], - thresholds: [], - timeFrom: null, - timeShift: null, - title: title, - tooltip: { - shared: true, - sort: 2, - value_type: 'individual', - }, - type: 'graph', - xaxis: { - buckets: null, - mode: 'time', - name: null, - show: true, - values: [], - }, - yaxes: $.yaxes('short'), - }, - - // "timeseries" panel, introduced with Grafana 7.4 and made standard in 8.0. - timeseriesPanel(title):: { - datasource: '$datasource', - fieldConfig: { - defaults: { - custom: { - drawStyle: 'line', - fillOpacity: 1, - lineWidth: 1, - pointSize: 5, - showPoints: 'never', - spanNulls: false, - stacking: { - group: 'A', - mode: 'none', - }, - }, - thresholds: { - mode: 'absolute', - steps: [], - }, - unit: 's', - }, - overrides: [], - }, - options: { - legend: { - showLegend: true, - }, - tooltip: { - mode: 'single', - sort: 'none', - }, - }, - links: [], - targets: [], - title: title, - type: 'timeseries', - }, - - queryPanel(queries, legends, legendLink=null):: { - - local qs = - if std.type(queries) == 'string' - then [queries] - else queries, - local ls = - if std.type(legends) == 'string' - then [legends] - else legends, - - local qsandls = if std.length(ls) == std.length(qs) - then std.makeArray(std.length(qs), function(x) { q: qs[x], l: ls[x] }) - else error 'length of queries is not equal to length of legends', - - targets+: [ - { - legendLink: legendLink, - expr: ql.q, - format: 'time_series', - legendFormat: ql.l, - } - for ql in qsandls - ], - }, - - statPanel(query, format='percentunit'):: { - local isNativeClassic = utils.isNativeClassicQuery(query), - type: 'singlestat', - thresholds: '70,80', - format: format, - targets: [ - { - expr: if isNativeClassic then utils.showClassicHistogramQuery(query) else query, - format: 'time_series', - instant: true, - refId: if isNativeClassic then 'A_classic' else 'A', - }, - ] + if isNativeClassic then [ - { - expr: utils.showNativeHistogramQuery(query), - format: 'time_series', - instant: true, - refId: 'A', - }, - ] else [], - }, - - tablePanel(queries, labelStyles):: { - local qs = - if std.type(queries) == 'string' - then [queries] - else queries, - - local style(labelStyle) = - if std.type(labelStyle) == 'string' - then { - alias: labelStyle, - colorMode: null, - colors: [], - dateFormat: 'YYYY-MM-DD HH:mm:ss', - decimals: 2, - thresholds: [], - type: 'string', - unit: 'short', - } - else { - alias: labelStyle.alias, - colorMode: null, - colors: [], - dateFormat: 'YYYY-MM-DD HH:mm:ss', - decimals: if std.objectHas(labelStyle, 'decimals') then labelStyle.decimals else 2, - thresholds: [], - type: if std.objectHas(labelStyle, 'type') then labelStyle.type else 'number', - unit: if std.objectHas(labelStyle, 'unit') then labelStyle.unit else 'short', - link: std.objectHas(labelStyle, 'link'), - linkTargetBlank: if std.objectHas(labelStyle, 'linkTargetBlank') then labelStyle.linkTargetBlank else false, - linkTooltip: if std.objectHas(labelStyle, 'linkTooltip') then labelStyle.linkTooltip else 'Drill down', - linkUrl: if std.objectHas(labelStyle, 'link') then labelStyle.link else '', - }, - - _styles:: { - // By default hide time. - Time: { - alias: 'Time', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - type: 'hidden', - }, - } + { - [label]: style(labelStyles[label]) - for label in std.objectFields(labelStyles) - }, - - styles: [ - self._styles[pattern] { pattern: pattern } - for pattern in std.objectFields(self._styles) - ] + [style('') + { pattern: '/.*/' }], - - transform: 'table', - type: 'table', - targets: [ - { - expr: qs[i], - format: 'table', - instant: true, - legendFormat: '', - refId: std.char(65 + i), - } - for i in std.range(0, std.length(qs) - 1) - ], - }, - - textPanel(title, markdown):: { - type: 'text', - title: title, - options: { - content: markdown, - mode: 'markdown', - }, - transparent: true, - datasource: null, - timeFrom: null, - timeShift: null, - fieldConfig: { - defaults: { - custom: {}, - }, - overrides: [], - }, - }, - - stack:: { - stack: true, - fill: 10, - linewidth: 0, - }, - - yaxes(args):: - local format = if std.type(args) == 'string' then args else null; - local options = if std.type(args) == 'object' then args else {}; - [ - { - format: format, - label: null, - logBase: 1, - max: null, - min: 0, - show: true, - } + options, - { - format: 'short', - label: null, - logBase: 1, - max: null, - min: null, - show: false, - }, - ], - - httpStatusColors:: { - '1xx': '#EAB839', - '2xx': '#7EB26D', - '3xx': '#6ED0E0', - '4xx': '#EF843C', - '5xx': '#E24D42', - OK: '#7EB26D', - success: '#7EB26D', - 'error': '#E24D42', - cancel: '#A9A9A9', - }, - - qpsPanel(selector, statusLabelName='status_code'):: { - aliasColors: $.httpStatusColors, - targets: [ - { - expr: - ||| - sum by (status) ( - label_replace(label_replace(rate(%s[$__rate_interval]), - "status", "${1}xx", "%s", "([0-9]).."), - "status", "${1}", "%s", "([a-zA-Z]+)")) - ||| % [selector, statusLabelName, statusLabelName], - format: 'time_series', - legendFormat: '{{status}}', - refId: 'A', - }, - ], - } + $.stack, - - // Assumes that the metricName is for a histogram (as opposed to qpsPanel above) - // Assumes that there is a dashboard variable named latency_metrics, values are -1 (native) or 1 (classic) - qpsPanelNativeHistogram(metricName, selector, statusLabelName='status_code'):: { - local sumByStatus(nativeClassicQuery) = { - local template = - ||| - sum by (status) ( - label_replace(label_replace(%(metricQuery)s, - "status", "${1}xx", "%(label)s", "([0-9]).."), - "status", "${1}", "%(label)s", "([a-zA-Z]+)")) - |||, - native: template % { metricQuery: nativeClassicQuery.native, label: statusLabelName }, - classic: template % { metricQuery: nativeClassicQuery.classic, label: statusLabelName }, - }, - fieldConfig+: { - defaults+: { - custom+: { - lineWidth: 0, - fillOpacity: 100, // Get solid fill. - stacking: { - mode: 'normal', - group: 'A', - }, - }, - unit: 'reqps', - min: 0, - }, - overrides+: [{ - matcher: { - id: 'byName', - options: status, - }, - properties: [ - { - id: 'color', - value: { - mode: 'fixed', - fixedColor: $.httpStatusColors[status], - }, - }, - ], - } for status in std.objectFieldsAll($.httpStatusColors)], - }, - targets: [ - { - expr: utils.showClassicHistogramQuery(sumByStatus(utils.ncHistogramCountRate(metricName, selector))), - format: 'time_series', - legendFormat: '{{status}}', - refId: 'A_classic', - }, - { - expr: utils.showNativeHistogramQuery(sumByStatus(utils.ncHistogramCountRate(metricName, selector))), - format: 'time_series', - legendFormat: '{{status}}', - refId: 'A', - }, - ], - } + $.stack, - - latencyPanel(metricName, selector, multiplier='1e3'):: { - nullPointMode: 'null as zero', - targets: [ - { - expr: 'histogram_quantile(0.99, sum(rate(%s_bucket%s[$__rate_interval])) by (le)) * %s' % [metricName, selector, multiplier], - format: 'time_series', - legendFormat: '99th Percentile', - refId: 'A', - }, - { - expr: 'histogram_quantile(0.50, sum(rate(%s_bucket%s[$__rate_interval])) by (le)) * %s' % [metricName, selector, multiplier], - format: 'time_series', - legendFormat: '50th Percentile', - refId: 'B', - }, - { - expr: 'sum(rate(%s_sum%s[$__rate_interval])) * %s / sum(rate(%s_count%s[$__rate_interval]))' % [metricName, selector, multiplier, metricName, selector], - format: 'time_series', - legendFormat: 'Average', - refId: 'C', - }, - ], - yaxes: $.yaxes('ms'), - }, - - // Assumes that there is a dashboard variable named latency_metrics, values are -1 (native) or 1 (classic) - latencyPanelNativeHistogram(metricName, selector, multiplier='1e3'):: { - nullPointMode: 'null as zero', - fieldConfig+: { - defaults+: { - custom+: { - fillOpacity: 10, - }, - unit: 'ms', - }, - }, - targets: [ - { - expr: utils.showNativeHistogramQuery(utils.ncHistogramQuantile('0.99', metricName, selector, multiplier=multiplier)), - format: 'time_series', - legendFormat: '99th percentile', - refId: 'A', - }, - { - expr: utils.showClassicHistogramQuery(utils.ncHistogramQuantile('0.99', metricName, selector, multiplier=multiplier)), - format: 'time_series', - legendFormat: '99th percentile', - refId: 'A_classic', - }, - { - expr: utils.showNativeHistogramQuery(utils.ncHistogramQuantile('0.50', metricName, selector, multiplier=multiplier)), - format: 'time_series', - legendFormat: '50th percentile', - refId: 'B', - }, - { - expr: utils.showClassicHistogramQuery(utils.ncHistogramQuantile('0.50', metricName, selector, multiplier=multiplier)), - format: 'time_series', - legendFormat: '50th percentile', - refId: 'B_classic', - }, - { - expr: utils.showNativeHistogramQuery(utils.ncHistogramAverageRate(metricName, selector, multiplier=multiplier)), - format: 'time_series', - legendFormat: 'Average', - refId: 'C', - }, - { - expr: utils.showClassicHistogramQuery(utils.ncHistogramAverageRate(metricName, selector, multiplier=multiplier)), - format: 'time_series', - legendFormat: 'Average', - refId: 'C_classic', - }, - ], - yaxes: $.yaxes('ms'), - }, - - selector:: { - eq(label, value):: { label: label, op: '=', value: value }, - neq(label, value):: { label: label, op: '!=', value: value }, - re(label, value):: { label: label, op: '=~', value: value }, - nre(label, value):: { label: label, op: '!~', value: value }, - }, - - toPrometheusSelector(selector):: - local pairs = [ - '%(label)s%(op)s"%(value)s"' % matcher - for matcher in selector - ]; - '{%s}' % std.join(', ', pairs), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md deleted file mode 100644 index c6777425c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/docsonnet/doc-util/README.md +++ /dev/null @@ -1,326 +0,0 @@ -# doc-util - -`doc-util` provides a Jsonnet interface for `docsonnet`, - a Jsonnet API doc generator that uses structured data instead of comments. - -## Install - -``` -jb install github.com/jsonnet-libs/docsonnet/doc-util@master -``` - -## Usage - -```jsonnet -local d = import "github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet" -``` - - -## Index - -* [`fn arg(name, type, default, enums)`](#fn-arg) -* [`fn fn(help, args)`](#fn-fn) -* [`fn obj(help, fields)`](#fn-obj) -* [`fn pkg(name, url, help, filename="", version="master")`](#fn-pkg) -* [`fn render(obj)`](#fn-render) -* [`fn val(type, help, default)`](#fn-val) -* [`obj argument`](#obj-argument) - * [`fn fromSchema(name, schema)`](#fn-argumentfromschema) - * [`fn new(name, type, default, enums)`](#fn-argumentnew) -* [`obj func`](#obj-func) - * [`fn new(help, args)`](#fn-funcnew) - * [`fn withArgs(args)`](#fn-funcwithargs) - * [`fn withHelp(help)`](#fn-funcwithhelp) -* [`obj object`](#obj-object) - * [`fn new(help, fields)`](#fn-objectnew) - * [`fn withFields(fields)`](#fn-objectwithfields) -* [`obj value`](#obj-value) - * [`fn new(type, help, default)`](#fn-valuenew) -* [`obj T`](#obj-t) -* [`obj package`](#obj-package) - * [`fn new(name, url, help, filename="", version="master")`](#fn-packagenew) - * [`fn newSub(name, help)`](#fn-packagenewsub) - -## Fields - -### fn arg - -```jsonnet -arg(name, type, default, enums) -``` - -PARAMETERS: - -* **name** (`string`) -* **type** (`string`) -* **default** (`any`) -* **enums** (`array`) - -`arg` is a shorthand for `argument.new` -### fn fn - -```jsonnet -fn(help, args) -``` - -PARAMETERS: - -* **help** (`string`) -* **args** (`array`) - -`fn` is a shorthand for `func.new` -### fn obj - -```jsonnet -obj(help, fields) -``` - -PARAMETERS: - -* **help** (`string`) -* **fields** (`object`) - -`obj` is a shorthand for `object.new` -### fn pkg - -```jsonnet -pkg(name, url, help, filename="", version="master") -``` - -PARAMETERS: - -* **name** (`string`) -* **url** (`string`) -* **help** (`string`) -* **filename** (`string`) - - default value: `""` -* **version** (`string`) - - default value: `"master"` - -`new` is a shorthand for `package.new` -### fn render - -```jsonnet -render(obj) -``` - -PARAMETERS: - -* **obj** (`object`) - -`render` converts the docstrings to human readable Markdown files. - -Usage: - -```jsonnet -// docs.jsonnet -d.render(import 'main.libsonnet') -``` - -Call with: `jsonnet -S -c -m docs/ docs.jsonnet` - -### fn val - -```jsonnet -val(type, help, default) -``` - -PARAMETERS: - -* **type** (`string`) -* **help** (`string`) -* **default** (`any`) - -`val` is a shorthand for `value.new` -### obj argument - -Utilities for creating function arguments - -#### fn argument.fromSchema - -```jsonnet -argument.fromSchema(name, schema) -``` - -PARAMETERS: - -* **name** (`string`) -* **schema** (`object`) - -`fromSchema` creates a new function argument, taking a JSON `schema` to describe the type information for this argument. - -Examples: - -```jsonnet -[ - d.argument.fromSchema('foo', { type: 'string' }), - d.argument.fromSchema('bar', { type: 'string', default='loo' }), - d.argument.fromSchema('baz', { type: 'number', enum=[1,2,3] }), -] -``` - -#### fn argument.new - -```jsonnet -argument.new(name, type, default, enums) -``` - -PARAMETERS: - -* **name** (`string`) -* **type** (`string`) -* **default** (`any`) -* **enums** (`array`) - -`new` creates a new function argument, taking the `name`, the `type`. Optionally it -can take a `default` value and `enum`-erate potential values. - -Examples: - -```jsonnet -[ - d.argument.new('foo', d.T.string), - d.argument.new('bar', d.T.string, default='loo'), - d.argument.new('baz', d.T.number, enums=[1,2,3]), -] -``` - -### obj func - -Utilities for documenting Jsonnet methods (functions of objects) - -#### fn func.new - -```jsonnet -func.new(help, args) -``` - -PARAMETERS: - -* **help** (`string`) -* **args** (`array`) - -new creates a new function, optionally with description and arguments -#### fn func.withArgs - -```jsonnet -func.withArgs(args) -``` - -PARAMETERS: - -* **args** (`array`) - -The `withArgs` modifier overrides the arguments of that function -#### fn func.withHelp - -```jsonnet -func.withHelp(help) -``` - -PARAMETERS: - -* **help** (`string`) - -The `withHelp` modifier overrides the help text of that function -### obj object - -Utilities for documenting Jsonnet objects (`{ }`). - -#### fn object.new - -```jsonnet -object.new(help, fields) -``` - -PARAMETERS: - -* **help** (`string`) -* **fields** (`object`) - -new creates a new object, optionally with description and fields -#### fn object.withFields - -```jsonnet -object.withFields(fields) -``` - -PARAMETERS: - -* **fields** (`object`) - -The `withFields` modifier overrides the fields property of an already created object -### obj value - -Utilities for documenting plain Jsonnet values (primitives) - -#### fn value.new - -```jsonnet -value.new(type, help, default) -``` - -PARAMETERS: - -* **type** (`string`) -* **help** (`string`) -* **default** (`any`) - -new creates a new object of given type, optionally with description and default value -### obj T - -* `T.any` (`string`): `"any"` - argument of type "any" -* `T.array` (`string`): `"array"` - argument of type "array" -* `T.boolean` (`string`): `"bool"` - argument of type "boolean" -* `T.func` (`string`): `"function"` - argument of type "func" -* `T.null` (`string`): `"null"` - argument of type "null" -* `T.number` (`string`): `"number"` - argument of type "number" -* `T.object` (`string`): `"object"` - argument of type "object" -* `T.string` (`string`): `"string"` - argument of type "string" - -### obj package - - -#### fn package.new - -```jsonnet -package.new(name, url, help, filename="", version="master") -``` - -PARAMETERS: - -* **name** (`string`) -* **url** (`string`) -* **help** (`string`) -* **filename** (`string`) - - default value: `""` -* **version** (`string`) - - default value: `"master"` - -`new` creates a new package - -Arguments: - -* given `name` -* source `url` for jsonnet-bundler and the import -* `help` text -* `filename` for the import, defaults to blank for backward compatibility -* `version` for jsonnet-bundler install, defaults to `master` just like jsonnet-bundler - -#### fn package.newSub - -```jsonnet -package.newSub(name, help) -``` - -PARAMETERS: - -* **name** (`string`) -* **help** (`string`) - -`newSub` creates a package without the preconfigured install/usage templates. - -Arguments: - -* given `name` -* `help` text diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet deleted file mode 100644 index f3ec29849..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet +++ /dev/null @@ -1,263 +0,0 @@ -{ - local d = self, - - '#': - d.pkg( - name='doc-util', - url='github.com/jsonnet-libs/docsonnet/doc-util', - help=||| - `doc-util` provides a Jsonnet interface for `docsonnet`, - a Jsonnet API doc generator that uses structured data instead of comments. - |||, - filename=std.thisFile, - ) - + d.package.withUsageTemplate( - 'local d = import "%(import)s"' - ), - - package:: { - '#new':: d.fn(||| - `new` creates a new package - - Arguments: - - * given `name` - * source `url` for jsonnet-bundler and the import - * `help` text - * `filename` for the import, defaults to blank for backward compatibility - * `version` for jsonnet-bundler install, defaults to `master` just like jsonnet-bundler - |||, [ - d.arg('name', d.T.string), - d.arg('url', d.T.string), - d.arg('help', d.T.string), - d.arg('filename', d.T.string, ''), - d.arg('version', d.T.string, 'master'), - ]), - new(name, url, help, filename='', version='master'):: - { - name: name, - help: - help - + std.get(self, 'installTemplate', '') % self - + std.get(self, 'usageTemplate', '') % self, - 'import': - if filename != '' - then url + '/' + filename - else url, - url: url, - filename: filename, - version: version, - - } - + self.withInstallTemplate( - 'jb install %(url)s@%(version)s' - ) - + self.withUsageTemplate( - 'local %(name)s = import "%(import)s"' - ), - - '#newSub':: d.fn(||| - `newSub` creates a package without the preconfigured install/usage templates. - - Arguments: - - * given `name` - * `help` text - |||, [ - d.arg('name', d.T.string), - d.arg('help', d.T.string), - ]), - newSub(name, help):: - { - name: name, - help: help, - }, - - withInstallTemplate(template):: { - installTemplate: - if template != null - then - ||| - - ## Install - - ``` - %s - ``` - ||| % template - else '', - }, - - withUsageTemplate(template):: { - usageTemplate: - if template != null - then - ||| - - ## Usage - - ```jsonnet - %s - ``` - ||| % template - else '', - }, - }, - - '#pkg':: self.package['#new'] + d.func.withHelp('`new` is a shorthand for `package.new`'), - pkg:: self.package.new, - - '#object': d.obj('Utilities for documenting Jsonnet objects (`{ }`).'), - object:: { - '#new': d.fn('new creates a new object, optionally with description and fields', [d.arg('help', d.T.string), d.arg('fields', d.T.object)]), - new(help='', fields={}):: { object: { - help: help, - fields: fields, - } }, - - '#withFields': d.fn('The `withFields` modifier overrides the fields property of an already created object', [d.arg('fields', d.T.object)]), - withFields(fields):: { object+: { - fields: fields, - } }, - }, - - '#obj': self.object['#new'] + d.func.withHelp('`obj` is a shorthand for `object.new`'), - obj:: self.object.new, - - '#func': d.obj('Utilities for documenting Jsonnet methods (functions of objects)'), - func:: { - '#new': d.fn('new creates a new function, optionally with description and arguments', [d.arg('help', d.T.string), d.arg('args', d.T.array)]), - new(help='', args=[]):: { 'function': { - help: help, - args: args, - } }, - - '#withHelp': d.fn('The `withHelp` modifier overrides the help text of that function', [d.arg('help', d.T.string)]), - withHelp(help):: { 'function'+: { - help: help, - } }, - - '#withArgs': d.fn('The `withArgs` modifier overrides the arguments of that function', [d.arg('args', d.T.array)]), - withArgs(args):: { 'function'+: { - args: args, - } }, - }, - - '#fn': self.func['#new'] + d.func.withHelp('`fn` is a shorthand for `func.new`'), - fn:: self.func.new, - - '#argument': d.obj('Utilities for creating function arguments'), - argument:: { - '#new': d.fn(||| - `new` creates a new function argument, taking the `name`, the `type`. Optionally it - can take a `default` value and `enum`-erate potential values. - - Examples: - - ```jsonnet - [ - d.argument.new('foo', d.T.string), - d.argument.new('bar', d.T.string, default='loo'), - d.argument.new('baz', d.T.number, enums=[1,2,3]), - ] - ``` - |||, [ - d.arg('name', d.T.string), - d.arg('type', d.T.string), - d.arg('default', d.T.any), - d.arg('enums', d.T.array), - ]), - new(name, type, default=null, enums=null): { - name: name, - type: type, - default: default, - enums: enums, - }, - '#fromSchema': d.fn(||| - `fromSchema` creates a new function argument, taking a JSON `schema` to describe the type information for this argument. - - Examples: - - ```jsonnet - [ - d.argument.fromSchema('foo', { type: 'string' }), - d.argument.fromSchema('bar', { type: 'string', default='loo' }), - d.argument.fromSchema('baz', { type: 'number', enum=[1,2,3] }), - ] - ``` - |||, [ - d.arg('name', d.T.string), - d.arg('schema', d.T.object), - ]), - fromSchema(name, schema): { - name: name, - schema: schema, - }, - }, - '#arg': self.argument['#new'] + self.func.withHelp('`arg` is a shorthand for `argument.new`'), - arg:: self.argument.new, - - '#value': d.obj('Utilities for documenting plain Jsonnet values (primitives)'), - value:: { - '#new': d.fn('new creates a new object of given type, optionally with description and default value', [d.arg('type', d.T.string), d.arg('help', d.T.string), d.arg('default', d.T.any)]), - new(type, help='', default=null): { value: { - help: help, - type: type, - default: default, - } }, - }, - '#val': self.value['#new'] + self.func.withHelp('`val` is a shorthand for `value.new`'), - val:: self.value.new, - - // T contains constants for the Jsonnet types - T:: { - '#string': d.val(d.T.string, 'argument of type "string"'), - string: 'string', - - '#number': d.val(d.T.string, 'argument of type "number"'), - number: 'number', - int: self.number, - integer: self.number, - - '#boolean': d.val(d.T.string, 'argument of type "boolean"'), - boolean: 'bool', - bool: self.boolean, - - '#object': d.val(d.T.string, 'argument of type "object"'), - object: 'object', - - '#array': d.val(d.T.string, 'argument of type "array"'), - array: 'array', - - '#any': d.val(d.T.string, 'argument of type "any"'), - any: 'any', - - '#null': d.val(d.T.string, 'argument of type "null"'), - 'null': 'null', - nil: self['null'], - - '#func': d.val(d.T.string, 'argument of type "func"'), - func: 'function', - 'function': self.func, - }, - - '#render': d.fn( - ||| - `render` converts the docstrings to human readable Markdown files. - - Usage: - - ```jsonnet - // docs.jsonnet - d.render(import 'main.libsonnet') - ``` - - Call with: `jsonnet -S -c -m docs/ docs.jsonnet` - |||, - args=[ - d.arg('obj', d.T.object), - ] - ), - render:: (import './render.libsonnet').render, - -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet deleted file mode 100644 index 758b03329..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/docsonnet/doc-util/render.libsonnet +++ /dev/null @@ -1,479 +0,0 @@ -{ - local root = self, - - render(obj): - assert std.isObject(obj) && '#' in obj : 'error: object is not a docsonnet package'; - local package = self.package(obj); - package.toFiles(), - - findPackages(obj, path=[]): { - local find(obj, path, parentWasPackage=true) = - std.foldl( - function(acc, k) - acc - + ( - // If matches a package but warn if also has an object docstring - if '#' in obj[k] && '#' + k in obj - && !std.objectHasAll(obj[k]['#'], 'ignore') - then std.trace( - 'warning: %s both defined as object and package' % k, - [root.package(obj[k], path + [k], parentWasPackage)] - ) - // If matches a package, return it - else if '#' in obj[k] - && !std.objectHasAll(obj[k]['#'], 'ignore') - then [root.package(obj[k], path + [k], parentWasPackage)] - // If not, keep looking - else find(obj[k], path + [k], parentWasPackage=false) - ), - std.filter( - function(k) - !std.startsWith(k, '#') - && std.isObject(obj[k]), - std.objectFieldsAll(obj) - ), - [] - ), - - packages: find(obj, path), - - hasPackages(): std.length(self.packages) > 0, - - toIndex(relativeTo=[]): - if self.hasPackages() - then - std.join('\n', [ - '* ' + p.link(relativeTo) - for p in self.packages - ]) - + '\n' - else '', - - toFiles(): - std.foldl( - function(acc, p) - acc - + { [p.path]: p.toString() } - + p.packages.toFiles(), - self.packages, - {} - ), - }, - - package(obj, path=[], parentWasPackage=true): { - local this = self, - local doc = obj['#'], - - packages: root.findPackages(obj, path), - fields: root.fields(obj), - - local pathsuffix = - (if self.packages.hasPackages() - then '/index.md' - else '.md'), - - // filepath on disk - path: - std.join('/', path) - + pathsuffix, - - link(relativeTo): - local relativepath = root.util.getRelativePath(path, relativeTo); - '[%s](%s)' % [ - std.join('.', relativepath), - std.join('/', relativepath) - + pathsuffix, - ], - - toFiles(): - { 'README.md': this.toString() } - + self.packages.toFiles(), - - toString(): - std.join( - '\n', - [ - '# ' + doc.name + '\n', - std.get(doc, 'help', ''), - '', - ] - + (if self.packages.hasPackages() - then [ - '## Subpackages\n\n' - + self.packages.toIndex(path), - ] - else []) - + (if self.fields.hasFields() - then [ - '## Index\n\n' - + self.fields.toIndex() - + '\n## Fields\n' - + self.fields.toString(), - ] - else []) - ), - }, - - fields(obj, path=[]): { - values: root.findValues(obj, path), - functions: root.findFunctions(obj, path), - objects: root.findObjects(obj, path), - - hasFields(): - std.any([ - self.values.hasFields(), - self.functions.hasFields(), - self.objects.hasFields(), - ]), - - toIndex(): - std.join('', [ - self.functions.toIndex(), - self.objects.toIndex(), - ]), - - toString(): - std.join('', [ - self.values.toString(), - self.functions.toString(), - self.objects.toString(), - ]), - }, - - findObjects(obj, path=[]): { - local keys = - std.filter( - root.util.filter('object', obj), - std.objectFieldsAll(obj) - ), - - local undocumentedKeys = - std.filter( - function(k) - std.all([ - !std.startsWith(k, '#'), - std.isObject(obj[k]), - !std.objectHasAll(obj[k], 'ignore'), - !('#' + k in obj), // not documented in parent - !('#' in obj[k]), // not a sub package - ]), - std.objectFieldsAll(obj) - ), - - objects: - std.foldl( - function(acc, k) - acc + [ - root.obj( - root.util.realkey(k), - obj[k], - obj[root.util.realkey(k)], - path, - ), - ], - keys, - [] - ) - + std.foldl( - function(acc, k) - local o = root.obj( - k, - { object: { help: '' } }, - obj[k], - path, - ); - acc - + (if o.fields.hasFields() - then [o] - else []), - undocumentedKeys, - [] - ), - - hasFields(): std.length(self.objects) > 0, - - toIndex(): - if self.hasFields() - then - std.join('', [ - std.join( - '', - [' ' for d in std.range(0, (std.length(path) * 2) - 1)] - + ['* ', f.link] - + ['\n'] - + (if f.fields.hasFields() - then [f.fields.toIndex()] - else []) - ) - for f in self.objects - ]) - else '', - - toString(): - if self.hasFields() - then - std.join('', [ - o.toString() - for o in self.objects - ]) - else '', - }, - - obj(name, doc, obj, path): { - fields: root.fields(obj, path + [name]), - - path: std.join('.', path + [name]), - fragment: root.util.fragment(std.join('', path + [name])), - link: '[`obj %s`](#obj-%s)' % [name, self.fragment], - - toString(): - std.join( - '\n', - [root.util.title('obj ' + self.path, std.length(path) + 2)] - + (if std.get(doc.object, 'help', '') != '' - then [doc.object.help] - else []) - + [self.fields.toString()] - ), - }, - - findFunctions(obj, path=[]): { - local keys = - std.filter( - root.util.filter('function', obj), - std.objectFieldsAll(obj) - ), - - functions: - std.foldl( - function(acc, k) - acc + [ - root.func( - root.util.realkey(k), - obj[k], - path, - ), - ], - keys, - [] - ), - - hasFields(): std.length(self.functions) > 0, - - toIndex(): - if self.hasFields() - then - std.join('', [ - std.join( - '', - [' ' for d in std.range(0, (std.length(path) * 2) - 1)] - + ['* ', f.link] - + ['\n'] - ) - for f in self.functions - ]) - else '', - - toString(): - if self.hasFields() - then - std.join('', [ - f.toString() - for f in self.functions - ]) - else '', - }, - - func(name, doc, path): { - path: std.join('.', path + [name]), - fragment: root.util.fragment(std.join('', path + [name])), - link: '[`fn %s(%s)`](#fn-%s)' % [name, self.args, self.fragment], - - local getType(arg) = - local type = - if 'schema' in arg - then std.get(arg.schema, 'type', '') - else std.get(arg, 'type', ''); - if std.isArray(type) - then std.join(',', ['`%s`' % t for t in std.set(type)]) - else '`%s`' % type, - - // Use BelRune as default can be 'null' as a value. Only supported for arg.schema, arg.default didn't support this, not sure how to support without breaking asssumptions downstream. - local BelRune = std.char(7), - local getDefault(arg) = - if 'schema' in arg - then std.get(arg.schema, 'default', BelRune) - else - local d = std.get(arg, 'default', BelRune); - if d == null - then BelRune - else d, - - local getEnum(arg) = - if 'schema' in arg - then std.get(arg.schema, 'enum', []) - else - local d = std.get(arg, 'enums', []); - if d == null - then [] - else d, - - local manifest(value) = - std.manifestJsonEx(value, '', '', ': '), - - args: - std.join(', ', [ - local default = getDefault(arg); - if default != BelRune - then std.join('=', [ - arg.name, - manifest(default), - ]) - else arg.name - for arg in doc['function'].args - ]), - - - args_list: - if std.length(doc['function'].args) > 0 - then - '\nPARAMETERS:\n\n' - + std.join('\n', [ - '* **%s** (%s)' % [arg.name, getType(arg)] - + ( - local default = getDefault(arg); - if default != BelRune - then '\n - default value: `%s`' % manifest(default) - else '' - ) - + ( - local enum = getEnum(arg); - if enum != [] - then - '\n - valid values: %s' % - std.join(', ', [ - '`%s`' % manifest(item) - for item in enum - ]) - else '' - ) - for arg in doc['function'].args - ]) - else '', - - toString(): - std.join('\n', [ - root.util.title('fn ' + self.path, std.length(path) + 2), - ||| - ```jsonnet - %s(%s) - ``` - %s - ||| % [self.path, self.args, self.args_list], - std.get(doc['function'], 'help', ''), - ]), - }, - - findValues(obj, path=[]): { - local keys = - std.filter( - root.util.filter('value', obj), - std.objectFieldsAll(obj) - ), - - values: - std.foldl( - function(acc, k) - acc + [ - root.val( - root.util.realkey(k), - obj[k], - obj[root.util.realkey(k)], - path, - ), - ], - keys, - [] - ), - - hasFields(): std.length(self.values) > 0, - - toString(): - if self.hasFields() - then - std.join('\n', [ - '* ' + f.toString() - for f in self.values - ]) + '\n' - else '', - }, - - val(name, doc, obj, path): { - toString(): - std.join(' ', [ - '`%s`' % std.join('.', path + [name]), - '(`%s`):' % doc.value.type, - '`"%s"`' % obj, - '-', - std.get(doc.value, 'help', ''), - ]), - }, - - util: { - realkey(key): - assert std.startsWith(key, '#') : 'Key %s not a docstring key' % key; - key[1:], - title(title, depth=0): - std.join( - '', - ['\n'] - + ['#' for i in std.range(0, depth)] - + [' ', title, '\n'] - ), - fragment(title): - std.asciiLower( - std.strReplace( - std.strReplace(title, '.', '') - , ' ', '-' - ) - ), - filter(type, obj): - function(k) - std.all([ - std.startsWith(k, '#'), - std.isObject(obj[k]), - !std.objectHasAll(obj[k], 'ignore'), - type in obj[k], - root.util.realkey(k) in obj, - ]), - - getRelativePath(path, relativeTo): - local shortest = std.min(std.length(relativeTo), std.length(path)); - - local commonIndex = - std.foldl( - function(acc, i) ( - if acc.stop - then acc - else - acc + { - // stop count if path diverges - local stop = relativeTo[i] != path[i], - stop: stop, - count+: if stop then 0 else 1, - } - ), - std.range(0, shortest - 1), - { stop: false, count: 0 } - ).count; - - local _relativeTo = relativeTo[commonIndex:]; - local _path = path[commonIndex:]; - - // prefix for relative difference - local prefix = ['..' for i in std.range(0, std.length(_relativeTo) - 1)]; - - // return path with prefix - prefix + _path, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/.github/workflows/tests.yml b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/.github/workflows/tests.yml deleted file mode 100644 index bfe3f8271..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/.github/workflows/tests.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: tests -on: - pull_request: {} - push: - branches: - - main - - master - -jobs: - test: - name: test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 - - name: make test - run: | - go install github.com/google/go-jsonnet/cmd/jsonnet@latest - go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest - make test - docs: - name: docs - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 - - name: make docs - run: | - go install github.com/jsonnet-libs/docsonnet@master - make docs - git diff --exit-code - \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/.gitignore b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/.gitignore deleted file mode 100644 index bb476a118..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -.jekyll-cache -jsonnetfile.lock.json -vendor diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/LICENSE b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/LICENSE deleted file mode 100644 index 0a39b255a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018 grafana, sh0rez - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/Makefile b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/Makefile deleted file mode 100644 index 7ffe3aa9e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -.PHONY: test -test: - @cd test/; \ - jb install; \ - RESULT=0; \ - for f in $$(find . -path './.git' -prune -o -name 'vendor' -prune -o -name '*_test.jsonnet' -print); do \ - echo "$$f"; \ - jsonnet -J vendor -J lib "$$f"; \ - RESULT=$$(($$RESULT + $$?)); \ - done; \ - exit $$RESULT - - -.PHONY: docs -docs: - docsonnet main.libsonnet diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/README.md deleted file mode 100644 index a060428ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# `xtd` - -`xtd` aims to collect useful functions not included in the Jsonnet standard library (`std`). - -## Install - -```console -jb install github.com/jsonnet-libs/xtd -``` - -## Usage - -```jsonnet -local xtd = import "github.com/jsonnet-libs/xtd/main.libsonnet" -``` - -## Docs - -[docs](docs/README.md) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet deleted file mode 100644 index d32ddb305..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/aggregate.libsonnet +++ /dev/null @@ -1,104 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - local this = self, - - '#': d.pkg( - name='aggregate', - url='github.com/jsonnet-libs/xtd/aggregate.libsonnet', - help=||| - `aggregate` implements helper functions to aggregate arrays of objects into objects with arrays. - - Example: - - ```jsonnet - local apps = [ - { - appid: 'id1', - name: 'yo', - id: i, - } - for i in std.range(0, 10) - ]; - - aggregate.byKeys(apps, ['appid', 'name']); - ``` - - Output: - - ```json - { - "id1": { - "yo": [ - { - "appid": "id1", - "id": 0, - "name": "yo" - }, - { - "appid": "id1", - "id": 1, - "name": "yo" - }, - ... - ] - } - } - ``` - |||, - ), - - '#byKey':: d.fn( - ||| - `byKey` aggregates an array by the value of `key` - |||, - [ - d.arg('arr', d.T.array), - d.arg('key', d.T.string), - ] - ), - byKey(arr, key): - // find all values of key - local values = std.set([ - item[key] - for item in arr - ]); - - // create the aggregate for the value of each key - { - [value]: [ - item - for item in std.filter( - function(x) - x[key] == value, - arr - ) - ] - for value in values - }, - - '#byKeys':: d.fn( - ||| - `byKey` aggregates an array by iterating over `keys`, each item in `keys` nests the - aggregate one layer deeper. - |||, - [ - d.arg('arr', d.T.array), - d.arg('keys', d.T.array), - ] - ), - byKeys(arr, keys): - local aggregate = self.byKey(arr, keys[0]); - // if last key in keys - if std.length(keys) == 1 - - // then return aggregate - then aggregate - - // else aggregate with remaining keys - else { - [k]: this.byKeys(aggregate[k], keys[1:]) - for k in std.objectFields(aggregate) - }, - -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/array.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/array.libsonnet deleted file mode 100644 index b43c0f0ea..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/array.libsonnet +++ /dev/null @@ -1,55 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#': d.pkg( - name='array', - url='github.com/jsonnet-libs/xtd/array.libsonnet', - help='`array` implements helper functions for processing arrays.', - ), - - '#slice':: d.fn( - '`slice` works the same as `std.slice` but with support for negative index/end.', - [ - d.arg('indexable', d.T.array), - d.arg('index', d.T.number), - d.arg('end', d.T.number, default='null'), - d.arg('step', d.T.number, default=1), - ] - ), - slice(indexable, index, end=null, step=1): - local invar = { - index: - if index != null - then - if index < 0 - then std.length(indexable) + index - else index - else 0, - end: - if end != null - then - if end < 0 - then std.length(indexable) + end - else end - else std.length(indexable), - }; - indexable[invar.index:invar.end:step], - - '#filterMapWithIndex':: d.fn( - ||| - `filterMapWithIndex` works the same as `std.filterMap` with the addition that the index is passed to the functions. - - `filter_func` and `map_func` function signature: `function(index, array_item)` - |||, - [ - d.arg('filter_func', d.T.func), - d.arg('map_func', d.T.func), - d.arg('arr', d.T.array), - ], - ), - filterMapWithIndex(filter_func, map_func, arr): [ - map_func(i, arr[i]) - for i in std.range(0, std.length(arr) - 1) - if filter_func(i, arr[i]) - ], -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet deleted file mode 100644 index f431376a6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/ascii.libsonnet +++ /dev/null @@ -1,99 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#': d.pkg( - name='ascii', - url='github.com/jsonnet-libs/xtd/ascii.libsonnet', - help='`ascii` implements helper functions for ascii characters', - ), - - local cp(c) = std.codepoint(c), - - '#isLower':: d.fn( - '`isLower` reports whether ASCII character `c` is a lower case letter', - [d.arg('c', d.T.string)] - ), - isLower(c): cp(c) >= 97 && cp(c) < 123, - - '#isUpper':: d.fn( - '`isUpper` reports whether ASCII character `c` is a upper case letter', - [d.arg('c', d.T.string)] - ), - isUpper(c): cp(c) >= 65 && cp(c) < 91, - - '#isNumber':: d.fn( - '`isNumber` reports whether character `c` is a number.', - [d.arg('c', d.T.string)] - ), - isNumber(c): std.isNumber(c) || (cp(c) >= 48 && cp(c) < 58), - - '#isStringNumeric':: d.fn( - '`isStringNumeric` reports whether string `s` consists only of numeric characters.', - [d.arg('str', d.T.string)] - ), - isStringNumeric(str): std.all(std.map(self.isNumber, std.stringChars(str))), - - '#isStringJSONNumeric':: d.fn( - '`isStringJSONNumeric` reports whether string `s` is a number as defined by [JSON](https://www.json.org/json-en.html).', - [d.arg('str', d.T.string)] - ), - isStringJSONNumeric(str): - // "1" "9" - local onenine(c) = (cp(c) >= 49 && cp(c) <= 57); - - // "0" - local digit(c) = (cp(c) == 48 || onenine(c)); - - local digits(str) = - std.length(str) > 0 - && std.all( - std.foldl( - function(acc, c) - acc + [digit(c)], - std.stringChars(str), - [], - ) - ); - - local fraction(str) = str == '' || (str[0] == '.' && digits(str[1:])); - - local sign(c) = (c == '-' || c == '+'); - - local exponent(str) = - str == '' - || (str[0] == 'E' && digits(str[1:])) - || (str[0] == 'e' && digits(str[1:])) - || (std.length(str) > 1 && str[0] == 'E' && sign(str[1]) && digits(str[2:])) - || (std.length(str) > 1 && str[0] == 'e' && sign(str[1]) && digits(str[2:])); - - - local integer(str) = - (std.length(str) == 1 && digit(str[0])) - || (std.length(str) > 0 && onenine(str[0]) && digits(str[1:])) - || (std.length(str) > 1 && str[0] == '-' && digit(str[1])) - || (std.length(str) > 1 && str[0] == '-' && onenine(str[1]) && digits(str[2:])); - - local expectInteger = - if std.member(str, '.') - then std.split(str, '.')[0] - else if std.member(str, 'e') - then std.split(str, 'e')[0] - else if std.member(str, 'E') - then std.split(str, 'E')[0] - else str; - - local expectFraction = - if std.member(str, 'e') - then std.split(str[std.length(expectInteger):], 'e')[0] - else if std.member(str, 'E') - then std.split(str[std.length(expectInteger):], 'E')[0] - else str[std.length(expectInteger):]; - - local expectExponent = str[std.length(expectInteger) + std.length(expectFraction):]; - - std.all([ - integer(expectInteger), - fraction(expectFraction), - exponent(expectExponent), - ]), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet deleted file mode 100644 index ee42c66b4..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/camelcase.libsonnet +++ /dev/null @@ -1,100 +0,0 @@ -local xtd = import './main.libsonnet'; -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#': d.pkg( - name='camelcase', - url='github.com/jsonnet-libs/xtd/camelcase.libsonnet', - help='`camelcase` can split camelCase words into an array of words.', - ), - - '#split':: d.fn( - ||| - `split` splits a camelcase word and returns an array of words. It also supports - digits. Both lower camel case and upper camel case are supported. It only supports - ASCII characters. - For more info please check: http://en.wikipedia.org/wiki/CamelCase - Based on https://github.com/fatih/camelcase/ - |||, - [d.arg('src', d.T.string)] - ), - split(src): - if src == '' - then [''] - else - local runes = std.foldl( - function(acc, r) - acc { - local class = - if xtd.ascii.isNumber(r) - then 1 - else if xtd.ascii.isLower(r) - then 2 - else if xtd.ascii.isUpper(r) - then 3 - else 4, - - lastClass:: class, - - runes: - if class == super.lastClass - then super.runes[:std.length(super.runes) - 1] - + [super.runes[std.length(super.runes) - 1] + r] - else super.runes + [r], - }, - [src[i] for i in std.range(0, std.length(src) - 1)], - { lastClass:: 0, runes: [] } - ).runes; - - local fixRunes = - std.foldl( - function(runes, i) - if xtd.ascii.isUpper(runes[i][0]) - && xtd.ascii.isLower(runes[i + 1][0]) - && !xtd.ascii.isNumber(runes[i + 1][0]) - && runes[i][0] != ' ' - && runes[i + 1][0] != ' ' - then - std.mapWithIndex( - function(index, r) - if index == i + 1 - then runes[i][std.length(runes[i]) - 1:] + r - else - if index == i - then r[:std.length(r) - 1] - else r - , runes - ) - else runes - , - [i for i in std.range(0, std.length(runes) - 2)], - runes - ); - - [ - r - for r in fixRunes - if r != '' - ], - - '#toCamelCase':: d.fn( - ||| - `toCamelCase` transforms a string to camelCase format, splitting words by the `-`, `_` or spaces. - For example: `hello_world` becomes `helloWorld`. - For more info please check: http://en.wikipedia.org/wiki/CamelCase - |||, - [d.arg('str', d.T.string)] - ), - toCamelCase(str):: - local separators = std.set(std.findSubstr('_', str) + std.findSubstr('-', str) + std.findSubstr(' ', str)); - local n = std.join('', [ - if std.setMember(i - 1, separators) - then std.asciiUpper(str[i]) - else str[i] - for i in std.range(0, std.length(str) - 1) - if !std.setMember(i, separators) - ]); - if std.length(n) == 0 - then n - else std.asciiLower(n[0]) + n[1:], -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/date.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/date.libsonnet deleted file mode 100644 index a8243e7e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/date.libsonnet +++ /dev/null @@ -1,185 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#': d.pkg( - name='date', - url='github.com/jsonnet-libs/xtd/date.libsonnet', - help='`time` provides various date related functions.', - ), - - // Lookup tables for calendar calculations - local commonYearMonthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], - local commonYearMonthOffset = [0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5], - local leapYearMonthOffset = [0, 3, 4, 0, 2, 5, 0, 3, 6, 1, 4, 6], - - // monthOffset looks up the offset to apply in day of week calculations based on the year and month - local monthOffset(year, month) = - if self.isLeapYear(year) - then leapYearMonthOffset[month - 1] - else commonYearMonthOffset[month - 1], - - '#isLeapYear': d.fn( - '`isLeapYear` returns true if the given year is a leap year.', - [d.arg('year', d.T.number)], - ), - isLeapYear(year):: year % 4 == 0 && (year % 100 != 0 || year % 400 == 0), - - '#dayOfWeek': d.fn( - '`dayOfWeek` returns the day of the week for the given date. 0=Sunday, 1=Monday, etc.', - [ - d.arg('year', d.T.number), - d.arg('month', d.T.number), - d.arg('day', d.T.number), - ], - ), - dayOfWeek(year, month, day):: - (day + monthOffset(year, month) + 5 * ((year - 1) % 4) + 4 * ((year - 1) % 100) + 6 * ((year - 1) % 400)) % 7, - - '#dayOfYear': d.fn( - ||| - `dayOfYear` calculates the ordinal day of the year based on the given date. The range of outputs is 1-365 - for common years, and 1-366 for leap years. - |||, - [ - d.arg('year', d.T.number), - d.arg('month', d.T.number), - d.arg('day', d.T.number), - ], - ), - dayOfYear(year, month, day):: - std.foldl( - function(a, b) a + b, - std.slice(commonYearMonthLength, 0, month - 1, 1), - 0 - ) + day + - if month > 2 && self.isLeapYear(year) - then 1 - else 0, - - // yearSeconds returns the number of seconds in the given year. - local yearSeconds(year) = ( - if $.isLeapYear(year) - then 366 * 24 * 3600 - else 365 * 24 * 3600 - ), - - // monthSeconds returns the number of seconds in the given month of a given year. - local monthSeconds(year, month) = ( - commonYearMonthLength[month - 1] * 24 * 3600 - + if month == 2 && $.isLeapYear(year) then 86400 else 0 - ), - - // sumYearsSeconds returns the number of seconds in all years since 1970 up to year-1. - local sumYearsSeconds(year) = std.foldl( - function(acc, y) acc + yearSeconds(y), - std.range(1970, year - 1), - 0, - ), - - // sumMonthsSeconds returns the number of seconds in all months up to month-1 of the given year. - local sumMonthsSeconds(year, month) = std.foldl( - function(acc, m) acc + monthSeconds(year, m), - std.range(1, month - 1), - 0, - ), - - // sumDaysSeconds returns the number of seconds in all days up to day-1. - local sumDaysSeconds(day) = (day - 1) * 24 * 3600, - - '#toUnixTimestamp': d.fn( - ||| - `toUnixTimestamp` calculates the unix timestamp of a given date. - |||, - [ - d.arg('year', d.T.number), - d.arg('month', d.T.number), - d.arg('day', d.T.number), - d.arg('hour', d.T.number), - d.arg('minute', d.T.number), - d.arg('second', d.T.number), - ], - ), - toUnixTimestamp(year, month, day, hour, minute, second):: - sumYearsSeconds(year) + sumMonthsSeconds(year, month) + sumDaysSeconds(day) + hour * 3600 + minute * 60 + second, - - // isNumeric checks that the input is a non-empty string containing only digit characters. - local isNumeric(input) = - assert std.type(input) == 'string' : 'isNumeric() only operates on string inputs, got %s' % std.type(input); - std.foldl( - function(acc, char) acc && std.codepoint('0') <= std.codepoint(char) && std.codepoint(char) <= std.codepoint('9'), - std.stringChars(input), - std.length(input) > 0, - ), - - // parseSeparatedNumbers parses input which has part `names` separated by `sep`. - // Returns an object which has one field for each name in `names` with its integer value. - local parseSeparatedNumbers(input, sep, names) = ( - assert std.type(input) == 'string' : 'parseSeparatedNumbers() only operates on string inputs, got %s' % std.type(input); - assert std.type(sep) == 'string' : 'parseSeparatedNumbers() only operates on string separators, got %s' % std.type(sep); - assert std.type(names) == 'array' : 'parseSeparatedNumbers() only operates on arrays of names, got input %s' % std.type(names); - - local parts = std.split(input, sep); - assert std.length(parts) == std.length(names) : 'expected %(expected)d parts separated by %(sep)s in %(format)s formatted input "%(input)s", but got %(got)d' % { - expected: std.length(names), - sep: sep, - format: std.join(sep, names), - input: input, - got: std.length(parts), - }; - - { - [names[i]]: - // Fail with meaningful message if not numeric, otherwise it will be a hell to debug. - assert isNumeric(parts[i]) : '%(name)%s part "%(part)s" of %(format)s of input "%(input)s" is not numeric' % { - name: names[i], - part: parts[i], - format: std.join(sep, names), - input: input, - }; - std.parseInt(parts[i]) - for i in std.range(0, std.length(parts) - 1) - } - ), - - // stringContains is a helper function to check whether a string contains a given substring. - local stringContains(haystack, needle) = std.length(std.findSubstr(needle, haystack)) > 0, - - '#parseRFC3339': d.fn( - ||| - `parseRFC3339` parses an RFC3339-formatted date & time string (like `2020-01-02T03:04:05Z`) into an object containing the 'year', 'month', 'day', 'hour', 'minute' and 'second fields. - This is a limited implementation that does not support timezones (so it requires an UTC input ending in 'Z' or 'z') nor sub-second precision. - The returned object has a `toUnixTimestamp()` method that can be used to obtain the unix timestamp of the parsed date. - |||, - [ - d.arg('input', d.T.string), - ], - ), - parseRFC3339(input):: - // Basic input type check. - assert std.type(input) == 'string' : 'parseRFC3339() only operates on string inputs, got %s' % std.type(input); - - // Sub-second precision isn't implemented yet, warn the user about that instead of returning wrong results. - assert !stringContains(input, '.') : 'the provided RFC3339 input "%s" has a dot, most likely representing a sub-second precision, but this function does not support that' % input; - - // We don't support timezones, so string should end with 'Z' or 'z'. - assert std.endsWith(input, 'Z') || std.endsWith(input, 'z') : 'the provided RFC3339 "%s" should end with "Z" or "z". This implementation does not currently support timezones' % input; - - // RFC3339 can separate date and time using 'T', 't' or ' '. - // Find out which one it is and use it. - local sep = - if stringContains(input, 'T') then 'T' - else if stringContains(input, 't') then 't' - else if stringContains(input, ' ') then ' ' - else error 'the provided RFC3339 input "%s" should contain either a "T", or a "t" or space " " as a separator for date and time parts' % input; - - // Split date and time using the selected separator. - // Remove the last character as we know it's 'Z' or 'z' and it's not useful to us. - local datetime = std.split(std.substr(input, 0, std.length(input) - 1), sep); - assert std.length(datetime) == 2 : 'the provided RFC3339 timestamp "%(input)s" does not have date and time parts separated by the character "%(sep)s"' % { input: input, sep: sep }; - - local date = parseSeparatedNumbers(datetime[0], '-', ['year', 'month', 'day']); - local time = parseSeparatedNumbers(datetime[1], ':', ['hour', 'minute', 'second']); - date + time + { - toUnixTimestamp():: $.toUnixTimestamp(self.year, self.month, self.day, self.hour, self.minute, self.second), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/.gitignore b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/.gitignore deleted file mode 100644 index d7951d909..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -Gemfile.lock -_site diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/Gemfile b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/Gemfile deleted file mode 100644 index 75d9835fa..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/Gemfile +++ /dev/null @@ -1,2 +0,0 @@ -source "https://rubygems.org" -gem "github-pages", group: :jekyll_plugins diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/README.md deleted file mode 100644 index 61d9c39e6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/README.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -permalink: / ---- - -# xtd - -```jsonnet -local xtd = import "github.com/jsonnet-libs/xtd/main.libsonnet" -``` - -`xtd` aims to collect useful functions not included in the Jsonnet standard library (`std`). - -This package serves as a test field for functions intended to be contributed to `std` -in the future, but also provides a place for less general, yet useful utilities. - - -* [aggregate](aggregate.md) -* [array](array.md) -* [ascii](ascii.md) -* [camelcase](camelcase.md) -* [date](date.md) -* [inspect](inspect.md) -* [jsonpath](jsonpath.md) -* [number](number.md) -* [string](string.md) -* [url](url.md) \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/_config.yml b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/_config.yml deleted file mode 100644 index d18a288c4..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/_config.yml +++ /dev/null @@ -1,2 +0,0 @@ -theme: jekyll-theme-cayman -baseurl: /xtd diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md deleted file mode 100644 index a877ddf24..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/aggregate.md +++ /dev/null @@ -1,74 +0,0 @@ ---- -permalink: /aggregate/ ---- - -# aggregate - -```jsonnet -local aggregate = import "github.com/jsonnet-libs/xtd/aggregate.libsonnet" -``` - -`aggregate` implements helper functions to aggregate arrays of objects into objects with arrays. - -Example: - -```jsonnet -local apps = [ - { - appid: 'id1', - name: 'yo', - id: i, - } - for i in std.range(0, 10) -]; - -aggregate.byKeys(apps, ['appid', 'name']); -``` - -Output: - -```json -{ - "id1": { - "yo": [ - { - "appid": "id1", - "id": 0, - "name": "yo" - }, - { - "appid": "id1", - "id": 1, - "name": "yo" - }, - ... - ] - } -} -``` - - -## Index - -* [`fn byKey(arr, key)`](#fn-bykey) -* [`fn byKeys(arr, keys)`](#fn-bykeys) - -## Fields - -### fn byKey - -```ts -byKey(arr, key) -``` - -`byKey` aggregates an array by the value of `key` - - -### fn byKeys - -```ts -byKeys(arr, keys) -``` - -`byKey` aggregates an array by iterating over `keys`, each item in `keys` nests the -aggregate one layer deeper. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/array.md b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/array.md deleted file mode 100644 index cc538d867..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/array.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -permalink: /array/ ---- - -# array - -```jsonnet -local array = import "github.com/jsonnet-libs/xtd/array.libsonnet" -``` - -`array` implements helper functions for processing arrays. - -## Index - -* [`fn filterMapWithIndex(filter_func, map_func, arr)`](#fn-filtermapwithindex) -* [`fn slice(indexable, index, end='null', step=1)`](#fn-slice) - -## Fields - -### fn filterMapWithIndex - -```ts -filterMapWithIndex(filter_func, map_func, arr) -``` - -`filterMapWithIndex` works the same as `std.filterMap` with the addition that the index is passed to the functions. - -`filter_func` and `map_func` function signature: `function(index, array_item)` - - -### fn slice - -```ts -slice(indexable, index, end='null', step=1) -``` - -`slice` works the same as `std.slice` but with support for negative index/end. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md deleted file mode 100644 index bee1eb3de..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/ascii.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -permalink: /ascii/ ---- - -# ascii - -```jsonnet -local ascii = import "github.com/jsonnet-libs/xtd/ascii.libsonnet" -``` - -`ascii` implements helper functions for ascii characters - -## Index - -* [`fn isLower(c)`](#fn-islower) -* [`fn isNumber(c)`](#fn-isnumber) -* [`fn isStringJSONNumeric(str)`](#fn-isstringjsonnumeric) -* [`fn isStringNumeric(str)`](#fn-isstringnumeric) -* [`fn isUpper(c)`](#fn-isupper) - -## Fields - -### fn isLower - -```ts -isLower(c) -``` - -`isLower` reports whether ASCII character `c` is a lower case letter - -### fn isNumber - -```ts -isNumber(c) -``` - -`isNumber` reports whether character `c` is a number. - -### fn isStringJSONNumeric - -```ts -isStringJSONNumeric(str) -``` - -`isStringJSONNumeric` reports whether string `s` is a number as defined by [JSON](https://www.json.org/json-en.html). - -### fn isStringNumeric - -```ts -isStringNumeric(str) -``` - -`isStringNumeric` reports whether string `s` consists only of numeric characters. - -### fn isUpper - -```ts -isUpper(c) -``` - -`isUpper` reports whether ASCII character `c` is a upper case letter \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md deleted file mode 100644 index 6c521473c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/camelcase.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -permalink: /camelcase/ ---- - -# camelcase - -```jsonnet -local camelcase = import "github.com/jsonnet-libs/xtd/camelcase.libsonnet" -``` - -`camelcase` can split camelCase words into an array of words. - -## Index - -* [`fn split(src)`](#fn-split) -* [`fn toCamelCase(str)`](#fn-tocamelcase) - -## Fields - -### fn split - -```ts -split(src) -``` - -`split` splits a camelcase word and returns an array of words. It also supports -digits. Both lower camel case and upper camel case are supported. It only supports -ASCII characters. -For more info please check: http://en.wikipedia.org/wiki/CamelCase -Based on https://github.com/fatih/camelcase/ - - -### fn toCamelCase - -```ts -toCamelCase(str) -``` - -`toCamelCase` transforms a string to camelCase format, splitting words by the `-`, `_` or spaces. -For example: `hello_world` becomes `helloWorld`. -For more info please check: http://en.wikipedia.org/wiki/CamelCase diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/date.md b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/date.md deleted file mode 100644 index 1fcb9eb43..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/date.md +++ /dev/null @@ -1,66 +0,0 @@ ---- -permalink: /date/ ---- - -# date - -```jsonnet -local date = import "github.com/jsonnet-libs/xtd/date.libsonnet" -``` - -`time` provides various date related functions. - -## Index - -* [`fn dayOfWeek(year, month, day)`](#fn-dayofweek) -* [`fn dayOfYear(year, month, day)`](#fn-dayofyear) -* [`fn isLeapYear(year)`](#fn-isleapyear) -* [`fn parseRFC3339(input)`](#fn-parserfc3339) -* [`fn toUnixTimestamp(year, month, day, hour, minute, second)`](#fn-tounixtimestamp) - -## Fields - -### fn dayOfWeek - -```ts -dayOfWeek(year, month, day) -``` - -`dayOfWeek` returns the day of the week for the given date. 0=Sunday, 1=Monday, etc. - -### fn dayOfYear - -```ts -dayOfYear(year, month, day) -``` - -`dayOfYear` calculates the ordinal day of the year based on the given date. The range of outputs is 1-365 -for common years, and 1-366 for leap years. - - -### fn isLeapYear - -```ts -isLeapYear(year) -``` - -`isLeapYear` returns true if the given year is a leap year. - -### fn parseRFC3339 - -```ts -parseRFC3339(input) -``` - -`parseRFC3339` parses an RFC3339-formatted date & time string (like `2020-01-02T03:04:05Z`) into an object containing the 'year', 'month', 'day', 'hour', 'minute' and 'second fields. -This is a limited implementation that does not support timezones (so it requires an UTC input ending in 'Z' or 'z') nor sub-second precision. -The returned object has a `toUnixTimestamp()` method that can be used to obtain the unix timestamp of the parsed date. - - -### fn toUnixTimestamp - -```ts -toUnixTimestamp(year, month, day, hour, minute, second) -``` - -`toUnixTimestamp` calculates the unix timestamp of a given date. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md deleted file mode 100644 index 94575ca62..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/inspect.md +++ /dev/null @@ -1,93 +0,0 @@ ---- -permalink: /inspect/ ---- - -# inspect - -```jsonnet -local inspect = import "github.com/jsonnet-libs/xtd/inspect.libsonnet" -``` - -`inspect` implements helper functions for inspecting Jsonnet - -## Index - -* [`fn diff(input1, input2)`](#fn-diff) -* [`fn filterKubernetesObjects(object, kind='')`](#fn-filterkubernetesobjects) -* [`fn filterObjects(filter_func, x)`](#fn-filterobjects) -* [`fn inspect(object, maxDepth)`](#fn-inspect) - -## Fields - -### fn diff - -```ts -diff(input1, input2) -``` - -`diff` returns a JSON object describing the differences between two inputs. It -attemps to show diffs in nested objects and arrays too. - -Simple example: - -```jsonnet -local input1 = { - same: 'same', - change: 'this', - remove: 'removed', -}; - -local input2 = { - same: 'same', - change: 'changed', - add: 'added', -}; - -diff(input1, input2), -``` - -Output: -```json -{ - "add +": "added", - "change ~": "~[ this , changed ]", - "remove -": "removed" -} -``` - - -### fn filterKubernetesObjects - -```ts -filterKubernetesObjects(object, kind='') -``` - -`filterKubernetesObjects` implements `filterObjects` to return all Kubernetes objects in -an array, assuming that Kubernetes object are characterized by having an -`apiVersion` and `kind` field. - -The `object` argument can either be an object or an array, other types will be -ignored. The `kind` allows to filter out a specific kind, if unset all kinds will -be returned. - - -### fn filterObjects - -```ts -filterObjects(filter_func, x) -``` - -`filterObjects` walks a JSON tree returning all matching objects in an array. - -The `x` argument can either be an object or an array, other types will be -ignored. - - -### fn inspect - -```ts -inspect(object, maxDepth) -``` - -`inspect` reports the structure of a Jsonnet object with a recursion depth of -`maxDepth` (default maxDepth=10). diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md deleted file mode 100644 index 94a4a4be6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/jsonpath.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -permalink: /jsonpath/ ---- - -# jsonpath - -```jsonnet -local jsonpath = import "github.com/jsonnet-libs/xtd/jsonpath.libsonnet" -``` - -`jsonpath` implements helper functions to use JSONPath expressions. - -## Index - -* [`fn convertBracketToDot(path)`](#fn-convertbrackettodot) -* [`fn getJSONPath(source, path, default='null')`](#fn-getjsonpath) -* [`fn parseFilterExpr(path)`](#fn-parsefilterexpr) - -## Fields - -### fn convertBracketToDot - -```ts -convertBracketToDot(path) -``` - -`convertBracketToDot` converts the bracket notation to dot notation. - -This function does not support escaping brackets/quotes in path keys. - - -### fn getJSONPath - -```ts -getJSONPath(source, path, default='null') -``` - -`getJSONPath` gets the value at `path` from `source` where path is a JSONPath. - -This is a rudimentary implementation supporting the slice operator `[0:3:2]` and -partially supporting filter expressions `?(@.attr==value)`. - - -### fn parseFilterExpr - -```ts -parseFilterExpr(path) -``` - -`parseFilterExpr` returns a filter function `f(x)` for a filter expression `expr`. - - It supports comparisons (<, <=, >, >=) and equality checks (==, !=). If it doesn't - have an operator, it will check if the `expr` value exists. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/number.md b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/number.md deleted file mode 100644 index aa308799a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/number.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -permalink: /number/ ---- - -# number - -```jsonnet -local number = import "github.com/jsonnet-libs/xtd/number.libsonnet" -``` - -`number` implements helper functions for processing number. - -## Index - -* [`fn inRange(v, from, to)`](#fn-inrange) -* [`fn maxInArray(arr, default=0)`](#fn-maxinarray) -* [`fn minInArray(arr, default=0)`](#fn-mininarray) - -## Fields - -### fn inRange - -```ts -inRange(v, from, to) -``` - -`inRange` returns true if `v` is in the given from/to range.` - -### fn maxInArray - -```ts -maxInArray(arr, default=0) -``` - -`maxInArray` finds the biggest number in an array - -### fn minInArray - -```ts -minInArray(arr, default=0) -``` - -`minInArray` finds the smallest number in an array \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/string.md b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/string.md deleted file mode 100644 index 62873e57f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/string.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -permalink: /string/ ---- - -# string - -```jsonnet -local string = import "github.com/jsonnet-libs/xtd/string.libsonnet" -``` - -`string` implements helper functions for processing strings. - -## Index - -* [`fn splitEscape(str, c, escape='\\')`](#fn-splitescape) - -## Fields - -### fn splitEscape - -```ts -splitEscape(str, c, escape='\\') -``` - -`split` works the same as `std.split` but with support for escaping the dividing -string `c`. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/url.md b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/url.md deleted file mode 100644 index db898bcc8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/docs/url.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -permalink: /url/ ---- - -# url - -```jsonnet -local url = import "github.com/jsonnet-libs/xtd/url.libsonnet" -``` - -`url` provides functions to deal with URLs - -## Index - -* [`fn encodeQuery(params)`](#fn-encodequery) -* [`fn escapeString(str, excludedChars=[])`](#fn-escapestring) -* [`fn join(splitObj)`](#fn-join) -* [`fn parse(url)`](#fn-parse) - -## Fields - -### fn encodeQuery - -```ts -encodeQuery(params) -``` - -`encodeQuery` takes an object of query parameters and returns them as an escaped `key=value` string - -### fn escapeString - -```ts -escapeString(str, excludedChars=[]) -``` - -`escapeString` escapes the given string so it can be safely placed inside an URL, replacing special characters with `%XX` sequences - -### fn join - -```ts -join(splitObj) -``` - -`join` joins URLs from the object generated from `parse` - -### fn parse - -```ts -parse(url) -``` - -`parse` parses absolute and relative URLs. - -:///;parameters?# - -Inspired by Python's urllib.urlparse, following several RFC specifications. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet deleted file mode 100644 index 495679d63..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/inspect.libsonnet +++ /dev/null @@ -1,209 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - local this = self, - - '#': d.pkg( - name='inspect', - url='github.com/jsonnet-libs/xtd/inspect.libsonnet', - help='`inspect` implements helper functions for inspecting Jsonnet', - ), - - '#inspect':: d.fn( - ||| - `inspect` reports the structure of a Jsonnet object with a recursion depth of - `maxDepth` (default maxDepth=10). - |||, - [ - d.arg('object', d.T.object), - d.arg('maxDepth', d.T.number), - //d.arg('depth', d.T.number), // used for recursion, not exposing in docs - ] - ), - inspect(object, maxDepth=10, depth=0): - std.foldl( - function(acc, p) - acc + ( - if std.isObject(object[p]) - && depth != maxDepth - then { [p]+: - this.inspect( - object[p], - maxDepth, - depth + 1 - ) } - else { - [ - (if !std.objectHas(object, p) - then 'hidden_' - else '') - + (if std.isFunction(object[p]) - then 'functions' - else 'fields') - ]+: [p], - } - ), - std.objectFieldsAll(object), - {} - ), - - '#diff':: d.fn( - ||| - `diff` returns a JSON object describing the differences between two inputs. It - attemps to show diffs in nested objects and arrays too. - - Simple example: - - ```jsonnet - local input1 = { - same: 'same', - change: 'this', - remove: 'removed', - }; - - local input2 = { - same: 'same', - change: 'changed', - add: 'added', - }; - - diff(input1, input2), - ``` - - Output: - ```json - { - "add +": "added", - "change ~": "~[ this , changed ]", - "remove -": "removed" - } - ``` - |||, - [ - d.arg('input1', d.T.any), - d.arg('input2', d.T.any), - ] - ), - diff(input1, input2):: - if input1 == input2 - then '' - else if std.isArray(input1) && std.isArray(input2) - then - [ - if input1[i] != input2[i] - then - this.diff( - input1[i], - input2[i] - ) - else input2[i] - for i in std.range(0, std.length(input2) - 1) - if std.length(input1) > i - ] - + (if std.length(input1) < std.length(input2) - then [ - '+ ' + input2[i] - for i in std.range(std.length(input1), std.length(input2) - 1) - ] - else []) - + (if std.length(input1) > std.length(input2) - then [ - '- ' + input1[i] - for i in std.range(std.length(input2), std.length(input1) - 1) - ] - else []) - - else if std.isObject(input1) && std.isObject(input2) - then std.foldl( - function(acc, k) - acc + ( - if k in input1 && input1[k] != input2[k] - then { - [k + ' ~']: - this.diff( - input1[k], - input2[k] - ), - } - else if !(k in input1) - then { - [k + ' +']: input2[k], - } - else {} - ), - std.objectFields(input2), - {}, - ) - + { - [l + ' -']: input1[l] - for l in std.objectFields(input1) - if !(l in input2) - } - - else '~[ %s ]' % std.join(' , ', [std.toString(input1), std.toString(input2)]), - - '#filterObjects':: d.fn( - ||| - `filterObjects` walks a JSON tree returning all matching objects in an array. - - The `x` argument can either be an object or an array, other types will be - ignored. - |||, - args=[ - d.arg('filter_func', d.T.func), - d.arg('x', d.T.any), - ] - ), - filterObjects(filter_func, x): - if std.isObject(x) - then - if filter_func(x) - then [x] - else - std.foldl( - function(acc, o) - acc + self.filterObjects(filter_func, x[o]), - std.objectFields(x), - [] - ) - else if std.isArray(x) - then - std.flattenArrays( - std.map( - function(obj) - self.filterObjects(filter_func, obj), - x - ) - ) - else [], - - '#filterKubernetesObjects':: d.fn( - ||| - `filterKubernetesObjects` implements `filterObjects` to return all Kubernetes objects in - an array, assuming that Kubernetes object are characterized by having an - `apiVersion` and `kind` field. - - The `object` argument can either be an object or an array, other types will be - ignored. The `kind` allows to filter out a specific kind, if unset all kinds will - be returned. - |||, - args=[ - d.arg('object', d.T.any), - d.arg('kind', d.T.string, default=''), - ] - ), - filterKubernetesObjects(object, kind=''): - local objects = self.filterObjects( - function(object) - std.objectHas(object, 'apiVersion') - && std.objectHas(object, 'kind'), - object, - ); - if kind == '' - then objects - else - std.filter( - function(o) o.kind == kind, - objects - ), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet deleted file mode 100644 index 49f15bcc9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/jsonpath.libsonnet +++ /dev/null @@ -1,142 +0,0 @@ -local xtd = import './main.libsonnet'; -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#': d.pkg( - name='jsonpath', - url='github.com/jsonnet-libs/xtd/jsonpath.libsonnet', - help='`jsonpath` implements helper functions to use JSONPath expressions.', - ), - - - '#getJSONPath':: d.fn( - ||| - `getJSONPath` gets the value at `path` from `source` where path is a JSONPath. - - This is a rudimentary implementation supporting the slice operator `[0:3:2]` and - partially supporting filter expressions `?(@.attr==value)`. - |||, - [ - d.arg('source', d.T.any), - d.arg('path', d.T.string,), - d.arg('default', d.T.any, default='null'), - ] - ), - getJSONPath(source, path, default=null): - local _path = self.convertBracketToDot(path); - std.foldl( - function(acc, key) - if acc == null - then acc - else get(acc, key, default), - xtd.string.splitEscape(_path, '.'), - source, - ), - - '#convertBracketToDot':: d.fn( - ||| - `convertBracketToDot` converts the bracket notation to dot notation. - - This function does not support escaping brackets/quotes in path keys. - |||, - [ - d.arg('path', d.T.string,), - ] - ), - convertBracketToDot(path): - if std.length(std.findSubstr('[', path)) > 0 - then - local split = std.split(path, '['); - std.join('.', [ - local a = std.stripChars(i, "[]'"); - std.strReplace(a, '@.', '@\\.') - for i in split - ]) - else path, - - local get(source, key, default) = - if key == '' - || key == '$' - || key == '*' - then source - else if std.isArray(source) - then getFromArray(source, key) - else std.get(source, key, default), - - local getFromArray(arr, key) = - if std.startsWith(key, '?(@\\.') - then - std.filter( - self.parseFilterExpr(std.stripChars(key, '?(@\\.)')), - arr - ) - else if std.length(std.findSubstr(':', key)) >= 1 - then - local split = std.splitLimit(key, ':', 2); - local step = - if std.length(split) < 3 - then 1 - else parseIntOrNull(split[2]); - xtd.array.slice( - arr, - parseIntOrNull(split[0]), - parseIntOrNull(split[1]), - step, - ) - else - arr[std.parseInt(key)], - - local parseIntOrNull(str) = - if str == '' - then null - else std.parseInt(str), - - '#parseFilterExpr':: d.fn( - ||| - `parseFilterExpr` returns a filter function `f(x)` for a filter expression `expr`. - - It supports comparisons (<, <=, >, >=) and equality checks (==, !=). If it doesn't - have an operator, it will check if the `expr` value exists. - |||, - [ - d.arg('path', d.T.string,), - ] - ), - parseFilterExpr(expr): - local operandFunctions = { - '=='(a, b): a == b, - '!='(a, b): a != b, - '<='(a, b): a <= b, - '>='(a, b): a >= b, - '<'(a, b): a < b, - '>'(a, b): a > b, - }; - - local findOperands = std.filter( - function(op) std.length(std.findSubstr(op, expr)) > 0, - std.reverse( // reverse to match '<=' before '<' - std.objectFields(operandFunctions) - ) - ); - - if std.length(findOperands) > 0 - then - local op = findOperands[0]; - local s = [ - std.stripChars(i, ' ') - for i in std.splitLimit(expr, op, 1) - ]; - function(x) - if s[0] in x - then - local left = x[s[0]]; - local right = - if std.isNumber(left) - then std.parseInt(s[1]) // Only parse if comparing numbers - else s[1]; - operandFunctions[op](left, right) - else false - else - // Default to key matching - function(x) (expr in x), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/main.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/main.libsonnet deleted file mode 100644 index 5bda29773..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/main.libsonnet +++ /dev/null @@ -1,25 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#': d.pkg( - name='xtd', - url='github.com/jsonnet-libs/xtd/main.libsonnet', - help=||| - `xtd` aims to collect useful functions not included in the Jsonnet standard library (`std`). - - This package serves as a test field for functions intended to be contributed to `std` - in the future, but also provides a place for less general, yet useful utilities. - |||, - ), - - aggregate: (import './aggregate.libsonnet'), - array: (import './array.libsonnet'), - ascii: (import './ascii.libsonnet'), - camelcase: (import './camelcase.libsonnet'), - date: (import './date.libsonnet'), - inspect: (import './inspect.libsonnet'), - jsonpath: (import './jsonpath.libsonnet'), - number: (import './number.libsonnet'), - string: (import './string.libsonnet'), - url: (import './url.libsonnet'), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/number.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/number.libsonnet deleted file mode 100644 index 6ebdece3a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/number.libsonnet +++ /dev/null @@ -1,48 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#': d.pkg( - name='number', - url='github.com/jsonnet-libs/xtd/number.libsonnet', - help='`number` implements helper functions for processing number.', - ), - - '#inRange':: d.fn( - '`inRange` returns true if `v` is in the given from/to range.`', - [ - d.arg('v', d.T.number), - d.arg('from', d.T.number), - d.arg('to', d.T.number), - ] - ), - inRange(v, from, to): - v > from && v <= to, - - '#maxInArray':: d.fn( - '`maxInArray` finds the biggest number in an array', - [ - d.arg('arr', d.T.array), - d.arg('default', d.T.number, default=0), - ] - ), - maxInArray(arr, default=0): - std.foldl( - std.max, - std.set(arr), - default, - ), - - '#minInArray':: d.fn( - '`minInArray` finds the smallest number in an array', - [ - d.arg('arr', d.T.array), - d.arg('default', d.T.number, default=0), - ] - ), - minInArray(arr, default=0): - std.foldl( - std.min, - std.set(arr), - default, - ), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/string.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/string.libsonnet deleted file mode 100644 index 665598189..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/string.libsonnet +++ /dev/null @@ -1,35 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#': d.pkg( - name='string', - url='github.com/jsonnet-libs/xtd/string.libsonnet', - help='`string` implements helper functions for processing strings.', - ), - - // BelRune is a string of the Ascii character BEL which made computers ring in ancient times. - // We use it as "magic" char to temporarily replace an escaped string as it is a non printable - // character and thereby will unlikely be in a valid key by accident. Only when we include it. - local BelRune = std.char(7), - - '#splitEscape':: d.fn( - ||| - `split` works the same as `std.split` but with support for escaping the dividing - string `c`. - |||, - [ - d.arg('str', d.T.string), - d.arg('c', d.T.string), - d.arg('escape', d.T.string, default='\\'), - ] - ), - splitEscape(str, c, escape='\\'): - std.map( - function(i) - std.strReplace(i, BelRune, escape + c), - std.split( - std.strReplace(str, escape + c, BelRune), - c, - ) - ), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/array_test.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/array_test.jsonnet deleted file mode 100644 index 65aef8a21..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/array_test.jsonnet +++ /dev/null @@ -1,83 +0,0 @@ -local array = import '../array.libsonnet'; -local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; - -local arr = std.range(0, 10); - -test.new(std.thisFile) - -+ test.case.new( - name='first two', - test=test.expect.eq( - actual=array.slice( - arr, - index=0, - end=2, - ), - expected=[0, 1], - ) -) -+ test.case.new( - name='last two', - test=test.expect.eq( - actual=array.slice( - arr, - index=1, - end=3, - ), - expected=[1, 2], - ) -) -+ test.case.new( - name='until end', - test=test.expect.eq( - actual=array.slice( - arr, - index=1 - ), - expected=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], - ) -) -+ test.case.new( - name='from beginning', - test=test.expect.eq( - actual=array.slice( - arr, - index=0, - end=2 - ), - expected=[0, 1], - ) -) -+ test.case.new( - name='negative start', - test=test.expect.eq( - actual=array.slice( - arr, - index=-2 - ), - expected=[9, 10], - ) -) -+ test.case.new( - name='negative end', - test=test.expect.eq( - actual=array.slice( - arr, - index=0, - end=-1 - ), - expected=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], - ) -) -+ test.case.new( - name='step', - test=test.expect.eq( - actual=array.slice( - arr, - index=0, - end=5, - step=2 - ), - expected=[0, 2, 4], - ) -) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/ascii_test.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/ascii_test.jsonnet deleted file mode 100644 index f8b3f6bc1..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/ascii_test.jsonnet +++ /dev/null @@ -1,92 +0,0 @@ -local ascii = import '../ascii.libsonnet'; -local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; - -test.new(std.thisFile) - -+ test.case.new( - name='all numeric', - test=test.expect.eq( - actual=ascii.isStringNumeric('123'), - expected=true, - ) -) - -+ test.case.new( - name='only beginning numeric', - test=test.expect.eq( - actual=ascii.isStringNumeric('123abc'), - expected=false, - ) -) - -+ test.case.new( - name='only end numeric', - test=test.expect.eq( - actual=ascii.isStringNumeric('abc123'), - expected=false, - ) -) - -+ test.case.new( - name='none numeric', - test=test.expect.eq( - actual=ascii.isStringNumeric('abc'), - expected=false, - ) -) - -+ test.case.new( - name='empty', - test=test.expect.eq( - actual=ascii.isStringNumeric(''), - expected=true, - ) -) - -+ std.foldl( - function(acc, str) - acc - + test.case.new( - name='valid: ' + str, - test=test.expect.eq( - actual=ascii.isStringJSONNumeric(str), - expected=true, - ) - ), - [ - '15', - '1.5', - '-1.5', - '1e5', - '1E5', - '1.5e5', - '1.5E5', - '1.5e-5', - '1.5E+5', - ], - {}, -) -+ std.foldl( - function(acc, str) - acc - + test.case.new( - name='invalid: ' + str, - test=test.expect.eq( - actual=ascii.isStringJSONNumeric(str), - expected=false, - ) - ), - [ - '15e', - '1.', - '+', - '+1E5', - '.5', - 'E5', - 'e5', - '15e5garbage', - '1garbag5e5garbage', - 'garbage15e5garbage', - ], - {}, -) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet deleted file mode 100644 index 2dcadc018..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/camelcase_test.jsonnet +++ /dev/null @@ -1,193 +0,0 @@ -local xtd = import '../main.libsonnet'; -local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; - -test.new(std.thisFile) - -+ test.case.new( - name='split: nostring', - test=test.expect.eq( - actual=xtd.camelcase.split(''), - expected=[''], - ) -) -+ test.case.new( - name='split: lowercase', - test=test.expect.eq( - actual=xtd.camelcase.split('lowercase'), - expected=['lowercase'], - ) -) -+ test.case.new( - name='split: Class', - test=test.expect.eq( - actual=xtd.camelcase.split('Class'), - expected=['Class'], - ) -) -+ test.case.new( - name='split: MyClass', - test=test.expect.eq( - actual=xtd.camelcase.split('MyClass'), - expected=['My', 'Class'], - ) -) -+ test.case.new( - name='split: MyC', - test=test.expect.eq( - actual=xtd.camelcase.split('MyC'), - expected=['My', 'C'], - ) -) -+ test.case.new( - name='split: HTML', - test=test.expect.eq( - actual=xtd.camelcase.split('HTML'), - expected=['HTML'], - ) -) -+ test.case.new( - name='split: PDFLoader', - test=test.expect.eq( - actual=xtd.camelcase.split('PDFLoader'), - expected=['PDF', 'Loader'], - ) -) -+ test.case.new( - name='split: AString', - test=test.expect.eq( - actual=xtd.camelcase.split('AString'), - expected=['A', 'String'], - ) -) -+ test.case.new( - name='split: SimpleXMLParser', - test=test.expect.eq( - actual=xtd.camelcase.split('SimpleXMLParser'), - expected=['Simple', 'XML', 'Parser'], - ) -) -+ test.case.new( - name='split: vimRPCPlugin', - test=test.expect.eq( - actual=xtd.camelcase.split('vimRPCPlugin'), - expected=['vim', 'RPC', 'Plugin'], - ) -) -+ test.case.new( - name='split: GL11Version', - test=test.expect.eq( - actual=xtd.camelcase.split('GL11Version'), - expected=['GL', '11', 'Version'], - ) -) -+ test.case.new( - name='split: 99Bottles', - test=test.expect.eq( - actual=xtd.camelcase.split('99Bottles'), - expected=['99', 'Bottles'], - ) -) -+ test.case.new( - name='split: May5', - test=test.expect.eq( - actual=xtd.camelcase.split('May5'), - expected=['May', '5'], - ) -) -+ test.case.new( - name='split: BFG9000', - test=test.expect.eq( - actual=xtd.camelcase.split('BFG9000'), - expected=['BFG', '9000'], - ) -) -+ test.case.new( - name='split: Two spaces', - test=test.expect.eq( - actual=xtd.camelcase.split('Two spaces'), - expected=['Two', ' ', 'spaces'], - ) -) -+ test.case.new( - name='split: Multiple Random spaces', - test=test.expect.eq( - actual=xtd.camelcase.split('Multiple Random spaces'), - expected=['Multiple', ' ', 'Random', ' ', 'spaces'], - ) -) -+ test.case.new( - name='toCamelCase: empty string', - test=test.expect.eq( - actual=xtd.camelcase.toCamelCase(''), - expected='', - ) -) -+ test.case.new( - name='toCamelCase: lowercase', - test=test.expect.eq( - actual=xtd.camelcase.toCamelCase('lowercase'), - expected='lowercase', - ) -) -+ test.case.new( - name='toCamelCase: underscores', - test=test.expect.eq( - actual=xtd.camelcase.toCamelCase('lower_case'), - expected='lowerCase', - ) -) -+ test.case.new( - name='toCamelCase: dashes', - test=test.expect.eq( - actual=xtd.camelcase.toCamelCase('lower-case'), - expected='lowerCase', - ) -) -+ test.case.new( - name='toCamelCase: spaces', - test=test.expect.eq( - actual=xtd.camelcase.toCamelCase('lower case'), - expected='lowerCase', - ) -) -+ test.case.new( - name='toCamelCase: mixed', - test=test.expect.eq( - actual=xtd.camelcase.toCamelCase('lower_case-mixed'), - expected='lowerCaseMixed', - ) -) -+ test.case.new( - name='toCamelCase: multiple spaces', - test=test.expect.eq( - actual=xtd.camelcase.toCamelCase('lower case'), - expected='lowerCase', - ) -) -+ test.case.new( - name='toCamelCase: PascalCase', - test=test.expect.eq( - actual=xtd.camelcase.toCamelCase('PascalCase'), - expected='pascalCase', - ) -) - -// TODO: find or create is(Upper|Lower) for non-ascii characters -// Something like this for Jsonnet: -// https://cs.opensource.google/go/go/+/refs/tags/go1.17.3:src/unicode/tables.go -//+ test.case.new( -// name='BöseÜberraschung', -// test=test.expect.eq( -// actual=xtd.camelcase.split('BöseÜberraschung'), -// expected=['Böse', 'Überraschung'], -// ) -//) - -// This doesn't even render in Jsonnet -//+ test.case.new( -// name="BadUTF8\xe2\xe2\xa1", -// test=test.expect.eq( -// actual=xtd.camelcase.split("BadUTF8\xe2\xe2\xa1"), -// expected=["BadUTF8\xe2\xe2\xa1"], -// ) -//) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet deleted file mode 100644 index 974642883..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/date_test.jsonnet +++ /dev/null @@ -1,219 +0,0 @@ -local xtd = import '../main.libsonnet'; -local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; - -test.new(std.thisFile) - -+ test.case.new( - name='Leap Year commonYear', - test=test.expect.eq( - actual=xtd.date.isLeapYear(1995), - expected=false, - ) -) - -+ test.case.new( - name='Leap Year fourYearCycle', - test=test.expect.eq( - actual=xtd.date.isLeapYear(1996), - expected=true, - ) -) - -+ test.case.new( - name='Leap Year fourHundredYearCycle', - test=test.expect.eq( - actual=xtd.date.isLeapYear(2000), - expected=true, - ) -) - -+ test.case.new( - name='Leap Year hundredYearCycle', - test=test.expect.eq( - actual=xtd.date.isLeapYear(2100), - expected=false, - ) -) - -+ test.case.new( - name='Day Of Week leapYearStart', - test=test.expect.eq( - actual=xtd.date.dayOfWeek(2000, 1, 1), - expected=6, - ) -) - -+ test.case.new( - name='Day Of Week leapYearEnd', - test=test.expect.eq( - actual=xtd.date.dayOfWeek(2000, 12, 31), - expected=0, - ) -) - -+ test.case.new( - name='Day Of Week commonYearStart', - test=test.expect.eq( - actual=xtd.date.dayOfWeek(1995, 1, 1), - expected=0, - ) -) - -+ test.case.new( - name='Day Of Week commonYearEnd', - test=test.expect.eq( - actual=xtd.date.dayOfWeek(2003, 12, 31), - expected=3, - ) -) - -+ test.case.new( - name='Day Of Week leapYearMid', - test=test.expect.eq( - actual=xtd.date.dayOfWeek(2024, 7, 19), - expected=5, - ) -) - -+ test.case.new( - name='Day Of Week commonYearMid', - test=test.expect.eq( - actual=xtd.date.dayOfWeek(2023, 6, 15), - expected=4, - ) -) -+ test.case.new( - name='Day Of Year leapYearStart', - test=test.expect.eq( - actual=xtd.date.dayOfYear(2000, 1, 1), - expected=1, - ) -) - -+ test.case.new( - name='Day Of Year leapYearEnd', - test=test.expect.eq( - actual=xtd.date.dayOfYear(2000, 12, 31), - expected=366, - ) -) - -+ test.case.new( - name='Day Of Year commonYearStart', - test=test.expect.eq( - actual=xtd.date.dayOfYear(1995, 1, 1), - expected=1, - ) -) - -+ test.case.new( - name='Day Of Year commonYearEnd', - test=test.expect.eq( - actual=xtd.date.dayOfYear(2003, 12, 31), - expected=365, - ) -) - -+ test.case.new( - name='Day Of Year leapYearMid', - test=test.expect.eq( - actual=xtd.date.dayOfYear(2024, 7, 19), - expected=201, - ) -) - -+ test.case.new( - name='Day Of Year commonYearMid', - test=test.expect.eq( - actual=xtd.date.dayOfYear(2023, 6, 15), - expected=166, - ) -) - -+ test.case.new( - name='toUnixTimestamp of 1970-01-01 00:00:00 (zero)', - test=test.expect.eq( - actual=xtd.date.toUnixTimestamp(1970, 1, 1, 0, 0, 0), - expected=0, - ), -) - -+ test.case.new( - name='toUnixTimestamp of 1970-01-02 00:00:00 (one day)', - test=test.expect.eq( - actual=xtd.date.toUnixTimestamp(1970, 1, 2, 0, 0, 0), - expected=86400, - ), -) - -+ test.case.new( - name='toUnixTimestamp of 1971-01-01 00:00:00 (one year)', - test=test.expect.eq( - actual=xtd.date.toUnixTimestamp(1971, 1, 1, 0, 0, 0), - expected=365 * 24 * 3600, - ), -) - -+ test.case.new( - name='toUnixTimestamp of 1972-03-01 00:00:00 (month of leap year)', - test=test.expect.eq( - actual=xtd.date.toUnixTimestamp(1972, 3, 1, 0, 0, 0), - expected=2 * 365 * 24 * 3600 + 31 * 24 * 3600 + 29 * 24 * 3600, - ), -) - -+ test.case.new( - name='toUnixTimestamp of 1974-01-01 00:00:00 (incl leap year)', - test=test.expect.eq( - actual=xtd.date.toUnixTimestamp(1974, 1, 1, 0, 0, 0), - expected=(4 * 365 + 1) * 24 * 3600, - ), -) - -+ test.case.new( - name='toUnixTimestamp of 2020-01-02 03:04:05 (full date)', - test=test.expect.eq( - actual=xtd.date.toUnixTimestamp(2020, 1, 2, 3, 4, 5), - expected=1577934245, - ), -) - -+ test.case.new( - name='parseRFC3339 of 1970-01-01T00:00:00Z (standard unix zero)', - test=test.expect.eq( - actual=xtd.date.parseRFC3339('1970-01-01T00:00:00Z'), - expected={ year: 1970, month: 1, day: 1, hour: 0, minute: 0, second: 0 }, - ), -) - -+ test.case.new( - name='parseRFC3339 of 2020-01-02T03:04:05Z (non-zero date)', - test=test.expect.eq( - actual=xtd.date.parseRFC3339('2020-01-02T03:04:05Z'), - expected={ year: 2020, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, - ), -) - -+ test.case.new( - name='parseRFC3339 of 2020-01-02 03:04:05Z (space separator)', - test=test.expect.eq( - actual=xtd.date.parseRFC3339('2020-01-02 03:04:05Z'), - expected={ year: 2020, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, - ), -) - -+ test.case.new( - name='parseRFC3339 of 2020-01-02t03:04:05Z (lowercase t separator and lowercase z)', - test=test.expect.eq( - actual=xtd.date.parseRFC3339('2020-01-02t03:04:05z'), - expected={ year: 2020, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, - ), -) - -+ test.case.new( - name='parseRFC3339(..).toUnixTimestamp()', - test=test.expect.eq( - actual=xtd.date.parseRFC3339('2020-01-02T03:04:05Z').toUnixTimestamp(), - expected=1577934245, - ), -) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet deleted file mode 100644 index 54510ea05..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/inspect_test.jsonnet +++ /dev/null @@ -1,152 +0,0 @@ -local xtd = import '../main.libsonnet'; -local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; - -test.new(std.thisFile) - -+ test.case.new( - name='emptyobject', - test=test.expect.eq( - actual=xtd.inspect.inspect({}), - expected={} - ) -) - -+ test.case.new( - name='flatObject', - test=test.expect.eq( - actual=xtd.inspect.inspect({ - key: 'value', - hidden_key:: 'value', - func(value): value, - hidden_func(value):: value, - }), - expected={ - fields: ['key'], - hidden_fields: ['hidden_key'], - functions: ['func'], - hidden_functions: ['hidden_func'], - } - ) -) - -+ test.case.new( - name='nestedObject', - test=test.expect.eq( - actual=xtd.inspect.inspect({ - nested: { - key: 'value', - hidden_key:: 'value', - func(value): value, - hidden_func(value):: value, - }, - key: 'value', - hidden_func(value):: value, - }), - expected={ - nested: { - fields: ['key'], - hidden_fields: ['hidden_key'], - functions: ['func'], - hidden_functions: ['hidden_func'], - }, - fields: ['key'], - hidden_functions: ['hidden_func'], - } - ) -) - -+ test.case.new( - name='maxRecursionDepth', - test=test.expect.eq( - actual=xtd.inspect.inspect({ - key: 'value', - nested: { - key: 'value', - nested: { - key: 'value', - }, - }, - }, maxDepth=1), - expected={ - fields: ['key'], - nested: { - fields: ['key', 'nested'], - }, - } - ) -) - -+ test.case.new( - name='noDiff', - test=test.expect.eq( - actual=xtd.inspect.diff('', ''), - expected='' - ) -) -+ test.case.new( - name='typeDiff', - test=test.expect.eq( - actual=xtd.inspect.diff('string', true), - expected='~[ string , true ]' - ) -) -+ ( - local input1 = { - same: 'same', - change: 'this', - remove: 'removed', - }; - local input2 = { - same: 'same', - change: 'changed', - add: 'added', - }; - test.case.new( - name='objectDiff', - test=test.expect.eq( - actual=xtd.inspect.diff(input1, input2), - expected={ - 'add +': 'added', - 'change ~': '~[ this , changed ]', - 'remove -': 'removed', - } - ) - ) -) - -+ ( - local input1 = [ - 'same', - 'this', - [ - 'same', - 'this', - ], - 'remove', - ]; - local input2 = [ - 'same', - 'changed', - [ - 'same', - 'changed', - 'added', - ], - ]; - test.case.new( - name='arrayDiff', - test=test.expect.eq( - actual=xtd.inspect.diff(input1, input2), - expected=[ - 'same', - '~[ this , changed ]', - [ - 'same', - '~[ this , changed ]', - '+ added', - ], - '- remove', - ] - ) - ) -) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/jsonnetfile.json deleted file mode 100644 index ce9ad4d5a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/jsonnetfile.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/jsonnet-libs/testonnet.git", - "subdir": "" - } - }, - "version": "master" - } - ], - "legacyImports": true -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/jsonpath_test.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/jsonpath_test.jsonnet deleted file mode 100644 index 8c1106b1d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/jsonpath_test.jsonnet +++ /dev/null @@ -1,305 +0,0 @@ -local jsonpath = import '../jsonpath.libsonnet'; -local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; - -test.new(std.thisFile) - -// Root -+ test.case.new( - name='root $', - test=test.expect.eq( - actual=jsonpath.getJSONPath({ key: 'content' }, '$'), - expected={ key: 'content' }, - ) -) -+ test.case.new( - name='root (empty path)', - test=test.expect.eq( - actual=jsonpath.getJSONPath({ key: 'content' }, ''), - expected={ key: 'content' }, - ) -) -+ test.case.new( - name='root .', - test=test.expect.eq( - actual=jsonpath.getJSONPath({ key: 'content' }, '.'), - expected={ key: 'content' }, - ) -) - -// Single key -+ test.case.new( - name='path without dot prefix', - test=test.expect.eq( - actual=jsonpath.getJSONPath({ key: 'content' }, 'key'), - expected='content', - ) -) -+ test.case.new( - name='single key', - test=test.expect.eq( - actual=jsonpath.getJSONPath({ key: 'content' }, '.key'), - expected='content', - ) -) -+ test.case.new( - name='single bracket key', - test=test.expect.eq( - actual=jsonpath.getJSONPath({ key: 'content' }, '[key]'), - expected='content', - ) -) -+ test.case.new( - name='single bracket key with $', - test=test.expect.eq( - actual=jsonpath.getJSONPath({ key: 'content' }, '$[key]'), - expected='content', - ) -) -+ test.case.new( - name='single array index', - test=test.expect.eq( - actual=jsonpath.getJSONPath(['content'], '.[0]'), - expected='content', - ) -) -+ test.case.new( - name='single array index without dot prefix', - test=test.expect.eq( - actual=jsonpath.getJSONPath(['content'], '[0]'), - expected='content', - ) -) - -// Nested -+ test.case.new( - name='nested key', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key1: { key2: { key3: 'content' } } }, - '.key1.key2.key3' - ), - expected='content', - ) -) -+ test.case.new( - name='nested bracket key', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key1: { key2: { key3: 'content' } } }, - '.key1.key2[key3]' - ), - expected='content', - ) -) -+ test.case.new( - name='nested bracket key (quoted)', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key1: { key2: { key3: 'content' } } }, - ".key1.key2['key3']" - ), - expected='content', - ) -) -+ test.case.new( - name='nested bracket star key', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key1: { key2: { key3: 'content' } } }, - '.key1.key2[*]' - ), - expected={ key3: 'content' }, - ) -) -+ test.case.new( - name='nested array index', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key1: { key2: ['content1', 'content2'] } }, - '.key1.key2[1]' - ), - expected='content2', - ) -) -+ test.case.new( - name='nested array index with $', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key1: { key2: ['content1', 'content2'] } }, - '$.key1.key2[1]' - ), - expected='content2', - ) -) -+ test.case.new( - name='nested array index without brackets', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key1: { key2: ['content1', 'content2'] } }, - '.key1.key2.1' - ), - expected='content2', - ) -) -+ test.case.new( - name='nested array star index', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key1: { key2: ['content1', 'content2'] } }, - '.key1.key2[*]' - ), - expected=['content1', 'content2'], - ) -) -+ test.case.new( - name='nested bracket keys and array index combo', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key1: { key2: ['content1', 'content2'] } }, - '$.[key1][key2][1]' - ), - expected='content2', - ) -) -+ test.case.new( - name='all keys in bracket and quoted', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key1: { key2: ['content1', 'content2'] } }, - "$['key1']['key2']" - ), - expected=['content1', 'content2'], - ) -) - -// index range/slice -+ test.case.new( - name='array with index range (first two)', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key: ['content1', 'content2', 'content3'] }, - 'key[0:2]' - ), - expected=['content1', 'content2'], - ) -) -+ test.case.new( - name='array with index range (last two)', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key: ['content1', 'content2', 'content3'] }, - 'key[1:3]' - ), - expected=['content2', 'content3'], - ) -) -+ test.case.new( - name='array with index range (until end)', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key: ['content1', 'content2', 'content3'] }, - 'key[1:]' - ), - expected=['content2', 'content3'], - ) -) -+ test.case.new( - name='array with index range (from beginning)', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key: ['content1', 'content2', 'content3'] }, - 'key[:2]' - ), - expected=['content1', 'content2'], - ) -) -+ test.case.new( - name='array with index range (negative start)', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key: ['content1', 'content2', 'content3'] }, - 'key[-2:]' - ), - expected=['content2', 'content3'], - ) -) -+ test.case.new( - name='array with index range (negative end)', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key: ['content1', 'content2', 'content3'] }, - 'key[:-1]' - ), - expected=['content1', 'content2'], - ) -) -+ test.case.new( - name='array with index range (step)', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key: [ - 'content%s' % i - for i in std.range(1, 10) - ] }, - 'key[:5:2]' - ), - expected=['content1', 'content3', 'content5'], - ) -) - -// filter expr -+ test.case.new( - name='array with filter expression - string', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key: [ - { - key: 'content%s' % i, - } - for i in std.range(1, 10) - ] }, - '.key[?(@.key==content2)]' - ), - expected=[{ - key: 'content2', - }], - ) -) -+ test.case.new( - name='array with filter expression - number', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key: [ - { - count: i, - } - for i in std.range(1, 10) - ] }, - '.key[?(@.count<=2)]' - ), - expected=[{ - count: 1, - }, { - count: 2, - }], - ) -) -+ test.case.new( - name='array with filter expression - has key', - test=test.expect.eq( - actual=jsonpath.getJSONPath( - { key: [ - { - key1: 'value', - }, - { - key2: 'value', - }, - ] }, - '.key[?(@.key1)]' - ), - expected=[{ - key1: 'value', - }], - ) -) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/url_test.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/url_test.jsonnet deleted file mode 100644 index b2393a27e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/test/url_test.jsonnet +++ /dev/null @@ -1,209 +0,0 @@ -local xtd = import '../main.libsonnet'; -local test = import 'github.com/jsonnet-libs/testonnet/main.libsonnet'; - -test.new(std.thisFile) -+ test.case.new( - name='empty', - test=test.expect.eq( - actual=xtd.url.escapeString(''), - expected='', - ) -) - -+ test.case.new( - name='abc', - test=test.expect.eq( - actual=xtd.url.escapeString('abc'), - expected='abc', - ) -) - -+ test.case.new( - name='space', - test=test.expect.eq( - actual=xtd.url.escapeString('one two'), - expected='one%20two', - ) -) - -+ test.case.new( - name='percent', - test=test.expect.eq( - actual=xtd.url.escapeString('10%'), - expected='10%25', - ) -) - -+ test.case.new( - name='complex', - test=test.expect.eq( - actual=xtd.url.escapeString(" ?&=#+%!<>#\"{}|\\^[]`☺\t:/@$'()*,;"), - expected='%20%3F%26%3D%23%2B%25%21%3C%3E%23%22%7B%7D%7C%5C%5E%5B%5D%60%E2%98%BA%09%3A%2F%40%24%27%28%29%2A%2C%3B', - ) -) - -+ test.case.new( - name='exclusions', - test=test.expect.eq( - actual=xtd.url.escapeString('hello, world', [',']), - expected='hello,%20world', - ) -) - -+ test.case.new( - name='multiple exclusions', - test=test.expect.eq( - actual=xtd.url.escapeString('hello, world,&', [',', '&']), - expected='hello,%20world,&', - ) -) - -+ test.case.new( - name='empty', - test=test.expect.eq( - actual=xtd.url.encodeQuery({}), - expected='', - ) -) - -+ test.case.new( - name='simple', - test=test.expect.eq( - actual=xtd.url.encodeQuery({ q: 'puppies', oe: 'utf8' }), - expected='oe=utf8&q=puppies', - ) -) - -// url.parse -+ test.case.new( - name='Full absolute URL', - test=test.expect.eqJson( - actual=xtd.url.parse('https://example.com/path/to/location;type=person?name=john#address'), - expected={ - scheme: 'https', - netloc: 'example.com', - hostname: 'example.com', - path: '/path/to/location', - params: 'type=person', - query: 'name=john', - fragment: 'address', - }, - ) -) - -+ test.case.new( - name='URL with fragment before params and query', - test=test.expect.eqJson( - actual=xtd.url.parse('https://example.com/path/to/location#address;type=person?name=john'), - expected={ - scheme: 'https', - netloc: 'example.com', - hostname: 'example.com', - path: '/path/to/location', - fragment: 'address;type=person?name=john', - }, - ) -) - -+ test.case.new( - name='URL without query', - test=test.expect.eqJson( - actual=xtd.url.parse('https://example.com/path/to/location;type=person#address'), - expected={ - scheme: 'https', - netloc: 'example.com', - hostname: 'example.com', - path: '/path/to/location', - params: 'type=person', - fragment: 'address', - }, - ) -) - -+ test.case.new( - name='URL without params', - test=test.expect.eqJson( - actual=xtd.url.parse('https://example.com/path/to/location?name=john#address'), - expected={ - scheme: 'https', - netloc: 'example.com', - hostname: 'example.com', - path: '/path/to/location', - query: 'name=john', - fragment: 'address', - }, - ) -) - -+ test.case.new( - name='URL with empty fragment', - test=test.expect.eqJson( - actual=xtd.url.parse('https://example.com/path/to/location#'), - expected={ - scheme: 'https', - netloc: 'example.com', - hostname: 'example.com', - path: '/path/to/location', - fragment: '', - }, - ) -) - -+ test.case.new( - name='host with port', - test=test.expect.eqJson( - actual=xtd.url.parse('//example.com:80'), - expected={ - netloc: 'example.com:80', - hostname: 'example.com', - port: '80', - }, - ) -) - -+ test.case.new( - name='mailto', - test=test.expect.eqJson( - actual=xtd.url.parse('mailto:john@example.com'), - expected={ - scheme: 'mailto', - path: 'john@example.com', - }, - ) -) - -+ test.case.new( - name='UserInfo', - test=test.expect.eqJson( - actual=xtd.url.parse('ftp://admin:password@example.com'), - - expected={ - hostname: 'example.com', - netloc: 'admin:password@example.com', - scheme: 'ftp', - username: 'admin', - password: 'password', - } - , - ) -) - -+ test.case.new( - name='Relative URL only', - test=test.expect.eqJson( - actual=xtd.url.parse('/path/to/location'), - expected={ - path: '/path/to/location', - }, - ) -) - -+ test.case.new( - name='URL fragment only', - test=test.expect.eqJson( - actual=xtd.url.parse('#fragment_only'), - expected={ - fragment: 'fragment_only', - }, - ) -) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/url.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/url.libsonnet deleted file mode 100644 index 1509c0f14..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/jsonnet-libs/xtd/url.libsonnet +++ /dev/null @@ -1,111 +0,0 @@ -local d = import 'github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet'; - -{ - '#': d.pkg( - name='url', - url='github.com/jsonnet-libs/xtd/url.libsonnet', - help='`url` provides functions to deal with URLs', - ), - - '#escapeString': d.fn( - '`escapeString` escapes the given string so it can be safely placed inside an URL, replacing special characters with `%XX` sequences', - args=[ - d.arg('str', d.T.string), - d.arg('excludedChars', d.T.array, default=[]), - ], - ), - escapeString(str, excludedChars=[]):: - local allowedChars = '0123456789abcdefghijklmnopqrstuvwqxyzABCDEFGHIJKLMNOPQRSTUVWQXYZ'; - local utf8(char) = std.foldl(function(a, b) a + '%%%02X' % b, std.encodeUTF8(char), ''); - local escapeChar(char) = if std.member(excludedChars, char) || std.member(allowedChars, char) then char else utf8(char); - std.join('', std.map(escapeChar, std.stringChars(str))), - - '#encodeQuery': d.fn( - '`encodeQuery` takes an object of query parameters and returns them as an escaped `key=value` string', - args=[d.arg('params', d.T.object)], - ), - encodeQuery(params):: - local fmtParam(p) = '%s=%s' % [self.escapeString(p), self.escapeString(params[p])]; - std.join('&', std.map(fmtParam, std.objectFields(params))), - - '#parse': d.fn( - ||| - `parse` parses absolute and relative URLs. - - :///;parameters?# - - Inspired by Python's urllib.urlparse, following several RFC specifications. - |||, - args=[d.arg('url', d.T.string)], - ), - parse(url): - local hasFragment = std.member(url, '#'); - local fragmentSplit = std.splitLimit(url, '#', 1); - local fragment = fragmentSplit[1]; - - local hasQuery = std.member(fragmentSplit[0], '?'); - local querySplit = std.splitLimit(fragmentSplit[0], '?', 1); - local query = querySplit[1]; - - local hasParams = std.member(querySplit[0], ';'); - local paramsSplit = std.splitLimit(querySplit[0], ';', 1); - local params = paramsSplit[1]; - - local hasNetLoc = std.member(paramsSplit[0], '//'); - local netLocSplit = std.splitLimit(paramsSplit[0], '//', 1); - local netLoc = std.splitLimit(netLocSplit[1], '/', 1)[0]; - - local hasScheme = std.member(netLocSplit[0], ':'); - local schemeSplit = std.splitLimit(netLocSplit[0], ':', 1); - local scheme = schemeSplit[0]; - - local path = - if hasNetLoc && std.member(netLocSplit[1], '/') - then '/' + std.splitLimit(netLocSplit[1], '/', 1)[1] - else if hasScheme - then schemeSplit[1] - else netLocSplit[0]; - local hasPath = (path != ''); - - local hasUserInfo = hasNetLoc && std.member(netLoc, '@'); - local userInfoSplit = std.reverse(std.splitLimitR(netLoc, '@', 1)); - local userInfo = userInfoSplit[1]; - - local hasPassword = hasUserInfo && std.member(userInfo, ':'); - local passwordSplit = std.splitLimitR(userInfo, ':', 1); - local username = passwordSplit[0]; - local password = passwordSplit[1]; - - local hasPort = hasNetLoc && std.length(std.findSubstr(':', userInfoSplit[0])) > 0; - local portSplit = std.splitLimitR(userInfoSplit[0], ':', 1); - local host = portSplit[0]; - local port = portSplit[1]; - - { - [if hasScheme then 'scheme']: scheme, - [if hasNetLoc then 'netloc']: netLoc, - [if hasPath then 'path']: path, - [if hasParams then 'params']: params, - [if hasQuery then 'query']: query, - [if hasFragment then 'fragment']: fragment, - - [if hasUserInfo then 'username']: username, - [if hasPassword then 'password']: password, - [if hasNetLoc then 'hostname']: host, - [if hasPort then 'port']: port, - }, - - '#join': d.fn( - '`join` joins URLs from the object generated from `parse`', - args=[d.arg('splitObj', d.T.object)], - ), - join(splitObj): - std.join('', [ - if 'scheme' in splitObj then splitObj.scheme + ':' else '', - if 'netloc' in splitObj then '//' + splitObj.netloc else '', - if 'path' in splitObj then splitObj.path else '', - if 'params' in splitObj then ';' + splitObj.params else '', - if 'query' in splitObj then '?' + splitObj.query else '', - if 'fragment' in splitObj then '#' + splitObj.fragment else '', - ]), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/ISSUE_TEMPLATE/bugs.yaml b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/ISSUE_TEMPLATE/bugs.yaml deleted file mode 100644 index deb9be578..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/ISSUE_TEMPLATE/bugs.yaml +++ /dev/null @@ -1,49 +0,0 @@ -name: Bug Report -description: Report a bug in the existing codebase. -title: '[Bug]: ' -labels: ['kind/bug', 'pending-triage'] -body: - - type: markdown - attributes: - value: | - Please use this template while reporting a bug and provide as much information as possible. If the matter is security related, please disclose it privately, see the project [security policy](https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/main/SECURITY.md). - - type: textarea - id: cause - attributes: - label: What happened? - description: A clear and concise description of what the bug is. Screenshots and screencasts are highly encouraged and helpful during triage, so please provide them if you can. - placeholder: Describe the bug you encountered. Please do not paste any snippets here, use the next field instead. - validations: - required: true - - type: textarea - id: snippet - attributes: - label: Please provide any helpful snippets. - description: If applicable, add code snippet(s) to help explain or reproduce the problem. This will be automatically formatted into code, so no need for backticks. Separate snippets using comments. - render: jsonnet - - type: dropdown - id: contamination - attributes: - label: What parts of the codebase are affected? - description: Select all that apply. - multiple: true - options: - - Alerts - - Dashboards - - Rules - - Other - validations: - required: true - - type: checkboxes - id: terms - attributes: - label: "I agree to the following terms:" - options: - - label: I agree to follow this project's [Code of Conduct](../../CODE_OF_CONDUCT.md). - required: true - - label: I have filled out all the required information above to the best of my ability. - required: true - - label: I have searched the issues of this repository and believe that this is not a duplicate. - required: true - - label: I have confirmed this bug exists in the default branch of the repository, as of the latest commit at the time of submission. - required: true diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/ISSUE_TEMPLATE/enhancements.yaml b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/ISSUE_TEMPLATE/enhancements.yaml deleted file mode 100644 index 145936f90..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/ISSUE_TEMPLATE/enhancements.yaml +++ /dev/null @@ -1,55 +0,0 @@ -name: Enhancement Proposal -description: Propose an enhancement for the existing codebase. -title: '[Enhancement]: ' -labels: ['kind/enhancement', 'pending-triage'] -body: - - type: markdown - attributes: - value: | - Please use this template while proposing an enhancement and provide as much information as possible. If this is a feature request, please ensure that [a consensus has been reached](https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/master/CONTRIBUTING.md?plain=1#L24) before submitting. - - type: textarea - id: idea - attributes: - label: What's the general idea for the enhancement? - description: A clear and concise description of the enhancement's targeted problem and its proposed solution. Screenshots and screencasts are highly encouraged and helpful during triage, so please provide them if you can. - placeholder: Describe the need for this enhancement. Please do not paste any snippets here, use the next field instead. - validations: - required: true - - type: textarea - id: snippet - attributes: - label: Please provide any helpful snippets. - description: If applicable, add code snippet(s) to help explain or reproduce the problem. This will be automatically formatted into code, so no need for backticks. Separate snippets using comments. - render: jsonnet - - type: dropdown - id: contamination - attributes: - label: What parts of the codebase does the enhancement target? - description: Select all that apply. - multiple: true - options: - - Alerts - - Dashboards - - Rules - - Other - validations: - required: true - - type: textarea - id: extra - attributes: - label: Anything else relevant to the enhancement that would help with the triage process? - description: Any additional context or information that would be helpful to the maintainers. For example, if you have considered any alternatives or workarounds, please share them here. - placeholder: Add any additional information here. - - type: checkboxes - id: terms - attributes: - label: "I agree to the following terms:" - options: - - label: I agree to follow this project's [Code of Conduct](../../CODE_OF_CONDUCT.md). - required: true - - label: I have filled out all the required information above to the best of my ability. - required: true - - label: I have searched the issues of this repository and believe that this is not a duplicate. - required: true - - label: I have confirmed this proposal applies to the default branch of the repository, as of the latest commit at the time of submission. - required: true diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/PULL_REQUEST_TEMPLATE/prs.md b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/PULL_REQUEST_TEMPLATE/prs.md deleted file mode 100644 index 96bebdd06..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/PULL_REQUEST_TEMPLATE/prs.md +++ /dev/null @@ -1,19 +0,0 @@ - - -#### What does this PR fix? Please be as descriptive as possible.** - -#### Any helpful code snippets or visual aids (before and after this patch, if applicable)?** -
-Details - - - -
- - - -Fixes # diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/dependabot.yaml b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/dependabot.yaml deleted file mode 100644 index a6819e3f3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/dependabot.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: github-actions - directory: / - schedule: - interval: monthly diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/workflows/check-with-upstream.yaml b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/workflows/check-with-upstream.yaml deleted file mode 100644 index 6ded89178..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/workflows/check-with-upstream.yaml +++ /dev/null @@ -1,14 +0,0 @@ -name: check-with-upstream -# Run every Monday. -on: - schedule: - - cron: '0 0 * * 1' -jobs: - check-selectors-ksm: - runs-on: ubuntu-latest - name: Check if KSM selectors are present on applicable metrics. - steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - - run: make --always-make check-selectors-ksm diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/workflows/ci.yaml b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/workflows/ci.yaml deleted file mode 100644 index 94cc33610..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.github/workflows/ci.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: ci -on: - - push - - pull_request -jobs: - matrix: - runs-on: ubuntu-latest - name: ${{ matrix.name }} - strategy: - fail-fast: false - matrix: - include: - - name: Lint Alerts - run: make --always-make alerts-lint - - name: Generate YAML - run: make --always-make generate && git diff --exit-code - - name: Lint Grafana Dashboards - run: make --always-make dashboards-lint - - name: Format JSONNET - run: make --always-make jsonnet-fmt && git diff --exit-code - - name: Lint JSONNET - run: make --always-make jsonnet-lint - - name: Format MD - run: make --always-make markdownfmt && git diff --exit-code - - name: Lint MD - run: make --always-make vale && git diff --exit-code - - name: Lint YAML - run: make --always-make pint-lint - - name: Run unit tests - run: make --always-make test - - steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - - uses: actions/setup-go@v5 - with: - go-version-file: scripts/go.mod - cache-dependency-path: scripts/go.sum - - run: ${{ matrix.run }} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.gitignore b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.gitignore deleted file mode 100644 index 9ac562c16..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -prometheus_alerts.yaml -prometheus_rules.yaml -dashboards_out -vendor -jsonnetfile.lock.json -tmp -.vale diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.lint b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.lint deleted file mode 100644 index 8bc3f37fc..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.lint +++ /dev/null @@ -1,9 +0,0 @@ -exclusions: - template-job-rule: - template-instance-rule: - target-job-rule: - target-instance-rule: - panel-title-description-rule: - panel-units-rule: - panel-datasource-rule: - reason: The new Grafonnet promotes the use of datasources at the query level. This should probably end up in the linter as a valid option. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.vale.ini b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.vale.ini deleted file mode 100644 index 6371aebac..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/.vale.ini +++ /dev/null @@ -1,8 +0,0 @@ -StylesPath = .vale/styles - -MinAlertLevel = error - -Packages = Readability, write-good, alex - -[*] -BasedOnStyles = Readability, write-good, alex diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/CODE_OF_CONDUCT.md b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/CODE_OF_CONDUCT.md deleted file mode 100644 index 27aad6595..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,77 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. - -We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. - -## Our Standards - -Examples of behavior that contributes to a positive environment for our community include: - -* Demonstrating empathy and kindness toward other people -* Being respectful of differing opinions, viewpoints, and experiences -* Giving and gracefully accepting constructive feedback -* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience -* Focusing on what is best not just for us as individuals, but for the overall community - -Examples of unacceptable behavior include: - -* The use of sexualized language or imagery, and sexual attention or advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or email address, without their explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Enforcement Responsibilities - -Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. - -Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. - -## Scope - -This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at kubernetes-mixin-security@googlegroups.com. All complaints will be reviewed and investigated promptly and fairly. - -All community leaders are obligated to respect the privacy and security of the reporter of any incident. - -## Enforcement Guidelines - -Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: - -### 1. Correction - -**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. - -**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. - -### 2. Warning - -**Community Impact**: A violation through a single incident or series of actions. - -**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. - -### 3. Temporary Ban - -**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. - -**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. - -### 4. Permanent Ban - -**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. - -**Consequence**: A permanent ban from any sort of public interaction within the community. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. - -Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). - -For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/CONTRIBUTING.md b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/CONTRIBUTING.md deleted file mode 100644 index 62fa5ffeb..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/CONTRIBUTING.md +++ /dev/null @@ -1,38 +0,0 @@ -# Contributing - -Thank you for taking an interest in the project! We welcome all manner of contributions that are within the bounds of the project's [code of conduct](CODE_OF_CONDUCT.md). - -#### **Did you find a bug?** - -* **Do not open up a GitHub issue if the bug is a security vulnerability**, and instead to refer to our [security policy](SECURITY.md). - -* **Ensure the bug was not already reported** by searching on GitHub under [Issues](https://github.com/kubernetes-monitoring/kubernetes-mixin/issues). - -* If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/kubernetes-monitoring/kubernetes-mixin/issues/new). Be sure to include a **title and clear description**, as much relevant information as possible, and a **`jsonnet` snippet**, if applicable, as well as an optional **visual sample** demonstrating the expected behavior that is not occurring. - -* Whenever possible, use the relevant bug report templates to create the issue. - -#### **Did you write a patch that fixes a bug?** - -* Open a new GitHub pull request with the patch. - -* Ensure the PR description describes the problem **and** solution. Include the relevant issue number if applicable. - -* Before submitting, please make sure the pull request template is filled out correctly. - -#### **Do you intend to add a new feature or change an existing one?** - -* Suggest your change in [#monitoring-mixins](https://kubernetes.slack.com/archives/CAX9GU941) and start writing code. While doing so, please reflect on: - * Is your feature request related to a problem? Please describe the necessity for the change. - * Describe the solution you're proposing. Please provide any relevant context. - * Add any other context (for example, any workarounds, code snippets, visual aids, etc.), if applicable. - -* Do not open an issue on GitHub until you have collected positive feedback about the change. GitHub issues are primarily intended for bug reports and fixes. - -#### **Do you have questions about the source code?** - -* Ask any question about how to use the `kubernetes-mixin` project in the [#monitoring-mixins](https://kubernetes.slack.com/archives/CAX9GU941). - ---- - -`kubernetes-mixin` is a volunteer effort. We encourage you to pitch in and join [the team](https://github.com/kubernetes-monitoring/kubernetes-mixin/graphs/contributors)! diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/DESIGN.md b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/DESIGN.md deleted file mode 100644 index 563582e0c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/DESIGN.md +++ /dev/null @@ -1,230 +0,0 @@ - - -# Prometheus Monitoring Mixins - -## Using jsonnet to package together dashboards, alerts and exporters. - -Status: Draft Tom Wilkie, Grafana Labs Frederic Branczyk, Red Hat - -In this design doc we present a technique for packaging and deploying "Monitoring Mixins" - extensible and customisable combinations of dashboards, alert definitions and exporters. - -## Problem - -[Prometheus](#Notes) offers powerful open source monitoring and alerting - but that comes with higher degrees of freedom, making pre-configured monitoring configurations hard to build. Simultaneously, it has become accepted wisdom that the developers of a given software package are best placed to operate said software, or at least construct the basic monitoring configuration. - -This work aims to build on Julius Volz' document ["Prometheus Alerting and Dashboard Example Bundles"](#Notes) and subsequent PR ["Add initial node-exporter example bundle"](#Notes). In particular, we support the hypothesis that for Prometheus to gain increased traction we will need to appeal to non-monitoring-experts, and allow for a relatively seamless pre-configured monitoring experience. Where we disagree is around standardization: we do not want to prescribe a given label schema, example deployment or topology. That being said, a lot of the challenges surfaced in that doc are shared here. - -## Aims - -This solution aims to define a minimal standard for how to package together Prometheus alerts, Prometheus recording rules and [Grafana](#Notes) dashboards in a way that is: - -**Easy to install and use, platform agnostic.** The users of these packages are unlikely to be monitoring experts. These packages must be easily installable with a few commands. And they must be general enough to work in all the environments where Prometheus can work: we're not just trying to build for Kubernetes here. That being said, the experience will be first class on Kubernetes. - -**Hosted alongside the programs which expose Prometheus metrics.** More often than not, the best people to build the alerting rules and dashboards for a given application are the authors of that application. And if that is not the case, then at least users of a given application will look to its source for monitoring best practices. We aim to provide a packaging method which allows the repo hosting the application source to also host the applications monitoring package; for them to be versioned along side the application. For example, we envisage the monitoring mixin for Etcd to live in the etcd repo and the monitoring package for Hashicorp's Consul to live in the [consul_exporter](#Notes) repo. - -**We want the ability to iterate and collaborate on packages.** A challenge with the existing published dashboards and alerts is that they are static: the only way to use them is to copy them into your codebase, edit them to make them fit with your deployment. This makes it hard for users to contribute changes back to the original author; it makes it impossible to download new improved versions and stay up to date with improvements. We want these packages to be constantly evolving; we want to encourage drive-by commits. - -**Packages should be reusable, configurable and extensible.** Users should be able to configure the packages to fit their deployments and labels schema without modifying the packages. Users should be able to extend the packages with extra dashboard panels and extra alerts, without having to copy, paste and modify them. The packages must be configurable so that they support the many different label schemes used today by different organisations. - -## Proposal - -**Monitoring Mixins.** A monitoring mixin is a package of configuration containing Prometheus alerts, Prometheus recording rules and Grafana dashboards. Mixins will be maintained in version controlled repos (eg git) as a set of files. Versioning of mixins will be provided by the version control system; mixins themselves should not contain multiple versions. - -Mixins are intended just for the combination of Prometheus and Grafana, and not other monitoring or visualisation systems. Mixins are intended to be opinionated about the choice of monitoring technology. - -Mixins should not however be opinionated about how this configuration should be deployed; they should not contain manifests for deploying Prometheus and Grafana on Kubernetes, for instance. Multiple, separate projects can and should exist to help deploy mixins; we will provide example of how to do this on Kubernetes, and a tool for integrating with traditional config management systems. - -**Jsonnet.** We propose the use of [jsonnet](#Notes), a configuration language from Google, as the basis of our monitoring mixins. Jsonnet has some popularity in this space, as it is used in the [ksonnet](#Notes) project for achieving similar goals for Kubernetes. - -Jsonnet offers the ability to parameterise configuration, allowing for basic customisation. Furthermore, in Jsonnet one can reference another part of the data structure, reducing repetition. For example, with jsonnet one can specify a default job name, and then have all the alerts use that: - -``` -{ - _config+:: { - kubeStateMetricsSelector: ‘job=”default/kube-state-metrics"', - - allowedNotReadyPods: 0, - }, - - groups+: [ - { - name: "kubernetes", - rules: [ - { - alert: "KubePodNotReady", - expr: ||| - sum by (namespace, pod) ( - kube_pod_status_phase{%(kubeStateMetricsSelector)s, phase!~"Running|Succeeded"} - ) > $(allowedNotReadyPods)s - ||| % $._config, - "for": "1h", - labels: { - severity: "critical", - }, - annotations: { - message: "{{ $labels.namespace }}/{{ $labels.pod }} is not ready.", - }, - }, - ], - }, - ], -} -``` - -**Configuration.* We'd like to suggest some standardisation of how configuration is supplied to mixins. A top level `_config` dictionary should be provided, containing various parameters for substitution into alerts and dashboards. In the above example, this is used to specify the selector for the kube-state-metrics pod, and the threshold for the alert. - -**Extension.** One of jsonnet's basic operations is to "merge” data structures - this also allows you to extend existing configurations. For example, given an existing dashboard: - -``` -local g = import "klumps/lib/grafana.libsonnet"; - -{ - dashboards+:: { - "foo.json": g.dashboard("Foo") - .addRow( - g.row("Foo") - .addPanel( - g.panel("Bar") + - g.queryPanel('irate(foor_bar_total[1m])', 'Foo Bar') - ) - ) - }, -} -``` - -It is relatively easy to import it and add extra rows: - -``` -local g = import "foo.libsonnet"; - -{ - dashboards+:: { - "foo.json"+: - super.addRow( - g.row("A new row") - .addPanel( - g.panel("A new panel") + - g.queryPanel('irate(new_total[1m])', 'New') - ) - ) - }, -} -``` - -These abilities offered by jsonnet are key to being able to separate out "upstream” alerts and dashboards from customizations, and keep upstream in sync with the source of the mixin. - -**Higher Order Abstractions.** jsonnet is a functional programming language, and as such allows you to build higher order abstractions over your configuration. For example, you can build functions to generate recording rules for a set of percentiles and labels aggregations, given a histogram: - -``` -local histogramRules(metric, labels) = - local vars = { - metric: metric, - labels_underscore: std.join("_", labels), - labels_comma: std.join(", ", labels), - }; - [ - { - record: "%(labels_underscore)s:%(metric)s:99quantile" % vars, - expr: "histogram_quantile(0.99, sum(rate(%(metric)s_bucket[5m])) by (le, -%(labels_comma)s))" % vars, - }, - { - record: "%(labels_underscore)s:%(metric)s:50quantile" % vars, - expr: "histogram_quantile(0.50, sum(rate(%(metric)s_bucket[5m])) by (le, -%(labels_comma)s))" % vars, - }, - { - record: "%(labels_underscore)s:%(metric)s:avg" % vars, - expr: "sum(rate(%(metric)s_sum[5m])) by (%(labels_comma)s) / -sum(rate(%(metric)s_count[5m])) by (%(labels_comma)s)" % vars, - }, - ]; - -{ - groups+: [{ - name: "frontend_rules", - rules: - histogramRules("frontend_request_duration_seconds", ["job"]) + - histogramRules("frontend_request_duration_seconds", ["job", "route"]), - }], -} -``` - -Other potential examples include functions to generate alerts at different thresholds, omitting multiple alerts, warning and critical. - -**[Grafonnet](#Notes)** An emerging pattern in the jsonnet ecosystem is the existence of libraries of helper functions to generate objects for a given system. For example, ksonnet is a library to generate objects for the Kubernetes object model. Grafonnet is a library for generating Grafana Dashboards using jsonnet. We envisage a series of libraries, such as Grafonnet, to help people build mixins. As such, any system for installing mixins needs to deal with transitive dependencies. - -**Package Management.** The current proof of concepts for mixins (see below) use the new package manager [jsonnet-bundler](#Notes) enabling the following workflow: - -``` -$ jb install kausal github.com/kausalco/public/consul-mixin -``` - -This downloads a copy of the mixin into `vendor/consul-mixin` and allows users to include the mixin in their ksonnet config like so: - -``` -local prometheus = import "prometheus-ksonnet/prometheus-ksonnet.libsonnet"; -local consul_mixin = import "consul-mixin/mixin.libsonnet"; - -prometheus + consul_mixin { - _config+:: { - namespace: "default", - }, -} -``` - -This example also uses the prometheus-ksonnet package from [Kausal](#Notes), which understands the structure of the mixins and manifests alerting rules, recording rules and dashboards as config maps in Kubernetes, mounted into the Kubernetes pods in the correct place. - -However, we think this is a wider problem than just monitoring mixins, and are exploring designs for a generic jsonnet package manager in a [separate design doc](#Notes). - -**Proposed Schema.** To allow multiple tools to utilise mixins, we must agree on some common naming. The proposal is that a mixin is a single dictionary containing three keys: - -- `grafanaDashboards` A dictionary of dashboard file name (foo.json) to dashboard json. -- `prometheusAlerts` A list of Prometheus alert groups. -- `prometheusRules` A list of Prometheus rule groups. - -Each of these values will be expressed as jsonnet objects - not strings. It is the responsibility of the tool consuming the mixin to render these out as JSON or YAML. Jsonnet scripts to do this for you will be provided. - -``` -{ - grafanaDashboards+:: { - "dashboard-name.json”: {...}, - }, - prometheusAlerts+:: [...], - prometheusRules+:: [...], -} -``` - -**Consuming a mixin.** - -- TODO examples of how we expect people to install, customise and extend mixins. -- TODO Ability to manifest out jsonnet configuration in a variety of formats - YAML, JSON, INI etc -- TODO show how it works with ksonnet but also with something like puppet.. - -Examples & Proof of Concepts We will probably put the specification and list of known mixins in a repo somewhere, as a readme. For now, these are the known mixins and related projects: - -| Application | Mixin | Author | -|------------------|--------------------|--------------------------------| -| CoreOS Etcd | etcd-mixin | Grapeshot / Tom Wilkie | -| Cassandra | TBD | Grafana Labs | -| Hashicorp Consul | consul-mixin | Kausal | -| Hashicorp Vault | vault_exporter | Grapeshot / Tom Wilkie | -| Kubernetes | kubernetes-mixin | Tom Wilkie & Frederic Branczyk | -| Kubernetes | kubernetes-grafana | Frederic Branczyk | -| Kubernetes | kube-prometheus | Frederic Branczyk | -| Prometheus | prometheus-ksonnet | Kausal | - -**Open Questions** - -- Some systems require exporters; can / should these be packaged as part of the mixin? Hard to do generally, easy to do for kubernetes with ksonnet. -- On the exporter topic, some systems need stats_exporter mappings to be consistent with alerts and dashboards. Even if we can include statds_exporter in the mixin, can we include the mappings? -- A lot of questions from Julius' design are still open: how to deal with different aggregation windows, what labels to use on alerts etc. - - -## Notes - -This was recreated from a [web.archive.org](https://web.archive.org/web/20211021151124/https://docs.google.com/document/d/1A9xvzwqnFVSOZ5fD3blKODXfsat5fg6ZhnKu9LK3lB4/edit) capture of the original document, the license of this file is unknown. - -The links in the archive do not work and have not been recreated. - -The license of this file is unknown, but judging by the intent it was meant to be shared freely. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/LICENSE b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/LICENSE deleted file mode 100644 index d64569567..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/Makefile b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/Makefile deleted file mode 100644 index 9cad6c495..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/Makefile +++ /dev/null @@ -1,107 +0,0 @@ -BIN_DIR ?= $(shell pwd)/tmp/bin - -JSONNET_VENDOR=vendor -GRAFANA_DASHBOARD_LINTER_BIN=$(BIN_DIR)/dashboard-linter -JB_BIN=$(BIN_DIR)/jb -JSONNET_BIN=$(BIN_DIR)/jsonnet -JSONNETLINT_BIN=$(BIN_DIR)/jsonnet-lint -JSONNETFMT_BIN=$(BIN_DIR)/jsonnetfmt -MD_FILES = $(shell find . \( -type d -name '.vale' -o -type d -name 'vendor' \) -prune -o -type f -name "*.md" -print) -MARKDOWNFMT_BIN=$(BIN_DIR)/markdownfmt -VALE_BIN=$(BIN_DIR)/vale -PROMTOOL_BIN=$(BIN_DIR)/promtool -PINT_BIN=$(BIN_DIR)/pint -TOOLING=$(JB_BIN) $(JSONNETLINT_BIN) $(JSONNET_BIN) $(JSONNETFMT_BIN) $(PROMTOOL_BIN) $(GRAFANA_DASHBOARD_LINTER_BIN) $(MARKDOWNFMT_BIN) $(VALE_BIN) $(PINT_BIN) -JSONNETFMT_ARGS=-n 2 --max-blank-lines 2 --string-style s --comment-style s -SRC_DIR ?=dashboards -OUT_DIR ?=dashboards_out - -.PHONY: all -all: fmt generate lint test - -.PHONY: generate -generate: prometheus_alerts.yaml prometheus_rules.yaml $(OUT_DIR) - -$(JSONNET_VENDOR): $(JB_BIN) jsonnetfile.json - $(JB_BIN) install - -.PHONY: fmt -fmt: jsonnet-fmt markdownfmt - -.PHONY: jsonnet-fmt -jsonnet-fmt: $(JSONNETFMT_BIN) - @find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \ - xargs -n 1 -- $(JSONNETFMT_BIN) $(JSONNETFMT_ARGS) -i - -.PHONY: markdownfmt -markdownfmt: $(MARKDOWNFMT_BIN) - @for file in $(MD_FILES); do $(MARKDOWNFMT_BIN) -w -gofmt $$file; done - -prometheus_alerts.yaml: $(JSONNET_BIN) mixin.libsonnet lib/alerts.jsonnet alerts/*.libsonnet - @$(JSONNET_BIN) -J vendor -S lib/alerts.jsonnet > $@ - -prometheus_rules.yaml: $(JSONNET_BIN) mixin.libsonnet lib/rules.jsonnet rules/*.libsonnet - @$(JSONNET_BIN) -J vendor -S lib/rules.jsonnet > $@ - -$(OUT_DIR): $(JSONNET_BIN) $(JSONNET_VENDOR) mixin.libsonnet lib/dashboards.jsonnet $(SRC_DIR)/*.libsonnet - @mkdir -p $(OUT_DIR) - @$(JSONNET_BIN) -J vendor -m $(OUT_DIR) lib/dashboards.jsonnet - -.PHONY: lint -lint: jsonnet-lint alerts-lint dashboards-lint vale pint-lint - -.PHONY: jsonnet-lint -jsonnet-lint: $(JSONNETLINT_BIN) $(JSONNET_VENDOR) - @find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \ - xargs -n 1 -- $(JSONNETLINT_BIN) -J vendor - -.PHONY: alerts-lint -alerts-lint: $(PROMTOOL_BIN) prometheus_alerts.yaml prometheus_rules.yaml - @$(PROMTOOL_BIN) check rules prometheus_rules.yaml - @$(PROMTOOL_BIN) check rules prometheus_alerts.yaml - -$(OUT_DIR)/.lint: $(OUT_DIR) - @cp .lint $@ - -.PHONY: dashboards-lint -dashboards-lint: $(GRAFANA_DASHBOARD_LINTER_BIN) $(OUT_DIR)/.lint - # Replace $$interval:$$resolution var with $$__rate_interval to make dashboard-linter happy. - @sed -i -e 's/$$interval:$$resolution/$$__rate_interval/g' $(OUT_DIR)/*.json - @find $(OUT_DIR) -name '*.json' -print0 | xargs -n 1 -0 $(GRAFANA_DASHBOARD_LINTER_BIN) lint --strict - -.PHONY: vale -vale: $(VALE_BIN) - @$(VALE_BIN) sync && \ - $(VALE_BIN) $(MD_FILES) - -.PHONY: pint-lint -pint-lint: generate $(PINT_BIN) - @# Pint will not exit with a non-zero status code if there are linting issues. - @output=$$($(PINT_BIN) -n -o -l WARN lint prometheus_alerts.yaml prometheus_rules.yaml 2>&1); \ - if [ -n "$$output" ]; then \ - echo "\n$$output"; \ - exit 1; \ - fi - -.PHONY: clean -clean: - # Remove all files and directories ignored by git. - git clean -Xfd . - -.PHONY: test -test: $(PROMTOOL_BIN) prometheus_alerts.yaml prometheus_rules.yaml - @$(PROMTOOL_BIN) test rules tests.yaml - -$(BIN_DIR): - mkdir -p $(BIN_DIR) - -$(TOOLING): $(BIN_DIR) - @echo Installing tools from hack/tools.go - @cd scripts && go list -e -mod=mod -tags tools -f '{{ range .Imports }}{{ printf "%s\n" .}}{{end}}' ./ | xargs -tI % go build -mod=mod -o $(BIN_DIR) % - -######################################## -# "check-with-upstream" workflow checks. -######################################## - -check-selectors-ksm: - @./scripts/check-selectors-ksm.sh diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/OWNERS b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/OWNERS deleted file mode 100644 index fb831d530..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/OWNERS +++ /dev/null @@ -1,19 +0,0 @@ -# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md - -approvers: -- brancz -- csmarchbanks -- metalmatze -- tomwilkie -- s-urbaniak -- povilasv -- paulfantom - -reviewers: -- brancz -- csmarchbanks -- metalmatze -- tomwilkie -- s-urbaniak -- povilasv -- paulfantom diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/README.md deleted file mode 100644 index 1ff10c0aa..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/README.md +++ /dev/null @@ -1,246 +0,0 @@ -# Prometheus Monitoring Mixin for Kubernetes - -[![ci](https://github.com/kubernetes-monitoring/kubernetes-mixin/actions/workflows/ci.yaml/badge.svg)](https://github.com/kubernetes-monitoring/kubernetes-mixin/actions/workflows/ci.yaml) - -> NOTE: This project is *pre-release* stage. Flags, configuration, behaviour and design may change significantly in following releases. - -A set of Grafana dashboards and Prometheus alerts for Kubernetes. - -## Releases - -| Release branch | Kubernetes Compatibility | Prometheus Compatibility | Kube-state-metrics Compatibility | -|----------------|--------------------------|--------------------------|----------------------------------| -| release-0.1 | v1.13 and before | | | -| release-0.2 | v1.14.1 and before | v2.11.0+ | | -| release-0.3 | v1.17 and before | v2.11.0+ | | -| release-0.4 | v1.18 | v2.11.0+ | | -| release-0.5 | v1.19 | v2.11.0+ | | -| release-0.6 | v1.19+ | v2.11.0+ | | -| release-0.7 | v1.19+ | v2.11.0+ | v1.x | -| release-0.8 | v1.20+ | v2.11.0+ | v2.0+ | -| release-0.9 | v1.20+ | v2.11.0+ | v2.0+ | -| release-0.10 | v1.20+ | v2.11.0+ | v2.0+ | -| release-0.11 | v1.23+ | v2.11.0+ | v2.0+ | -| release-0.12 | v1.23+ | v2.11.0+ | v2.0+ | -| master | v1.26+ | v2.11.0+ | v2.0+ | - -In Kubernetes 1.14 there was a major [metrics overhaul](https://github.com/kubernetes/enhancements/issues/1206) implemented. Therefore v0.1.x of this repository is the last release to support Kubernetes 1.13 and previous version on a best effort basis. - -Some alerts now use Prometheus filters made available in Prometheus 2.11.0, which makes this version of Prometheus a dependency. - -Warning: This compatibility matrix was initially created based on experience, we do not guarantee the compatibility, it may be updated based on new learnings. - -Warning: By default the expressions will generate *grafana 7.2+* compatible rules using the *$__rate_interval* variable for rate functions. If you need backward compatible rules please set *grafana72: false* in your *_config* - -## How to use - -This mixin is designed to be vendored into the repo with your infrastructure config. To do this, use [jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler): - -You then have three options for deploying your dashboards -1. Generate the config files and deploy them yourself -2. Use ksonnet to deploy this mixin along with Prometheus and Grafana -3. Use prometheus-operator to deploy this mixin (TODO) - -## Generate config files - -You can manually generate the alerts, dashboards and rules files, but first you must install some tools: - -``` -$ go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest -$ brew install jsonnet -``` - -Then, grab the mixin and its dependencies: - -``` -$ git clone https://github.com/kubernetes-monitoring/kubernetes-mixin -$ cd kubernetes-mixin -$ jb install -``` - -Finally, build the mixin: - -``` -$ make prometheus_alerts.yaml -$ make prometheus_rules.yaml -$ make dashboards_out -``` - -The `prometheus_alerts.yaml` and `prometheus_rules.yaml` file then need to passed to your Prometheus server, and the files in `dashboards_out` need to be imported into you Grafana server. The exact details will depending on how you deploy your monitoring stack to Kubernetes. - -### Dashboards for Windows Nodes - -There exist separate dashboards for windows resources. -1) Compute Resources / Cluster(Windows) -2) Compute Resources / Namespace(Windows) -3) Compute Resources / Pod(Windows) -4) USE Method / Cluster(Windows) -5) USE Method / Node(Windows) - -These dashboards are based on metrics populated by [windows-exporter](https://github.com/prometheus-community/windows_exporter) from each Windows node. - -## Running the tests - -```sh -make test -``` - -## Using with prometheus-ksonnet - -Alternatively you can also use the mixin with [prometheus-ksonnet](https://github.com/kausalco/public/tree/master/prometheus-ksonnet), a [ksonnet](https://github.com/ksonnet/ksonnet) module to deploy a fully-fledged Prometheus-based monitoring system for Kubernetes: - -Make sure you have the ksonnet v0.8.0: - -``` -$ brew install https://raw.githubusercontent.com/ksonnet/homebrew-tap/82ef24cb7b454d1857db40e38671426c18cd8820/ks.rb -$ brew pin ks -$ ks version -ksonnet version: v0.8.0 -jsonnet version: v0.9.5 -client-go version: v1.6.8-beta.0+$Format:%h$ -``` - -In your config repo, if you don't have a ksonnet application, make a new one (will copy credentials from current context): - -``` -$ ks init -$ cd -$ ks env add default -``` - -Grab the kubernetes-jsonnet module using and its dependencies, which include the kubernetes-mixin: - -``` -$ go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb -$ jb init -$ jb install github.com/kausalco/public/prometheus-ksonnet -``` - -Assuming you want to run in the default namespace ('environment' in ksonnet parlance), add the follow to the file `environments/default/main.jsonnet`: - -```jsonnet -local prometheus = import "prometheus-ksonnet/prometheus-ksonnet.libsonnet"; - -prometheus { - _config+:: { - namespace: "default", - }, -} -``` - -Apply your config: - -``` -$ ks apply default -``` - -## Using prometheus-operator - -TODO - -## Multi-cluster support - -Kubernetes-mixin can support dashboards across multiple clusters. You need either a multi-cluster [Thanos](https://github.com/improbable-eng/thanos) installation with `external_labels` configured or a [Cortex](https://github.com/cortexproject/cortex) system where a cluster label exists. To enable this feature you need to configure the following: - -```jsonnet - // Opt-in to multiCluster dashboards by overriding this and the clusterLabel. - showMultiCluster: true, - clusterLabel: '', -``` - -## Customising the mixin - -Kubernetes-mixin allows you to override the selectors used for various jobs, to match those used in your Prometheus set. You can also customize the dashboard names and add grafana tags. - -In a new directory, add a file `mixin.libsonnet`: - -```jsonnet -local kubernetes = import "kubernetes-mixin/mixin.libsonnet"; - -kubernetes { - _config+:: { - kubeStateMetricsSelector: 'job="kube-state-metrics"', - cadvisorSelector: 'job="kubernetes-cadvisor"', - nodeExporterSelector: 'job="kubernetes-node-exporter"', - kubeletSelector: 'job="kubernetes-kubelet"', - grafanaK8s+:: { - dashboardNamePrefix: 'Mixin / ', - dashboardTags: ['kubernetes', 'infrastucture'], - }, - }, -} -``` - -Then, install the kubernetes-mixin: - -``` -$ jb init -$ jb install github.com/kubernetes-monitoring/kubernetes-mixin -``` - -Generate the alerts, rules and dashboards: - -``` -$ jsonnet -J vendor -S -e 'std.manifestYamlDoc((import "mixin.libsonnet").prometheusAlerts)' > alerts.yml -$ jsonnet -J vendor -S -e 'std.manifestYamlDoc((import "mixin.libsonnet").prometheusRules)' >files/rules.yml -$ jsonnet -J vendor -m files/dashboards -e '(import "mixin.libsonnet").grafanaDashboards' -``` - -### Customising alert annotations - -The steps described below extend on the existing mixin library without modifying the original git repository. This is to make consuming updates to your extended alert definitions easier. These definitions can reside outside of this repository and added to your own custom location, where you can define your alert dependencies in your `jsonnetfile.json` and add customisations to the existing definitions. - -In your working directory, create a new file `kubernetes_mixin_override.libsonnet` with the following: - -```jsonnet -local utils = import 'lib/utils.libsonnet'; -(import 'mixin.libsonnet') + -( - { - prometheusAlerts+:: - // The specialAlerts can be in any other config file - local slack = 'observability'; - local specialAlerts = { - KubePodCrashLooping: { slack_channel: slack }, - KubePodNotReady: { slack_channel: slack }, - }; - - local addExtraAnnotations(rule) = rule { - [if 'alert' in rule then 'annotations']+: { - dashboard: 'https://foo.bar.co', - [if rule.alert in specialAlerts then 'slack_channel']: specialAlerts[rule.alert].slack_channel, - }, - }; - utils.mapRuleGroups(addExtraAnnotations), - } -) -``` - -Create new file: `lib/kubernetes_customised_alerts.jsonnet` with the following: - -```jsonnet -std.manifestYamlDoc((import '../kubernetes_mixin_override.libsonnet').prometheusAlerts) -``` - -Running `jsonnet -S lib/kubernetes_customised_alerts.jsonnet` will build the alerts with your customisations. - -Same result can be achieved by modyfying the existing `config.libsonnet` with the content of `kubernetes_mixin_override.libsonnet`. - -## Background - -### Alert Severities - -While the community has not yet fully agreed on alert severities and their to be used, this repository assumes the following paradigms when setting the severities: - -* Critical: An issue, that needs to page a person to take instant action -* Warning: An issue, that needs to be worked on but in the regular work queue or for during office hours rather than paging the oncall -* Info: Is meant to support a trouble shooting process by informing about a non-normal situation for one or more systems but not worth a page or ticket on its own. - -### Architecture and Technical Decisions - -* For more motivation, see "[The RED Method: How to instrument your services](https://kccncna17.sched.com/event/CU8K/the-red-method-how-to-instrument-your-services-b-tom-wilkie-kausal?iframe=no&w=100%&sidebar=yes&bg=no)" talk from CloudNativeCon Austin. -* For more information about monitoring mixins, see this [design doc](DESIGN.md). - -## Note - -You can use the external tool call [prom-metrics-check](https://github.com/ContainerSolutions/prom-metrics-check) to validate the created dashboards. This tool allows you to check if the metrics installed and used in Grafana dashboards exist in the Prometheus instance. Please have a look at https://github.com/ContainerSolutions/prom-metrics-check. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/SECURITY.md b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/SECURITY.md deleted file mode 100644 index 62ba33b5b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security Policy - -## Reporting a Vulnerability - -If you discover a security issue in this project, please report it to the project's [SECURITY_CONTACTS](SECURITY_CONTACTS). You can also ping the project's maintainers through the project's [Slack](https://kubernetes.slack.com/archives/CAX9GU941), privately. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/SECURITY_CONTACTS b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/SECURITY_CONTACTS deleted file mode 100644 index 0f85c94fa..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/SECURITY_CONTACTS +++ /dev/null @@ -1,16 +0,0 @@ -# Defined below are the security contacts for this repo. -# -# They are the contact point for the Product Security Committee to reach out -# to for triaging and handling of incoming issues. -# -# The below names agree to abide by the -# [Embargo Policy](https://git.k8s.io/security/private-distributors-list.md#embargo-policy) -# and will be removed and replaced if they violate that agreement. -# -# DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE -# INSTRUCTIONS AT https://kubernetes.io/security/ - -brancz -csmarchbanks -metalmatze -tomwilkie diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/alerts.libsonnet deleted file mode 100644 index 929e9f1d6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/alerts.libsonnet +++ /dev/null @@ -1,10 +0,0 @@ -(import 'apps_alerts.libsonnet') + -(import 'resource_alerts.libsonnet') + -(import 'storage_alerts.libsonnet') + -(import 'system_alerts.libsonnet') + -(import 'kube_apiserver.libsonnet') + -(import 'kubelet.libsonnet') + -(import 'kube_scheduler.libsonnet') + -(import 'kube_controller_manager.libsonnet') + -(import 'kube_proxy.libsonnet') + -(import '../lib/add-runbook-links.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/apps_alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/apps_alerts.libsonnet deleted file mode 100644 index 4359b1a77..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/apps_alerts.libsonnet +++ /dev/null @@ -1,328 +0,0 @@ -{ - _config+:: { - kubeStateMetricsSelector: error 'must provide selector for kube-state-metrics', - kubeJobTimeoutDuration: error 'must provide value for kubeJobTimeoutDuration', - namespaceSelector: null, - prefixedNamespaceSelector: if self.namespaceSelector != null then self.namespaceSelector + ',' else '', - }, - - prometheusAlerts+:: { - groups+: [ - { - name: 'kubernetes-apps', - rules: [ - { - expr: ||| - max_over_time(kube_pod_container_status_waiting_reason{reason="CrashLoopBackOff", %(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s}[5m]) >= 1 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Pod {{ $labels.namespace }}/{{ $labels.pod }} ({{ $labels.container }}) is in waiting state (reason: "CrashLoopBackOff").', - summary: 'Pod is crash looping.', - }, - 'for': '15m', - alert: 'KubePodCrashLooping', - }, - { - // We wrap kube_pod_owner with the topk() aggregator to ensure that - // every (namespace, pod, %(clusterLabel)s) tuple is unique even if the "owner_kind" - // label exists for 2 values. This avoids "many-to-many matching - // not allowed" errors when joining with kube_pod_status_phase. - expr: ||| - sum by (namespace, pod, %(clusterLabel)s) ( - max by(namespace, pod, %(clusterLabel)s) ( - kube_pod_status_phase{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, phase=~"Pending|Unknown|Failed"} - ) * on(namespace, pod, %(clusterLabel)s) group_left(owner_kind) topk by(namespace, pod, %(clusterLabel)s) ( - 1, max by(namespace, pod, owner_kind, %(clusterLabel)s) (kube_pod_owner{owner_kind!="Job"}) - ) - ) > 0 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Pod {{ $labels.namespace }}/{{ $labels.pod }} has been in a non-ready state for longer than 15 minutes.', - summary: 'Pod has been in a non-ready state for more than 15 minutes.', - }, - 'for': '15m', - alert: 'KubePodNotReady', - }, - { - expr: ||| - kube_deployment_status_observed_generation{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - != - kube_deployment_metadata_generation{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Deployment generation for {{ $labels.namespace }}/{{ $labels.deployment }} does not match, this indicates that the Deployment has failed but has not been rolled back.', - summary: 'Deployment generation mismatch due to possible roll-back', - }, - 'for': '15m', - alert: 'KubeDeploymentGenerationMismatch', - }, - { - expr: ||| - ( - kube_deployment_spec_replicas{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - > - kube_deployment_status_replicas_available{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - ) and ( - changes(kube_deployment_status_replicas_updated{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s}[10m]) - == - 0 - ) - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Deployment {{ $labels.namespace }}/{{ $labels.deployment }} has not matched the expected number of replicas for longer than 15 minutes.', - summary: 'Deployment has not matched the expected number of replicas.', - }, - 'for': '15m', - alert: 'KubeDeploymentReplicasMismatch', - }, - { - expr: ||| - kube_deployment_status_condition{condition="Progressing", status="false",%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - != 0 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Rollout of deployment {{ $labels.namespace }}/{{ $labels.deployment }} is not progressing for longer than 15 minutes.', - summary: 'Deployment rollout is not progressing.', - }, - 'for': '15m', - alert: 'KubeDeploymentRolloutStuck', - }, - { - expr: ||| - ( - kube_statefulset_status_replicas_ready{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - != - kube_statefulset_status_replicas{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - ) and ( - changes(kube_statefulset_status_replicas_updated{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s}[10m]) - == - 0 - ) - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'StatefulSet {{ $labels.namespace }}/{{ $labels.statefulset }} has not matched the expected number of replicas for longer than 15 minutes.', - summary: 'StatefulSet has not matched the expected number of replicas.', - }, - 'for': '15m', - alert: 'KubeStatefulSetReplicasMismatch', - }, - { - expr: ||| - kube_statefulset_status_observed_generation{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - != - kube_statefulset_metadata_generation{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'StatefulSet generation for {{ $labels.namespace }}/{{ $labels.statefulset }} does not match, this indicates that the StatefulSet has failed but has not been rolled back.', - summary: 'StatefulSet generation mismatch due to possible roll-back', - }, - 'for': '15m', - alert: 'KubeStatefulSetGenerationMismatch', - }, - { - expr: ||| - ( - max by(namespace, statefulset, job, %(clusterLabel)s) ( - kube_statefulset_status_current_revision{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - unless - kube_statefulset_status_update_revision{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - ) - * - ( - kube_statefulset_replicas{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - != - kube_statefulset_status_replicas_updated{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - ) - ) and ( - changes(kube_statefulset_status_replicas_updated{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s}[5m]) - == - 0 - ) - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'StatefulSet {{ $labels.namespace }}/{{ $labels.statefulset }} update has not been rolled out.', - summary: 'StatefulSet update has not been rolled out.', - }, - 'for': '15m', - alert: 'KubeStatefulSetUpdateNotRolledOut', - }, - { - alert: 'KubeDaemonSetRolloutStuck', - expr: ||| - ( - ( - kube_daemonset_status_current_number_scheduled{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - != - kube_daemonset_status_desired_number_scheduled{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - ) or ( - kube_daemonset_status_number_misscheduled{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - != - 0 - ) or ( - kube_daemonset_status_updated_number_scheduled{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - != - kube_daemonset_status_desired_number_scheduled{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - ) or ( - kube_daemonset_status_number_available{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - != - kube_daemonset_status_desired_number_scheduled{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - ) - ) and ( - changes(kube_daemonset_status_updated_number_scheduled{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s}[5m]) - == - 0 - ) - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'DaemonSet {{ $labels.namespace }}/{{ $labels.daemonset }} has not finished or progressed for at least 15 minutes.', - summary: 'DaemonSet rollout is stuck.', - }, - 'for': '15m', - }, - { - expr: ||| - sum by (namespace, pod, container, %(clusterLabel)s) (kube_pod_container_status_waiting_reason{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s}) > 0 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'pod/{{ $labels.pod }} in namespace {{ $labels.namespace }} on container {{ $labels.container}} has been in waiting state for longer than 1 hour.', - summary: 'Pod container waiting longer than 1 hour', - }, - 'for': '1h', - alert: 'KubeContainerWaiting', - }, - { - alert: 'KubeDaemonSetNotScheduled', - expr: ||| - kube_daemonset_status_desired_number_scheduled{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - - - kube_daemonset_status_current_number_scheduled{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} > 0 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: '{{ $value }} Pods of DaemonSet {{ $labels.namespace }}/{{ $labels.daemonset }} are not scheduled.', - summary: 'DaemonSet pods are not scheduled.', - }, - 'for': '10m', - }, - { - alert: 'KubeDaemonSetMisScheduled', - expr: ||| - kube_daemonset_status_number_misscheduled{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} > 0 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: '{{ $value }} Pods of DaemonSet {{ $labels.namespace }}/{{ $labels.daemonset }} are running where they are not supposed to run.', - summary: 'DaemonSet pods are misscheduled.', - }, - 'for': '15m', - }, - { - alert: 'KubeJobNotCompleted', - expr: ||| - time() - max by(namespace, job_name, %(clusterLabel)s) (kube_job_status_start_time{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - and - kube_job_status_active{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} > 0) > %(kubeJobTimeoutDuration)s - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Job {{ $labels.namespace }}/{{ $labels.job_name }} is taking more than {{ "%(kubeJobTimeoutDuration)s" | humanizeDuration }} to complete.' % $._config, - summary: 'Job did not complete in time', - }, - }, - { - alert: 'KubeJobFailed', - expr: ||| - kube_job_failed{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} > 0 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'Job {{ $labels.namespace }}/{{ $labels.job_name }} failed to complete. Removing failed job after investigation should clear this alert.', - summary: 'Job failed to complete.', - }, - }, - { - expr: ||| - (kube_horizontalpodautoscaler_status_desired_replicas{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - != - kube_horizontalpodautoscaler_status_current_replicas{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s}) - and - (kube_horizontalpodautoscaler_status_current_replicas{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - > - kube_horizontalpodautoscaler_spec_min_replicas{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s}) - and - (kube_horizontalpodautoscaler_status_current_replicas{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - < - kube_horizontalpodautoscaler_spec_max_replicas{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s}) - and - changes(kube_horizontalpodautoscaler_status_current_replicas{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s}[15m]) == 0 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'HPA {{ $labels.namespace }}/{{ $labels.horizontalpodautoscaler }} has not matched the desired number of replicas for longer than 15 minutes.', - summary: 'HPA has not matched desired number of replicas.', - }, - 'for': '15m', - alert: 'KubeHpaReplicasMismatch', - }, - { - expr: ||| - kube_horizontalpodautoscaler_status_current_replicas{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - == - kube_horizontalpodautoscaler_spec_max_replicas{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'HPA {{ $labels.namespace }}/{{ $labels.horizontalpodautoscaler }} has been running at max replicas for longer than 15 minutes.', - summary: 'HPA is running at max replicas', - }, - 'for': '15m', - alert: 'KubeHpaMaxedOut', - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_apiserver.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_apiserver.libsonnet deleted file mode 100644 index 5639454d5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_apiserver.libsonnet +++ /dev/null @@ -1,126 +0,0 @@ -local utils = import '../lib/utils.libsonnet'; - -{ - _config+:: { - kubeApiserverSelector: error 'must provide selector for kube-apiserver', - - kubeAPILatencyWarningSeconds: 1, - - certExpirationWarningSeconds: 7 * 24 * 3600, - certExpirationCriticalSeconds: 1 * 24 * 3600, - }, - - prometheusAlerts+:: { - groups+: [ - { - name: 'kube-apiserver-slos', - rules: [ - { - alert: 'KubeAPIErrorBudgetBurn', - expr: ||| - sum(apiserver_request:burnrate%s) > (%.2f * %.5f) - and - sum(apiserver_request:burnrate%s) > (%.2f * %.5f) - ||| % [ - w.long, - w.factor, - (1 - $._config.SLOs.apiserver.target), - w.short, - w.factor, - (1 - $._config.SLOs.apiserver.target), - ], - labels: { - severity: w.severity, - short: '%(short)s' % w, - long: '%(long)s' % w, - }, - annotations: { - description: 'The API server is burning too much error budget.', - summary: 'The API server is burning too much error budget.', - }, - 'for': '%(for)s' % w, - } - for w in $._config.SLOs.apiserver.windows - ], - }, - { - name: 'kubernetes-system-apiserver', - rules: [ - { - alert: 'KubeClientCertificateExpiration', - expr: ||| - apiserver_client_certificate_expiration_seconds_count{%(kubeApiserverSelector)s} > 0 and on(job) histogram_quantile(0.01, sum by (job, le) (rate(apiserver_client_certificate_expiration_seconds_bucket{%(kubeApiserverSelector)s}[5m]))) < %(certExpirationWarningSeconds)s - ||| % $._config, - 'for': '5m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'A client certificate used to authenticate to kubernetes apiserver is expiring in less than %s.' % (utils.humanizeSeconds($._config.certExpirationWarningSeconds)), - summary: 'Client certificate is about to expire.', - }, - }, - { - alert: 'KubeClientCertificateExpiration', - expr: ||| - apiserver_client_certificate_expiration_seconds_count{%(kubeApiserverSelector)s} > 0 and on(job) histogram_quantile(0.01, sum by (job, le) (rate(apiserver_client_certificate_expiration_seconds_bucket{%(kubeApiserverSelector)s}[5m]))) < %(certExpirationCriticalSeconds)s - ||| % $._config, - 'for': '5m', - labels: { - severity: 'critical', - }, - annotations: { - description: 'A client certificate used to authenticate to kubernetes apiserver is expiring in less than %s.' % (utils.humanizeSeconds($._config.certExpirationCriticalSeconds)), - summary: 'Client certificate is about to expire.', - }, - }, - { - alert: 'KubeAggregatedAPIErrors', - expr: ||| - sum by(name, namespace, %(clusterLabel)s)(increase(aggregator_unavailable_apiservice_total{%(kubeApiserverSelector)s}[10m])) > 4 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Kubernetes aggregated API {{ $labels.name }}/{{ $labels.namespace }} has reported errors. It has appeared unavailable {{ $value | humanize }} times averaged over the past 10m.', - summary: 'Kubernetes aggregated API has reported errors.', - }, - }, - { - alert: 'KubeAggregatedAPIDown', - expr: ||| - (1 - max by(name, namespace, %(clusterLabel)s)(avg_over_time(aggregator_unavailable_apiservice{%(kubeApiserverSelector)s}[10m]))) * 100 < 85 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'Kubernetes aggregated API {{ $labels.name }}/{{ $labels.namespace }} has been only {{ $value | humanize }}% available over the last 10m.', - summary: 'Kubernetes aggregated API is down.', - }, - }, - (import '../lib/absent_alert.libsonnet') { - componentName:: 'KubeAPI', - selector:: $._config.kubeApiserverSelector, - }, - { - alert: 'KubeAPITerminatedRequests', - expr: ||| - sum(rate(apiserver_request_terminations_total{%(kubeApiserverSelector)s}[10m])) / ( sum(rate(apiserver_request_total{%(kubeApiserverSelector)s}[10m])) + sum(rate(apiserver_request_terminations_total{%(kubeApiserverSelector)s}[10m])) ) > 0.20 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'The kubernetes apiserver has terminated {{ $value | humanizePercentage }} of its incoming requests.', - summary: 'The kubernetes apiserver has terminated {{ $value | humanizePercentage }} of its incoming requests.', - }, - 'for': '5m', - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_controller_manager.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_controller_manager.libsonnet deleted file mode 100644 index 571e52901..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_controller_manager.libsonnet +++ /dev/null @@ -1,19 +0,0 @@ -{ - _config+:: { - kubeControllerManagerSelector: error 'must provide selector for kube-controller-manager', - }, - - prometheusAlerts+:: { - groups+: [ - { - name: 'kubernetes-system-controller-manager', - rules: [ - (import '../lib/absent_alert.libsonnet') { - componentName:: 'KubeControllerManager', - selector:: $._config.kubeControllerManagerSelector, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_proxy.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_proxy.libsonnet deleted file mode 100644 index 38afcbb65..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_proxy.libsonnet +++ /dev/null @@ -1,19 +0,0 @@ -{ - _config+:: { - kubeProxySelector: error 'must provide selector for kube-proxy', - }, - - prometheusAlerts+:: { - groups+: [ - { - name: 'kubernetes-system-kube-proxy', - rules: [ - (import '../lib/absent_alert.libsonnet') { - componentName:: 'KubeProxy', - selector:: $._config.kubeProxySelector, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_scheduler.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_scheduler.libsonnet deleted file mode 100644 index baae29a2e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kube_scheduler.libsonnet +++ /dev/null @@ -1,19 +0,0 @@ -{ - _config+:: { - kubeSchedulerSelector: 'job="kube-scheduler"', - }, - - prometheusAlerts+:: { - groups+: [ - { - name: 'kubernetes-system-scheduler', - rules: [ - (import '../lib/absent_alert.libsonnet') { - componentName:: 'KubeScheduler', - selector:: $._config.kubeSchedulerSelector, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kubelet.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kubelet.libsonnet deleted file mode 100644 index 2b206dec1..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/kubelet.libsonnet +++ /dev/null @@ -1,202 +0,0 @@ -{ - _config+:: { - kubeStateMetricsSelector: error 'must provide selector for kube-state-metrics', - kubeletSelector: error 'must provide selector for kubelet', - kubeNodeUnreachableIgnoreKeys: [ - 'ToBeDeletedByClusterAutoscaler', - 'cloud.google.com/impending-node-termination', - 'aws-node-termination-handler/spot-itn', - ], - - kubeletCertExpirationWarningSeconds: 7 * 24 * 3600, - kubeletCertExpirationCriticalSeconds: 1 * 24 * 3600, - }, - - prometheusAlerts+:: { - groups+: [ - { - name: 'kubernetes-system-kubelet', - rules: [ - { - expr: ||| - kube_node_status_condition{%(kubeStateMetricsSelector)s,condition="Ready",status="true"} == 0 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: '{{ $labels.node }} has been unready for more than 15 minutes.', - summary: 'Node is not ready.', - }, - 'for': '15m', - alert: 'KubeNodeNotReady', - }, - { - expr: ||| - (kube_node_spec_taint{%(kubeStateMetricsSelector)s,key="node.kubernetes.io/unreachable",effect="NoSchedule"} unless ignoring(key,value) kube_node_spec_taint{%(kubeStateMetricsSelector)s,key=~"%(kubeNodeUnreachableIgnoreKeys)s"}) == 1 - ||| % $._config { - kubeNodeUnreachableIgnoreKeys: std.join('|', super.kubeNodeUnreachableIgnoreKeys), - }, - labels: { - severity: 'warning', - }, - annotations: { - description: '{{ $labels.node }} is unreachable and some workloads may be rescheduled.', - summary: 'Node is unreachable.', - }, - 'for': '15m', - alert: 'KubeNodeUnreachable', - }, - { - alert: 'KubeletTooManyPods', - // Some node has a capacity of 1 like AWS's Fargate and only exists while a pod is running on it. - // We have to ignore this special node in the KubeletTooManyPods alert. - expr: ||| - count by(%(clusterLabel)s, node) ( - (kube_pod_status_phase{%(kubeStateMetricsSelector)s,phase="Running"} == 1) * on(instance,pod,namespace,%(clusterLabel)s) group_left(node) topk by(instance,pod,namespace,%(clusterLabel)s) (1, kube_pod_info{%(kubeStateMetricsSelector)s}) - ) - / - max by(%(clusterLabel)s, node) ( - kube_node_status_capacity{%(kubeStateMetricsSelector)s,resource="pods"} != 1 - ) > 0.95 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'info', - }, - annotations: { - description: "Kubelet '{{ $labels.node }}' is running at {{ $value | humanizePercentage }} of its Pod capacity.", - summary: 'Kubelet is running at capacity.', - }, - }, - { - alert: 'KubeNodeReadinessFlapping', - expr: ||| - sum(changes(kube_node_status_condition{%(kubeStateMetricsSelector)s,status="true",condition="Ready"}[15m])) by (%(clusterLabel)s, node) > 2 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'The readiness status of node {{ $labels.node }} has changed {{ $value }} times in the last 15 minutes.', - summary: 'Node readiness status is flapping.', - }, - }, - { - alert: 'KubeletPlegDurationHigh', - expr: ||| - node_quantile:kubelet_pleg_relist_duration_seconds:histogram_quantile{quantile="0.99"} >= 10 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'The Kubelet Pod Lifecycle Event Generator has a 99th percentile duration of {{ $value }} seconds on node {{ $labels.node }}.', - summary: 'Kubelet Pod Lifecycle Event Generator is taking too long to relist.', - }, - }, - { - alert: 'KubeletPodStartUpLatencyHigh', - expr: ||| - histogram_quantile(0.99, sum(rate(kubelet_pod_worker_duration_seconds_bucket{%(kubeletSelector)s}[5m])) by (%(clusterLabel)s, instance, le)) * on(%(clusterLabel)s, instance) group_left(node) kubelet_node_name{%(kubeletSelector)s} > 60 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'Kubelet Pod startup 99th percentile latency is {{ $value }} seconds on node {{ $labels.node }}.', - summary: 'Kubelet Pod startup latency is too high.', - }, - }, - { - alert: 'KubeletClientCertificateExpiration', - expr: ||| - kubelet_certificate_manager_client_ttl_seconds < %(kubeletCertExpirationWarningSeconds)s - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Client certificate for Kubelet on node {{ $labels.node }} expires in {{ $value | humanizeDuration }}.', - summary: 'Kubelet client certificate is about to expire.', - }, - }, - { - alert: 'KubeletClientCertificateExpiration', - expr: ||| - kubelet_certificate_manager_client_ttl_seconds < %(kubeletCertExpirationCriticalSeconds)s - ||| % $._config, - labels: { - severity: 'critical', - }, - annotations: { - description: 'Client certificate for Kubelet on node {{ $labels.node }} expires in {{ $value | humanizeDuration }}.', - summary: 'Kubelet client certificate is about to expire.', - }, - }, - { - alert: 'KubeletServerCertificateExpiration', - expr: ||| - kubelet_certificate_manager_server_ttl_seconds < %(kubeletCertExpirationWarningSeconds)s - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Server certificate for Kubelet on node {{ $labels.node }} expires in {{ $value | humanizeDuration }}.', - summary: 'Kubelet server certificate is about to expire.', - }, - }, - { - alert: 'KubeletServerCertificateExpiration', - expr: ||| - kubelet_certificate_manager_server_ttl_seconds < %(kubeletCertExpirationCriticalSeconds)s - ||| % $._config, - labels: { - severity: 'critical', - }, - annotations: { - description: 'Server certificate for Kubelet on node {{ $labels.node }} expires in {{ $value | humanizeDuration }}.', - summary: 'Kubelet server certificate is about to expire.', - }, - }, - { - alert: 'KubeletClientCertificateRenewalErrors', - expr: ||| - increase(kubelet_certificate_manager_client_expiration_renew_errors[5m]) > 0 - ||| % $._config, - labels: { - severity: 'warning', - }, - 'for': '15m', - annotations: { - description: 'Kubelet on node {{ $labels.node }} has failed to renew its client certificate ({{ $value | humanize }} errors in the last 5 minutes).', - summary: 'Kubelet has failed to renew its client certificate.', - }, - }, - { - alert: 'KubeletServerCertificateRenewalErrors', - expr: ||| - increase(kubelet_server_expiration_renew_errors[5m]) > 0 - ||| % $._config, - labels: { - severity: 'warning', - }, - 'for': '15m', - annotations: { - description: 'Kubelet on node {{ $labels.node }} has failed to renew its server certificate ({{ $value | humanize }} errors in the last 5 minutes).', - summary: 'Kubelet has failed to renew its server certificate.', - }, - }, - (import '../lib/absent_alert.libsonnet') { - componentName:: 'Kubelet', - selector:: $._config.kubeletSelector, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/resource_alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/resource_alerts.libsonnet deleted file mode 100644 index 04a8e3a00..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/resource_alerts.libsonnet +++ /dev/null @@ -1,220 +0,0 @@ -{ - _config+:: { - kubeStateMetricsSelector: error 'must provide selector for kube-state-metrics', - nodeExporterSelector: error 'must provide selector for node-exporter', - namespaceSelector: null, - prefixedNamespaceSelector: if self.namespaceSelector != null then self.namespaceSelector + ',' else '', - - // We alert when the aggregate (CPU, Memory) quota for all namespaces is - // greater than the amount of the resources in the cluster. We do however - // allow you to overcommit if you wish. - namespaceOvercommitFactor: 1.5, - cpuThrottlingPercent: 25, - cpuThrottlingSelector: '', - // Set this selector for seleting namespaces that contains resources used for overprovision - // See https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-can-i-configure-overprovisioning-with-cluster-autoscaler - // for more details. - ignoringOverprovisionedWorkloadSelector: '', - }, - - prometheusAlerts+:: { - groups+: [ - { - name: 'kubernetes-resources', - rules: [ - { - alert: 'KubeCPUOvercommit', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Cluster has overcommitted CPU resource requests.', - }, - 'for': '10m', - } + - if $._config.showMultiCluster then { - expr: ||| - sum(namespace_cpu:kube_pod_container_resource_requests:sum{%(ignoringOverprovisionedWorkloadSelector)s}) by (%(clusterLabel)s) - (sum(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="cpu"}) by (%(clusterLabel)s) - max(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="cpu"}) by (%(clusterLabel)s)) > 0 - and - (sum(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="cpu"}) by (%(clusterLabel)s) - max(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="cpu"}) by (%(clusterLabel)s)) > 0 - ||| % $._config, - annotations+: { - description: 'Cluster {{ $labels.%(clusterLabel)s }} has overcommitted CPU resource requests for Pods by {{ $value }} CPU shares and cannot tolerate node failure.' % $._config, - }, - } else { - expr: ||| - sum(namespace_cpu:kube_pod_container_resource_requests:sum{%(ignoringOverprovisionedWorkloadSelector)s}) - (sum(kube_node_status_allocatable{resource="cpu", %(kubeStateMetricsSelector)s}) - max(kube_node_status_allocatable{resource="cpu", %(kubeStateMetricsSelector)s})) > 0 - and - (sum(kube_node_status_allocatable{resource="cpu", %(kubeStateMetricsSelector)s}) - max(kube_node_status_allocatable{resource="cpu", %(kubeStateMetricsSelector)s})) > 0 - ||| % $._config, - annotations+: { - description: 'Cluster has overcommitted CPU resource requests for Pods by {{ $value }} CPU shares and cannot tolerate node failure.' % $._config, - }, - }, - { - alert: 'KubeMemoryOvercommit', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Cluster has overcommitted memory resource requests.', - }, - 'for': '10m', - } + - if $._config.showMultiCluster then { - expr: ||| - sum(namespace_memory:kube_pod_container_resource_requests:sum{%(ignoringOverprovisionedWorkloadSelector)s}) by (%(clusterLabel)s) - (sum(kube_node_status_allocatable{resource="memory", %(kubeStateMetricsSelector)s}) by (%(clusterLabel)s) - max(kube_node_status_allocatable{resource="memory", %(kubeStateMetricsSelector)s}) by (%(clusterLabel)s)) > 0 - and - (sum(kube_node_status_allocatable{resource="memory", %(kubeStateMetricsSelector)s}) by (%(clusterLabel)s) - max(kube_node_status_allocatable{resource="memory", %(kubeStateMetricsSelector)s}) by (%(clusterLabel)s)) > 0 - ||| % $._config, - annotations+: { - description: 'Cluster {{ $labels.%(clusterLabel)s }} has overcommitted memory resource requests for Pods by {{ $value | humanize }} bytes and cannot tolerate node failure.' % $._config, - }, - } else - { - expr: ||| - sum(namespace_memory:kube_pod_container_resource_requests:sum{%(ignoringOverprovisionedWorkloadSelector)s}) - (sum(kube_node_status_allocatable{resource="memory", %(kubeStateMetricsSelector)s}) - max(kube_node_status_allocatable{resource="memory", %(kubeStateMetricsSelector)s})) > 0 - and - (sum(kube_node_status_allocatable{resource="memory", %(kubeStateMetricsSelector)s}) - max(kube_node_status_allocatable{resource="memory", %(kubeStateMetricsSelector)s})) > 0 - ||| % $._config, - annotations+: { - description: 'Cluster has overcommitted memory resource requests for Pods by {{ $value | humanize }} bytes and cannot tolerate node failure.', - }, - }, - { - alert: 'KubeCPUQuotaOvercommit', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Cluster has overcommitted CPU resource requests.', - }, - 'for': '5m', - } + - if $._config.showMultiCluster then { - expr: ||| - sum(min without(resource) (kube_resourcequota{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, type="hard", resource=~"(cpu|requests.cpu)"})) by (%(clusterLabel)s) - / - sum(kube_node_status_allocatable{resource="cpu", %(kubeStateMetricsSelector)s}) by (%(clusterLabel)s) - > %(namespaceOvercommitFactor)s - ||| % $._config, - annotations+: { - description: 'Cluster {{ $labels.%(clusterLabel)s }} has overcommitted CPU resource requests for Namespaces.' % $._config, - }, - } else - { - expr: ||| - sum(min without(resource) (kube_resourcequota{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, type="hard", resource=~"(cpu|requests.cpu)"})) - / - sum(kube_node_status_allocatable{resource="cpu", %(kubeStateMetricsSelector)s}) - > %(namespaceOvercommitFactor)s - ||| % $._config, - annotations+: { - description: 'Cluster has overcommitted CPU resource requests for Namespaces.', - }, - }, - { - alert: 'KubeMemoryQuotaOvercommit', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Cluster has overcommitted memory resource requests.', - }, - 'for': '5m', - } + - if $._config.showMultiCluster then { - expr: ||| - sum(min without(resource) (kube_resourcequota{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, type="hard", resource=~"(memory|requests.memory)"})) by (%(clusterLabel)s) - / - sum(kube_node_status_allocatable{resource="memory", %(kubeStateMetricsSelector)s}) by (%(clusterLabel)s) - > %(namespaceOvercommitFactor)s - ||| % $._config, - annotations+: { - description: 'Cluster {{ $labels.%(clusterLabel)s }} has overcommitted memory resource requests for Namespaces.' % $._config, - }, - } else - { - expr: ||| - sum(min without(resource) (kube_resourcequota{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, type="hard", resource=~"(memory|requests.memory)"})) - / - sum(kube_node_status_allocatable{resource="memory", %(kubeStateMetricsSelector)s}) - > %(namespaceOvercommitFactor)s - ||| % $._config, - annotations+: { - description: 'Cluster has overcommitted memory resource requests for Namespaces.', - }, - }, - { - alert: 'KubeQuotaAlmostFull', - expr: ||| - kube_resourcequota{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, type="used"} - / ignoring(instance, job, type) - (kube_resourcequota{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, type="hard"} > 0) - > 0.9 < 1 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'info', - }, - annotations: { - description: 'Namespace {{ $labels.namespace }} is using {{ $value | humanizePercentage }} of its {{ $labels.resource }} quota.', - summary: 'Namespace quota is going to be full.', - }, - }, - { - alert: 'KubeQuotaFullyUsed', - expr: ||| - kube_resourcequota{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, type="used"} - / ignoring(instance, job, type) - (kube_resourcequota{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, type="hard"} > 0) - == 1 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'info', - }, - annotations: { - description: 'Namespace {{ $labels.namespace }} is using {{ $value | humanizePercentage }} of its {{ $labels.resource }} quota.', - summary: 'Namespace quota is fully used.', - }, - }, - { - alert: 'KubeQuotaExceeded', - expr: ||| - kube_resourcequota{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, type="used"} - / ignoring(instance, job, type) - (kube_resourcequota{%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s, type="hard"} > 0) - > 1 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'Namespace {{ $labels.namespace }} is using {{ $value | humanizePercentage }} of its {{ $labels.resource }} quota.', - summary: 'Namespace quota has exceeded the limits.', - }, - }, - { - alert: 'CPUThrottlingHigh', - expr: ||| - sum(increase(container_cpu_cfs_throttled_periods_total{container!="", %(cpuThrottlingSelector)s}[5m])) by (%(clusterLabel)s, container, pod, namespace) - / - sum(increase(container_cpu_cfs_periods_total{%(cpuThrottlingSelector)s}[5m])) by (%(clusterLabel)s, container, pod, namespace) - > ( %(cpuThrottlingPercent)s / 100 ) - ||| % $._config, - 'for': '15m', - labels: { - severity: 'info', - }, - annotations: { - description: '{{ $value | humanizePercentage }} throttling of CPU in namespace {{ $labels.namespace }} for container {{ $labels.container }} in pod {{ $labels.pod }}.', - summary: 'Processes experience elevated CPU throttling.', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/storage_alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/storage_alerts.libsonnet deleted file mode 100644 index 4069ff330..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/storage_alerts.libsonnet +++ /dev/null @@ -1,137 +0,0 @@ -{ - _config+:: { - kubeStateMetricsSelector: error 'must provide selector for kube-state-metrics', - kubeletSelector: error 'must provide selector for kubelet', - namespaceSelector: null, - prefixedNamespaceSelector: if self.namespaceSelector != null then self.namespaceSelector + ',' else '', - - // We alert when a disk is expected to fill up in four days. Depending on - // the data-set it might be useful to change the sampling-time for the - // prediction - volumeFullPredictionSampleTime: '6h', - }, - - prometheusAlerts+:: { - groups+: [ - { - name: 'kubernetes-storage', - rules: [ - { - alert: 'KubePersistentVolumeFillingUp', - expr: ||| - ( - kubelet_volume_stats_available_bytes{%(prefixedNamespaceSelector)s%(kubeletSelector)s} - / - kubelet_volume_stats_capacity_bytes{%(prefixedNamespaceSelector)s%(kubeletSelector)s} - ) < 0.03 - and - kubelet_volume_stats_used_bytes{%(prefixedNamespaceSelector)s%(kubeletSelector)s} > 0 - unless on(%(clusterLabel)s, namespace, persistentvolumeclaim) - kube_persistentvolumeclaim_access_mode{%(prefixedNamespaceSelector)s access_mode="ReadOnlyMany"} == 1 - unless on(%(clusterLabel)s, namespace, persistentvolumeclaim) - kube_persistentvolumeclaim_labels{%(prefixedNamespaceSelector)s%(pvExcludedSelector)s} == 1 - ||| % $._config, - 'for': '1m', - labels: { - severity: 'critical', - }, - annotations: { - description: 'The PersistentVolume claimed by {{ $labels.persistentvolumeclaim }} in Namespace {{ $labels.namespace }} {{ with $labels.%(clusterLabel)s -}} on Cluster {{ . }} {{- end }} is only {{ $value | humanizePercentage }} free.' % $._config, - summary: 'PersistentVolume is filling up.', - }, - }, - { - alert: 'KubePersistentVolumeFillingUp', - expr: ||| - ( - kubelet_volume_stats_available_bytes{%(prefixedNamespaceSelector)s%(kubeletSelector)s} - / - kubelet_volume_stats_capacity_bytes{%(prefixedNamespaceSelector)s%(kubeletSelector)s} - ) < 0.15 - and - kubelet_volume_stats_used_bytes{%(prefixedNamespaceSelector)s%(kubeletSelector)s} > 0 - and - predict_linear(kubelet_volume_stats_available_bytes{%(prefixedNamespaceSelector)s%(kubeletSelector)s}[%(volumeFullPredictionSampleTime)s], 4 * 24 * 3600) < 0 - unless on(%(clusterLabel)s, namespace, persistentvolumeclaim) - kube_persistentvolumeclaim_access_mode{%(prefixedNamespaceSelector)s access_mode="ReadOnlyMany"} == 1 - unless on(%(clusterLabel)s, namespace, persistentvolumeclaim) - kube_persistentvolumeclaim_labels{%(prefixedNamespaceSelector)s%(pvExcludedSelector)s} == 1 - ||| % $._config, - 'for': '1h', - labels: { - severity: 'warning', - }, - annotations: { - description: 'Based on recent sampling, the PersistentVolume claimed by {{ $labels.persistentvolumeclaim }} in Namespace {{ $labels.namespace }} {{ with $labels.%(clusterLabel)s -}} on Cluster {{ . }} {{- end }} is expected to fill up within four days. Currently {{ $value | humanizePercentage }} is available.' % $._config, - summary: 'PersistentVolume is filling up.', - }, - }, - { - alert: 'KubePersistentVolumeInodesFillingUp', - expr: ||| - ( - kubelet_volume_stats_inodes_free{%(prefixedNamespaceSelector)s%(kubeletSelector)s} - / - kubelet_volume_stats_inodes{%(prefixedNamespaceSelector)s%(kubeletSelector)s} - ) < 0.03 - and - kubelet_volume_stats_inodes_used{%(prefixedNamespaceSelector)s%(kubeletSelector)s} > 0 - unless on(%(clusterLabel)s, namespace, persistentvolumeclaim) - kube_persistentvolumeclaim_access_mode{%(prefixedNamespaceSelector)s access_mode="ReadOnlyMany"} == 1 - unless on(%(clusterLabel)s, namespace, persistentvolumeclaim) - kube_persistentvolumeclaim_labels{%(prefixedNamespaceSelector)s%(pvExcludedSelector)s} == 1 - ||| % $._config, - 'for': '1m', - labels: { - severity: 'critical', - }, - annotations: { - description: 'The PersistentVolume claimed by {{ $labels.persistentvolumeclaim }} in Namespace {{ $labels.namespace }} {{ with $labels.%(clusterLabel)s -}} on Cluster {{ . }} {{- end }} only has {{ $value | humanizePercentage }} free inodes.' % $._config, - summary: 'PersistentVolumeInodes are filling up.', - }, - }, - { - alert: 'KubePersistentVolumeInodesFillingUp', - expr: ||| - ( - kubelet_volume_stats_inodes_free{%(prefixedNamespaceSelector)s%(kubeletSelector)s} - / - kubelet_volume_stats_inodes{%(prefixedNamespaceSelector)s%(kubeletSelector)s} - ) < 0.15 - and - kubelet_volume_stats_inodes_used{%(prefixedNamespaceSelector)s%(kubeletSelector)s} > 0 - and - predict_linear(kubelet_volume_stats_inodes_free{%(prefixedNamespaceSelector)s%(kubeletSelector)s}[%(volumeFullPredictionSampleTime)s], 4 * 24 * 3600) < 0 - unless on(%(clusterLabel)s, namespace, persistentvolumeclaim) - kube_persistentvolumeclaim_access_mode{%(prefixedNamespaceSelector)s access_mode="ReadOnlyMany"} == 1 - unless on(%(clusterLabel)s, namespace, persistentvolumeclaim) - kube_persistentvolumeclaim_labels{%(prefixedNamespaceSelector)s%(pvExcludedSelector)s} == 1 - ||| % $._config, - 'for': '1h', - labels: { - severity: 'warning', - }, - annotations: { - description: 'Based on recent sampling, the PersistentVolume claimed by {{ $labels.persistentvolumeclaim }} in Namespace {{ $labels.namespace }} {{ with $labels.%(clusterLabel)s -}} on Cluster {{ . }} {{- end }} is expected to run out of inodes within four days. Currently {{ $value | humanizePercentage }} of its inodes are free.' % $._config, - summary: 'PersistentVolumeInodes are filling up.', - }, - }, - { - alert: 'KubePersistentVolumeErrors', - expr: ||| - kube_persistentvolume_status_phase{phase=~"Failed|Pending",%(prefixedNamespaceSelector)s%(kubeStateMetricsSelector)s} > 0 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'critical', - }, - annotations: { - description: 'The persistent volume {{ $labels.persistentvolume }} {{ with $labels.%(clusterLabel)s -}} on Cluster {{ . }} {{- end }} has status {{ $labels.phase }}.' % $._config, - summary: 'PersistentVolume is having issues with provisioning.', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/system_alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/system_alerts.libsonnet deleted file mode 100644 index 2a434a30f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/alerts/system_alerts.libsonnet +++ /dev/null @@ -1,50 +0,0 @@ -{ - _config+:: { - notKubeDnsCoreDnsSelector: 'job!~"kube-dns|coredns"', - kubeApiserverSelector: 'job="kube-apiserver"', - }, - - prometheusAlerts+:: { - groups+: [ - { - name: 'kubernetes-system', - rules: [ - { - alert: 'KubeVersionMismatch', - expr: ||| - count by (%(clusterLabel)s) (count by (git_version, %(clusterLabel)s) (label_replace(kubernetes_build_info{%(notKubeDnsCoreDnsSelector)s},"git_version","$1","git_version","(v[0-9]*.[0-9]*).*"))) > 1 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - description: 'There are {{ $value }} different semantic versions of Kubernetes components running.', - summary: 'Different semantic versions of Kubernetes components running.', - }, - }, - { - alert: 'KubeClientErrors', - // Many clients use get requests to check the existence of objects, - // this is normal and an expected error, therefore it should be - // ignored in this alert. - expr: ||| - (sum(rate(rest_client_requests_total{%(kubeApiserverSelector)s,code=~"5.."}[5m])) by (%(clusterLabel)s, instance, job, namespace) - / - sum(rate(rest_client_requests_total{%(kubeApiserverSelector)s}[5m])) by (%(clusterLabel)s, instance, job, namespace)) - > 0.01 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - description: "Kubernetes API server client '{{ $labels.job }}/{{ $labels.instance }}' is experiencing {{ $value | humanizePercentage }} errors.'", - summary: 'Kubernetes API server client is experiencing errors.', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/config.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/config.libsonnet deleted file mode 100644 index 4843e29bb..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/config.libsonnet +++ /dev/null @@ -1,113 +0,0 @@ -{ - _config+:: { - SLOs: { - apiserver: { - days: 30, // The number of days we alert on burning too much error budget for. - target: 0.99, // The target percentage of availability between 0-1. (0.99 = 99%, 0.999 = 99.9%) - - // Only change these windows when you really understand multi burn rate errors. - // Even though you can change the days above (which will change availability calculations) - // these windows will alert on a 30 days sliding window. We're looking into basing these windows on the given days too. - windows: [ - { severity: 'critical', 'for': '2m', long: '1h', short: '5m', factor: 14.4 }, - { severity: 'critical', 'for': '15m', long: '6h', short: '30m', factor: 6 }, - { severity: 'warning', 'for': '1h', long: '1d', short: '2h', factor: 3 }, - { severity: 'warning', 'for': '3h', long: '3d', short: '6h', factor: 1 }, - ], - }, - }, - - // Selectors are inserted between {} in Prometheus queries. - cadvisorSelector: 'job="cadvisor"', - kubeletSelector: 'job="kubelet"', - kubeStateMetricsSelector: 'job="kube-state-metrics"', - nodeExporterSelector: 'job="node-exporter"', - kubeSchedulerSelector: 'job="kube-scheduler"', - kubeControllerManagerSelector: 'job="kube-controller-manager"', - kubeApiserverSelector: 'job="kube-apiserver"', - kubeProxySelector: 'job="kube-proxy"', - podLabel: 'pod', - hostNetworkInterfaceSelector: 'device!~"veth.+"', - hostMountpointSelector: 'mountpoint="/"', - windowsExporterSelector: 'job="kubernetes-windows-exporter"', - containerfsSelector: 'container!=""', - - // Grafana dashboard IDs are necessary for stable links for dashboards - grafanaDashboardIDs: { - 'apiserver.json': std.md5('apiserver.json'), - 'cluster-total.json': std.md5('cluster-total.json'), - 'controller-manager.json': std.md5('controller-manager.json'), - 'k8s-resources-cluster.json': std.md5('k8s-resources-cluster.json'), - 'k8s-resources-multicluster.json': std.md5('k8s-resources-multicluster.json'), - 'k8s-resources-namespace.json': std.md5('k8s-resources-namespace.json'), - 'k8s-resources-node.json': std.md5('k8s-resources-node.json'), - 'k8s-resources-pod.json': std.md5('k8s-resources-pod.json'), - 'k8s-resources-windows-cluster.json': std.md5('k8s-resources-windows-cluster.json'), - 'k8s-resources-windows-namespace.json': std.md5('k8s-resources-windows-namespace.json'), - 'k8s-resources-windows-pod.json': std.md5('k8s-resources-windows-pod.json'), - 'k8s-resources-workload.json': std.md5('k8s-resources-workload.json'), - 'k8s-resources-workloads-namespace.json': std.md5('k8s-resources-workloads-namespace.json'), - 'k8s-windows-cluster-rsrc-use.json': std.md5('k8s-windows-cluster-rsrc-use.json'), - 'k8s-windows-node-rsrc-use.json': std.md5('k8s-windows-node-rsrc-use.json'), - 'kubelet.json': std.md5('kubelet.json'), - 'namespace-by-pod.json': std.md5('namespace-by-pod.json'), - 'namespace-by-workload.json': std.md5('namespace-by-workload.json'), - 'persistentvolumesusage.json': std.md5('persistentvolumesusage.json'), - 'pod-total.json': std.md5('pod-total.json'), - 'proxy.json': std.md5('proxy.json'), - 'scheduler.json': std.md5('scheduler.json'), - 'workload-total.json': std.md5('workload-total.json'), - }, - - // Support for Grafana 7.2+ `$__rate_interval` instead of `$__interval` - grafana72: true, - grafanaIntervalVar: if self.grafana72 then '$__rate_interval' else '$__interval', - - // Config for the Grafana dashboards in the Kubernetes Mixin - grafanaK8s: { - dashboardNamePrefix: 'Kubernetes / ', - dashboardTags: ['kubernetes-mixin'], - - // For links between grafana dashboards, you need to tell us if your grafana - // servers under some non-root path. - linkPrefix: '', - - // The default refresh time for all dashboards, default to 10s - refresh: '10s', - minimumTimeInterval: '1m', - - // Timezone for Grafana dashboards:: UTC, browser, ... - grafanaTimezone: 'UTC', - }, - - // Opt-in to multiCluster dashboards by overriding this and the clusterLabel. - showMultiCluster: false, - clusterLabel: 'cluster', - - namespaceLabel: 'namespace', - - // Default datasource name - datasourceName: 'default', - - // Datasource instance filter regex - datasourceFilterRegex: '', - - // This list of filesystem is referenced in various expressions. - fstypes: ['ext[234]', 'btrfs', 'xfs', 'zfs'], - fstypeSelector: 'fstype=~"%s"' % std.join('|', self.fstypes), - - // This list of disk device names is referenced in various expressions. - diskDevices: ['mmcblk.p.+', 'nvme.+', 'rbd.+', 'sd.+', 'vd.+', 'xvd.+', 'dm-.+', 'dasd.+'], - diskDeviceSelector: 'device=~"(/dev.+)|%s"' % std.join('|', self.diskDevices), - - // Certain workloads (e.g. KubeVirt/CDI) will fully utilise the persistent volume they claim - // the size of the PV will never grow since they consume the entirety of the volume by design. - // This selector allows an admin to 'pre-mark' the PVC of such a workload (or for any other use case) - // so that specific storage alerts will not fire.With the default selector, adding a label `excluded-from-alerts: 'true'` - // to the PVC will have the desired effect. - pvExcludedSelector: 'label_excluded_from_alerts="true"', - - // Default timeout value for k8s Jobs. The jobs which are active beyond this duration would trigger KubeJobNotCompleted alert. - kubeJobTimeoutDuration: 12 * 60 * 60, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/apiserver.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/apiserver.libsonnet deleted file mode 100644 index 79d59448a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/apiserver.libsonnet +++ /dev/null @@ -1,348 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; -local var = g.dashboard.variable; -local stat = g.panel.stat; -local ts = g.panel.timeSeries; -local override = ts.standardOptions.override; - -{ - _config+:: { - kubeApiserverSelector: 'job="kube-apiserver"', - }, - - local timeSeries = - g.panel.timeSeries { - new(title): - ts.new(title) - + ts.options.legend.withShowLegend() - + ts.options.legend.withAsTable() - + ts.options.legend.withPlacement('right') - + ts.options.tooltip.withMode('single') - + ts.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - local mystatpanel(title, description, query) = - stat.new(title) - + stat.panelOptions.withDescription(description) - + stat.panelOptions.withGridPos(w=6) - + stat.standardOptions.withUnit('percentunit') - + stat.standardOptions.withDecimals(3) - + stat.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval) - + stat.queryOptions.withTargets([ - g.query.prometheus.new( - '${datasource}', - query, - ), - ]), - - local myrequestspanel(title, description, query) = - timeSeries.new(title) - + timeSeries.panelOptions.withDescription(description) - + timeSeries.panelOptions.withGridPos(w=6) - + timeSeries.standardOptions.withUnit('reqps') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(100) - + timeSeries.fieldConfig.defaults.custom.stacking.withMode('normal') - + timeSeries.standardOptions.withOverrides([ - override.byRegexp.new('/2../i') + override.byRegexp.withProperty('color', '#56A64B'), - override.byRegexp.new('/3../i') + override.byRegexp.withProperty('color', '#F2CC0C'), - override.byRegexp.new('/4../i') + override.byRegexp.withProperty('color', '#3274D9'), - override.byRegexp.new('/5../i') + override.byRegexp.withProperty('color', '#E02F44'), - ]) - + timeSeries.queryOptions.withTargets([ - g.query.prometheus.new( - '${datasource}', - query - ) - + g.query.prometheus.withLegendFormat('{{ code }}'), - ]), - - local myerrorpanel(title, description, query) = - timeSeries.new(title) - + timeSeries.panelOptions.withDescription(description) - + timeSeries.panelOptions.withGridPos(w=6) - + timeSeries.standardOptions.withUnit('percentunit') - + timeSeries.standardOptions.withMin(0) - + timeSeries.queryOptions.withTargets([ - g.query.prometheus.new( - '${datasource}', - query - ) - + g.query.prometheus.withLegendFormat('{{ resource }}'), - ]), - - local mydurationpanel(title, description, query) = - timeSeries.new(title) - + timeSeries.panelOptions.withDescription(description) - + timeSeries.panelOptions.withGridPos(w=6) - + timeSeries.standardOptions.withUnit('s') - + timeSeries.queryOptions.withTargets([ - g.query.prometheus.new( - '${datasource}', - query - ) - + g.query.prometheus.withLegendFormat('{{ resource }}'), - ]), - - grafanaDashboards+:: { - 'apiserver.json': - local panels = { - notice: - g.panel.text.new('Notice') - + g.panel.text.options.withContent('The SLO (service level objective) and other metrics displayed on this dashboard are for informational purposes only.') - + g.panel.text.panelOptions.withDescription('The SLO (service level objective) and other metrics displayed on this dashboard are for informational purposes only.') - + g.panel.text.panelOptions.withGridPos(2, 24, 0, 0), - - availability1d: - mystatpanel( - 'Availability (%dd) > %.3f%%' % [ - $._config.SLOs.apiserver.days, - 100 * $._config.SLOs.apiserver.target, - ], - 'How many percent of requests (both read and write) in %d days have been answered successfully and fast enough?' % $._config.SLOs.apiserver.days, - 'apiserver_request:availability%dd{verb="all", %(clusterLabel)s="$cluster"}' % [$._config.SLOs.apiserver.days, $._config.clusterLabel], - ) - + stat.panelOptions.withGridPos(w=8), - - errorBudget: - timeSeries.new('ErrorBudget (%dd) > %.3f%%' % [$._config.SLOs.apiserver.days, 100 * $._config.SLOs.apiserver.target]) - + timeSeries.panelOptions.withDescription('How much error budget is left looking at our %.3f%% availability guarantees?' % $._config.SLOs.apiserver.target) - + timeSeries.panelOptions.withGridPos(w=16) - + timeSeries.standardOptions.withUnit('percentunit') - + timeSeries.standardOptions.withDecimals(3) - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(100) - + timeSeries.queryOptions.withTargets([ - g.query.prometheus.new( - '${datasource}', - '100 * (apiserver_request:availability%dd{verb="all", %(clusterLabel)s="$cluster"} - %f)' % [$._config.SLOs.apiserver.days, $._config.clusterLabel, $._config.SLOs.apiserver.target], - ) - + g.query.prometheus.withLegendFormat('errorbudget'), - ]), - - readAvailability: - mystatpanel( - 'Read Availability (%dd)' % $._config.SLOs.apiserver.days, - 'How many percent of read requests (LIST,GET) in %d days have been answered successfully and fast enough?' % $._config.SLOs.apiserver.days, - 'apiserver_request:availability%dd{verb="read", %(clusterLabel)s="$cluster"}' % [ - $._config.SLOs.apiserver.days, - $._config.clusterLabel, - ] - ), - - readRequests: - myrequestspanel( - 'Read SLI - Requests', - 'How many read requests (LIST,GET) per second do the apiservers get by code?', - 'sum by (code) (code_resource:apiserver_request_total:rate5m{verb="read", %(clusterLabel)s="$cluster"})' % $._config, - ), - - readErrors: - myerrorpanel( - 'Read SLI - Errors', - 'How many percent of read requests (LIST,GET) per second are returned with errors (5xx)?', - 'sum by (resource) (code_resource:apiserver_request_total:rate5m{verb="read",code=~"5..", %(clusterLabel)s="$cluster"}) / sum by (resource) (code_resource:apiserver_request_total:rate5m{verb="read", %(clusterLabel)s="$cluster"})' % $._config - ), - - readDuration: - mydurationpanel( - 'Read SLI - Duration', - 'How many seconds is the 99th percentile for reading (LIST|GET) a given resource?', - 'cluster_quantile:apiserver_request_sli_duration_seconds:histogram_quantile{verb="read", %(clusterLabel)s="$cluster"}' % $._config - ), - - writeAvailability: - mystatpanel( - 'Write Availability (%dd)' % $._config.SLOs.apiserver.days, - 'How many percent of write requests (POST|PUT|PATCH|DELETE) in %d days have been answered successfully and fast enough?' % $._config.SLOs.apiserver.days, - 'apiserver_request:availability%dd{verb="write", %(clusterLabel)s="$cluster"}' % [$._config.SLOs.apiserver.days, $._config.clusterLabel] - ), - - writeRequests: - myrequestspanel( - 'Write SLI - Requests', - 'How many write requests (POST|PUT|PATCH|DELETE) per second do the apiservers get by code?', - 'sum by (code) (code_resource:apiserver_request_total:rate5m{verb="write", %(clusterLabel)s="$cluster"})' % $._config - ), - - writeErrors: - myerrorpanel( - 'Write SLI - Errors', - 'How many percent of write requests (POST|PUT|PATCH|DELETE) per second are returned with errors (5xx)?', - 'sum by (resource) (code_resource:apiserver_request_total:rate5m{verb="write",code=~"5..", %(clusterLabel)s="$cluster"}) / sum by (resource) (code_resource:apiserver_request_total:rate5m{verb="write", %(clusterLabel)s="$cluster"})' % $._config - ), - - writeDuration: - mydurationpanel( - 'Write SLI - Duration', - 'How many seconds is the 99th percentile for writing (POST|PUT|PATCH|DELETE) a given resource?', - 'cluster_quantile:apiserver_request_sli_duration_seconds:histogram_quantile{verb="write", %(clusterLabel)s="$cluster"}' % $._config - ), - - workQueueAddRate: - timeSeries.new('Work Queue Add Rate') - + timeSeries.panelOptions.withGridPos(w=12) - + timeSeries.standardOptions.withUnit('ops') - + timeSeries.standardOptions.withMin(0) - + timeSeries.options.legend.withShowLegend(false) - + timeSeries.queryOptions.withTargets([ - g.query.prometheus.new( - '${datasource}', - 'sum(rate(workqueue_adds_total{%(kubeApiserverSelector)s, instance=~"$instance", %(clusterLabel)s="$cluster"}[%(grafanaIntervalVar)s])) by (instance, name)' % $._config, - ) - + g.query.prometheus.withLegendFormat('{{instance}} {{name}}'), - ]), - - workQueueDepth: - timeSeries.new('Work Queue Depth') - + timeSeries.panelOptions.withGridPos(w=12) - + timeSeries.standardOptions.withUnit('short') - + timeSeries.standardOptions.withMin(0) - + timeSeries.options.legend.withShowLegend(false) - + timeSeries.queryOptions.withTargets([ - g.query.prometheus.new( - '${datasource}', - 'sum(rate(workqueue_depth{%(kubeApiserverSelector)s, instance=~"$instance", %(clusterLabel)s="$cluster"}[%(grafanaIntervalVar)s])) by (instance, name)' % $._config - ) - + g.query.prometheus.withLegendFormat('{{instance}} {{name}}'), - ]), - - workQueueLatency: - timeSeries.new('Work Queue Latency') - + timeSeries.panelOptions.withGridPos(w=24) - + timeSeries.standardOptions.withUnit('s') - + timeSeries.standardOptions.withMin(0) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.queryOptions.withTargets([ - g.query.prometheus.new( - '${datasource}', - 'histogram_quantile(0.99, sum(rate(workqueue_queue_duration_seconds_bucket{%(kubeApiserverSelector)s, instance=~"$instance", %(clusterLabel)s="$cluster"}[%(grafanaIntervalVar)s])) by (instance, name, le))' % $._config, - ) - + g.query.prometheus.withLegendFormat('{{instance}} {{name}}'), - ]), - - memory: - timeSeries.new('Memory') - + timeSeries.panelOptions.withGridPos(w=8) - + timeSeries.standardOptions.withUnit('bytes') - + timeSeries.queryOptions.withTargets([ - g.query.prometheus.new( - '${datasource}', - 'process_resident_memory_bytes{%(kubeApiserverSelector)s,instance=~"$instance", %(clusterLabel)s="$cluster"}' % $._config, - ) - + g.query.prometheus.withLegendFormat('{{instance}}'), - ]), - - cpu: - timeSeries.new('CPU usage') - + timeSeries.panelOptions.withGridPos(w=8) - + timeSeries.standardOptions.withUnit('short') - + timeSeries.standardOptions.withMin(0) - + timeSeries.queryOptions.withTargets([ - g.query.prometheus.new( - '${datasource}', - 'rate(process_cpu_seconds_total{%(kubeApiserverSelector)s,instance=~"$instance", %(clusterLabel)s="$cluster"}[%(grafanaIntervalVar)s])' % $._config - ) - + g.query.prometheus.withLegendFormat('{{instance}}'), - ]), - - goroutines: - timeSeries.new('Goroutines') - + timeSeries.panelOptions.withGridPos(w=8) - + timeSeries.standardOptions.withUnit('short') - + timeSeries.queryOptions.withTargets([ - g.query.prometheus.new( - '${datasource}', - 'go_goroutines{%(kubeApiserverSelector)s,instance=~"$instance", %(clusterLabel)s="$cluster"}' % $._config - ) - + g.query.prometheus.withLegendFormat('{{instance}}'), - ]), - - }; - - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - // FIXME: upstream a fix for this - // withCurrent doesn't seem to work well with datasource variable - //var.datasource.generalOptions.withCurrent($._config.datasourceName) - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(kubeApiserverSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - instance: - var.query.new('instance') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'instance', - 'up{%(kubeApiserverSelector)s, %(clusterLabel)s="$cluster"}' % $._config, - ) - + var.query.refresh.onTime() - + var.query.selectionOptions.withIncludeAll() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - }; - - g.dashboard.new('%(dashboardNamePrefix)sAPI server' % $._config.grafanaK8s) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withVariables([ - variables.datasource, - variables.cluster, - variables.instance, - ]) - + g.dashboard.withPanels( - [panels.notice] - + g.util.grid.wrapPanels( // calculates the xy and sets the height - [ - panels.availability1d, - panels.errorBudget, - - panels.readAvailability, - panels.readRequests, - panels.readErrors, - panels.readDuration, - - panels.writeAvailability, - panels.writeRequests, - panels.writeErrors, - panels.writeDuration, - - panels.workQueueAddRate, - panels.workQueueDepth, - panels.workQueueLatency, - - panels.memory, - panels.cpu, - panels.goroutines, - ], - panelHeight=7, - startY=2, - ) - ), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/controller-manager.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/controller-manager.libsonnet deleted file mode 100644 index 0f8a33b9b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/controller-manager.libsonnet +++ /dev/null @@ -1,213 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; -local prometheus = g.query.prometheus; -local stat = g.panel.stat; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local statPanel(title, unit, query) = - stat.new(title) - + stat.options.withColorMode('none') - + stat.standardOptions.withUnit(unit) - + stat.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval) - + stat.queryOptions.withTargets([ - prometheus.new('${datasource}', query) - + prometheus.withInstant(true), - ]), - - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'controller-manager.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(kubeControllerManagerSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - instance: - var.query.new('instance') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'instance', - 'up{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('instance') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical') - + var.query.selectionOptions.withIncludeAll(), - }; - - local panels = [ - statPanel( - 'Up', - 'none', - 'sum(up{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s})' % $._config - ) - + stat.gridPos.withW(4), - - tsPanel.new('Work Queue Add Rate') - + tsPanel.gridPos.withW(20) - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(workqueue_adds_total{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (%(clusterLabel)s, instance, name)' % $._config - ) - + prometheus.withLegendFormat('{{%(clusterLabel)s}} {{instance}} {{name}}' % $._config), - ]), - - tsPanel.new('Work Queue Depth') - + tsPanel.standardOptions.withUnit('short') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(workqueue_depth{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (%(clusterLabel)s, instance, name)' % $._config - ) - + prometheus.withLegendFormat('{{%(clusterLabel)s}} {{instance}} {{name}}' % $._config), - ]), - - tsPanel.new('Work Queue Latency') - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'histogram_quantile(0.99, sum(rate(workqueue_queue_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (%(clusterLabel)s, instance, name, le))' % $._config - ) - + prometheus.withLegendFormat('{{%(clusterLabel)s}} {{instance}} {{name}}' % $._config), - ]), - - tsPanel.new('Kube API Request Rate') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(rest_client_requests_total{%(kubeControllerManagerSelector)s, instance=~"$instance",code=~"2.."}[%(grafanaIntervalVar)s]))' % $._config - ) - + prometheus.withLegendFormat('2xx'), - - prometheus.new( - '${datasource}', - 'sum(rate(rest_client_requests_total{%(kubeControllerManagerSelector)s, instance=~"$instance",code=~"3.."}[%(grafanaIntervalVar)s]))' % $._config - ) - + prometheus.withLegendFormat('3xx'), - - prometheus.new( - '${datasource}', - 'sum(rate(rest_client_requests_total{%(kubeControllerManagerSelector)s, instance=~"$instance",code=~"4.."}[%(grafanaIntervalVar)s]))' % $._config - ) - + prometheus.withLegendFormat('4xx'), - - prometheus.new( - '${datasource}', - 'sum(rate(rest_client_requests_total{%(kubeControllerManagerSelector)s, instance=~"$instance",code=~"5.."}[%(grafanaIntervalVar)s]))' % $._config - ) - + prometheus.withLegendFormat('5xx'), - ]), - - tsPanel.new('Post Request Latency 99th Quantile') - + tsPanel.gridPos.withW(16) - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s, instance=~"$instance", verb="POST"}[%(grafanaIntervalVar)s])) by (verb, url, le))' % $._config - ) - + prometheus.withLegendFormat('{{verb}} {{url}}'), - ]), - - tsPanel.new('Get Request Latency 99th Quantile') - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s, instance=~"$instance", verb="GET"}[%(grafanaIntervalVar)s])) by (verb, url, le))' % $._config - ) - + prometheus.withLegendFormat('{{verb}} {{url}}'), - ]), - - tsPanel.new('Memory') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'process_resident_memory_bytes{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s,instance=~"$instance"}' % $._config - ) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('CPU usage') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('short') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'rate(process_cpu_seconds_total{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])' % $._config - ) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('Goroutines') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('short') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'go_goroutines{%(clusterLabel)s="$cluster", %(kubeControllerManagerSelector)s,instance=~"$instance"}' % $._config - ) - + prometheus.withLegendFormat('{{instance}}'), - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sController Manager' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['controller-manager.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.instance]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=24, panelHeight=7)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/dashboards.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/dashboards.libsonnet deleted file mode 100644 index 51bf17e56..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/dashboards.libsonnet +++ /dev/null @@ -1,9 +0,0 @@ -(import 'network.libsonnet') + -(import 'persistentvolumesusage.libsonnet') + -(import 'resources.libsonnet') + -(import 'apiserver.libsonnet') + -(import 'controller-manager.libsonnet') + -(import 'scheduler.libsonnet') + -(import 'proxy.libsonnet') + -(import 'kubelet.libsonnet') + -(import 'defaults.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/defaults.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/defaults.libsonnet deleted file mode 100644 index d63aefef6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/defaults.libsonnet +++ /dev/null @@ -1,50 +0,0 @@ -{ - local kubernetesMixin = self, - local grafanaDashboards = super.grafanaDashboards, - - // Automatically add a uid to each dashboard based on the base64 encoding - // of the file name and set the timezone to be 'default'. - grafanaDashboards:: { - [filename]: grafanaDashboards[filename] { - uid: std.get(kubernetesMixin._config.grafanaDashboardIDs, filename, default=std.md5(filename)), - timezone: kubernetesMixin._config.grafanaK8s.grafanaTimezone, - refresh: kubernetesMixin._config.grafanaK8s.refresh, - tags: kubernetesMixin._config.grafanaK8s.dashboardTags, - links: [ - { - asDropdown: true, - includeVars: true, - keepTime: true, - tags: kubernetesMixin._config.grafanaK8s.dashboardTags, - targetBlank: false, - title: 'Kubernetes', - type: 'dashboards', - }, - ], - - [if 'rows' in super then 'rows']: [ - row { - panels: [ - panel { - // Modify tooltip to only show a single value - tooltip+: { - shared: false, - }, - // Modify legend to always show as table on right side - legend+: { - alignAsTable: true, - rightSide: true, - }, - // Set minimum time interval for all panels - interval: kubernetesMixin._config.grafanaK8s.minimumTimeInterval, - } - for panel in super.panels - ], - } - for row in super.rows - ], - - } - for filename in std.objectFields(grafanaDashboards) - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/kubelet.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/kubelet.libsonnet deleted file mode 100644 index 2d067e936..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/kubelet.libsonnet +++ /dev/null @@ -1,376 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; - -local prometheus = g.query.prometheus; -local stat = g.panel.stat; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local statPanel(title, unit, query) = - stat.new(title) - + stat.options.withColorMode('none') - + stat.standardOptions.withUnit(unit) - + stat.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval) - + stat.queryOptions.withTargets([ - prometheus.new('${datasource}', query) - + prometheus.withInstant(true), - ]), - - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'kubelet.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(kubeletSelector)s}' % $._config - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - instance: - var.query.new('instance') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'instance', - 'up{%(kubeletSelector)s,%(clusterLabel)s="$cluster"}' % $._config, - ) - + var.query.generalOptions.withLabel('instance') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.selectionOptions.withIncludeAll(true), - }; - - local panels = { - statRunningKubelets: - statPanel('Running Kubelets', 'none', 'sum(kubelet_node_name{%(clusterLabel)s="$cluster", %(kubeletSelector)s})' % $._config), - statRunningPods: - statPanel('Running Pods', 'none', 'sum(kubelet_running_pods{%(clusterLabel)s="$cluster", %(kubeletSelector)s, instance=~"$instance"})' % $._config), - statRunningContainers: - statPanel('Running Containers', 'none', 'sum(kubelet_running_containers{%(clusterLabel)s="$cluster", %(kubeletSelector)s, instance=~"$instance"})' % $._config), - statActualVolumeCount: - statPanel('Actual Volume Count', 'none', 'sum(volume_manager_total_volumes{%(clusterLabel)s="$cluster", %(kubeletSelector)s, instance=~"$instance", state="actual_state_of_world"})' % $._config), - statDesiredVolumeCount: - statPanel('Desired Volume Count', 'none', 'sum(volume_manager_total_volumes{%(clusterLabel)s="$cluster", %(kubeletSelector)s, instance=~"$instance",state="desired_state_of_world"})' % $._config), - statConfigErrorCount: - statPanel('Config Error Count', 'none', 'sum(rate(kubelet_node_config_error{%(clusterLabel)s="$cluster", %(kubeletSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s]))' % $._config), - - tsOperationRate: - tsPanel.new('Operation Rate') - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(kubelet_runtime_operations_total{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (operation_type, instance)' % $._config) - + prometheus.withLegendFormat('{{instance}} {{operation_type}}'), - ]), - tsOperationErrorRate: - tsPanel.new('Operation Error Rate') - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(kubelet_runtime_operations_errors_total{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, operation_type)' % $._config) - + prometheus.withLegendFormat('{{instance}} {{operation_type}}'), - ]), - tsOperationDuration: - tsPanel.new('Operation Duration 99th quantile') - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(kubelet_runtime_operations_duration_seconds_bucket{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, operation_type, le))' % $._config) - + prometheus.withLegendFormat('{{instance}} {{operation_type}}'), - ]), - tsPodStartRate: - tsPanel.new('Pod Start Rate') - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(kubelet_pod_start_duration_seconds_count{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance)' % $._config) - + prometheus.withLegendFormat('{{instance}} pod'), - - prometheus.new('${datasource}', 'sum(rate(kubelet_pod_worker_duration_seconds_count{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance)' % $._config) - + prometheus.withLegendFormat('{{instance}} worker'), - ]), - tsPodStartDuration: - tsPanel.new('Pod Start Duration') - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(kubelet_pod_start_duration_seconds_bucket{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, le))' % $._config) - + prometheus.withLegendFormat('{{instance}} pod'), - - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(kubelet_pod_worker_duration_seconds_bucket{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, le))' % $._config) - + prometheus.withLegendFormat('{{instance}} worker'), - ]), - tsStorageOperationRate: - tsPanel.new('Storage Operation Rate') - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(storage_operation_duration_seconds_count{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, operation_name, volume_plugin)' % $._config) - + prometheus.withLegendFormat('{{instance}} {{operation_name}} {{volume_plugin}}'), - ]), - tsStorageOperationErrorRate: - tsPanel.new('Storage Operation Error Rate') - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(storage_operation_errors_total{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, operation_name, volume_plugin)' % $._config) - + prometheus.withLegendFormat('{{instance}} {{operation_name}} {{volume_plugin}}'), - ]), - tsStorageOperationDuration: - tsPanel.new('Storage Operation Duration 99th quantile') - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(storage_operation_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeletSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, operation_name, volume_plugin, le))' % $._config) - + prometheus.withLegendFormat('{{instance}} {{operation_name}} {{volume_plugin}}'), - ]), - tsCgroupManagerOperationRate: - tsPanel.new('Cgroup manager operation rate') - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(kubelet_cgroup_manager_duration_seconds_count{%(clusterLabel)s="$cluster", %(kubeletSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, operation_type)' % $._config) - + prometheus.withLegendFormat('{{operation_type}}'), - ]), - tsCgroupManagerOperationDuration: - tsPanel.new('Cgroup manager 99th quantile') - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(kubelet_cgroup_manager_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeletSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, operation_type, le))' % $._config) - + prometheus.withLegendFormat('{{instance}} {{operation_type}}'), - ]), - tsPlegRelistRate: - tsPanel.new('PLEG relist rate') - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(kubelet_pleg_relist_duration_seconds_count{%(clusterLabel)s="$cluster", %(kubeletSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance)' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - tsPlegRelistInterval: - tsPanel.new('PLEG relist interval') - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(kubelet_pleg_relist_interval_seconds_bucket{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, le))' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - tsPlegRelistDuration: - tsPanel.new('PLEG relist duration') - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(kubelet_pleg_relist_duration_seconds_bucket{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, le))' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - tsRpcRate: - tsPanel.new('RPC rate') - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(rest_client_requests_total{%(clusterLabel)s="$cluster",%(kubeletSelector)s, instance=~"$instance",code=~"2.."}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('2xx'), - - prometheus.new('${datasource}', 'sum(rate(rest_client_requests_total{%(clusterLabel)s="$cluster",%(kubeletSelector)s, instance=~"$instance",code=~"3.."}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('3xx'), - - prometheus.new('${datasource}', 'sum(rate(rest_client_requests_total{%(clusterLabel)s="$cluster",%(kubeletSelector)s, instance=~"$instance",code=~"4.."}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('4xx'), - - prometheus.new('${datasource}', 'sum(rate(rest_client_requests_total{%(clusterLabel)s="$cluster",%(kubeletSelector)s, instance=~"$instance",code=~"5.."}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('5xx'), - ]), - tsRequestDuration: - tsPanel.new('Request duration 99th quantile') - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster",%(kubeletSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, verb, url, le))' % $._config) - + prometheus.withLegendFormat('{{instance}} {{verb}} {{url}}'), - ]), - tsMemory: - tsPanel.new('Memory') - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'process_resident_memory_bytes{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - tsCpu: - tsPanel.new('CPU usage') - + tsPanel.standardOptions.withUnit('short') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'rate(process_cpu_seconds_total{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - tsGoRoutines: - tsPanel.new('Goroutines') - + tsPanel.standardOptions.withUnit('short') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'go_goroutines{%(clusterLabel)s="$cluster",%(kubeletSelector)s,instance=~"$instance"}' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - }; - - local rows = [ - { - panelWidth: 4, - panelHeight: 7, - yIndex: 0, - panels: [ - panels.statRunningKubelets, - panels.statRunningPods, - panels.statRunningContainers, - panels.statActualVolumeCount, - panels.statDesiredVolumeCount, - panels.statConfigErrorCount, - ], - }, - - { - panelWidth: 12, - panelHeight: 7, - yIndex: 7, - panels: [ - panels.tsOperationRate, - panels.tsOperationErrorRate, - ], - }, - - { - panelWidth: 24, - panelHeight: 7, - yIndex: 14, - panels: [ - panels.tsOperationDuration, - ], - }, - - { - panelWidth: 12, - panelHeight: 7, - yIndex: 21, - panels: [ - panels.tsPodStartRate, - panels.tsPodStartDuration, - ], - }, - - { - panelWidth: 12, - panelHeight: 7, - yIndex: 28, - panels: [ - panels.tsStorageOperationRate, - panels.tsStorageOperationErrorRate, - ], - }, - - { - panelWidth: 24, - panelHeight: 7, - yIndex: 35, - panels: [ - panels.tsStorageOperationDuration, - ], - }, - - { - panelWidth: 12, - panelHeight: 7, - yIndex: 42, - panels: [ - panels.tsCgroupManagerOperationRate, - panels.tsCgroupManagerOperationDuration, - ], - }, - - { - panelWidth: 12, - panelHeight: 7, - yIndex: 49, - panels: [ - panels.tsPlegRelistRate, - panels.tsPlegRelistInterval, - ], - }, - - { - panelWidth: 24, - panelHeight: 7, - yIndex: 56, - panels: [ - panels.tsPlegRelistDuration, - ], - }, - - { - panelWidth: 24, - panelHeight: 7, - yIndex: 63, - panels: [ - panels.tsRpcRate, - ], - }, - - { - panelWidth: 24, - panelHeight: 7, - yIndex: 70, - panels: [ - panels.tsRequestDuration, - ], - }, - - { - panelWidth: 8, - panelHeight: 7, - yIndex: 77, - panels: [ - panels.tsMemory, - panels.tsCpu, - panels.tsGoRoutines, - ], - }, - ]; - - local rowfunc(row) = [] + g.util.grid.wrapPanels( - row.panels, - row.panelWidth, - row.panelHeight, - row.yIndex - ); - - g.dashboard.new('%(dashboardNamePrefix)sKubelet' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['kubelet.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.instance]) - + g.dashboard.withPanels( - std.flatMap(rowfunc, rows), - ), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/cluster-total.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/cluster-total.libsonnet deleted file mode 100644 index 78835685b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/cluster-total.libsonnet +++ /dev/null @@ -1,483 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; -local prometheus = g.query.prometheus; -local table = g.panel.table; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'cluster-total.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(cadvisorSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - }; - - local links = { - namespace: { - title: 'Drill down', - url: '%(prefix)s/d/%(uid)s/kubernetes-networking-namespace-pods?${datasource:queryparam}&var-cluster=${cluster}&var-namespace=${__data.fields.Namespace}' % { - uid: $._config.grafanaDashboardIDs['namespace-by-pod.json'], - prefix: $._config.grafanaK8s.linkPrefix, - }, - }, - }; - - local panels = [ - tsPanel.new('Current Rate of Bytes Received') - + tsPanel.standardOptions.withUnit('binBps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum by (namespace) ( - rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Current Rate of Bytes Transmitted') - + tsPanel.standardOptions.withUnit('binBps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum by (namespace) ( - rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('Current Status') - + table.gridPos.withW(24) - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', ||| - sum by (namespace) ( - rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', ||| - sum by (namespace) ( - rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', ||| - avg by (namespace) ( - rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', ||| - avg by (namespace) ( - rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', ||| - sum by (namespace) ( - rate(container_network_receive_packets_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', ||| - sum by (namespace) ( - rate(container_network_transmit_packets_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', ||| - sum by (namespace) ( - rate(container_network_receive_packets_dropped_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', ||| - sum by (namespace) ( - rate(container_network_transmit_packets_dropped_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'namespace', - mode: 'outer', - }), - - g.panel.table.queryOptions.transformation.withId('organize') - + g.panel.table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - 'Time 7': true, - 'Time 8': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - 'Time 7': 6, - 'Time 8': 7, - namespace: 8, - 'Value #A': 9, - 'Value #B': 10, - 'Value #C': 11, - 'Value #D': 12, - 'Value #E': 13, - 'Value #F': 14, - 'Value #G': 15, - 'Value #H': 16, - }, - renameByName: { - namespace: 'Namespace', - 'Value #A': 'Rx Bytes', - 'Value #B': 'Tx Bytes', - 'Value #C': 'Rx Bytes (Avg)', - 'Value #D': 'Tx Bytes (Avg)', - 'Value #E': 'Rx Packets', - 'Value #F': 'Tx Packets', - 'Value #G': 'Rx Packets Dropped', - 'Value #H': 'Tx Packets Dropped', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/Bytes/', - }, - properties: [ - { - id: 'unit', - value: 'binBps', - }, - ], - }, - { - matcher: { - id: 'byRegexp', - options: '/Packets/', - }, - properties: [ - { - id: 'unit', - value: 'pps', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Namespace', - }, - properties: [ - { - id: 'links', - value: [links.namespace], - }, - ], - }, - ]), - - tsPanel.new('Average Rate of Bytes Received') - + tsPanel.standardOptions.withUnit('binBps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - avg by (namespace) ( - rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Average Rate of Bytes Transmitted') - + tsPanel.standardOptions.withUnit('binBps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - avg by (namespace) ( - rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Receive Bandwidth') - + tsPanel.standardOptions.withUnit('binBps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum by (namespace) ( - rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Transmit Bandwidth') - + tsPanel.standardOptions.withUnit('binBps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum by (namespace) ( - rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', ||| - sum by (namespace) ( - rate(container_network_receive_packets_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', ||| - sum by (namespace) ( - rate(container_network_transmit_packets_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', ||| - sum by (namespace) ( - rate(container_network_receive_packets_dropped_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', ||| - sum by (namespace) ( - rate(container_network_transmit_packets_dropped_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of TCP Retransmits out of all sent segments') - + tsPanel.standardOptions.withUnit('percentunit') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum by (instance) ( - rate(node_netstat_Tcp_RetransSegs{%(clusterLabel)s="$cluster"}[%(grafanaIntervalVar)s]) / rate(node_netstat_Tcp_OutSegs{%(clusterLabel)s="$cluster"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of TCP SYN Retransmits out of all retransmits') - + tsPanel.standardOptions.withUnit('percentunit') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum by (instance) ( - rate(node_netstat_TcpExt_TCPSynRetrans{%(clusterLabel)s="$cluster"}[%(grafanaIntervalVar)s]) / rate(node_netstat_Tcp_RetransSegs{%(clusterLabel)s="$cluster"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sNetworking / Cluster' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['cluster-total.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=12, panelHeight=9)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/namespace-by-pod.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/namespace-by-pod.libsonnet deleted file mode 100644 index 662d46251..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/namespace-by-pod.libsonnet +++ /dev/null @@ -1,454 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; -local gauge = g.panel.gauge; -local prometheus = g.query.prometheus; -local table = g.panel.table; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'namespace-by-pod.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(cadvisorSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - namespace: - var.query.new('namespace') - + var.query.selectionOptions.withIncludeAll(true, '.+') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'namespace', - 'container_network_receive_packets_total{%(clusterLabel)s="$cluster"}' % $._config, - ) - + var.query.generalOptions.withCurrent('kube-system') - + var.query.generalOptions.withLabel('namespace') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - - }; - - local links = { - pod: { - title: 'Drill down', - url: '%(prefix)s/d/%(uid)s/kubernetes-networking-pod?${datasource:queryparam}&var-cluster=${cluster}&var-namespace=${namespace}&var-pod=${__data.fields.Pod}' % { - uid: $._config.grafanaDashboardIDs['pod-total.json'], - prefix: $._config.grafanaK8s.linkPrefix, - }, - }, - }; - - local panels = [ - gauge.new('Current Rate of Bytes Received') - + gauge.standardOptions.withDisplayName('$namespace') - + gauge.standardOptions.withUnit('Bps') - + gauge.standardOptions.withMin(0) - + gauge.standardOptions.withMax(10000000000) // 10GBs - + gauge.standardOptions.thresholds.withSteps([ - { - color: 'dark-green', - index: 0, - value: null, // 0GBs - }, - { - color: 'dark-yellow', - index: 1, - value: 5000000000, // 5GBs - }, - { - color: 'dark-red', - index: 2, - value: 7000000000, // 7GBs - }, - ]) - + gauge.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum ( - rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - gauge.new('Current Rate of Bytes Transmitted') - + gauge.standardOptions.withDisplayName('$namespace') - + gauge.standardOptions.withUnit('Bps') - + gauge.standardOptions.withMin(0) - + gauge.standardOptions.withMax(10000000000) // 10GBs - + gauge.standardOptions.thresholds.withSteps([ - { - color: 'dark-green', - index: 0, - value: null, // 0GBs - }, - { - color: 'dark-yellow', - index: 1, - value: 5000000000, // 5GBs - }, - { - color: 'dark-red', - index: 2, - value: 7000000000, // 7GBs - }, - ]) - + gauge.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum ( - rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('Current Network Usage') - + table.gridPos.withW(24) - + table.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum by (pod) ( - rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new( - '${datasource}', ||| - sum by (pod) ( - rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new( - '${datasource}', ||| - sum by (pod) ( - rate(container_network_receive_packets_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new( - '${datasource}', ||| - sum by (pod) ( - rate(container_network_transmit_packets_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new( - '${datasource}', ||| - sum by (pod) ( - rate(container_network_receive_packets_dropped_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new( - '${datasource}', ||| - sum by (pod) ( - rate(container_network_transmit_packets_dropped_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'pod', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - pod: 6, - 'Value #A': 7, - 'Value #B': 8, - 'Value #C': 9, - 'Value #D': 10, - 'Value #E': 11, - 'Value #F': 12, - }, - renameByName: { - pod: 'Pod', - 'Value #A': 'Current Receive Bandwidth', - 'Value #B': 'Current Transmit Bandwidth', - 'Value #C': 'Rate of Received Packets', - 'Value #D': 'Rate of Transmitted Packets', - 'Value #E': 'Rate of Received Packets Dropped', - 'Value #F': 'Rate of Transmitted Packets Dropped', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/Bandwidth/', - }, - properties: [ - { - id: 'unit', - value: 'Bps', - }, - ], - }, - { - matcher: { - id: 'byRegexp', - options: '/Packets/', - }, - properties: [ - { - id: 'unit', - value: 'pps', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Pod', - }, - properties: [ - { - id: 'links', - value: [links.pod], - }, - ], - }, - ]), - - tsPanel.new('Receive Bandwidth') - + tsPanel.standardOptions.withUnit('binBps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum by (pod) ( - rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Transmit Bandwidth') - + tsPanel.standardOptions.withUnit('binBps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum by (pod) ( - rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum by (pod) ( - rate(container_network_receive_packets_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum by (pod) ( - rate(container_network_transmit_packets_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum by (pod) ( - rate(container_network_receive_packets_dropped_total{%(clusterLabel)s="$cluster",namespace!=""}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', ||| - sum by (pod) ( - rate(container_network_transmit_packets_dropped_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - ) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sNetworking / Namespace (Pods)' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['namespace-by-pod.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.namespace]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=12, panelHeight=9)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/namespace-by-workload.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/namespace-by-workload.libsonnet deleted file mode 100644 index 2d12a845f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/namespace-by-workload.libsonnet +++ /dev/null @@ -1,492 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; -local barGauge = g.panel.barGauge; -local prometheus = g.query.prometheus; -local table = g.panel.table; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'namespace-by-workload.json': - - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(cadvisorSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - namespace: - var.query.new('namespace') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'namespace', - 'container_network_receive_packets_total{%(clusterLabel)s="$cluster"}' % $._config, - ) - + var.query.generalOptions.withCurrent('kube-system') - + var.query.generalOptions.withLabel('namespace') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - - workload_type: - var.query.new('type') - + var.query.selectionOptions.withIncludeAll() - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'workload_type', - 'namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", namespace="$namespace", workload=~".+"}' % $._config, - ) - + var.query.generalOptions.withLabel('workload_type') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - }; - - local links = { - workload: { - title: 'Drill down', - url: '%(prefix)s/d/%(uid)s/kubernetes-networking-workload?${datasource:queryparam}&var-cluster=${cluster}&var-namespace=${namespace}&var-type=${__data.fields.Type}&var-workload=${__data.fields.Workload}' % { - uid: $._config.grafanaDashboardIDs['workload-total.json'], - prefix: $._config.grafanaK8s.linkPrefix, - }, - }, - }; - - local colQueries = [ - ||| - sort_desc(sum(rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) kube_pod_info{%(clusterLabel)s="$cluster",namespace="$namespace",host_network="false"} - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload, workload_type)) - ||| % $._config, - ||| - sort_desc(sum(rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) kube_pod_info{%(clusterLabel)s="$cluster",namespace="$namespace",host_network="false"} - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload, workload_type)) - ||| % $._config, - ||| - sort_desc(avg(rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) kube_pod_info{%(clusterLabel)s="$cluster",namespace="$namespace",host_network="false"} - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload, workload_type)) - ||| % $._config, - ||| - sort_desc(avg(rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) kube_pod_info{%(clusterLabel)s="$cluster",namespace="$namespace",host_network="false"} - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload, workload_type)) - ||| % $._config, - ||| - sort_desc(sum(rate(container_network_receive_packets_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) kube_pod_info{%(clusterLabel)s="$cluster",namespace="$namespace",host_network="false"} - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload, workload_type)) - ||| % $._config, - ||| - sort_desc(sum(rate(container_network_transmit_packets_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) kube_pod_info{%(clusterLabel)s="$cluster",namespace="$namespace",host_network="false"} - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload, workload_type)) - ||| % $._config, - ||| - sort_desc(sum(rate(container_network_receive_packets_dropped_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) kube_pod_info{%(clusterLabel)s="$cluster",namespace="$namespace",host_network="false"} - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload, workload_type)) - ||| % $._config, - ||| - sort_desc(sum(rate(container_network_transmit_packets_dropped_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) kube_pod_info{%(clusterLabel)s="$cluster",namespace="$namespace",host_network="false"} - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload, workload_type)) - ||| % $._config, - ]; - - local panels = [ - barGauge.new('Current Rate of Bytes Received') - + barGauge.options.withDisplayMode('basic') - + barGauge.options.withShowUnfilled(false) - + barGauge.standardOptions.withUnit('Bps') - + barGauge.standardOptions.color.withMode('fixed') - + barGauge.standardOptions.color.withFixedColor('green') - + barGauge.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - * on (%(clusterLabel)s,namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - barGauge.new('Current Rate of Bytes Transmitted') - + barGauge.options.withDisplayMode('basic') - + barGauge.options.withShowUnfilled(false) - + barGauge.standardOptions.withUnit('Bps') - + barGauge.standardOptions.color.withMode('fixed') - + barGauge.standardOptions.color.withFixedColor('green') - + barGauge.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - * on (%(clusterLabel)s,namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('Current Status') - + table.gridPos.withW(24) - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', colQueries[0]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', colQueries[1]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', colQueries[2]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', colQueries[3]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', colQueries[4]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', colQueries[5]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', colQueries[6]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', colQueries[7]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'workload', - mode: 'outer', - }), - - g.panel.table.queryOptions.transformation.withId('organize') - + g.panel.table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - 'Time 7': true, - 'Time 8': true, - 'workload_type 2': true, - 'workload_type 3': true, - 'workload_type 4': true, - 'workload_type 5': true, - 'workload_type 6': true, - 'workload_type 7': true, - 'workload_type 8': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - 'Time 7': 6, - 'Time 8': 7, - workload: 8, - 'workload_type 1': 9, - 'Value #A': 10, - 'Value #B': 11, - 'Value #C': 12, - 'Value #D': 13, - 'Value #E': 14, - 'Value #F': 15, - 'Value #G': 16, - 'Value #H': 17, - 'workload_type 2': 18, - 'workload_type 3': 19, - 'workload_type 4': 20, - 'workload_type 5': 21, - 'workload_type 6': 22, - 'workload_type 7': 23, - 'workload_type 8': 24, - }, - renameByName: { - workload: 'Workload', - 'workload_type 1': 'Type', - 'Value #A': 'Rx Bytes', - 'Value #B': 'Tx Bytes', - 'Value #C': 'Rx Bytes (Avg)', - 'Value #D': 'Tx Bytes (Avg)', - 'Value #E': 'Rx Packets', - 'Value #F': 'Tx Packets', - 'Value #G': 'Rx Packets Dropped', - 'Value #H': 'Tx Packets Dropped', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/Bytes/', - }, - properties: [ - { - id: 'unit', - value: 'binBps', - }, - ], - }, - { - matcher: { - id: 'byRegexp', - options: '/Packets/', - }, - properties: [ - { - id: 'unit', - value: 'pps', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Workload', - }, - properties: [ - { - id: 'links', - value: [links.workload], - }, - ], - }, - ]), - - tsPanel.new('Receive Bandwidth') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - * on (%(clusterLabel)s,namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Transmit Bandwidth') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - * on (%(clusterLabel)s,namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Average Container Bandwidth by Workload: Received') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(avg(rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - * on (%(clusterLabel)s,namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Average Container Bandwidth by Workload: Transmitted') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(avg(rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - * on (%(clusterLabel)s,namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_receive_packets_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - * on (%(clusterLabel)s,namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_transmit_packets_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - * on (%(clusterLabel)s,namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_receive_packets_dropped_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - * on (%(clusterLabel)s,namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_transmit_packets_dropped_total{%(clusterLabel)s="$cluster",namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (%(clusterLabel)s,namespace,pod) group_left () - topk by (%(clusterLabel)s,namespace,pod) ( - 1, - max by (%(clusterLabel)s,namespace,pod) (kube_pod_info{host_network="false"}) - ) - * on (%(clusterLabel)s,namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sNetworking / Namespace (Workload)' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['namespace-by-workload.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.namespace, variables.workload_type]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=12, panelHeight=9)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/pod-total.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/pod-total.libsonnet deleted file mode 100644 index 797d3d335..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/pod-total.libsonnet +++ /dev/null @@ -1,201 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; -local gauge = g.panel.gauge; -local prometheus = g.query.prometheus; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'pod-total.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(cadvisorSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - namespace: - var.query.new('namespace') - + var.query.selectionOptions.withIncludeAll(true, '.+') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'namespace', - 'container_network_receive_packets_total{%(clusterLabel)s="$cluster"}' % $._config, - ) - + var.query.generalOptions.withCurrent('kube-system') - + var.query.generalOptions.withLabel('namespace') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - - pod: - var.query.new('pod') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'pod', - 'container_network_receive_packets_total{%(clusterLabel)s="$cluster",namespace=~"$namespace"}' % $._config, - ) - + var.query.generalOptions.withCurrent('kube-system') - + var.query.generalOptions.withLabel('pod') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - }; - - local panels = [ - gauge.new('Current Rate of Bytes Received') - + gauge.standardOptions.withDisplayName('$pod') - + gauge.standardOptions.withUnit('Bps') - + gauge.standardOptions.withMin(0) - + gauge.standardOptions.withMax(10000000000) // 10GBs - + gauge.standardOptions.thresholds.withSteps([ - { - color: 'dark-green', - index: 0, - value: null, // 0GBs - }, - { - color: 'dark-yellow', - index: 1, - value: 5000000000, // 5GBs - }, - { - color: 'dark-red', - index: 2, - value: 7000000000, // 7GBs - }, - ]) - + gauge.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace=~"$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s]))' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - gauge.new('Current Rate of Bytes Transmitted') - + gauge.standardOptions.withDisplayName('$pod') - + gauge.standardOptions.withUnit('Bps') - + gauge.standardOptions.withMin(0) - + gauge.standardOptions.withMax(10000000000) // 10GBs - + gauge.standardOptions.thresholds.withSteps([ - { - color: 'dark-green', - index: 0, - value: null, // 0GBs - }, - { - color: 'dark-yellow', - index: 1, - value: 5000000000, // 5GBs - }, - { - color: 'dark-red', - index: 2, - value: 7000000000, // 7GBs - }, - ]) - + gauge.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace=~"$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s]))' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Receive Bandwidth') - + tsPanel.standardOptions.withUnit('binBps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster",namespace=~"$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Transmit Bandwidth') - + tsPanel.standardOptions.withUnit('binBps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster",namespace=~"$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(container_network_receive_packets_total{%(clusterLabel)s="$cluster",namespace=~"$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])) by (pod)' % $._config) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(container_network_transmit_packets_total{%(clusterLabel)s="$cluster",namespace=~"$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])) by (pod)' % $._config) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(container_network_receive_packets_dropped_total{%(clusterLabel)s="$cluster",namespace=~"$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])) by (pod)' % $._config) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(container_network_transmit_packets_dropped_total{%(clusterLabel)s="$cluster",namespace=~"$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])) by (pod)' % $._config) - + prometheus.withLegendFormat('__auto'), - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sNetworking / Pod' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['pod-total.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.namespace, variables.pod]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=12, panelHeight=9)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/workload-total.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/workload-total.libsonnet deleted file mode 100644 index 5402ed9bc..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network-usage/workload-total.libsonnet +++ /dev/null @@ -1,264 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; -local barGauge = g.panel.barGauge; -local prometheus = g.query.prometheus; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'workload-total.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'kube_pod_info{%(kubeStateMetricsSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - namespace: - var.query.new('namespace') - + var.query.selectionOptions.withIncludeAll(true, '.+') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'namespace', - 'container_network_receive_packets_total{%(clusterLabel)s="$cluster"}' % $._config, - ) - + var.query.generalOptions.withCurrent('kube-system') - + var.query.generalOptions.withLabel('namespace') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - - workload: - var.query.new('workload') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'workload', - 'namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", namespace=~"$namespace", workload=~".+"}' % $._config, - ) - + var.query.generalOptions.withLabel('workload') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - - workload_type: - var.query.new('type') - + var.query.selectionOptions.withIncludeAll(true, '.+') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'workload_type', - 'namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", namespace=~"$namespace", workload=~"$workload"}' % $._config, - ) - + var.query.generalOptions.withLabel('workload_type') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - }; - - local panels = [ - barGauge.new('Current Rate of Bytes Received') - + barGauge.options.withDisplayMode('basic') - + barGauge.options.withShowUnfilled(false) - + barGauge.standardOptions.withUnit('Bps') - + barGauge.standardOptions.color.withMode('fixed') - + barGauge.standardOptions.color.withFixedColor('green') - + barGauge.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace=~"$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - barGauge.new('Current Rate of Bytes Transmitted') - + barGauge.options.withDisplayMode('basic') - + barGauge.options.withShowUnfilled(false) - + barGauge.standardOptions.withUnit('Bps') - + barGauge.standardOptions.color.withMode('fixed') - + barGauge.standardOptions.color.withFixedColor('green') - + barGauge.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace=~"$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - barGauge.new('Average Rate of Bytes Received') - + barGauge.options.withDisplayMode('basic') - + barGauge.options.withShowUnfilled(false) - + barGauge.standardOptions.withUnit('Bps') - + barGauge.standardOptions.color.withMode('fixed') - + barGauge.standardOptions.color.withFixedColor('green') - + barGauge.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(avg(rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace=~"$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - barGauge.new('Average Rate of Bytes Transmitted') - + barGauge.options.withDisplayMode('basic') - + barGauge.options.withShowUnfilled(false) - + barGauge.standardOptions.withUnit('Bps') - + barGauge.standardOptions.color.withMode('fixed') - + barGauge.standardOptions.color.withFixedColor('green') - + barGauge.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(avg(rate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace=~"$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Receive Bandwidth') - + tsPanel.standardOptions.withUnit('binBps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace=~"$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Transmit Bandwidth') - + tsPanel.standardOptions.withUnit('binBps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace=~"$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_receive_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace=~"$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_transmit_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace=~"$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_receive_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace=~"$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - sort_desc(sum(rate(container_network_transmit_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster",namespace=~"$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster",namespace=~"$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sNetworking / Workload' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['workload-total.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.namespace, variables.workload, variables.workload_type]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=12, panelHeight=9)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network.libsonnet deleted file mode 100644 index 5d992e442..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/network.libsonnet +++ /dev/null @@ -1,5 +0,0 @@ -(import 'network-usage/cluster-total.libsonnet') + -(import 'network-usage/namespace-by-workload.libsonnet') + -(import 'network-usage/namespace-by-pod.libsonnet') + -(import 'network-usage/pod-total.libsonnet') + -(import 'network-usage/workload-total.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/persistentvolumesusage.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/persistentvolumesusage.libsonnet deleted file mode 100644 index 5dad9bd68..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/persistentvolumesusage.libsonnet +++ /dev/null @@ -1,203 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; -local prometheus = g.query.prometheus; -local gauge = g.panel.gauge; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local gaugePanel(title, unit, query) = - gauge.new(title) - + gauge.standardOptions.withUnit(unit) - + gauge.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval) - + gauge.queryOptions.withTargets([ - prometheus.new('${datasource}', query) - + prometheus.withInstant(true), - ]), - - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'persistentvolumesusage.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'kubelet_volume_stats_capacity_bytes{%(kubeletSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - namespace: - var.query.new('namespace') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'namespace', - 'kubelet_volume_stats_capacity_bytes{%(clusterLabel)s="$cluster", %(kubeletSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('Namespace') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - - volume: - var.query.new('volume') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'persistentvolumeclaim', - 'kubelet_volume_stats_capacity_bytes{%(clusterLabel)s="$cluster", %(kubeletSelector)s, namespace="$namespace"}' % $._config, - ) - + var.query.generalOptions.withLabel('PersistentVolumeClaim') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - }; - - local panels = { - tsUsage: - tsPanel.new('Volume Space Usage') - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', ||| - ( - sum without(instance, node) (topk(1, (kubelet_volume_stats_capacity_bytes{%(clusterLabel)s="$cluster", %(kubeletSelector)s, namespace="$namespace", persistentvolumeclaim="$volume"}))) - - - sum without(instance, node) (topk(1, (kubelet_volume_stats_available_bytes{%(clusterLabel)s="$cluster", %(kubeletSelector)s, namespace="$namespace", persistentvolumeclaim="$volume"}))) - ) - ||| % $._config) - + prometheus.withLegendFormat('Used Space'), - - prometheus.new('${datasource}', ||| - sum without(instance, node) (topk(1, (kubelet_volume_stats_available_bytes{%(clusterLabel)s="$cluster", %(kubeletSelector)s, namespace="$namespace", persistentvolumeclaim="$volume"}))) - ||| % $._config) - + prometheus.withLegendFormat('Free Space'), - ]), - gaugeUsage: - gaugePanel( - 'Volume Space Usage', - 'percent', - ||| - max without(instance,node) ( - ( - topk(1, kubelet_volume_stats_capacity_bytes{%(clusterLabel)s="$cluster", %(kubeletSelector)s, namespace="$namespace", persistentvolumeclaim="$volume"}) - - - topk(1, kubelet_volume_stats_available_bytes{%(clusterLabel)s="$cluster", %(kubeletSelector)s, namespace="$namespace", persistentvolumeclaim="$volume"}) - ) - / - topk(1, kubelet_volume_stats_capacity_bytes{%(clusterLabel)s="$cluster", %(kubeletSelector)s, namespace="$namespace", persistentvolumeclaim="$volume"}) - * 100) - ||| % $._config - ) - + gauge.standardOptions.withMin(0) - + gauge.standardOptions.withMax(100) - + gauge.standardOptions.color.withMode('thresholds') - + gauge.standardOptions.thresholds.withMode('absolute') - + gauge.standardOptions.thresholds.withSteps( - [ - gauge.thresholdStep.withColor('green') - + gauge.thresholdStep.withValue(0), - - gauge.thresholdStep.withColor('orange') - + gauge.thresholdStep.withValue(80), - - gauge.thresholdStep.withColor('red') - + gauge.thresholdStep.withValue(90), - ] - ), - - tsInodes: - tsPanel.new('Volume inodes Usage') - + tsPanel.standardOptions.withUnit('none') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum without(instance, node) (topk(1, (kubelet_volume_stats_inodes_used{%(clusterLabel)s="$cluster", %(kubeletSelector)s, namespace="$namespace", persistentvolumeclaim="$volume"})))' % $._config) - + prometheus.withLegendFormat('Used inodes'), - - prometheus.new('${datasource}', ||| - ( - sum without(instance, node) (topk(1, (kubelet_volume_stats_inodes{%(clusterLabel)s="$cluster", %(kubeletSelector)s, namespace="$namespace", persistentvolumeclaim="$volume"}))) - - - sum without(instance, node) (topk(1, (kubelet_volume_stats_inodes_used{%(clusterLabel)s="$cluster", %(kubeletSelector)s, namespace="$namespace", persistentvolumeclaim="$volume"}))) - ) - ||| % $._config) - + prometheus.withLegendFormat('Free inodes'), - ]), - gaugeInodes: - gaugePanel( - 'Volume inodes Usage', - 'percent', - ||| - max without(instance,node) ( - topk(1, kubelet_volume_stats_inodes_used{%(clusterLabel)s="$cluster", %(kubeletSelector)s, namespace="$namespace", persistentvolumeclaim="$volume"}) - / - topk(1, kubelet_volume_stats_inodes{%(clusterLabel)s="$cluster", %(kubeletSelector)s, namespace="$namespace", persistentvolumeclaim="$volume"}) - * 100) - ||| % $._config - ) - + gauge.standardOptions.withMin(0) - + gauge.standardOptions.withMax(100) - + gauge.standardOptions.color.withMode('thresholds') - + gauge.standardOptions.thresholds.withMode('absolute') - + gauge.standardOptions.thresholds.withSteps( - [ - gauge.thresholdStep.withColor('green') - + gauge.thresholdStep.withValue(0), - - gauge.thresholdStep.withColor('orange') - + gauge.thresholdStep.withValue(80), - - gauge.thresholdStep.withColor('red') - + gauge.thresholdStep.withValue(90), - ] - ), - }; - - g.dashboard.new('%(dashboardNamePrefix)sPersistent Volumes' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['persistentvolumesusage.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.namespace, variables.volume]) - + g.dashboard.withPanels([ - panels.tsUsage { gridPos+: { w: 18, h: 7, y: 0 } }, - panels.gaugeUsage { gridPos+: { w: 6, h: 7, x: 18, y: 0 } }, - panels.tsInodes { gridPos+: { w: 18, h: 7, y: 7 } }, - panels.gaugeInodes { gridPos+: { w: 6, h: 7, x: 18, y: 7 } }, - ]), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/proxy.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/proxy.libsonnet deleted file mode 100644 index df074e8e2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/proxy.libsonnet +++ /dev/null @@ -1,183 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; - -local prometheus = g.query.prometheus; -local stat = g.panel.stat; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local statPanel(title, unit, query) = - stat.new(title) - + stat.options.withColorMode('none') - + stat.standardOptions.withUnit(unit) - + stat.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval) - + stat.queryOptions.withTargets([ - prometheus.new('${datasource}', query) - + prometheus.withInstant(true), - ]), - - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'proxy.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(kubeProxySelector)s}' % $._config - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - instance: - var.query.new('instance') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'instance', - 'up{%(kubeProxySelector)s, %(clusterLabel)s="$cluster", %(kubeProxySelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('instance') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.selectionOptions.withIncludeAll(true, '.+'), - }; - - local panels = [ - statPanel('Up', 'none', 'sum(up{%(clusterLabel)s="$cluster", %(kubeProxySelector)s})' % $._config) - + stat.gridPos.withW(4), - - tsPanel.new('Rules Sync Rate') - + tsPanel.gridPos.withW(10) - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(kubeproxy_sync_proxy_rules_duration_seconds_count{%(clusterLabel)s="$cluster", %(kubeProxySelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('rate'), - ]), - - tsPanel.new('Rules Sync Latency 99th Quantile') - + tsPanel.gridPos.withW(10) - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99,rate(kubeproxy_sync_proxy_rules_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeProxySelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('Network Programming Rate') - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(kubeproxy_network_programming_duration_seconds_count{%(clusterLabel)s="$cluster", %(kubeProxySelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('rate'), - ]), - - tsPanel.new('Network Programming Latency 99th Quantile') - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(kubeproxy_network_programming_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeProxySelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (instance, le))' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('Kube API Request Rate') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(rest_client_requests_total{%(clusterLabel)s="$cluster",%(kubeProxySelector)s, instance=~"$instance",code=~"2.."}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('2xx'), - - prometheus.new('${datasource}', 'sum(rate(rest_client_requests_total{%(clusterLabel)s="$cluster",%(kubeProxySelector)s, instance=~"$instance",code=~"3.."}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('3xx'), - - prometheus.new('${datasource}', 'sum(rate(rest_client_requests_total{%(clusterLabel)s="$cluster",%(kubeProxySelector)s, instance=~"$instance",code=~"4.."}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('4xx'), - - prometheus.new('${datasource}', 'sum(rate(rest_client_requests_total{%(clusterLabel)s="$cluster",%(kubeProxySelector)s, instance=~"$instance",code=~"5.."}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('5xx'), - ]), - - tsPanel.new('Post Request Latency 99th Quantile') - + tsPanel.gridPos.withW(16) - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeProxySelector)s,instance=~"$instance",verb="POST"}[%(grafanaIntervalVar)s])) by (verb, url, le))' % $._config) - + prometheus.withLegendFormat('{{verb}} {{url}}'), - ]), - - tsPanel.new('Get Request Latency 99th Quantile') - + tsPanel.gridPos.withW(24) - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeProxySelector)s, instance=~"$instance", verb="GET"}[%(grafanaIntervalVar)s])) by (verb, url, le))' % $._config) - + prometheus.withLegendFormat('{{verb}} {{url}}'), - ]), - - - tsPanel.new('Memory') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'process_resident_memory_bytes{%(clusterLabel)s="$cluster", %(kubeProxySelector)s,instance=~"$instance"}' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('CPU usage') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('short') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'rate(process_cpu_seconds_total{%(clusterLabel)s="$cluster", %(kubeProxySelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('Goroutines') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('short') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'go_goroutines{%(clusterLabel)s="$cluster", %(kubeProxySelector)s,instance=~"$instance"}' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sProxy' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['proxy.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.instance]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=12, panelHeight=7)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources.libsonnet deleted file mode 100644 index 484d2f142..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources.libsonnet +++ /dev/null @@ -1,7 +0,0 @@ -(import 'resources/cluster.libsonnet') + -(import 'resources/multi-cluster.libsonnet') + -(import 'resources/namespace.libsonnet') + -(import 'resources/node.libsonnet') + -(import 'resources/pod.libsonnet') + -(import 'resources/workload-namespace.libsonnet') + -(import 'resources/workload.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/cluster.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/cluster.libsonnet deleted file mode 100644 index 9f83c905e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/cluster.libsonnet +++ /dev/null @@ -1,730 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; - -local prometheus = g.query.prometheus; -local stat = g.panel.stat; -local table = g.panel.table; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local statPanel(title, unit, query) = - stat.new(title) - + stat.options.withColorMode('none') - + stat.standardOptions.withUnit(unit) - + stat.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval) - + stat.queryOptions.withTargets([ - prometheus.new('${datasource}', query) - + prometheus.withInstant(true), - ]), - - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'k8s-resources-cluster.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(cadvisorSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - }; - - local links = { - namespace: { - title: 'Drill down to pods', - url: '%(prefix)s/d/%(uid)s/k8s-resources-namespace?${datasource:queryparam}&var-cluster=$cluster&var-namespace=${__data.fields.Namespace}' % { - uid: $._config.grafanaDashboardIDs['k8s-resources-namespace.json'], - prefix: $._config.grafanaK8s.linkPrefix, - }, - }, - }; - - local panels = [ - statPanel( - 'CPU Utilisation', - 'percentunit', - 'cluster:node_cpu:ratio_rate5m{%(clusterLabel)s="$cluster"}' % $._config - ) - + stat.gridPos.withW(4) - + stat.gridPos.withH(3), - - statPanel( - 'CPU Requests Commitment', - 'percentunit', - 'sum(namespace_cpu:kube_pod_container_resource_requests:sum{%(clusterLabel)s="$cluster"}) / sum(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="cpu",%(clusterLabel)s="$cluster"})' % $._config - ) - + stat.gridPos.withW(4) - + stat.gridPos.withH(3), - - statPanel( - 'CPU Limits Commitment', - 'percentunit', - 'sum(namespace_cpu:kube_pod_container_resource_limits:sum{%(clusterLabel)s="$cluster"}) / sum(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="cpu",%(clusterLabel)s="$cluster"})' % $._config - ) - + stat.gridPos.withW(4) - + stat.gridPos.withH(3), - - statPanel( - 'Memory Utilisation', - 'percentunit', - '1 - sum(:node_memory_MemAvailable_bytes:sum{%(clusterLabel)s="$cluster"}) / sum(node_memory_MemTotal_bytes{%(nodeExporterSelector)s,%(clusterLabel)s="$cluster"})' % $._config - ) - + stat.gridPos.withW(4) - + stat.gridPos.withH(3), - - statPanel( - 'Memory Requests Commitment', - 'percentunit', - 'sum(namespace_memory:kube_pod_container_resource_requests:sum{%(clusterLabel)s="$cluster"}) / sum(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="memory",%(clusterLabel)s="$cluster"})' % $._config - ) - + stat.gridPos.withW(4) - + stat.gridPos.withH(3), - - statPanel( - 'Memory Limits Commitment', - 'percentunit', - 'sum(namespace_memory:kube_pod_container_resource_limits:sum{%(clusterLabel)s="$cluster"}) / sum(kube_node_status_allocatable{%(kubeStateMetricsSelector)s,resource="memory",%(clusterLabel)s="$cluster"})' % $._config - ) - + stat.gridPos.withW(4) - + stat.gridPos.withH(3), - - tsPanel.new('CPU Usage') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('CPU Quota') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(kube_pod_owner{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'count(avg(namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster"}) by (workload, namespace)) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(namespace_cpu:kube_pod_container_resource_requests:sum{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster"}) by (namespace) / sum(namespace_cpu:kube_pod_container_resource_requests:sum{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(namespace_cpu:kube_pod_container_resource_limits:sum{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster"}) by (namespace) / sum(namespace_cpu:kube_pod_container_resource_limits:sum{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'namespace', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - 'Time 7': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - 'Time 7': 6, - namespace: 7, - 'Value #A': 8, - 'Value #B': 9, - 'Value #C': 10, - 'Value #D': 11, - 'Value #E': 12, - 'Value #F': 13, - 'Value #G': 14, - }, - renameByName: { - namespace: 'Namespace', - 'Value #A': 'Pods', - 'Value #B': 'Workloads', - 'Value #C': 'CPU Usage', - 'Value #D': 'CPU Requests', - 'Value #E': 'CPU Requests %', - 'Value #F': 'CPU Limits', - 'Value #G': 'CPU Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Namespace', - }, - properties: [ - { - id: 'links', - value: [links.namespace], - }, - ], - }, - ]), - - tsPanel.new('Memory') - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(container_memory_rss{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", container!=""}) by (namespace)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('Memory Requests by Namespace') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(kube_pod_owner{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'count(avg(namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster"}) by (workload, namespace)) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(container_memory_rss{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", container!=""}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(namespace_memory:kube_pod_container_resource_requests:sum{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(container_memory_rss{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", container!=""}) by (namespace) / sum(namespace_memory:kube_pod_container_resource_requests:sum{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(namespace_memory:kube_pod_container_resource_limits:sum{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(container_memory_rss{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", container!=""}) by (namespace) / sum(namespace_memory:kube_pod_container_resource_limits:sum{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'namespace', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - 'Time 7': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - 'Time 7': 6, - namespace: 7, - 'Value #A': 8, - 'Value #B': 9, - 'Value #C': 10, - 'Value #D': 11, - 'Value #E': 12, - 'Value #F': 13, - 'Value #G': 14, - }, - renameByName: { - namespace: 'Namespace', - 'Value #A': 'Pods', - 'Value #B': 'Workloads', - 'Value #C': 'Memory Usage', - 'Value #D': 'Memory Requests', - 'Value #E': 'Memory Requests %', - 'Value #F': 'Memory Limits', - 'Value #G': 'Memory Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Memory Usage', - }, - properties: [ - { - id: 'unit', - value: 'bytes', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Memory Requests', - }, - properties: [ - { - id: 'unit', - value: 'bytes', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Memory Limits', - }, - properties: [ - { - id: 'unit', - value: 'bytes', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Namespace', - }, - properties: [ - { - id: 'links', - value: [links.namespace], - }, - ], - }, - ]), - - table.new('Current Network Usage') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(rate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(rate(container_network_receive_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(rate(container_network_transmit_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(rate(container_network_receive_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(rate(container_network_transmit_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'namespace', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - namespace: 6, - 'Value #A': 7, - 'Value #B': 8, - 'Value #C': 9, - 'Value #D': 10, - 'Value #E': 11, - 'Value #F': 12, - }, - renameByName: { - namespace: 'Namespace', - 'Value #A': 'Current Receive Bandwidth', - 'Value #B': 'Current Transmit Bandwidth', - 'Value #C': 'Rate of Received Packets', - 'Value #D': 'Rate of Transmitted Packets', - 'Value #E': 'Rate of Received Packets Dropped', - 'Value #F': 'Rate of Transmitted Packets Dropped', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/Bandwidth/', - }, - properties: [ - { - id: 'unit', - value: 'Bps', - }, - ], - }, - { - matcher: { - id: 'byRegexp', - options: '/Packets/', - }, - properties: [ - { - id: 'unit', - value: 'pps', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Namespace', - }, - properties: [ - { - id: 'links', - value: [links.namespace], - }, - ], - }, - ]), - - tsPanel.new('Receive Bandwidth') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Transmit Bandwidth') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Average Container Bandwidth by Namespace: Received') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'avg(irate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Average Container Bandwidth by Namespace: Transmitted') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'avg(irate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(irate(container_network_receive_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(irate(container_network_transmit_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(irate(container_network_receive_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(irate(container_network_transmit_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s=~".+"}[%(grafanaIntervalVar)s])) by (namespace)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('IOPS(Reads+Writes)') - + tsPanel.standardOptions.withUnit('iops') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'ceil(sum by(namespace) (rate(container_fs_reads_total{%(cadvisorSelector)s, %(containerfsSelector)s, %(diskDeviceSelector)s, %(clusterLabel)s="$cluster", namespace!=""}[%(grafanaIntervalVar)s]) + rate(container_fs_writes_total{%(cadvisorSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace!=""}[%(grafanaIntervalVar)s])))' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('ThroughPut(Read+Write)') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum by(namespace) (rate(container_fs_reads_bytes_total{%(cadvisorSelector)s, %(containerfsSelector)s, %(diskDeviceSelector)s, %(clusterLabel)s="$cluster", namespace!=""}[%(grafanaIntervalVar)s]) + rate(container_fs_writes_bytes_total{%(cadvisorSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace!=""}[%(grafanaIntervalVar)s]))' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('Current Storage IO') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum by(namespace) (rate(container_fs_reads_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace!=""}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(namespace) (rate(container_fs_writes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace!=""}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(namespace) (rate(container_fs_reads_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace!=""}[%(grafanaIntervalVar)s]) + rate(container_fs_writes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace!=""}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(namespace) (rate(container_fs_reads_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace!=""}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(namespace) (rate(container_fs_writes_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace!=""}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(namespace) (rate(container_fs_reads_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace!=""}[%(grafanaIntervalVar)s]) + rate(container_fs_writes_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace!=""}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'namespace', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - namespace: 6, - 'Value #A': 7, - 'Value #B': 8, - 'Value #C': 9, - 'Value #D': 10, - 'Value #E': 11, - 'Value #F': 12, - }, - renameByName: { - namespace: 'Namespace', - 'Value #A': 'IOPS(Reads)', - 'Value #B': 'IOPS(Writes)', - 'Value #C': 'IOPS(Reads + Writes)', - 'Value #D': 'Throughput(Read)', - 'Value #E': 'Throughput(Write)', - 'Value #F': 'Throughput(Read + Write)', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/IOPS/', - }, - properties: [ - { - id: 'unit', - value: 'iops', - }, - ], - }, - { - matcher: { - id: 'byRegexp', - options: '/Throughput/', - }, - properties: [ - { - id: 'unit', - value: 'Bps', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Namespace', - }, - properties: [ - { - id: 'links', - value: [links.namespace], - }, - ], - }, - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sCompute Resources / Cluster' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['k8s-resources-cluster.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=24, panelHeight=6)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/multi-cluster.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/multi-cluster.libsonnet deleted file mode 100644 index 0043f1613..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/multi-cluster.libsonnet +++ /dev/null @@ -1,311 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; - -local prometheus = g.query.prometheus; -local stat = g.panel.stat; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local statPanel(title, unit, query) = - stat.new(title) - + stat.options.withColorMode('none') - + stat.standardOptions.withUnit(unit) - + stat.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval) - + stat.queryOptions.withTargets([ - prometheus.new('${datasource}', query) - + prometheus.withInstant(true), - ]), - - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: - if $._config.showMultiCluster then { - 'k8s-resources-multicluster.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - }; - - local links = { - cluster: { - title: 'Drill down', - url: '%(prefix)s/d/%(uid)s/kubernetes-compute-resources-cluster?${datasource:queryparam}&var-cluster=${__data.fields.Cluster}' % { - uid: $._config.grafanaDashboardIDs['k8s-resources-cluster.json'], - prefix: $._config.grafanaK8s.linkPrefix, - }, - }, - }; - - local panels = { - highlights: [ - statPanel( - 'CPU Utilisation', - 'none', - 'cluster:node_cpu:ratio_rate5m' - ), - - statPanel( - 'CPU Requests Commitment', - 'percentunit', - 'sum(kube_pod_container_resource_requests{%(kubeStateMetricsSelector)s, resource="cpu"}) / sum(kube_node_status_allocatable{%(kubeStateMetricsSelector)s, resource="cpu"})' % $._config - ), - - statPanel( - 'CPU Limits Commitment', - 'percentunit', - 'sum(kube_pod_container_resource_limits{%(kubeStateMetricsSelector)s, resource="cpu"}) / sum(kube_node_status_allocatable{%(kubeStateMetricsSelector)s, resource="cpu"})' % $._config - ), - - statPanel( - 'Memory Utilisation', - 'percentunit', - '1 - sum(:node_memory_MemAvailable_bytes:sum) / sum(node_memory_MemTotal_bytes{%(nodeExporterSelector)s})' % $._config - ), - - statPanel( - 'Memory Requests Commitment', - 'percentunit', - 'sum(kube_pod_container_resource_requests{%(kubeStateMetricsSelector)s, resource="memory"}) / sum(kube_node_status_allocatable{%(kubeStateMetricsSelector)s, resource="memory"})' % $._config - ), - - statPanel( - 'Memory Limits Commitment', - 'percentunit', - 'sum(kube_pod_container_resource_limits{%(kubeStateMetricsSelector)s, resource="memory"}) / sum(kube_node_status_allocatable{%(kubeStateMetricsSelector)s, resource="memory"})' % $._config - ), - ], - - cpuUsage: [ - tsPanel.new('CPU Usage') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate) by (%(clusterLabel)s)' % $._config) - + prometheus.withLegendFormat('__auto'), - ]), - ], - - cpuQuota: [ - g.panel.table.new('CPU Quota') - + g.panel.table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate) by (%(clusterLabel)s)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(kube_pod_container_resource_requests{%(kubeStateMetricsSelector)s, resource="cpu"}) by (%(clusterLabel)s)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate) by (%(clusterLabel)s) / sum(kube_pod_container_resource_requests{%(kubeStateMetricsSelector)s, resource="cpu"}) by (%(clusterLabel)s)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(kube_pod_container_resource_limits{%(kubeStateMetricsSelector)s, resource="cpu"}) by (%(clusterLabel)s)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate) by (%(clusterLabel)s) / sum(kube_pod_container_resource_limits{%(kubeStateMetricsSelector)s, resource="cpu"}) by (%(clusterLabel)s)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + g.panel.table.queryOptions.withTransformations([ - g.panel.table.queryOptions.transformation.withId('joinByField') - + g.panel.table.queryOptions.transformation.withOptions({ - byField: 'cluster', - mode: 'outer', - }), - - g.panel.table.queryOptions.transformation.withId('organize') - + g.panel.table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - cluster: 5, - 'Value #A': 6, - 'Value #B': 7, - 'Value #C': 8, - 'Value #D': 9, - 'Value #E': 10, - }, - renameByName: { - cluster: 'Cluster', - 'Value #A': 'CPU Usage', - 'Value #B': 'CPU Requests', - 'Value #C': 'CPU Requests %', - 'Value #D': 'CPU Limits', - 'Value #E': 'CPU Limits %', - }, - }), - ]) - - + g.panel.table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Cluster', - }, - properties: [ - { - id: 'links', - value: [links.cluster], - }, - ], - }, - ]), - ], - - memoryUsage: [ - tsPanel.new('Memory Usage (w/o cache)') - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - // Not using container_memory_usage_bytes here because that includes page cache - prometheus.new('${datasource}', 'sum(container_memory_rss{%(cadvisorSelector)s, container!=""}) by (%(clusterLabel)s)' % $._config) - + prometheus.withLegendFormat('__auto'), - ]), - ], - - memoryRequests: [ - g.panel.table.new('Memory Requests by Cluster') - + g.panel.table.standardOptions.withUnit('bytes') - + g.panel.table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(container_memory_rss{%(cadvisorSelector)s, container!=""}) by (%(clusterLabel)s)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(kube_pod_container_resource_requests{%(kubeStateMetricsSelector)s, resource="memory"}) by (%(clusterLabel)s)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(container_memory_rss{%(cadvisorSelector)s, container!=""}) by (%(clusterLabel)s) / sum(kube_pod_container_resource_requests{%(kubeStateMetricsSelector)s, resource="memory"}) by (%(clusterLabel)s)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(kube_pod_container_resource_limits{%(kubeStateMetricsSelector)s, resource="memory"}) by (%(clusterLabel)s)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(container_memory_rss{%(cadvisorSelector)s, container!=""}) by (%(clusterLabel)s) / sum(kube_pod_container_resource_limits{%(kubeStateMetricsSelector)s, resource="memory"}) by (%(clusterLabel)s)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + g.panel.table.queryOptions.withTransformations([ - g.panel.table.queryOptions.transformation.withId('joinByField') - + g.panel.table.queryOptions.transformation.withOptions({ - byField: 'cluster', - mode: 'outer', - }), - - g.panel.table.queryOptions.transformation.withId('organize') - + g.panel.table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - cluster: 5, - 'Value #A': 6, - 'Value #B': 7, - 'Value #C': 8, - 'Value #D': 9, - 'Value #E': 10, - }, - renameByName: { - cluster: 'Cluster', - 'Value #A': 'Memory Usage', - 'Value #B': 'Memory Requests', - 'Value #C': 'Memory Requests %', - 'Value #D': 'Memory Limits', - 'Value #E': 'Memory Limits %', - }, - }), - ]) - - + g.panel.table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Cluster', - }, - properties: [ - { - id: 'links', - value: [links.cluster], - }, - ], - }, - ]), - ], - }; - - g.dashboard.new('%(dashboardNamePrefix)sCompute Resources / Multi-Cluster' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['k8s-resources-multicluster.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource]) - + g.dashboard.withPanels( - g.util.grid.wrapPanels(panels.highlights, panelWidth=4, panelHeight=3, startY=0) - + g.util.grid.wrapPanels(panels.cpuUsage, panelWidth=24, panelHeight=7, startY=1) - + g.util.grid.wrapPanels(panels.cpuQuota, panelWidth=24, panelHeight=7, startY=2) - + g.util.grid.wrapPanels(panels.memoryUsage, panelWidth=24, panelHeight=7, startY=3) - + g.util.grid.wrapPanels(panels.memoryRequests, panelWidth=24, panelHeight=7, startY=4) - ), - } else {}, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/namespace.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/namespace.libsonnet deleted file mode 100644 index 7119b2b3a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/namespace.libsonnet +++ /dev/null @@ -1,783 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; -local prometheus = g.query.prometheus; -local stat = g.panel.stat; -local table = g.panel.table; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local statPanel(title, unit, query) = - stat.new(title) - + stat.options.withColorMode('none') - + stat.standardOptions.withUnit(unit) - + stat.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval) - + stat.queryOptions.withTargets([ - prometheus.new('${datasource}', query) - + prometheus.withInstant(true), - ]), - - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'k8s-resources-namespace.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(kubeStateMetricsSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - namespace: - var.query.new('namespace') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'namespace', - 'kube_namespace_status_phase{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster"}' % $._config, - ) - + var.query.generalOptions.withLabel('namespace') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - }; - - local links = { - pod: { - title: 'Drill down to pods', - url: '%(prefix)s/d/%(uid)s/k8s-resources-pod?${datasource:queryparam}&var-cluster=$cluster&var-namespace=$namespace&var-pod=${__data.fields.Pod}' % { - uid: $._config.grafanaDashboardIDs['k8s-resources-pod.json'], - prefix: $._config.grafanaK8s.linkPrefix, - }, - }, - }; - - local panels = [ - statPanel( - 'CPU Utilisation (from requests)', - 'percentunit', - 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", namespace="$namespace"}) / sum(kube_pod_container_resource_requests{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", resource="cpu"})' % $._config - ) - + stat.gridPos.withW(6) - + stat.gridPos.withH(3), - - statPanel( - 'CPU Utilisation (from limits)', - 'percentunit', - 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", namespace="$namespace"}) / sum(kube_pod_container_resource_limits{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", resource="cpu"})' % $._config - ) - + stat.gridPos.withW(6) - + stat.gridPos.withH(3), - - statPanel( - 'Memory Utilisation (from requests)', - 'percentunit', - 'sum(container_memory_working_set_bytes{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace",container!="", image!=""}) / sum(kube_pod_container_resource_requests{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", resource="memory"})' % $._config - ) - + stat.gridPos.withW(6) - + stat.gridPos.withH(3), - - statPanel( - 'Memory Utilisation (from limits)', - 'percentunit', - 'sum(container_memory_working_set_bytes{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace",container!="", image!=""}) / sum(kube_pod_container_resource_limits{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", resource="memory"})' % $._config - ) - + stat.gridPos.withW(6) - + stat.gridPos.withH(3), - - tsPanel.new('CPU Usage') - + tsPanel.gridPos.withW(24) - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - - prometheus.new( - '${datasource}', - 'scalar(kube_resourcequota{%(clusterLabel)s="$cluster", namespace="$namespace", type="hard",resource="requests.cpu"})' % $._config - ) - + prometheus.withLegendFormat('quota - requests'), - - prometheus.new( - '${datasource}', - 'scalar(kube_resourcequota{%(clusterLabel)s="$cluster", namespace="$namespace", type="hard",resource="limits.cpu"})' % $._config - ) - + prometheus.withLegendFormat('quota - limits'), - ]) - + tsPanel.standardOptions.withOverrides([ - { - matcher: { - id: 'byFrameRefID', - options: 'B', - }, - properties: [ - { - id: 'custom.lineStyle', - value: { - fill: 'dash', - }, - }, - { - id: 'custom.lineWidth', - value: 2, - }, - { - id: 'color', - value: { - mode: 'fixed', - fixedColor: 'red', - }, - }, - ], - }, - { - matcher: { - id: 'byFrameRefID', - options: 'C', - }, - properties: [ - { - id: 'custom.lineStyle', - value: { - fill: 'dash', - }, - }, - { - id: 'custom.lineWidth', - value: 2, - }, - { - id: 'color', - value: { - mode: 'fixed', - fixedColor: 'orange', - }, - }, - ], - }, - ]), - - table.new('CPU Quota') - + table.gridPos.withW(24) - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'pod', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - pod: 5, - 'Value #A': 6, - 'Value #B': 7, - 'Value #C': 8, - 'Value #D': 9, - 'Value #E': 10, - }, - renameByName: { - pod: 'Pod', - 'Value #A': 'CPU Usage', - 'Value #B': 'CPU Requests', - 'Value #C': 'CPU Requests %', - 'Value #D': 'CPU Limits', - 'Value #E': 'CPU Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Pod', - }, - properties: [ - { - id: 'links', - value: [links.pod], - }, - ], - }, - ]), - - tsPanel.new('Memory Usage (w/o cache)') - + tsPanel.gridPos.withW(24) - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(container_memory_working_set_bytes{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", container!="", image!=""}) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - - prometheus.new( - '${datasource}', - 'scalar(kube_resourcequota{%(clusterLabel)s="$cluster", namespace="$namespace", type="hard",resource="requests.memory"})' % $._config - ) - + prometheus.withLegendFormat('quota - requests'), - - prometheus.new( - '${datasource}', - 'scalar(kube_resourcequota{%(clusterLabel)s="$cluster", namespace="$namespace", type="hard",resource="limits.memory"})' % $._config - ) - + prometheus.withLegendFormat('quota - limits'), - ]) - + tsPanel.standardOptions.withOverrides([ - { - matcher: { - id: 'byFrameRefID', - options: 'B', - }, - properties: [ - { - id: 'custom.lineStyle', - value: { - fill: 'dash', - }, - }, - { - id: 'custom.lineWidth', - value: 2, - }, - { - id: 'color', - value: { - mode: 'fixed', - fixedColor: 'red', - }, - }, - ], - }, - { - matcher: { - id: 'byFrameRefID', - options: 'C', - }, - properties: [ - { - id: 'custom.lineStyle', - value: { - fill: 'dash', - }, - }, - { - id: 'custom.lineWidth', - value: 2, - }, - { - id: 'color', - value: { - mode: 'fixed', - fixedColor: 'orange', - }, - }, - ], - }, - ]), - - table.new('Memory Quota') - + table.gridPos.withW(24) - + table.standardOptions.withUnit('bytes') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(container_memory_working_set_bytes{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace",container!="", image!=""}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(container_memory_working_set_bytes{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace",container!="", image!=""}) by (pod) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(container_memory_working_set_bytes{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace",container!="", image!=""}) by (pod) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(container_memory_rss{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace",container!=""}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(container_memory_cache{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace",container!=""}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(container_memory_swap{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace",container!=""}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'pod', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - 'Time 7': true, - 'Time 8': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - 'Time 7': 6, - 'Time 8': 7, - pod: 8, - 'Value #A': 9, - 'Value #B': 10, - 'Value #C': 11, - 'Value #D': 12, - 'Value #E': 13, - 'Value #F': 14, - 'Value #G': 15, - 'Value #H': 16, - }, - renameByName: { - pod: 'Pod', - 'Value #A': 'Memory Usage', - 'Value #B': 'Memory Requests', - 'Value #C': 'Memory Requests %', - 'Value #D': 'Memory Limits', - 'Value #E': 'Memory Limits %', - 'Value #F': 'Memory Usage (RSS)', - 'Value #G': 'Memory Usage (Cache)', - 'Value #H': 'Memory Usage (Swap)', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Pod', - }, - properties: [ - { - id: 'links', - value: [links.pod], - }, - ], - }, - ]), - - table.new('Current Network Usage') - + table.gridPos.withW(24) - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s])) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(rate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s])) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(rate(container_network_receive_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s])) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(rate(container_network_transmit_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s])) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(rate(container_network_receive_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s])) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(rate(container_network_transmit_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s])) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'pod', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - pod: 6, - 'Value #A': 7, - 'Value #B': 8, - 'Value #C': 9, - 'Value #D': 10, - 'Value #E': 11, - 'Value #F': 12, - }, - renameByName: { - pod: 'Pod', - 'Value #A': 'Current Receive Bandwidth', - 'Value #B': 'Current Transmit Bandwidth', - 'Value #C': 'Rate of Received Packets', - 'Value #D': 'Rate of Transmitted Packets', - 'Value #E': 'Rate of Received Packets Dropped', - 'Value #F': 'Rate of Transmitted Packets Dropped', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/Bandwidth/', - }, - properties: [ - { - id: 'unit', - value: 'Bps', - }, - ], - }, - { - matcher: { - id: 'byRegexp', - options: '/Packets/', - }, - properties: [ - { - id: 'unit', - value: 'pps', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Pod', - }, - properties: [ - { - id: 'links', - value: [links.pod], - }, - ], - }, - ]), - - tsPanel.new('Receive Bandwidth') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(container_network_receive_bytes_total{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Transmit Bandwidth') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(container_network_transmit_bytes_total{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(irate(container_network_receive_packets_total{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(irate(container_network_transmit_packets_total{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(irate(container_network_receive_packets_dropped_total{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(irate(container_network_transmit_packets_dropped_total{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('IOPS(Reads+Writes)') - + tsPanel.standardOptions.withUnit('iops') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'ceil(sum by(pod) (rate(container_fs_reads_total{%(containerfsSelector)s, %(diskDeviceSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) + rate(container_fs_writes_total{%(containerfsSelector)s, %(diskDeviceSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s])))' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('ThroughPut(Read+Write)') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum by(pod) (rate(container_fs_reads_bytes_total{%(containerfsSelector)s, %(diskDeviceSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) + rate(container_fs_writes_bytes_total{%(containerfsSelector)s, %(diskDeviceSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]))' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('Current Storage IO') - + table.gridPos.withW(24) - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum by(pod) (rate(container_fs_reads_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(pod) (rate(container_fs_writes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(pod) (rate(container_fs_reads_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) + rate(container_fs_writes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(pod) (rate(container_fs_reads_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(pod) (rate(container_fs_writes_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(pod) (rate(container_fs_reads_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) + rate(container_fs_writes_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'pod', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - pod: 6, - 'Value #A': 7, - 'Value #B': 8, - 'Value #C': 9, - 'Value #D': 10, - 'Value #E': 11, - 'Value #F': 12, - }, - renameByName: { - pod: 'Pod', - 'Value #A': 'IOPS(Reads)', - 'Value #B': 'IOPS(Writes)', - 'Value #C': 'IOPS(Reads + Writes)', - 'Value #D': 'Throughput(Read)', - 'Value #E': 'Throughput(Write)', - 'Value #F': 'Throughput(Read + Write)', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/IOPS/', - }, - properties: [ - { - id: 'unit', - value: 'iops', - }, - ], - }, - { - matcher: { - id: 'byRegexp', - options: '/Throughput/', - }, - properties: [ - { - id: 'unit', - value: 'Bps', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Pod', - }, - properties: [ - { - id: 'links', - value: [links.pod], - }, - ], - }, - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sCompute Resources / Namespace (Pods)' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['k8s-resources-namespace.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.namespace]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=12, panelHeight=7)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/node.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/node.libsonnet deleted file mode 100644 index 806cb2bde..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/node.libsonnet +++ /dev/null @@ -1,304 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; - -local fieldOverride = g.panel.timeSeries.fieldOverride; -local prometheus = g.query.prometheus; -local table = g.panel.table; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'k8s-resources-node.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(kubeStateMetricsSelector)s}' % $._config - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - node: - var.query.new('node') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'node', - 'kube_node_info{%(clusterLabel)s="$cluster"}' % $._config - ) - + var.query.generalOptions.withLabel('node') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.selectionOptions.withMulti(true), - }; - - local links = { - pod: { - title: 'Drill down to pods', - url: '%(prefix)s/d/%(uid)s/k8s-resources-pod?${datasource:queryparam}&var-cluster=$cluster&var-namespace=$namespace&var-pod=${__data.fields.Pod}' % { - uid: $._config.grafanaDashboardIDs['k8s-resources-pod.json'], - prefix: $._config.grafanaK8s.linkPrefix, - }, - }, - }; - - local panels = [ - tsPanel.new('CPU Usage') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(kube_node_status_capacity{%(clusterLabel)s="$cluster", node=~"$node", resource="cpu"})' % $._config, - ) - + prometheus.withLegendFormat('max capacity'), - - prometheus.new( - '${datasource}', - 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", node=~"$node"}) by (pod)' % $._config, - ) - + prometheus.withLegendFormat('{{pod}}'), - ]) - + tsPanel.fieldConfig.defaults.custom.withStacking({ mode: 'normal' }) - + tsPanel.standardOptions.withOverrides([ - fieldOverride.byName.new('max capacity') - + fieldOverride.byName.withPropertiesFromOptions( - timeSeries.standardOptions.color.withMode('fixed') - + timeSeries.standardOptions.color.withFixedColor('red') - ) - + fieldOverride.byName.withProperty('custom.stacking', { mode: 'none' }) - + fieldOverride.byName.withProperty('custom.hideFrom', { tooltip: true, viz: false, legend: false }) - + fieldOverride.byName.withProperty('custom.lineStyle', { fill: 'dash', dash: [10, 10] }), - ]), - - table.new('CPU Quota') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", node=~"$node"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{%(clusterLabel)s="$cluster", node=~"$node"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", node=~"$node"}) by (pod) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{%(clusterLabel)s="$cluster", node=~"$node"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{%(clusterLabel)s="$cluster", node=~"$node"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", node=~"$node"}) by (pod) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{%(clusterLabel)s="$cluster", node=~"$node"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'pod', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - renameByName: { - pod: 'Pod', - 'Value #A': 'CPU Usage', - 'Value #B': 'CPU Requests', - 'Value #C': 'CPU Requests %', - 'Value #D': 'CPU Limits', - 'Value #E': 'CPU Limits %', - }, - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - }, - }), - ]) - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Pod', - }, - properties: [ - { - id: 'links', - value: [links.pod], - }, - ], - }, - ]), - - tsPanel.new('Memory Usage (w/o cache)') - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(kube_node_status_capacity{%(clusterLabel)s="$cluster", node=~"$node", resource="memory"})' % $._config, - ) - + prometheus.withLegendFormat('max capacity'), - - prometheus.new( - '${datasource}', - 'sum(node_namespace_pod_container:container_memory_working_set_bytes{%(clusterLabel)s="$cluster", node=~"$node", container!=""}) by (pod)' % $._config, - ) - + prometheus.withLegendFormat('{{pod}}'), - ]) - + tsPanel.fieldConfig.defaults.custom.withStacking({ mode: 'normal' }) - + tsPanel.standardOptions.withOverrides([ - fieldOverride.byName.new('max capacity') - + fieldOverride.byName.withPropertiesFromOptions( - timeSeries.standardOptions.color.withMode('fixed') - + timeSeries.standardOptions.color.withFixedColor('red') - ) - + fieldOverride.byName.withProperty('custom.stacking', { mode: 'none' }) - + fieldOverride.byName.withProperty('custom.hideFrom', { tooltip: true, viz: false, legend: false }) - + fieldOverride.byName.withProperty('custom.lineStyle', { fill: 'dash', dash: [10, 10] }), - ]), - - table.new('Memory Quota') - + table.standardOptions.withUnit('bytes') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_memory_working_set_bytes{%(clusterLabel)s="$cluster", node=~"$node",container!=""}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{%(clusterLabel)s="$cluster", node=~"$node"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_memory_working_set_bytes{%(clusterLabel)s="$cluster", node=~"$node",container!=""}) by (pod) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{%(clusterLabel)s="$cluster", node=~"$node"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{%(clusterLabel)s="$cluster", node=~"$node"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_memory_working_set_bytes{%(clusterLabel)s="$cluster", node=~"$node",container!=""}) by (pod) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{%(clusterLabel)s="$cluster", node=~"$node"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_memory_rss{%(clusterLabel)s="$cluster", node=~"$node",container!=""}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_memory_cache{%(clusterLabel)s="$cluster", node=~"$node",container!=""}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_memory_swap{%(clusterLabel)s="$cluster", node=~"$node",container!=""}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'pod', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - renameByName: { - pod: 'Pod', - 'Value #A': 'Memory Usage', - 'Value #B': 'Memory Requests', - 'Value #C': 'Memory Requests %', - 'Value #D': 'Memory Limits', - 'Value #E': 'Memory Limits %', - 'Value #F': 'Memory Usage (RSS)', - 'Value #G': 'Memory Usage (Cache)', - 'Value #H': 'Memory Usage (Swap)', - }, - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - 'Time 7': true, - 'Time 8': true, - }, - }), - ]) - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Pod', - }, - properties: [ - { - id: 'links', - value: [links.pod], - }, - ], - }, - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sCompute Resources / Node (Pods)' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['k8s-resources-node.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.node]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=24, panelHeight=6)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/pod.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/pod.libsonnet deleted file mode 100644 index b7be85fd5..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/pod.libsonnet +++ /dev/null @@ -1,671 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; -local prometheus = g.query.prometheus; -local table = g.panel.table; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'k8s-resources-pod.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(kubeStateMetricsSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - namespace: - var.query.new('namespace') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'namespace', - 'kube_namespace_status_phase{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster"}' % $._config, - ) - + var.query.generalOptions.withLabel('namespace') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - - pod: - var.query.new('pod') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'pod', - 'kube_pod_info{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}' % $._config, - ) - + var.query.generalOptions.withLabel('pod') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - }; - - local cpuRequestsQuery = ||| - sum( - kube_pod_container_resource_requests{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", resource="cpu"} - ) - ||| % $._config; - - local cpuLimitsQuery = std.strReplace(cpuRequestsQuery, 'requests', 'limits'); - local memRequestsQuery = std.strReplace(cpuRequestsQuery, 'cpu', 'memory'); - local memLimitsQuery = std.strReplace(cpuLimitsQuery, 'cpu', 'memory'); - - local panels = [ - tsPanel.new('CPU Usage') - + tsPanel.gridPos.withW(24) - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace="$namespace", pod="$pod", %(clusterLabel)s="$cluster", container!=""}) by (container)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - - prometheus.new('${datasource}', cpuRequestsQuery) - + prometheus.withLegendFormat('requests'), - - prometheus.new('${datasource}', cpuLimitsQuery) - + prometheus.withLegendFormat('limits'), - ]) - + tsPanel.standardOptions.withOverrides([ - { - matcher: { - id: 'byFrameRefID', - options: 'B', - }, - properties: [ - { - id: 'custom.lineStyle', - value: { - fill: 'dash', - }, - }, - { - id: 'custom.lineWidth', - value: 2, - }, - { - id: 'color', - value: { - mode: 'fixed', - fixedColor: 'red', - }, - }, - ], - }, - { - matcher: { - id: 'byFrameRefID', - options: 'C', - }, - properties: [ - { - id: 'custom.lineStyle', - value: { - fill: 'dash', - }, - }, - { - id: 'custom.lineWidth', - value: 2, - }, - { - id: 'color', - value: { - mode: 'fixed', - fixedColor: 'orange', - }, - }, - ], - }, - ]), - - tsPanel.new('CPU Throttling') - + tsPanel.gridPos.withW(24) - + tsPanel.standardOptions.withUnit('percentunit') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(increase(container_cpu_cfs_throttled_periods_total{%(cadvisorSelector)s, namespace="$namespace", pod="$pod", container!="", %(clusterLabel)s="$cluster"}[%(grafanaIntervalVar)s])) by (container) /sum(increase(container_cpu_cfs_periods_total{%(cadvisorSelector)s, namespace="$namespace", pod="$pod", container!="", %(clusterLabel)s="$cluster"}[%(grafanaIntervalVar)s])) by (container)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]) - + tsPanel.fieldConfig.defaults.custom.withAxisSoftMin(0) - + tsPanel.fieldConfig.defaults.custom.withAxisSoftMax(1) - + tsPanel.fieldConfig.defaults.custom.thresholdsStyle.withMode('dashed+area') - + tsPanel.fieldConfig.defaults.custom.withAxisColorMode('thresholds') - + tsPanel.standardOptions.withOverrides([ - { - matcher: { - id: 'byFrameRefID', - options: 'A', - }, - properties: [ - { - id: 'thresholds', - value: { - mode: 'absolute', - steps: [ - { - color: 'green', - value: null, - }, - { - color: 'red', - value: $._config.cpuThrottlingPercent / 100, - }, - ], - }, - }, - { - id: 'color', - value: { - mode: 'thresholds', - seriesBy: 'lastNotNull', - }, - }, - ], - }, - ]), - - table.new('CPU Quota') - + table.gridPos.withW(24) - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container!=""}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container!=""}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container!=""}) by (container) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container!=""}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container!=""}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container!=""}) by (container) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container!=""}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'container', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - container: 5, - 'Value #A': 6, - 'Value #B': 7, - 'Value #C': 8, - 'Value #D': 9, - 'Value #E': 10, - }, - renameByName: { - container: 'Container', - 'Value #A': 'CPU Usage', - 'Value #B': 'CPU Requests', - 'Value #C': 'CPU Requests %', - 'Value #D': 'CPU Limits', - 'Value #E': 'CPU Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - ]), - - tsPanel.new('Memory Usage (WSS)') - + tsPanel.gridPos.withW(24) - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(container_memory_working_set_bytes{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container!="", image!=""}) by (container)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - - prometheus.new('${datasource}', memRequestsQuery) - + prometheus.withLegendFormat('requests'), - - prometheus.new('${datasource}', memLimitsQuery) - + prometheus.withLegendFormat('limits'), - ]) - + tsPanel.standardOptions.withOverrides([ - { - matcher: { - id: 'byFrameRefID', - options: 'B', - }, - properties: [ - { - id: 'custom.lineStyle', - value: { - fill: 'dash', - }, - }, - { - id: 'custom.lineWidth', - value: 2, - }, - { - id: 'color', - value: { - mode: 'fixed', - fixedColor: 'red', - }, - }, - ], - }, - { - matcher: { - id: 'byFrameRefID', - options: 'C', - }, - properties: [ - { - id: 'custom.lineStyle', - value: { - fill: 'dash', - }, - }, - { - id: 'custom.lineWidth', - value: 2, - }, - { - id: 'color', - value: { - mode: 'fixed', - fixedColor: 'orange', - }, - }, - ], - }, - ]), - - table.new('Memory Quota') - + table.gridPos.withW(24) - + table.standardOptions.withUnit('bytes') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(container_memory_working_set_bytes{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container!="", image!=""}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(container_memory_working_set_bytes{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", image!=""}) by (container) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_requests{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(container_memory_working_set_bytes{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container!="", image!=""}) by (container) / sum(cluster:namespace:pod_memory:active:kube_pod_container_resource_limits{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(container_memory_rss{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container != "", container != "POD"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(container_memory_cache{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container != "", container != "POD"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', 'sum(container_memory_swap{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod", container != "", container != "POD"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'container', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - 'Time 7': true, - 'Time 8': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - 'Time 7': 6, - 'Time 8': 7, - container: 8, - 'Value #A': 9, - 'Value #B': 10, - 'Value #C': 11, - 'Value #D': 12, - 'Value #E': 13, - 'Value #F': 14, - 'Value #G': 15, - 'Value #H': 16, - }, - renameByName: { - container: 'Container', - 'Value #A': 'Memory Usage', - 'Value #B': 'Memory Requests', - 'Value #C': 'Memory Requests %', - 'Value #D': 'Memory Limits', - 'Value #E': 'Memory Limits %', - 'Value #F': 'Memory Usage (RSS)', - 'Value #G': 'Memory Usage (Cache)', - 'Value #H': 'Memory Usage (Swap)', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - ]), - - - tsPanel.new('Receive Bandwidth') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(irate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Transmit Bandwidth') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(container_network_receive_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(container_network_transmit_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(container_network_receive_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(rate(container_network_transmit_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('IOPS (Pod)') - + tsPanel.standardOptions.withUnit('iops') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'ceil(sum by(pod) (rate(container_fs_reads_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])))' % $._config - ) - + prometheus.withLegendFormat('Reads'), - prometheus.new( - '${datasource}', - 'ceil(sum by(pod) (rate(container_fs_writes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster",namespace="$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s])))' % $._config - ) - + prometheus.withLegendFormat('Writes'), - ]), - - tsPanel.new('ThroughPut (Pod)') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum by(pod) (rate(container_fs_reads_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s]))' % $._config - ) - + prometheus.withLegendFormat('Reads'), - prometheus.new( - '${datasource}', - 'sum by(pod) (rate(container_fs_writes_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod=~"$pod"}[%(grafanaIntervalVar)s]))' % $._config - ) - + prometheus.withLegendFormat('Writes'), - ]), - - tsPanel.new('IOPS (Containers)') - + tsPanel.standardOptions.withUnit('iops') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'ceil(sum by(container) (rate(container_fs_reads_total{%(cadvisorSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s]) + rate(container_fs_writes_total{%(cadvisorSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s])))' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('ThroughPut (Containers)') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum by(container) (rate(container_fs_reads_bytes_total{%(cadvisorSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s]) + rate(container_fs_writes_bytes_total{%(cadvisorSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s]))' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('Current Storage IO') - + table.gridPos.withW(24) - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum by(container) (rate(container_fs_reads_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(container) (rate(container_fs_writes_total{%(cadvisorSelector)s,%(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(container) (rate(container_fs_reads_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s]) + rate(container_fs_writes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(container) (rate(container_fs_reads_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(container) (rate(container_fs_writes_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum by(container) (rate(container_fs_reads_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s]) + rate(container_fs_writes_bytes_total{%(cadvisorSelector)s, %(diskDeviceSelector)s, %(containerfsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'container', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - container: 6, - 'Value #A': 7, - 'Value #B': 8, - 'Value #C': 9, - 'Value #D': 10, - 'Value #E': 11, - 'Value #F': 12, - }, - renameByName: { - container: 'Container', - 'Value #A': 'IOPS(Reads)', - 'Value #B': 'IOPS(Writes)', - 'Value #C': 'IOPS(Reads + Writes)', - 'Value #D': 'Throughput(Read)', - 'Value #E': 'Throughput(Write)', - 'Value #F': 'Throughput(Read + Write)', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/IOPS/', - }, - properties: [ - { - id: 'unit', - value: 'iops', - }, - ], - }, - { - matcher: { - id: 'byRegexp', - options: '/Throughput/', - }, - properties: [ - { - id: 'unit', - value: 'Bps', - }, - ], - }, - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sCompute Resources / Pod' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['k8s-resources-pod.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.namespace, variables.pod]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=12, panelHeight=7)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/workload-namespace.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/workload-namespace.libsonnet deleted file mode 100644 index cc5a6b081..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/workload-namespace.libsonnet +++ /dev/null @@ -1,756 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; -local prometheus = g.query.prometheus; -local table = g.panel.table; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'k8s-resources-workloads-namespace.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(kubeStateMetricsSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - namespace: - var.query.new('namespace') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'namespace', - 'kube_namespace_status_phase{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster"}' % $._config, - ) - + var.query.generalOptions.withLabel('namespace') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - - workload_type: - var.query.new('type') - + var.query.selectionOptions.withIncludeAll() - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'workload_type', - 'namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", namespace="$namespace", workload=~".+"}' % $._config, - ) - + var.query.generalOptions.withLabel('workload_type') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - }; - - local links = { - workload: { - title: 'Drill down to workloads', - url: '%(prefix)s/d/%(uid)s/k8s-resources-workload?${datasource:queryparam}&var-cluster=$cluster&var-namespace=$namespace&var-type=${__data.fields.Type}&var-workload=${__data.fields.Workload}' % { - uid: $._config.grafanaDashboardIDs['k8s-resources-workload.json'], - prefix: $._config.grafanaK8s.linkPrefix, - }, - }, - }; - - local cpuUsageQuery = ||| - sum( - node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", namespace="$namespace"} - * on(namespace,pod) - group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", namespace="$namespace", workload_type=~"$type"} - ) by (workload, workload_type) - ||| % $._config; - - local cpuRequestsQuery = ||| - sum( - kube_pod_container_resource_requests{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", resource="cpu"} - * on(namespace,pod) - group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", namespace="$namespace", workload_type=~"$type"} - ) by (workload, workload_type) - ||| % $._config; - - local podCountQuery = 'count(namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", namespace="$namespace", workload_type=~"$type"}) by (workload, workload_type)' % $._config; - local cpuLimitsQuery = std.strReplace(cpuRequestsQuery, 'requests', 'limits'); - - local memUsageQuery = ||| - sum( - container_memory_working_set_bytes{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", container!="", image!=""} - * on(namespace,pod) - group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", namespace="$namespace", workload_type=~"$type"} - ) by (workload, workload_type) - ||| % $._config; - local memRequestsQuery = std.strReplace(cpuRequestsQuery, 'cpu', 'memory'); - local memLimitsQuery = std.strReplace(cpuLimitsQuery, 'cpu', 'memory'); - - local cpuQuotaRequestsQuery = 'scalar(kube_resourcequota{%(clusterLabel)s="$cluster", namespace="$namespace", type="hard",resource="requests.cpu"})' % $._config; - local cpuQuotaLimitsQuery = std.strReplace(cpuQuotaRequestsQuery, 'requests.cpu', 'limits.cpu'); - local memoryQuotaRequestsQuery = std.strReplace(cpuQuotaRequestsQuery, 'requests.cpu', 'requests.memory'); - local memoryQuotaLimitsQuery = std.strReplace(cpuQuotaRequestsQuery, 'requests.cpu', 'limits.memory'); - - local networkColumns = [ - ||| - (sum(rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload_type=~"$type"}) by (workload)) - ||| % $._config, - ||| - (sum(rate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload_type=~"$type"}) by (workload)) - ||| % $._config, - ||| - (sum(rate(container_network_receive_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload_type=~"$type"}) by (workload)) - ||| % $._config, - ||| - (sum(rate(container_network_transmit_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload_type=~"$type"}) by (workload)) - ||| % $._config, - ||| - (sum(rate(container_network_receive_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload_type=~"$type"}) by (workload)) - ||| % $._config, - ||| - (sum(rate(container_network_transmit_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload_type=~"$type"}) by (workload)) - ||| % $._config, - ]; - - local panels = [ - tsPanel.new('CPU Usage') - + tsPanel.gridPos.withW(24) - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', cpuUsageQuery) - + prometheus.withLegendFormat('{{workload}} - {{workload_type}}'), - - prometheus.new('${datasource}', cpuQuotaRequestsQuery) - + prometheus.withLegendFormat('quota - requests'), - - prometheus.new('${datasource}', cpuQuotaLimitsQuery) - + prometheus.withLegendFormat('quota - limits'), - ]) - + tsPanel.standardOptions.withOverrides([ - { - matcher: { - id: 'byFrameRefID', - options: 'B', - }, - properties: [ - { - id: 'custom.lineStyle', - value: { - fill: 'dash', - }, - }, - { - id: 'custom.lineWidth', - value: 2, - }, - { - id: 'color', - value: { - mode: 'fixed', - fixedColor: 'red', - }, - }, - ], - }, - { - matcher: { - id: 'byFrameRefID', - options: 'C', - }, - properties: [ - { - id: 'custom.lineStyle', - value: { - fill: 'dash', - }, - }, - { - id: 'custom.lineWidth', - value: 2, - }, - { - id: 'color', - value: { - mode: 'fixed', - fixedColor: 'orange', - }, - }, - ], - }, - ]), - - table.new('CPU Quota') - + table.gridPos.withW(24) - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', podCountQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', cpuUsageQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', cpuRequestsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', cpuUsageQuery + '/' + cpuRequestsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', cpuLimitsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', cpuUsageQuery + '/' + cpuLimitsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'workload', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - 'workload_type 2': true, - 'workload_type 3': true, - 'workload_type 4': true, - 'workload_type 5': true, - 'workload_type 6': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - workload: 6, - 'workload_type 1': 7, - 'Value #A': 8, - 'Value #B': 9, - 'Value #C': 10, - 'Value #D': 11, - 'Value #E': 12, - 'Value #F': 13, - 'workload_type 2': 14, - 'workload_type 3': 15, - 'workload_type 4': 16, - 'workload_type 5': 17, - 'workload_type 6': 18, - }, - renameByName: { - workload: 'Workload', - 'workload_type 1': 'Type', - 'Value #A': 'Running Pods', - 'Value #B': 'CPU Usage', - 'Value #C': 'CPU Requests', - 'Value #D': 'CPU Requests %', - 'Value #E': 'CPU Limits', - 'Value #F': 'CPU Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Workload', - }, - properties: [ - { - id: 'links', - value: [links.workload], - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Running Pods', - }, - properties: [ - { - id: 'unit', - value: 'none', - }, - ], - }, - ]), - - tsPanel.new('Memory Usage') - + tsPanel.gridPos.withW(24) - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', memUsageQuery) - + prometheus.withLegendFormat('{{workload}} - {{workload_type}}'), - prometheus.new('${datasource}', memoryQuotaRequestsQuery) - + prometheus.withLegendFormat('quota - requests'), - prometheus.new('${datasource}', memoryQuotaLimitsQuery) - + prometheus.withLegendFormat('quota - limits'), - ]) - + tsPanel.standardOptions.withOverrides([ - { - matcher: { - id: 'byFrameRefID', - options: 'B', - }, - properties: [ - { - id: 'custom.lineStyle', - value: { - fill: 'dash', - }, - }, - { - id: 'custom.lineWidth', - value: 2, - }, - { - id: 'color', - value: { - mode: 'fixed', - fixedColor: 'red', - }, - }, - ], - }, - { - matcher: { - id: 'byFrameRefID', - options: 'C', - }, - properties: [ - { - id: 'custom.lineStyle', - value: { - fill: 'dash', - }, - }, - { - id: 'custom.lineWidth', - value: 2, - }, - { - id: 'color', - value: { - mode: 'fixed', - fixedColor: 'orange', - }, - }, - ], - }, - ]), - - table.new('Memory Quota') - + table.gridPos.withW(24) - + table.standardOptions.withUnit('bytes') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', podCountQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', memUsageQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', memRequestsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', memUsageQuery + '/' + memRequestsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', memLimitsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', memUsageQuery + '/' + memLimitsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'workload', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - 'workload_type 2': true, - 'workload_type 3': true, - 'workload_type 4': true, - 'workload_type 5': true, - 'workload_type 6': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - workload: 6, - 'workload_type 1': 7, - 'Value #A': 8, - 'Value #B': 9, - 'Value #C': 10, - 'Value #D': 11, - 'Value #E': 12, - 'Value #F': 13, - 'workload_type 2': 14, - 'workload_type 3': 15, - 'workload_type 4': 16, - 'workload_type 5': 17, - 'workload_type 6': 18, - }, - renameByName: { - workload: 'Workload', - 'workload_type 1': 'Type', - 'Value #A': 'Running Pods', - 'Value #B': 'Memory Usage', - 'Value #C': 'Memory Requests', - 'Value #D': 'Memory Requests %', - 'Value #E': 'Memory Limits', - 'Value #F': 'Memory Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Workload', - }, - properties: [ - { - id: 'links', - value: [links.workload], - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Running Pods', - }, - properties: [ - { - id: 'unit', - value: 'none', - }, - ], - }, - ]), - - table.new('Current Network Usage') - + table.gridPos.withW(24) - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', networkColumns[0]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', networkColumns[1]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', networkColumns[2]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', networkColumns[3]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', networkColumns[4]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', networkColumns[5]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'workload', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - workload: 6, - 'Value #A': 7, - 'Value #B': 8, - 'Value #C': 9, - 'Value #D': 10, - 'Value #E': 11, - 'Value #F': 12, - }, - renameByName: { - workload: 'Workload', - 'Value #A': 'Current Receive Bandwidth', - 'Value #B': 'Current Transmit Bandwidth', - 'Value #C': 'Rate of Received Packets', - 'Value #D': 'Rate of Transmitted Packets', - 'Value #E': 'Rate of Received Packets Dropped', - 'Value #F': 'Rate of Transmitted Packets Dropped', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/Bandwidth/', - }, - properties: [ - { - id: 'unit', - value: 'Bps', - }, - ], - }, - { - matcher: { - id: 'byRegexp', - options: '/Packets/', - }, - properties: [ - { - id: 'unit', - value: 'pps', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Workload', - }, - properties: [ - { - id: 'links', - value: [links.workload], - }, - ], - }, - ]), - - tsPanel.new('Receive Bandwidth') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (sum(rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Transmit Bandwidth') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (sum(rate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Average Container Bandwidth by Workload: Received') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (avg(rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Average Container Bandwidth by Workload: Transmitted') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (avg(rate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (sum(rate(container_network_receive_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (sum(rate(container_network_transmit_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (sum(rate(container_network_receive_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (sum(rate(container_network_transmit_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~".+", workload_type=~"$type"}) by (workload)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sCompute Resources / Namespace (Workloads)' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['k8s-resources-workloads-namespace.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.namespace, variables.workload_type]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=12, panelHeight=7)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/workload.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/workload.libsonnet deleted file mode 100644 index 21ffcdbd8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/resources/workload.libsonnet +++ /dev/null @@ -1,586 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; -local prometheus = g.query.prometheus; -local table = g.panel.table; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'k8s-resources-workload.json': - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(kubeStateMetricsSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - namespace: - var.query.new('namespace') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'namespace', - 'kube_namespace_status_phase{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster"}' % $._config, - ) - + var.query.generalOptions.withLabel('namespace') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - - workload_type: - var.query.new('type') - + var.query.selectionOptions.withIncludeAll() - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'workload_type', - 'namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", namespace="$namespace"}' % $._config, - ) - + var.query.generalOptions.withLabel('workload_type') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - - workload: - var.query.new('workload') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'workload', - 'namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", namespace="$namespace", workload_type=~"$type"}' % $._config, - ) - + var.query.generalOptions.withLabel('workload') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - }; - - local links = { - pod: { - title: 'Drill down to pods', - url: '%(prefix)s/d/%(uid)s/k8s-resources-pod?${datasource:queryparam}&var-cluster=$cluster&var-namespace=$namespace&var-pod=${__data.fields.Pod}' % { - uid: $._config.grafanaDashboardIDs['k8s-resources-pod.json'], - prefix: $._config.grafanaK8s.linkPrefix, - }, - }, - }; - - local cpuUsageQuery = ||| - sum( - node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{%(clusterLabel)s="$cluster", namespace="$namespace"} - * on(namespace,pod) - group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", namespace="$namespace", workload="$workload", workload_type=~"$type"} - ) by (pod) - ||| % $._config; - - local cpuRequestsQuery = ||| - sum( - kube_pod_container_resource_requests{%(kubeStateMetricsSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace", resource="cpu"} - * on(namespace,pod) - group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", namespace="$namespace", workload="$workload", workload_type=~"$type"} - ) by (pod) - ||| % $._config; - - local cpuLimitsQuery = std.strReplace(cpuRequestsQuery, 'requests', 'limits'); - - local memUsageQuery = ||| - sum( - container_memory_working_set_bytes{%(clusterLabel)s="$cluster", namespace="$namespace", container!="", image!=""} - * on(namespace,pod) - group_left(workload, workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", namespace="$namespace", workload="$workload", workload_type=~"$type"} - ) by (pod) - ||| % $._config; - local memRequestsQuery = std.strReplace(cpuRequestsQuery, 'cpu', 'memory'); - local memLimitsQuery = std.strReplace(cpuLimitsQuery, 'cpu', 'memory'); - - local networkColumns = [ - ||| - (sum(rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config, - ||| - (sum(rate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config, - ||| - (sum(rate(container_network_receive_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config, - ||| - (sum(rate(container_network_transmit_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config, - ||| - (sum(rate(container_network_receive_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config, - ||| - (sum(rate(container_network_transmit_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config, - ]; - - local panels = [ - tsPanel.new('CPU Usage') - + tsPanel.gridPos.withW(24) - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', cpuUsageQuery) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('CPU Quota') - + table.gridPos.withW(24) - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', cpuUsageQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', cpuRequestsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', cpuUsageQuery + '/' + cpuRequestsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', cpuLimitsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', cpuUsageQuery + '/' + cpuLimitsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'pod', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - pod: 5, - 'Value #A': 6, - 'Value #B': 7, - 'Value #C': 8, - 'Value #D': 9, - 'Value #E': 10, - }, - renameByName: { - pod: 'Pod', - 'Value #A': 'CPU Usage', - 'Value #B': 'CPU Requests', - 'Value #C': 'CPU Requests %', - 'Value #D': 'CPU Limits', - 'Value #E': 'CPU Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Pod', - }, - properties: [ - { - id: 'links', - value: [links.pod], - }, - ], - }, - ]), - - tsPanel.new('Memory Usage') - + tsPanel.gridPos.withW(24) - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', memUsageQuery) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('Memory Quota') - + table.gridPos.withW(24) - + table.standardOptions.withUnit('bytes') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', memUsageQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', memRequestsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', memUsageQuery + '/' + memRequestsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', memLimitsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', memUsageQuery + '/' + memLimitsQuery) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'pod', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - pod: 8, - 'Value #A': 9, - 'Value #B': 10, - 'Value #C': 11, - 'Value #D': 12, - 'Value #E': 13, - }, - renameByName: { - pod: 'Pod', - 'Value #A': 'Memory Usage', - 'Value #B': 'Memory Requests', - 'Value #C': 'Memory Requests %', - 'Value #D': 'Memory Limits', - 'Value #E': 'Memory Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Pod', - }, - properties: [ - { - id: 'links', - value: [links.pod], - }, - ], - }, - ]), - - table.new('Current Network Usage') - + table.gridPos.withW(24) - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', networkColumns[0]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', networkColumns[1]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', networkColumns[2]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', networkColumns[3]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', networkColumns[4]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - prometheus.new('${datasource}', networkColumns[5]) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'pod', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - 'Time 6': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - 'Time 6': 5, - pod: 6, - 'Value #A': 7, - 'Value #B': 8, - 'Value #C': 9, - 'Value #D': 10, - 'Value #E': 11, - 'Value #F': 12, - }, - renameByName: { - pod: 'Pod', - 'Value #A': 'Current Receive Bandwidth', - 'Value #B': 'Current Transmit Bandwidth', - 'Value #C': 'Rate of Received Packets', - 'Value #D': 'Rate of Transmitted Packets', - 'Value #E': 'Rate of Received Packets Dropped', - 'Value #F': 'Rate of Transmitted Packets Dropped', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/Bandwidth/', - }, - properties: [ - { - id: 'unit', - value: 'Bps', - }, - ], - }, - { - matcher: { - id: 'byRegexp', - options: '/Packets/', - }, - properties: [ - { - id: 'unit', - value: 'pps', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Pod', - }, - properties: [ - { - id: 'links', - value: [links.pod], - }, - ], - }, - ]), - - tsPanel.new('Receive Bandwidth') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (sum(rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Transmit Bandwidth') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (sum(rate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Average Container Bandwidth by Pod: Received') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (avg(rate(container_network_receive_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Average Container Bandwidth by Pod: Transmitted') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (avg(rate(container_network_transmit_bytes_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (sum(rate(container_network_receive_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (sum(rate(container_network_transmit_packets_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Received Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (sum(rate(container_network_receive_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - tsPanel.new('Rate of Transmitted Packets Dropped') - + tsPanel.standardOptions.withUnit('pps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - (sum(rate(container_network_transmit_packets_dropped_total{%(cadvisorSelector)s, %(clusterLabel)s="$cluster", namespace="$namespace"}[%(grafanaIntervalVar)s]) - * on (namespace,pod) - group_left(workload,workload_type) namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", workload=~"$workload", workload_type=~"$type"}) by (pod)) - ||| % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sCompute Resources / Workload' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['k8s-resources-workload.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.namespace, variables.workload_type, variables.workload]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=12, panelHeight=7)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/scheduler.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/scheduler.libsonnet deleted file mode 100644 index da351f318..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/scheduler.libsonnet +++ /dev/null @@ -1,188 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; - -local prometheus = g.query.prometheus; -local stat = g.panel.stat; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local statPanel(title, unit, query) = - stat.new(title) - + stat.options.withColorMode('none') - + stat.standardOptions.withUnit(unit) - + stat.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval) - + stat.queryOptions.withTargets([ - prometheus.new('${datasource}', query) - + prometheus.withInstant(true), - ]), - - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - grafanaDashboards+:: { - 'scheduler.json': - - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(kubeSchedulerSelector)s}' % $._config - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - instance: - var.query.new('instance') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'instance', - 'up{%(kubeSchedulerSelector)s, %(clusterLabel)s="$cluster"}' % $._config, - ) - + var.query.generalOptions.withLabel('instance') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.selectionOptions.withIncludeAll(true, '.+'), - }; - - local panels = [ - statPanel('Up', 'none', 'sum(up{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s})' % $._config) - + stat.gridPos.withW(4), - - tsPanel.new('Scheduling Rate') - + tsPanel.gridPos.withW(10) - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(scheduler_e2e_scheduling_duration_seconds_count{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (%(clusterLabel)s, instance)' % $._config) - + prometheus.withLegendFormat('{{%(clusterLabel)s}} {{instance}} e2e' % $._config), - - prometheus.new('${datasource}', 'sum(rate(scheduler_binding_duration_seconds_count{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (%(clusterLabel)s, instance)' % $._config) - + prometheus.withLegendFormat('{{%(clusterLabel)s}} {{instance}} binding' % $._config), - - prometheus.new('${datasource}', 'sum(rate(scheduler_scheduling_algorithm_duration_seconds_count{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (%(clusterLabel)s, instance)' % $._config) - + prometheus.withLegendFormat('{{%(clusterLabel)s}} {{instance}} scheduling algorithm' % $._config), - - prometheus.new('${datasource}', 'sum(rate(scheduler_volume_scheduling_duration_seconds_count{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])) by (%(clusterLabel)s, instance)' % $._config) - + prometheus.withLegendFormat('{{%(clusterLabel)s}} {{instance}} volume' % $._config), - ]), - - tsPanel.new('Scheduling latency 99th Quantile') - + tsPanel.gridPos.withW(10) - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(scheduler_e2e_scheduling_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (%(clusterLabel)s, instance, le))' % $._config) - + prometheus.withLegendFormat('{{%(clusterLabel)s}} {{instance}} e2e' % $._config), - - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(scheduler_binding_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (%(clusterLabel)s, instance, le))' % $._config) - + prometheus.withLegendFormat('{{%(clusterLabel)s}} {{instance}} binding' % $._config), - - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(scheduler_scheduling_algorithm_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (%(clusterLabel)s, instance, le))' % $._config) - + prometheus.withLegendFormat('{{%(clusterLabel)s}} {{instance}} scheduling algorithm' % $._config), - - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(scheduler_volume_scheduling_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s,instance=~"$instance"}[%(grafanaIntervalVar)s])) by (%(clusterLabel)s, instance, le))' % $._config) - + prometheus.withLegendFormat('{{%(clusterLabel)s}} {{instance}} volume' % $._config), - ]), - - tsPanel.new('Kube API Request Rate') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(rate(rest_client_requests_total{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance",code=~"2.."}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('2xx'), - - prometheus.new('${datasource}', 'sum(rate(rest_client_requests_total{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance",code=~"3.."}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('3xx'), - - prometheus.new('${datasource}', 'sum(rate(rest_client_requests_total{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance",code=~"4.."}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('4xx'), - - prometheus.new('${datasource}', 'sum(rate(rest_client_requests_total{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance",code=~"5.."}[%(grafanaIntervalVar)s]))' % $._config) - + prometheus.withLegendFormat('5xx'), - ]), - - tsPanel.new('Post Request Latency 99th Quantile') - + tsPanel.gridPos.withW(16) - + tsPanel.standardOptions.withUnit('ops') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance", verb="POST"}[%(grafanaIntervalVar)s])) by (verb, url, le))' % $._config) - + prometheus.withLegendFormat('{{verb}} {{url}}'), - ]), - - tsPanel.new('Get Request Latency 99th Quantile') - + tsPanel.gridPos.withW(24) - + tsPanel.standardOptions.withUnit('s') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'histogram_quantile(0.99, sum(rate(rest_client_request_duration_seconds_bucket{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance", verb="GET"}[%(grafanaIntervalVar)s])) by (verb, url, le))' % $._config) - + prometheus.withLegendFormat('{{verb}} {{url}}'), - ]), - - - tsPanel.new('Memory') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'process_resident_memory_bytes{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance"}' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('CPU usage') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('short') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'rate(process_cpu_seconds_total{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s, instance=~"$instance"}[%(grafanaIntervalVar)s])' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('Goroutines') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('short') - + tsPanel.queryOptions.withTargets([ - prometheus.new('${datasource}', 'go_goroutines{%(clusterLabel)s="$cluster", %(kubeSchedulerSelector)s,instance=~"$instance"}' % $._config) - + prometheus.withLegendFormat('{{instance}}'), - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sScheduler' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['scheduler.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.instance]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=12, panelHeight=7)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/windows.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/windows.libsonnet deleted file mode 100644 index e9bcacbb9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/windows.libsonnet +++ /dev/null @@ -1,1101 +0,0 @@ -local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet'; - -local prometheus = g.query.prometheus; -local stat = g.panel.stat; -local table = g.panel.table; -local timeSeries = g.panel.timeSeries; -local var = g.dashboard.variable; - -{ - local statPanel(title, unit, query) = - stat.new(title) - + stat.options.withColorMode('none') - + stat.standardOptions.withUnit(unit) - + stat.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval) - + stat.queryOptions.withTargets([ - prometheus.new('${datasource}', query) - + prometheus.withInstant(true), - ]), - - local tsPanel = - timeSeries { - new(title): - timeSeries.new(title) - + timeSeries.options.legend.withShowLegend() - + timeSeries.options.legend.withAsTable() - + timeSeries.options.legend.withDisplayMode('table') - + timeSeries.options.legend.withPlacement('right') - + timeSeries.options.legend.withCalcs(['lastNotNull']) - + timeSeries.options.tooltip.withMode('single') - + timeSeries.fieldConfig.defaults.custom.withShowPoints('never') - + timeSeries.fieldConfig.defaults.custom.withFillOpacity(10) - + timeSeries.fieldConfig.defaults.custom.withSpanNulls(true) - + timeSeries.queryOptions.withInterval($._config.grafanaK8s.minimumTimeInterval), - }, - - local variables = { - datasource: - var.datasource.new('datasource', 'prometheus') - + var.datasource.withRegex($._config.datasourceFilterRegex) - + var.datasource.generalOptions.showOnDashboard.withLabelAndValue() - + var.datasource.generalOptions.withLabel('Data source') - + { - current: { - selected: true, - text: $._config.datasourceName, - value: $._config.datasourceName, - }, - }, - - cluster: - var.query.new('cluster') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - $._config.clusterLabel, - 'up{%(windowsExporterSelector)s}' % $._config, - ) - + var.query.generalOptions.withLabel('cluster') - + var.query.refresh.onTime() - + ( - if $._config.showMultiCluster - then var.query.generalOptions.showOnDashboard.withLabelAndValue() - else var.query.generalOptions.showOnDashboard.withNothing() - ) - + var.query.withSort(type='alphabetical'), - - instance: - var.query.new('instance') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'instance', - 'windows_system_system_up_time{%(clusterLabel)s="$cluster"}' % $._config - ) - + var.query.generalOptions.withLabel('instance') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.selectionOptions.withMulti(true), - - namespace: - var.query.new('namespace') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'namespace', - 'windows_pod_container_available{%(clusterLabel)s="$cluster"}' % $._config, - ) - + var.query.generalOptions.withLabel('namespace') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - - pod: - var.query.new('pod') - + var.query.withDatasourceFromVariable(self.datasource) - + var.query.queryTypes.withLabelValues( - 'pod', - 'windows_pod_container_available{%(clusterLabel)s="$cluster",namespace="$namespace"}' % $._config, - ) - + var.query.generalOptions.withLabel('pod') - + var.query.refresh.onTime() - + var.query.generalOptions.showOnDashboard.withLabelAndValue() - + var.query.withSort(type='alphabetical'), - }, - - local links = { - namespace: { - title: 'Drill down to pods', - url: '%(prefix)s/d/%(uid)s/k8s-resources-windows-namespace?${datasource:queryparam}&var-cluster=$cluster&var-namespace=${__data.fields.Namespace}' % { - uid: $._config.grafanaDashboardIDs['k8s-resources-windows-namespace.json'], - prefix: $._config.grafanaK8s.linkPrefix, - }, - }, - - pod: { - title: 'Drill down to pods', - url: '%(prefix)s/d/%(uid)s/k8s-resources-windows-pod?${datasource:queryparam}&var-cluster=$cluster&var-namespace=$namespace&var-pod=${__data.fields.Pod}' % { - uid: $._config.grafanaDashboardIDs['k8s-resources-windows-pod.json'], - prefix: $._config.grafanaK8s.linkPrefix, - }, - }, - }, - - grafanaDashboards+:: { - 'k8s-resources-windows-cluster.json': - local panels = [ - statPanel( - 'CPU Utilisation', - 'none', - '1 - avg(rate(windows_cpu_time_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, mode="idle"}[1m]))' % $._config - ) - + stat.gridPos.withW(4) - + stat.gridPos.withH(3), - - statPanel( - 'CPU Requests Commitment', - 'percentunit', - 'sum(kube_pod_windows_container_resource_cpu_cores_request{%(clusterLabel)s="$cluster"}) / sum(node:windows_node_num_cpu:sum{%(clusterLabel)s="$cluster"})' % $._config - ) - + stat.gridPos.withW(4) - + stat.gridPos.withH(3), - - statPanel( - 'CPU Limits Commitment', - 'percentunit', - 'sum(kube_pod_windows_container_resource_cpu_cores_limit{%(clusterLabel)s="$cluster"}) / sum(node:windows_node_num_cpu:sum{%(clusterLabel)s="$cluster"})' % $._config - ) - + stat.gridPos.withW(4) - + stat.gridPos.withH(3), - - statPanel( - 'Memory Utilisation', - 'percentunit', - '1 - sum(:windows_node_memory_MemFreeCached_bytes:sum{%(clusterLabel)s="$cluster"}) / sum(:windows_node_memory_MemTotal_bytes:sum{%(clusterLabel)s="$cluster"})' % $._config - ) - + stat.gridPos.withW(4) - + stat.gridPos.withH(3), - - statPanel( - 'Memory Requests Commitment', - 'percentunit', - 'sum(kube_pod_windows_container_resource_memory_request{%(clusterLabel)s="$cluster"}) / sum(:windows_node_memory_MemTotal_bytes:sum{%(clusterLabel)s="$cluster"})' % $._config - ) - + stat.gridPos.withW(4) - + stat.gridPos.withH(3), - - statPanel( - 'Memory Limits Commitment', - 'percentunit', - 'sum(kube_pod_windows_container_resource_memory_limit{%(clusterLabel)s="$cluster"}) / sum(:windows_node_memory_MemTotal_bytes:sum{%(clusterLabel)s="$cluster"})' % $._config - ) - + stat.gridPos.withW(4) - + stat.gridPos.withH(3), - - tsPanel.new('CPU Usage') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('CPU Quota') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(kube_pod_windows_container_resource_cpu_cores_request{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate{%(clusterLabel)s="$cluster"}) by (namespace) / sum(kube_pod_windows_container_resource_cpu_cores_request{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(kube_pod_windows_container_resource_cpu_cores_limit{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate{%(clusterLabel)s="$cluster"}) by (namespace) / sum(kube_pod_windows_container_resource_cpu_cores_limit{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'namespace', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - namespace: 5, - 'Value #A': 6, - 'Value #B': 7, - 'Value #C': 8, - 'Value #D': 9, - 'Value #E': 10, - }, - renameByName: { - namespace: 'Namespace', - 'Value #A': 'CPU Usage', - 'Value #B': 'CPU Requests', - 'Value #C': 'CPU Requests %', - 'Value #D': 'CPU Limits', - 'Value #E': 'CPU Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Namespace', - }, - properties: [ - { - id: 'links', - value: [links.namespace], - }, - ], - }, - ]), - - tsPanel.new('Memory Usage (Private Working Set)') - + tsPanel.standardOptions.withUnit('decbytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(windows_container_private_working_set_usage{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('Memory Requests by Namespace') - + table.standardOptions.withUnit('bytes') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(windows_container_private_working_set_usage{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(kube_pod_windows_container_resource_memory_request{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(windows_container_private_working_set_usage{%(clusterLabel)s="$cluster"}) by (namespace) / sum(kube_pod_windows_container_resource_memory_request{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(kube_pod_windows_container_resource_memory_limit{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(windows_container_private_working_set_usage{%(clusterLabel)s="$cluster"}) by (namespace) / sum(kube_pod_windows_container_resource_memory_limit{%(clusterLabel)s="$cluster"}) by (namespace)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'namespace', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - namespace: 5, - 'Value #A': 6, - 'Value #B': 7, - 'Value #C': 8, - 'Value #D': 9, - 'Value #E': 10, - }, - renameByName: { - namespace: 'Namespace', - 'Value #A': 'Memory Usage', - 'Value #B': 'Memory Requests', - 'Value #C': 'Memory Requests %', - 'Value #D': 'Memory Limits', - 'Value #E': 'Memory Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Memory Usage', - }, - properties: [ - { - id: 'unit', - value: 'decbytes', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Memory Requests', - }, - properties: [ - { - id: 'unit', - value: 'decbytes', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Memory Limits', - }, - properties: [ - { - id: 'unit', - value: 'decbytes', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Namespace', - }, - properties: [ - { - id: 'links', - value: [links.namespace], - }, - ], - }, - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sCompute Resources / Cluster(Windows)' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['k8s-resources-windows-cluster.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=24, panelHeight=7)), - - 'k8s-resources-windows-namespace.json': - local panels = [ - tsPanel.new('CPU Usage') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('CPU Quota') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(kube_pod_windows_container_resource_cpu_cores_request{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod) / sum(kube_pod_windows_container_resource_cpu_cores_request{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(kube_pod_windows_container_resource_cpu_cores_limit{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod) / sum(kube_pod_windows_container_resource_cpu_cores_limit{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'pod', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - pod: 5, - 'Value #A': 6, - 'Value #B': 7, - 'Value #C': 8, - 'Value #D': 9, - 'Value #E': 10, - }, - renameByName: { - pod: 'Pod', - 'Value #A': 'CPU Usage', - 'Value #B': 'CPU Requests', - 'Value #C': 'CPU Requests %', - 'Value #D': 'CPU Limits', - 'Value #E': 'CPU Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Pod', - }, - properties: [ - { - id: 'links', - value: [links.pod], - }, - ], - }, - ]), - - tsPanel.new('Memory Usage (Private Working Set)') - + tsPanel.standardOptions.withUnit('decbytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(windows_container_private_working_set_usage{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('Memory Quota') - + table.standardOptions.withUnit('bytes') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(windows_container_private_working_set_usage{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(kube_pod_windows_container_resource_memory_request{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(windows_container_private_working_set_usage{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod) / sum(kube_pod_windows_container_resource_memory_request{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(kube_pod_windows_container_resource_memory_limit{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(windows_container_private_working_set_usage{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod) / sum(kube_pod_windows_container_resource_memory_limit{%(clusterLabel)s="$cluster", namespace="$namespace"}) by (pod)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'pod', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - pod: 5, - 'Value #A': 6, - 'Value #B': 7, - 'Value #C': 8, - 'Value #D': 9, - 'Value #E': 10, - }, - renameByName: { - pod: 'Pod', - 'Value #A': 'Memory Usage', - 'Value #B': 'Memory Requests', - 'Value #C': 'Memory Requests %', - 'Value #D': 'Memory Limits', - 'Value #E': 'Memory Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Pod', - }, - properties: [ - { - id: 'links', - value: [links.pod], - }, - ], - }, - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sCompute Resources / Namespace(Windows)' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['k8s-resources-windows-namespace.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.namespace]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=24, panelHeight=7)), - - 'k8s-resources-windows-pod.json': - local panels = [ - tsPanel.new('CPU Usage') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('CPU Quota') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(kube_pod_windows_container_resource_cpu_cores_request{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container) / sum(kube_pod_windows_container_resource_cpu_cores_request{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(kube_pod_windows_container_resource_cpu_cores_limit{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container) / sum(kube_pod_windows_container_resource_cpu_cores_limit{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'container', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - container: 5, - 'Value #A': 6, - 'Value #B': 7, - 'Value #C': 8, - 'Value #D': 9, - 'Value #E': 10, - }, - renameByName: { - container: 'Container', - 'Value #A': 'CPU Usage', - 'Value #B': 'CPU Requests', - 'Value #C': 'CPU Requests %', - 'Value #D': 'CPU Limits', - 'Value #E': 'CPU Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - { - matcher: { - id: 'byName', - options: 'Namespace', - }, - properties: [ - { - id: 'links', - value: [links.namespace], - }, - ], - }, - ]), - - tsPanel.new('Memory Usage') - + tsPanel.standardOptions.withUnit('decbytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum(windows_container_private_working_set_usage{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config - ) - + prometheus.withLegendFormat('__auto'), - ]), - - table.new('Memory Quota') - + table.standardOptions.withUnit('bytes') - + table.queryOptions.withTargets([ - prometheus.new('${datasource}', 'sum(windows_container_private_working_set_usage{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(kube_pod_windows_container_resource_memory_request{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(windows_container_private_working_set_usage{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container) / sum(kube_pod_windows_container_resource_memory_request{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(kube_pod_windows_container_resource_memory_limit{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - - prometheus.new('${datasource}', 'sum(windows_container_private_working_set_usage{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container) / sum(kube_pod_windows_container_resource_memory_limit{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}) by (container)' % $._config) - + prometheus.withInstant(true) - + prometheus.withFormat('table'), - ]) - - + table.queryOptions.withTransformations([ - table.queryOptions.transformation.withId('joinByField') - + table.queryOptions.transformation.withOptions({ - byField: 'container', - mode: 'outer', - }), - - table.queryOptions.transformation.withId('organize') - + table.queryOptions.transformation.withOptions({ - excludeByName: { - Time: true, - 'Time 1': true, - 'Time 2': true, - 'Time 3': true, - 'Time 4': true, - 'Time 5': true, - }, - indexByName: { - 'Time 1': 0, - 'Time 2': 1, - 'Time 3': 2, - 'Time 4': 3, - 'Time 5': 4, - container: 5, - 'Value #A': 6, - 'Value #B': 7, - 'Value #C': 8, - 'Value #D': 9, - 'Value #E': 10, - }, - renameByName: { - container: 'Container', - 'Value #A': 'Memory Usage', - 'Value #B': 'Memory Requests', - 'Value #C': 'Memory Requests %', - 'Value #D': 'Memory Limits', - 'Value #E': 'Memory Limits %', - }, - }), - ]) - - + table.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/%/', - }, - properties: [ - { - id: 'unit', - value: 'percentunit', - }, - ], - }, - ]), - - tsPanel.new('Network I/O') - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sort_desc(sum by (container) (rate(windows_container_network_received_bytes_total{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[1m])))' % $._config - ) - + prometheus.withLegendFormat('Received : {{ container }}'), - - prometheus.new( - '${datasource}', - 'sort_desc(sum by (container) (rate(windows_container_network_transmitted_bytes_total{%(clusterLabel)s="$cluster", namespace="$namespace", pod="$pod"}[1m])))' % $._config - ) - + prometheus.withLegendFormat('Transmitted : {{ container }}'), - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sCompute Resources / Pod(Windows)' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['k8s-resources-windows-pod.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.namespace, variables.pod]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=24, panelHeight=7)), - - 'k8s-windows-cluster-rsrc-use.json': - local panels = [ - tsPanel.new('CPU Utilisation') - + tsPanel.gridPos.withW(24) - + tsPanel.standardOptions.withUnit('percentunit') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'node:windows_node_cpu_utilisation:avg1m{%(clusterLabel)s="$cluster"} * node:windows_node_num_cpu:sum{%(clusterLabel)s="$cluster"} / scalar(sum(node:windows_node_num_cpu:sum{%(clusterLabel)s="$cluster"}))' % $._config - ) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('Memory Utilisation') - + tsPanel.standardOptions.withUnit('percentunit') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'node:windows_node_memory_utilisation:ratio{%(clusterLabel)s="$cluster"}' % $._config - ) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('Memory Saturation (Swap I/O Pages)') - + tsPanel.standardOptions.withUnit('short') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'node:windows_node_memory_swap_io_pages:irate{%(clusterLabel)s="$cluster"}' % $._config - ) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('Disk IO Utilisation') - + tsPanel.gridPos.withW(24) - + tsPanel.standardOptions.withUnit('percentunit') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'node:windows_node_disk_utilisation:avg_irate{%(clusterLabel)s="$cluster"} / scalar(node:windows_node:sum{%(clusterLabel)s="$cluster"})' % $._config - ) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('Net Utilisation (Transmitted)') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'node:windows_node_net_utilisation:sum_irate{%(clusterLabel)s="$cluster"}' % $._config - ) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('Net Utilisation (Dropped)') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'node:windows_node_net_saturation:sum_irate{%(clusterLabel)s="$cluster"}' % $._config - ) - + prometheus.withLegendFormat('{{instance}}'), - ]), - - tsPanel.new('Disk Capacity') - + tsPanel.gridPos.withW(24) - + tsPanel.standardOptions.withUnit('percentunit') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum by (instance)(node:windows_node_filesystem_usage:{%(clusterLabel)s="$cluster"})' % $._config - ) - + prometheus.withLegendFormat('{{instance}}'), - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sUSE Method / Cluster(Windows)' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['k8s-windows-cluster-rsrc-use.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=12, panelHeight=7)), - - 'k8s-windows-node-rsrc-use.json': - local panels = [ - tsPanel.new('CPU Utilisation') - + tsPanel.standardOptions.withUnit('percentunit') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'node:windows_node_cpu_utilisation:avg1m{%(clusterLabel)s="$cluster", instance="$instance"}' % $._config - ) - + prometheus.withLegendFormat('Utilisation'), - ]), - - tsPanel.new('CPU Usage Per Core') - + tsPanel.standardOptions.withUnit('percentunit') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'sum by (core) (irate(windows_cpu_time_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, mode!="idle", instance="$instance"}[%(grafanaIntervalVar)s]))' % $._config - ) - + prometheus.withLegendFormat('{{core}}'), - ]), - - tsPanel.new('Memory Utilisation %') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('percentunit') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'node:windows_node_memory_utilisation:{%(clusterLabel)s="$cluster", instance="$instance"}' % $._config - ) - + prometheus.withLegendFormat('Memory'), - ]), - - tsPanel.new('Memory Usage') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - ||| - max( - windows_os_visible_memory_bytes{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"} - - windows_memory_available_bytes{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"} - ) - ||| % $._config - ) - + prometheus.withLegendFormat('memory used'), - - prometheus.new( - '${datasource}', - 'max(node:windows_node_memory_totalCached_bytes:sum{%(clusterLabel)s="$cluster", instance="$instance"})' % $._config - ) - + prometheus.withLegendFormat('memory cached'), - - prometheus.new( - '${datasource}', - 'max(windows_memory_available_bytes{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"})' % $._config - ) - + prometheus.withLegendFormat('memory free'), - ]), - - tsPanel.new('Memory Saturation (Swap I/O) Pages') - + tsPanel.gridPos.withW(8) - + tsPanel.standardOptions.withUnit('short') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'node:windows_node_memory_swap_io_pages:irate{%(clusterLabel)s="$cluster", instance="$instance"}' % $._config - ) - + prometheus.withLegendFormat('Swap IO'), - ]), - - tsPanel.new('Disk IO Utilisation') - + tsPanel.standardOptions.withUnit('percentunit') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'node:windows_node_disk_utilisation:avg_irate{%(clusterLabel)s="$cluster", instance="$instance"}' % $._config - ) - + prometheus.withLegendFormat('Utilisation'), - ]), - - tsPanel.new('Disk IO') - + tsPanel.standardOptions.withUnit('bytes') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'max(rate(windows_logical_disk_read_bytes_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"}[2m]))' % $._config - ) - + prometheus.withLegendFormat('read'), - - prometheus.new( - '${datasource}', - 'max(rate(windows_logical_disk_write_bytes_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"}[2m]))' % $._config - ) - + prometheus.withLegendFormat('written'), - - prometheus.new( - '${datasource}', - 'max(rate(windows_logical_disk_read_seconds_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"}[2m]) + rate(windows_logical_disk_write_seconds_total{%(clusterLabel)s="$cluster", %(windowsExporterSelector)s, instance="$instance"}[2m]))' % $._config - ) - + prometheus.withLegendFormat('io time'), - ]) - + tsPanel.standardOptions.withOverrides([ - { - matcher: { - id: 'byRegexp', - options: '/io time/', - }, - properties: [ - { - id: 'unit', - value: 'ms', - }, - ], - }, - ]), - - tsPanel.new('Disk Utilisation') - + tsPanel.gridPos.withW(24) - + tsPanel.standardOptions.withUnit('percentunit') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'node:windows_node_filesystem_usage:{%(clusterLabel)s="$cluster", instance="$instance"}' % $._config - ) - + prometheus.withLegendFormat('{{volume}}'), - ]), - - tsPanel.new('Net Utilisation (Transmitted)') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'node:windows_node_net_utilisation:sum_irate{%(clusterLabel)s="$cluster", instance="$instance"}' % $._config - ) - + prometheus.withLegendFormat('Utilisation'), - ]), - - tsPanel.new('Net Saturation (Dropped)') - + tsPanel.standardOptions.withUnit('Bps') - + tsPanel.queryOptions.withTargets([ - prometheus.new( - '${datasource}', - 'node:windows_node_net_saturation:sum_irate{%(clusterLabel)s="$cluster", instance="$instance"}' % $._config - ) - + prometheus.withLegendFormat('Saturation'), - ]), - ]; - - g.dashboard.new('%(dashboardNamePrefix)sUSE Method / Node(Windows)' % $._config.grafanaK8s) - + g.dashboard.withUid($._config.grafanaDashboardIDs['k8s-windows-node-rsrc-use.json']) - + g.dashboard.withTags($._config.grafanaK8s.dashboardTags) - + g.dashboard.withEditable(false) - + g.dashboard.time.withFrom('now-1h') - + g.dashboard.time.withTo('now') - + g.dashboard.withRefresh($._config.grafanaK8s.refresh) - + g.dashboard.withVariables([variables.datasource, variables.cluster, variables.instance]) - + g.dashboard.withPanels(g.util.grid.wrapPanels(panels, panelWidth=12, panelHeight=7)), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/jsonnetfile.json deleted file mode 100644 index 2d56d9124..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/jsonnetfile.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet.git", - "subdir": "gen/grafonnet-latest" - } - }, - "version": "main" - } - ], - "legacyImports": false -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/absent_alert.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/absent_alert.libsonnet deleted file mode 100644 index 93b326e3f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/absent_alert.libsonnet +++ /dev/null @@ -1,18 +0,0 @@ -{ - local absentAlert = self, - componentName:: error 'must provide component name', - selector:: error 'must provide selector for component', - - alert: '%sDown' % absentAlert.componentName, - expr: ||| - absent(up{%s} == 1) - ||| % absentAlert.selector, - 'for': '15m', - labels: { - severity: 'critical', - }, - annotations: { - description: '%s has disappeared from Prometheus target discovery.' % absentAlert.componentName, - summary: 'Target disappeared from Prometheus target discovery.', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet deleted file mode 100644 index dae01a8ef..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet +++ /dev/null @@ -1,23 +0,0 @@ -local utils = import 'utils.libsonnet'; - -local lower(x) = - local cp(c) = std.codepoint(c); - local lowerLetter(c) = - if cp(c) >= 65 && cp(c) < 91 - then std.char(cp(c) + 32) - else c; - std.join('', std.map(lowerLetter, std.stringChars(x))); - -{ - _config+:: { - runbookURLPattern: 'https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-%s', - }, - - prometheusAlerts+:: - local addRunbookURL(rule) = rule { - [if 'alert' in rule && !('runbook_url' in rule.annotations) then 'annotations']+: { - runbook_url: $._config.runbookURLPattern % lower(rule.alert), - }, - }; - utils.mapRuleGroups(addRunbookURL), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/alerts.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/alerts.jsonnet deleted file mode 100644 index d396a38cd..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/alerts.jsonnet +++ /dev/null @@ -1 +0,0 @@ -std.manifestYamlDoc((import '../mixin.libsonnet').prometheusAlerts) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/dashboards.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/dashboards.jsonnet deleted file mode 100644 index dadaebe9b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/dashboards.jsonnet +++ /dev/null @@ -1,6 +0,0 @@ -local dashboards = (import '../mixin.libsonnet').grafanaDashboards; - -{ - [name]: dashboards[name] - for name in std.objectFields(dashboards) -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/rules.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/rules.jsonnet deleted file mode 100644 index 2d7fa91f7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/rules.jsonnet +++ /dev/null @@ -1 +0,0 @@ -std.manifestYamlDoc((import '../mixin.libsonnet').prometheusRules) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/utils.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/utils.libsonnet deleted file mode 100644 index a8c4df41c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/lib/utils.libsonnet +++ /dev/null @@ -1,18 +0,0 @@ -{ - mapRuleGroups(f): { - groups: [ - group { - rules: [ - f(rule) - for rule in super.rules - ], - } - for group in super.groups - ], - }, - - humanizeSeconds(s):: - if s > 60 * 60 * 24 - then '%.1f days' % (s / 60 / 60 / 24) - else '%.1f hours' % (s / 60 / 60), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/mixin.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/mixin.libsonnet deleted file mode 100644 index 152721db9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/mixin.libsonnet +++ /dev/null @@ -1,4 +0,0 @@ -(import 'alerts/alerts.libsonnet') + -(import 'dashboards/dashboards.libsonnet') + -(import 'rules/rules.libsonnet') + -(import 'config.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/apps.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/apps.libsonnet deleted file mode 100644 index 7cd9c0804..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/apps.libsonnet +++ /dev/null @@ -1,266 +0,0 @@ -{ - _config+:: { - cadvisorSelector: 'job="cadvisor"', - kubeStateMetricsSelector: 'job="kube-state-metrics"', - }, - - prometheusRules+:: { - groups+: [ - { - name: 'k8s.rules.container_cpu_usage_seconds_total', - rules: [ - { - // Reduces cardinality of this timeseries by #cores, which makes it - // more useable in dashboards. Also, allows us to do things like - // quantile_over_time(...) which would otherwise not be possible. - record: 'node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate', - expr: ||| - sum by (%(clusterLabel)s, namespace, pod, container) ( - irate(container_cpu_usage_seconds_total{%(cadvisorSelector)s, image!=""}[5m]) - ) * on (%(clusterLabel)s, namespace, pod) group_left(node) topk by (%(clusterLabel)s, namespace, pod) ( - 1, max by(%(clusterLabel)s, namespace, pod, node) (kube_pod_info{node!=""}) - ) - ||| % $._config, - }, - ], - }, - { - name: 'k8s.rules.container_memory_working_set_bytes', - rules: [ - { - record: 'node_namespace_pod_container:container_memory_working_set_bytes', - expr: ||| - container_memory_working_set_bytes{%(cadvisorSelector)s, image!=""} - * on (%(clusterLabel)s, namespace, pod) group_left(node) topk by(%(clusterLabel)s, namespace, pod) (1, - max by(%(clusterLabel)s, namespace, pod, node) (kube_pod_info{node!=""}) - ) - ||| % $._config, - }, - ], - }, - { - name: 'k8s.rules.container_memory_rss', - rules: [ - { - record: 'node_namespace_pod_container:container_memory_rss', - expr: ||| - container_memory_rss{%(cadvisorSelector)s, image!=""} - * on (%(clusterLabel)s, namespace, pod) group_left(node) topk by(%(clusterLabel)s, namespace, pod) (1, - max by(%(clusterLabel)s, namespace, pod, node) (kube_pod_info{node!=""}) - ) - ||| % $._config, - }, - ], - }, - { - name: 'k8s.rules.container_memory_cache', - rules: [ - { - record: 'node_namespace_pod_container:container_memory_cache', - expr: ||| - container_memory_cache{%(cadvisorSelector)s, image!=""} - * on (%(clusterLabel)s, namespace, pod) group_left(node) topk by(%(clusterLabel)s, namespace, pod) (1, - max by(%(clusterLabel)s, namespace, pod, node) (kube_pod_info{node!=""}) - ) - ||| % $._config, - }, - ], - }, - { - name: 'k8s.rules.container_memory_swap', - rules: [ - { - record: 'node_namespace_pod_container:container_memory_swap', - expr: ||| - container_memory_swap{%(cadvisorSelector)s, image!=""} - * on (%(clusterLabel)s, namespace, pod) group_left(node) topk by(%(clusterLabel)s, namespace, pod) (1, - max by(%(clusterLabel)s, namespace, pod, node) (kube_pod_info{node!=""}) - ) - ||| % $._config, - }, - ], - }, - { - name: 'k8s.rules.container_memory_requests', - rules: [ - { - record: 'cluster:namespace:pod_memory:active:kube_pod_container_resource_requests', - expr: ||| - kube_pod_container_resource_requests{resource="memory",%(kubeStateMetricsSelector)s} * on (namespace, pod, %(clusterLabel)s) - group_left() max by (namespace, pod, %(clusterLabel)s) ( - (kube_pod_status_phase{phase=~"Pending|Running"} == 1) - ) - ||| % $._config, - }, - { - record: 'namespace_memory:kube_pod_container_resource_requests:sum', - expr: ||| - sum by (namespace, %(clusterLabel)s) ( - sum by (namespace, pod, %(clusterLabel)s) ( - max by (namespace, pod, container, %(clusterLabel)s) ( - kube_pod_container_resource_requests{resource="memory",%(kubeStateMetricsSelector)s} - ) * on(namespace, pod, %(clusterLabel)s) group_left() max by (namespace, pod, %(clusterLabel)s) ( - kube_pod_status_phase{phase=~"Pending|Running"} == 1 - ) - ) - ) - ||| % $._config, - }, - ], - }, - { - name: 'k8s.rules.container_cpu_requests', - rules: [ - { - record: 'cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests', - expr: ||| - kube_pod_container_resource_requests{resource="cpu",%(kubeStateMetricsSelector)s} * on (namespace, pod, %(clusterLabel)s) - group_left() max by (namespace, pod, %(clusterLabel)s) ( - (kube_pod_status_phase{phase=~"Pending|Running"} == 1) - ) - ||| % $._config, - }, - { - record: 'namespace_cpu:kube_pod_container_resource_requests:sum', - expr: ||| - sum by (namespace, %(clusterLabel)s) ( - sum by (namespace, pod, %(clusterLabel)s) ( - max by (namespace, pod, container, %(clusterLabel)s) ( - kube_pod_container_resource_requests{resource="cpu",%(kubeStateMetricsSelector)s} - ) * on(namespace, pod, %(clusterLabel)s) group_left() max by (namespace, pod, %(clusterLabel)s) ( - kube_pod_status_phase{phase=~"Pending|Running"} == 1 - ) - ) - ) - ||| % $._config, - }, - ], - }, - { - name: 'k8s.rules.container_memory_limits', - rules: [ - { - record: 'cluster:namespace:pod_memory:active:kube_pod_container_resource_limits', - expr: ||| - kube_pod_container_resource_limits{resource="memory",%(kubeStateMetricsSelector)s} * on (namespace, pod, %(clusterLabel)s) - group_left() max by (namespace, pod, %(clusterLabel)s) ( - (kube_pod_status_phase{phase=~"Pending|Running"} == 1) - ) - ||| % $._config, - }, - { - record: 'namespace_memory:kube_pod_container_resource_limits:sum', - expr: ||| - sum by (namespace, %(clusterLabel)s) ( - sum by (namespace, pod, %(clusterLabel)s) ( - max by (namespace, pod, container, %(clusterLabel)s) ( - kube_pod_container_resource_limits{resource="memory",%(kubeStateMetricsSelector)s} - ) * on(namespace, pod, %(clusterLabel)s) group_left() max by (namespace, pod, %(clusterLabel)s) ( - kube_pod_status_phase{phase=~"Pending|Running"} == 1 - ) - ) - ) - ||| % $._config, - }, - ], - }, - { - name: 'k8s.rules.container_cpu_limits', - rules: [ - { - record: 'cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits', - expr: ||| - kube_pod_container_resource_limits{resource="cpu",%(kubeStateMetricsSelector)s} * on (namespace, pod, %(clusterLabel)s) - group_left() max by (namespace, pod, %(clusterLabel)s) ( - (kube_pod_status_phase{phase=~"Pending|Running"} == 1) - ) - ||| % $._config, - }, - { - record: 'namespace_cpu:kube_pod_container_resource_limits:sum', - expr: ||| - sum by (namespace, %(clusterLabel)s) ( - sum by (namespace, pod, %(clusterLabel)s) ( - max by (namespace, pod, container, %(clusterLabel)s) ( - kube_pod_container_resource_limits{resource="cpu",%(kubeStateMetricsSelector)s} - ) * on(namespace, pod, %(clusterLabel)s) group_left() max by (namespace, pod, %(clusterLabel)s) ( - kube_pod_status_phase{phase=~"Pending|Running"} == 1 - ) - ) - ) - ||| % $._config, - }, - ], - }, - { - name: 'k8s.rules.pod_owner', - rules: [ - // workload aggregation for deployments - { - record: 'namespace_workload_pod:kube_pod_owner:relabel', - expr: ||| - max by (%(clusterLabel)s, namespace, workload, pod) ( - label_replace( - label_replace( - kube_pod_owner{%(kubeStateMetricsSelector)s, owner_kind="ReplicaSet"}, - "replicaset", "$1", "owner_name", "(.*)" - ) * on(replicaset, namespace) group_left(owner_name) topk by(replicaset, namespace) ( - 1, max by (replicaset, namespace, owner_name) ( - kube_replicaset_owner{%(kubeStateMetricsSelector)s} - ) - ), - "workload", "$1", "owner_name", "(.*)" - ) - ) - ||| % $._config, - labels: { - workload_type: 'deployment', - }, - }, - { - record: 'namespace_workload_pod:kube_pod_owner:relabel', - expr: ||| - max by (%(clusterLabel)s, namespace, workload, pod) ( - label_replace( - kube_pod_owner{%(kubeStateMetricsSelector)s, owner_kind="DaemonSet"}, - "workload", "$1", "owner_name", "(.*)" - ) - ) - ||| % $._config, - labels: { - workload_type: 'daemonset', - }, - }, - { - record: 'namespace_workload_pod:kube_pod_owner:relabel', - expr: ||| - max by (%(clusterLabel)s, namespace, workload, pod) ( - label_replace( - kube_pod_owner{%(kubeStateMetricsSelector)s, owner_kind="StatefulSet"}, - "workload", "$1", "owner_name", "(.*)" - ) - ) - ||| % $._config, - labels: { - workload_type: 'statefulset', - }, - }, - { - record: 'namespace_workload_pod:kube_pod_owner:relabel', - expr: ||| - max by (%(clusterLabel)s, namespace, workload, pod) ( - label_replace( - kube_pod_owner{%(kubeStateMetricsSelector)s, owner_kind="Job"}, - "workload", "$1", "owner_name", "(.*)" - ) - ) - ||| % $._config, - labels: { - workload_type: 'job', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-availability.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-availability.libsonnet deleted file mode 100644 index 18c9e4ef7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-availability.libsonnet +++ /dev/null @@ -1,165 +0,0 @@ -{ - prometheusRules+:: { - local SLODays = $._config.SLOs.apiserver.days + 'd', - local verbs = [ - { type: 'read', selector: $._config.kubeApiserverReadSelector }, - { type: 'write', selector: $._config.kubeApiserverWriteSelector }, - ], - - groups+: [ - { - name: 'kube-apiserver-availability.rules', - interval: '3m', - rules: [ - { - record: 'code_verb:apiserver_request_total:increase%s' % SLODays, - expr: ||| - avg_over_time(code_verb:apiserver_request_total:increase1h[%s]) * 24 * %d - ||| % [SLODays, $._config.SLOs.apiserver.days], - }, - ] + [ - { - record: 'code:apiserver_request_total:increase%s' % SLODays, - expr: ||| - sum by (%s, code) (code_verb:apiserver_request_total:increase%s{%s}) - ||| % [$._config.clusterLabel, SLODays, verb.selector], - labels: { - verb: verb.type, - }, - } - for verb in verbs - ] + [ - { - record: 'cluster_verb_scope:apiserver_request_sli_duration_seconds_count:increase1h', - expr: ||| - sum by (%(clusterLabel)s, verb, scope) (increase(apiserver_request_sli_duration_seconds_count{%(kubeApiserverSelector)s}[1h])) - ||| % $._config, - }, - { - record: 'cluster_verb_scope:apiserver_request_sli_duration_seconds_count:increase%s' % SLODays, - expr: ||| - sum by (%s, verb, scope) (avg_over_time(cluster_verb_scope:apiserver_request_sli_duration_seconds_count:increase1h[%s]) * 24 * %s) - ||| % [$._config.clusterLabel, SLODays, $._config.SLOs.apiserver.days], - }, - { - record: 'cluster_verb_scope_le:apiserver_request_sli_duration_seconds_bucket:increase1h', - expr: ||| - sum by (%(clusterLabel)s, verb, scope, le) (increase(apiserver_request_sli_duration_seconds_bucket[1h])) - ||| % $._config, - }, - { - record: 'cluster_verb_scope_le:apiserver_request_sli_duration_seconds_bucket:increase%s' % SLODays, - expr: ||| - sum by (%s, verb, scope, le) (avg_over_time(cluster_verb_scope_le:apiserver_request_sli_duration_seconds_bucket:increase1h[%s]) * 24 * %s) - ||| % [$._config.clusterLabel, SLODays, $._config.SLOs.apiserver.days], - }, - { - record: 'apiserver_request:availability%s' % SLODays, - expr: ||| - 1 - ( - ( - # write too slow - sum by (%(clusterLabel)s) (cluster_verb_scope:apiserver_request_sli_duration_seconds_count:increase%(SLODays)s{%(kubeApiserverWriteSelector)s}) - - - sum by (%(clusterLabel)s) (cluster_verb_scope_le:apiserver_request_sli_duration_seconds_bucket:increase%(SLODays)s{%(kubeApiserverWriteSelector)s,le="%(kubeApiserverWriteLatency)s"}) - ) + - ( - # read too slow - sum by (%(clusterLabel)s) (cluster_verb_scope:apiserver_request_sli_duration_seconds_count:increase%(SLODays)s{%(kubeApiserverReadSelector)s}) - - - ( - ( - sum by (%(clusterLabel)s) (cluster_verb_scope_le:apiserver_request_sli_duration_seconds_bucket:increase%(SLODays)s{%(kubeApiserverReadSelector)s,scope=~"resource|",le="%(kubeApiserverReadResourceLatency)s"}) - or - vector(0) - ) - + - sum by (%(clusterLabel)s) (cluster_verb_scope_le:apiserver_request_sli_duration_seconds_bucket:increase%(SLODays)s{%(kubeApiserverReadSelector)s,scope="namespace",le="%(kubeApiserverReadNamespaceLatency)s"}) - + - sum by (%(clusterLabel)s) (cluster_verb_scope_le:apiserver_request_sli_duration_seconds_bucket:increase%(SLODays)s{%(kubeApiserverReadSelector)s,scope="cluster",le="%(kubeApiserverReadClusterLatency)s"}) - ) - ) + - # errors - sum by (%(clusterLabel)s) (code:apiserver_request_total:increase%(SLODays)s{code=~"5.."} or vector(0)) - ) - / - sum by (%(clusterLabel)s) (code:apiserver_request_total:increase%(SLODays)s) - ||| % ($._config { SLODays: SLODays }), - labels: { - verb: 'all', - }, - }, - { - record: 'apiserver_request:availability%s' % SLODays, - expr: ||| - 1 - ( - sum by (%(clusterLabel)s) (cluster_verb_scope:apiserver_request_sli_duration_seconds_count:increase%(SLODays)s{%(kubeApiserverReadSelector)s}) - - - ( - # too slow - ( - sum by (%(clusterLabel)s) (cluster_verb_scope_le:apiserver_request_sli_duration_seconds_bucket:increase%(SLODays)s{%(kubeApiserverReadSelector)s,scope=~"resource|",le="%(kubeApiserverReadResourceLatency)s"}) - or - vector(0) - ) - + - sum by (%(clusterLabel)s) (cluster_verb_scope_le:apiserver_request_sli_duration_seconds_bucket:increase%(SLODays)s{%(kubeApiserverReadSelector)s,scope="namespace",le="%(kubeApiserverReadNamespaceLatency)s"}) - + - sum by (%(clusterLabel)s) (cluster_verb_scope_le:apiserver_request_sli_duration_seconds_bucket:increase%(SLODays)s{%(kubeApiserverReadSelector)s,scope="cluster",le="%(kubeApiserverReadClusterLatency)s"}) - ) - + - # errors - sum by (%(clusterLabel)s) (code:apiserver_request_total:increase%(SLODays)s{verb="read",code=~"5.."} or vector(0)) - ) - / - sum by (%(clusterLabel)s) (code:apiserver_request_total:increase%(SLODays)s{verb="read"}) - ||| % ($._config { SLODays: SLODays, days: $._config.SLOs.apiserver.days }), - labels: { - verb: 'read', - }, - }, - { - record: 'apiserver_request:availability%s' % SLODays, - expr: ||| - 1 - ( - ( - # too slow - sum by (%(clusterLabel)s) (cluster_verb_scope:apiserver_request_sli_duration_seconds_count:increase%(SLODays)s{%(kubeApiserverWriteSelector)s}) - - - sum by (%(clusterLabel)s) (cluster_verb_scope_le:apiserver_request_sli_duration_seconds_bucket:increase%(SLODays)s{%(kubeApiserverWriteSelector)s,le="%(kubeApiserverWriteLatency)s"}) - ) - + - # errors - sum by (%(clusterLabel)s) (code:apiserver_request_total:increase%(SLODays)s{verb="write",code=~"5.."} or vector(0)) - ) - / - sum by (%(clusterLabel)s) (code:apiserver_request_total:increase%(SLODays)s{verb="write"}) - ||| % ($._config { SLODays: SLODays, days: $._config.SLOs.apiserver.days }), - labels: { - verb: 'write', - }, - }, - ] + [ - { - record: 'code_resource:apiserver_request_total:rate5m', - expr: ||| - sum by (%s,code,resource) (rate(apiserver_request_total{%s}[5m])) - ||| % [$._config.clusterLabel, std.join(',', [$._config.kubeApiserverSelector, verb.selector])], - labels: { - verb: verb.type, - }, - } - for verb in verbs - ] + [ - { - record: 'code_verb:apiserver_request_total:increase1h', - expr: ||| - sum by (%s, code, verb) (increase(apiserver_request_total{%s,verb=~"LIST|GET|POST|PUT|PATCH|DELETE",code=~"%s"}[1h])) - ||| % [$._config.clusterLabel, $._config.kubeApiserverSelector, code], - } - for code in ['2..', '3..', '4..', '5..'] - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-burnrate.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-burnrate.libsonnet deleted file mode 100644 index 246a5015d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-burnrate.libsonnet +++ /dev/null @@ -1,93 +0,0 @@ -{ - prometheusRules+:: { - groups+: [ - { - name: 'kube-apiserver-burnrate.rules', - rules: [ - { - record: 'apiserver_request:burnrate%(window)s' % w, - expr: ||| - ( - ( - # too slow - sum by (%(clusterLabel)s) (rate(apiserver_request_sli_duration_seconds_count{%(kubeApiserverSelector)s,%(kubeApiserverReadSelector)s,%(kubeApiserverNonStreamingSelector)s}[%(window)s])) - - - ( - ( - sum by (%(clusterLabel)s) (rate(apiserver_request_sli_duration_seconds_bucket{%(kubeApiserverSelector)s,%(kubeApiserverReadSelector)s,%(kubeApiserverNonStreamingSelector)s,scope=~"resource|",le="%(kubeApiserverReadResourceLatency)s"}[%(window)s])) - or - vector(0) - ) - + - sum by (%(clusterLabel)s) (rate(apiserver_request_sli_duration_seconds_bucket{%(kubeApiserverSelector)s,%(kubeApiserverReadSelector)s,%(kubeApiserverNonStreamingSelector)s,scope="namespace",le="%(kubeApiserverReadNamespaceLatency)s"}[%(window)s])) - + - sum by (%(clusterLabel)s) (rate(apiserver_request_sli_duration_seconds_bucket{%(kubeApiserverSelector)s,%(kubeApiserverReadSelector)s,%(kubeApiserverNonStreamingSelector)s,scope="cluster",le="%(kubeApiserverReadClusterLatency)s"}[%(window)s])) - ) - ) - + - # errors - sum by (%(clusterLabel)s) (rate(apiserver_request_total{%(kubeApiserverSelector)s,%(kubeApiserverReadSelector)s,code=~"5.."}[%(window)s])) - ) - / - sum by (%(clusterLabel)s) (rate(apiserver_request_total{%(kubeApiserverSelector)s,%(kubeApiserverReadSelector)s}[%(window)s])) - ||| % { - clusterLabel: $._config.clusterLabel, - window: w, - kubeApiserverSelector: $._config.kubeApiserverSelector, - kubeApiserverReadSelector: $._config.kubeApiserverReadSelector, - kubeApiserverNonStreamingSelector: $._config.kubeApiserverNonStreamingSelector, - kubeApiserverReadResourceLatency: $._config.kubeApiserverReadResourceLatency, - kubeApiserverReadNamespaceLatency: $._config.kubeApiserverReadNamespaceLatency, - kubeApiserverReadClusterLatency: $._config.kubeApiserverReadClusterLatency, - }, - labels: { - verb: 'read', - }, - } - for w in std.set([ // Get the unique array of short and long window rates - w.short - for w in $._config.SLOs.apiserver.windows - ] + [ - w.long - for w in $._config.SLOs.apiserver.windows - ]) - ] + [ - { - record: 'apiserver_request:burnrate%(window)s' % w, - expr: ||| - ( - ( - # too slow - sum by (%(clusterLabel)s) (rate(apiserver_request_sli_duration_seconds_count{%(kubeApiserverSelector)s,%(kubeApiserverWriteSelector)s,%(kubeApiserverNonStreamingSelector)s}[%(window)s])) - - - sum by (%(clusterLabel)s) (rate(apiserver_request_sli_duration_seconds_bucket{%(kubeApiserverSelector)s,%(kubeApiserverWriteSelector)s,%(kubeApiserverNonStreamingSelector)s,le="%(kubeApiserverWriteLatency)s"}[%(window)s])) - ) - + - sum by (%(clusterLabel)s) (rate(apiserver_request_total{%(kubeApiserverSelector)s,%(kubeApiserverWriteSelector)s,code=~"5.."}[%(window)s])) - ) - / - sum by (%(clusterLabel)s) (rate(apiserver_request_total{%(kubeApiserverSelector)s,%(kubeApiserverWriteSelector)s}[%(window)s])) - ||| % { - clusterLabel: $._config.clusterLabel, - window: w, - kubeApiserverSelector: $._config.kubeApiserverSelector, - kubeApiserverWriteSelector: $._config.kubeApiserverWriteSelector, - kubeApiserverNonStreamingSelector: $._config.kubeApiserverNonStreamingSelector, - kubeApiserverWriteLatency: $._config.kubeApiserverWriteLatency, - }, - labels: { - verb: 'write', - }, - } - for w in std.set([ // Get the unique array of short and long window rates - w.short - for w in $._config.SLOs.apiserver.windows - ] + [ - w.long - for w in $._config.SLOs.apiserver.windows - ]) - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-config.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-config.libsonnet deleted file mode 100644 index ad0a013bd..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-config.libsonnet +++ /dev/null @@ -1,16 +0,0 @@ -{ - _config+:: { - kubeApiserverSelector: 'job="kube-apiserver"', - podLabel: 'pod', - kubeApiserverReadSelector: 'verb=~"LIST|GET"', - kubeApiserverWriteSelector: 'verb=~"POST|PUT|PATCH|DELETE"', - kubeApiserverNonStreamingSelector: 'subresource!~"proxy|attach|log|exec|portforward"', - // These are buckets that exist on the apiserver_request_sli_duration_seconds_bucket histogram. - // They are what the Kubernetes SIG Scalability is using to measure availability of Kubernetes clusters. - // If you want to change these, make sure the "le" buckets exist on the histogram! - kubeApiserverReadResourceLatency: '1', - kubeApiserverReadNamespaceLatency: '5', - kubeApiserverReadClusterLatency: '30', - kubeApiserverWriteLatency: '1', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-histogram.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-histogram.libsonnet deleted file mode 100644 index 152a847a0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver-histogram.libsonnet +++ /dev/null @@ -1,28 +0,0 @@ -{ - prometheusRules+:: { - local verbs = [ - { type: 'read', selector: $._config.kubeApiserverReadSelector }, - { type: 'write', selector: $._config.kubeApiserverWriteSelector }, - ], - - groups+: [ - { - name: 'kube-apiserver-histogram.rules', - rules: - [ - { - record: 'cluster_quantile:apiserver_request_sli_duration_seconds:histogram_quantile', - expr: ||| - histogram_quantile(0.99, sum by (%s, le, resource) (rate(apiserver_request_sli_duration_seconds_bucket{%s}[5m]))) > 0 - ||| % [$._config.clusterLabel, std.join(',', [$._config.kubeApiserverSelector, verb.selector, $._config.kubeApiserverNonStreamingSelector])], - labels: { - verb: verb.type, - quantile: '0.99', - }, - } - for verb in verbs - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver.libsonnet deleted file mode 100644 index 2164165a6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_apiserver.libsonnet +++ /dev/null @@ -1,4 +0,0 @@ -(import 'kube_apiserver-config.libsonnet') + -(import 'kube_apiserver-availability.libsonnet') + -(import 'kube_apiserver-burnrate.libsonnet') + -(import 'kube_apiserver-histogram.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_scheduler.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_scheduler.libsonnet deleted file mode 100644 index f319642fb..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kube_scheduler.libsonnet +++ /dev/null @@ -1,31 +0,0 @@ -{ - _config+:: { - kubeSchedulerSelector: 'job="kube-scheduler"', - podLabel: 'pod', - }, - - prometheusRules+:: { - groups+: [ - { - name: 'kube-scheduler.rules', - rules: [ - { - record: 'cluster_quantile:%s:histogram_quantile' % metric, - expr: ||| - histogram_quantile(%(quantile)s, sum(rate(%(metric)s_bucket{%(kubeSchedulerSelector)s}[5m])) without(instance, %(podLabel)s)) - ||| % ({ quantile: quantile, metric: metric } + $._config), - labels: { - quantile: quantile, - }, - } - for quantile in ['0.99', '0.9', '0.5'] - for metric in [ - 'scheduler_e2e_scheduling_duration_seconds', - 'scheduler_scheduling_algorithm_duration_seconds', - 'scheduler_binding_duration_seconds', - ] - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kubelet.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kubelet.libsonnet deleted file mode 100644 index e932a8744..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/kubelet.libsonnet +++ /dev/null @@ -1,25 +0,0 @@ -{ - _config+:: { - kubeletSelector: 'job="kubelet"', - }, - - prometheusRules+:: { - groups+: [ - { - name: 'kubelet.rules', - rules: [ - { - record: 'node_quantile:kubelet_pleg_relist_duration_seconds:histogram_quantile', - expr: ||| - histogram_quantile(%(quantile)s, sum(rate(kubelet_pleg_relist_duration_seconds_bucket{%(kubeletSelector)s}[5m])) by (%(clusterLabel)s, instance, le) * on(%(clusterLabel)s, instance) group_left(node) kubelet_node_name{%(kubeletSelector)s}) - ||| % ({ quantile: quantile } + $._config), - labels: { - quantile: quantile, - }, - } - for quantile in ['0.99', '0.9', '0.5'] - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/node.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/node.libsonnet deleted file mode 100644 index 453e3720b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/node.libsonnet +++ /dev/null @@ -1,79 +0,0 @@ -{ - _config+:: { - kubeStateMetricsSelector: 'job="kube-state-metrics"', - nodeExporterSelector: 'job="node-exporter"', - podLabel: 'pod', - }, - - prometheusRules+:: { - groups+: [ - { - name: 'node.rules', - rules: [ - { - // This rule results in the tuples (node, namespace, instance) => 1. - // It is used to calculate per-node metrics, given namespace & instance. - // We use the topk() aggregator to ensure that each (namespace, - // instance) tuple is only associated to one node and thus avoid - // "many-to-many matching not allowed" errors when joining with - // other timeseries on (namespace, instance). See node:node_num_cpu:sum - // below for instance. - record: 'node_namespace_pod:kube_pod_info:', - expr: ||| - topk by(%(clusterLabel)s, namespace, %(podLabel)s) (1, - max by (%(clusterLabel)s, node, namespace, %(podLabel)s) ( - label_replace(kube_pod_info{%(kubeStateMetricsSelector)s,node!=""}, "%(podLabel)s", "$1", "pod", "(.*)") - )) - ||| % $._config, - }, - { - // This rule gives the number of CPUs per node. - record: 'node:node_num_cpu:sum', - expr: ||| - count by (%(clusterLabel)s, node) ( - node_cpu_seconds_total{mode="idle",%(nodeExporterSelector)s} - * on (%(clusterLabel)s, namespace, %(podLabel)s) group_left(node) - topk by(%(clusterLabel)s, namespace, %(podLabel)s) (1, node_namespace_pod:kube_pod_info:) - ) - ||| % $._config, - }, - // Add separate rules for Available memory, so we can aggregate across clusters in dashboards. - { - record: ':node_memory_MemAvailable_bytes:sum', - expr: ||| - sum( - node_memory_MemAvailable_bytes{%(nodeExporterSelector)s} or - ( - node_memory_Buffers_bytes{%(nodeExporterSelector)s} + - node_memory_Cached_bytes{%(nodeExporterSelector)s} + - node_memory_MemFree_bytes{%(nodeExporterSelector)s} + - node_memory_Slab_bytes{%(nodeExporterSelector)s} - ) - ) by (%(clusterLabel)s) - ||| % $._config, - }, - { - // This rule gives cpu utilization per node. - record: 'node:node_cpu_utilization:ratio_rate5m', - expr: ||| - avg by (%(clusterLabel)s, node) ( - sum without (mode) ( - rate(node_cpu_seconds_total{mode!="idle",mode!="iowait",mode!="steal",%(nodeExporterSelector)s}[5m]) - ) - ) - ||| % $._config, - }, - { - // This rule gives cpu utilization per cluster - record: 'cluster:node_cpu:ratio_rate5m', - expr: ||| - avg by (%(clusterLabel)s) ( - node:node_cpu_utilization:ratio_rate5m - ) - ||| % $._config, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/rules.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/rules.libsonnet deleted file mode 100644 index 4e116d41e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/rules.libsonnet +++ /dev/null @@ -1,5 +0,0 @@ -(import 'kube_apiserver.libsonnet') + -(import 'apps.libsonnet') + -(import 'kube_scheduler.libsonnet') + -(import 'node.libsonnet') + -(import 'kubelet.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/windows.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/windows.libsonnet deleted file mode 100644 index 3e1d4ba8a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/rules/windows.libsonnet +++ /dev/null @@ -1,256 +0,0 @@ -{ - prometheusRules+:: { - groups+: [ - { - name: 'windows.node.rules', - rules: [ - { - // This rule gives the number of windows nodes - record: 'node:windows_node:sum', - expr: ||| - count by (%(clusterLabel)s) ( - windows_system_system_up_time{%(windowsExporterSelector)s} - ) - ||| % $._config, - }, - { - // This rule gives the number of CPUs per node. - record: 'node:windows_node_num_cpu:sum', - expr: ||| - count by (%(clusterLabel)s, instance) (sum by (%(clusterLabel)s, instance, core) ( - windows_cpu_time_total{%(windowsExporterSelector)s} - )) - ||| % $._config, - }, - { - // CPU utilisation is % CPU is not idle. - record: ':windows_node_cpu_utilisation:avg1m', - expr: ||| - 1 - avg by (%(clusterLabel)s) (rate(windows_cpu_time_total{%(windowsExporterSelector)s,mode="idle"}[1m])) - ||| % $._config, - }, - { - // CPU utilisation is % CPU is not idle. - record: 'node:windows_node_cpu_utilisation:avg1m', - expr: ||| - 1 - avg by (%(clusterLabel)s, instance) ( - rate(windows_cpu_time_total{%(windowsExporterSelector)s,mode="idle"}[1m]) - ) - ||| % $._config, - }, - { - record: ':windows_node_memory_utilisation:', - expr: ||| - 1 - - sum by (%(clusterLabel)s) (windows_memory_available_bytes{%(windowsExporterSelector)s}) - / - sum by (%(clusterLabel)s) (windows_os_visible_memory_bytes{%(windowsExporterSelector)s}) - ||| % $._config, - }, - // Add separate rules for Free & Total, so we can aggregate across clusters - // in dashboards. - { - record: ':windows_node_memory_MemFreeCached_bytes:sum', - expr: ||| - sum by (%(clusterLabel)s) (windows_memory_available_bytes{%(windowsExporterSelector)s} + windows_memory_cache_bytes{%(windowsExporterSelector)s}) - ||| % $._config, - }, - { - record: 'node:windows_node_memory_totalCached_bytes:sum', - expr: ||| - (windows_memory_cache_bytes{%(windowsExporterSelector)s} + windows_memory_modified_page_list_bytes{%(windowsExporterSelector)s} + windows_memory_standby_cache_core_bytes{%(windowsExporterSelector)s} + windows_memory_standby_cache_normal_priority_bytes{%(windowsExporterSelector)s} + windows_memory_standby_cache_reserve_bytes{%(windowsExporterSelector)s}) - ||| % $._config, - }, - { - record: ':windows_node_memory_MemTotal_bytes:sum', - expr: ||| - sum by (%(clusterLabel)s) (windows_os_visible_memory_bytes{%(windowsExporterSelector)s}) - ||| % $._config, - }, - { - // Available memory per node - // SINCE 2018-02-08 - record: 'node:windows_node_memory_bytes_available:sum', - expr: ||| - sum by (%(clusterLabel)s, instance) ( - (windows_memory_available_bytes{%(windowsExporterSelector)s}) - ) - ||| % $._config, - }, - { - // Total memory per node - record: 'node:windows_node_memory_bytes_total:sum', - expr: ||| - sum by (%(clusterLabel)s, instance) ( - windows_os_visible_memory_bytes{%(windowsExporterSelector)s} - ) - ||| % $._config, - }, - { - // Memory utilisation per node, normalized by per-node memory - record: 'node:windows_node_memory_utilisation:ratio', - expr: ||| - (node:windows_node_memory_bytes_total:sum - node:windows_node_memory_bytes_available:sum) - / - scalar(sum(node:windows_node_memory_bytes_total:sum)) - |||, - }, - { - record: 'node:windows_node_memory_utilisation:', - expr: ||| - 1 - (node:windows_node_memory_bytes_available:sum / node:windows_node_memory_bytes_total:sum) - ||| % $._config, - }, - { - record: 'node:windows_node_memory_swap_io_pages:irate', - expr: ||| - irate(windows_memory_swap_page_operations_total{%(windowsExporterSelector)s}[5m]) - ||| % $._config, - }, - { - // Disk utilisation (ms spent, by rate() it's bound by 1 second) - record: ':windows_node_disk_utilisation:avg_irate', - expr: ||| - avg by (%(clusterLabel)s) (irate(windows_logical_disk_read_seconds_total{%(windowsExporterSelector)s}[1m]) + - irate(windows_logical_disk_write_seconds_total{%(windowsExporterSelector)s}[1m]) - ) - ||| % $._config, - }, - { - // Disk utilisation (ms spent, by rate() it's bound by 1 second) - record: 'node:windows_node_disk_utilisation:avg_irate', - expr: ||| - avg by (%(clusterLabel)s, instance) ( - (irate(windows_logical_disk_read_seconds_total{%(windowsExporterSelector)s}[1m]) + - irate(windows_logical_disk_write_seconds_total{%(windowsExporterSelector)s}[1m])) - ) - ||| % $._config, - }, - { - record: 'node:windows_node_filesystem_usage:', - expr: ||| - max by (%(clusterLabel)s,instance,volume)( - (windows_logical_disk_size_bytes{%(windowsExporterSelector)s} - - windows_logical_disk_free_bytes{%(windowsExporterSelector)s}) - / windows_logical_disk_size_bytes{%(windowsExporterSelector)s} - ) - ||| % $._config, - }, - { - record: 'node:windows_node_filesystem_avail:', - expr: ||| - max by (%(clusterLabel)s, instance, volume) (windows_logical_disk_free_bytes{%(windowsExporterSelector)s} / windows_logical_disk_size_bytes{%(windowsExporterSelector)s}) - ||| % $._config, - }, - { - record: ':windows_node_net_utilisation:sum_irate', - expr: ||| - sum by (%(clusterLabel)s) (irate(windows_net_bytes_total{%(windowsExporterSelector)s}[1m])) - ||| % $._config, - }, - { - record: 'node:windows_node_net_utilisation:sum_irate', - expr: ||| - sum by (%(clusterLabel)s, instance) ( - (irate(windows_net_bytes_total{%(windowsExporterSelector)s}[1m])) - ) - ||| % $._config, - }, - { - record: ':windows_node_net_saturation:sum_irate', - expr: ||| - sum by (%(clusterLabel)s) (irate(windows_net_packets_received_discarded_total{%(windowsExporterSelector)s}[1m])) + - sum by (%(clusterLabel)s) (irate(windows_net_packets_outbound_discarded_total{%(windowsExporterSelector)s}[1m])) - ||| % $._config, - }, - { - record: 'node:windows_node_net_saturation:sum_irate', - expr: ||| - sum by (%(clusterLabel)s, instance) ( - (irate(windows_net_packets_received_discarded_total{%(windowsExporterSelector)s}[1m]) + - irate(windows_net_packets_outbound_discarded_total{%(windowsExporterSelector)s}[1m])) - ) - ||| % $._config, - }, - ], - }, - { - name: 'windows.pod.rules', - rules: [ - { - record: 'windows_pod_container_available', - expr: ||| - windows_container_available{%(windowsExporterSelector)s, container_id != ""} * on(container_id, %(clusterLabel)s) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s, container_id != ""}) by(container, container_id, pod, namespace, %(clusterLabel)s) - ||| % $._config, - }, - { - record: 'windows_container_total_runtime', - expr: ||| - windows_container_cpu_usage_seconds_total{%(windowsExporterSelector)s, container_id != ""} * on(container_id, %(clusterLabel)s) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s, container_id != ""}) by(container, container_id, pod, namespace, %(clusterLabel)s) - ||| % $._config, - }, - { - record: 'windows_container_memory_usage', - expr: ||| - windows_container_memory_usage_commit_bytes{%(windowsExporterSelector)s, container_id != ""} * on(container_id, %(clusterLabel)s) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s, container_id != ""}) by(container, container_id, pod, namespace, %(clusterLabel)s) - ||| % $._config, - }, - { - record: 'windows_container_private_working_set_usage', - expr: ||| - windows_container_memory_usage_private_working_set_bytes{%(windowsExporterSelector)s, container_id != ""} * on(container_id, %(clusterLabel)s) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s, container_id != ""}) by(container, container_id, pod, namespace, %(clusterLabel)s) - ||| % $._config, - }, - { - record: 'windows_container_network_received_bytes_total', - expr: ||| - windows_container_network_receive_bytes_total{%(windowsExporterSelector)s, container_id != ""} * on(container_id, %(clusterLabel)s) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s, container_id != ""}) by(container, container_id, pod, namespace, %(clusterLabel)s) - ||| % $._config, - }, - { - record: 'windows_container_network_transmitted_bytes_total', - expr: ||| - windows_container_network_transmit_bytes_total{%(windowsExporterSelector)s, container_id != ""} * on(container_id, %(clusterLabel)s) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s, container_id != ""}) by(container, container_id, pod, namespace, %(clusterLabel)s) - ||| % $._config, - }, - { - record: 'kube_pod_windows_container_resource_memory_request', - expr: ||| - max by (%(clusterLabel)s, namespace, pod, container) ( - kube_pod_container_resource_requests{resource="memory",%(kubeStateMetricsSelector)s} - ) * on(container,pod,namespace,%(clusterLabel)s) (windows_pod_container_available) - ||| % $._config, - }, - { - record: 'kube_pod_windows_container_resource_memory_limit', - expr: ||| - kube_pod_container_resource_limits{resource="memory",%(kubeStateMetricsSelector)s} * on(container,pod,namespace,%(clusterLabel)s) (windows_pod_container_available) - ||| % $._config, - }, - { - record: 'kube_pod_windows_container_resource_cpu_cores_request', - expr: ||| - max by (%(clusterLabel)s, namespace, pod, container) ( - kube_pod_container_resource_requests{resource="cpu",%(kubeStateMetricsSelector)s} - ) * on(container,pod,namespace,%(clusterLabel)s) (windows_pod_container_available) - ||| % $._config, - }, - { - record: 'kube_pod_windows_container_resource_cpu_cores_limit', - expr: ||| - kube_pod_container_resource_limits{resource="cpu",%(kubeStateMetricsSelector)s} * on(container,pod,namespace,%(clusterLabel)s) (windows_pod_container_available) - ||| % $._config, - }, - { - record: 'namespace_pod_container:windows_container_cpu_usage_seconds_total:sum_rate', - expr: ||| - sum by (%(clusterLabel)s, namespace, pod, container) ( - rate(windows_container_total_runtime{}[5m]) - ) - ||| % $._config, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/runbook.md b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/runbook.md deleted file mode 100644 index f30238902..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/runbook.md +++ /dev/null @@ -1,290 +0,0 @@ -# Kubernetes Alert Runbooks - -As Rob Ewaschuk [puts it](https://docs.google.com/document/d/199PqyG3UsyXlwieHaqbGiWVa8eMWi8zzAn0YfcApr8Q/edit#): - -> Playbooks (or runbooks) are an important part of an alerting system; it's best to have an entry for each alert or family of alerts that catch a symptom, which can further explain what the alert means and how it might be addressed. - -It is a recommended practice that you add an annotation of "runbook" to every prometheus alert with a link to a clear description of it's meaning and suggested remediation or mitigation. While some problems will require private and custom solutions, most common problems have common solutions. In practice, you'll want to automate many of the procedures (rather than leaving them in a wiki), but even a self-correcting problem should provide an explanation as to what happened and why to observers. - -Matthew Skelton & Rob Thatcher have an excellent [run book template](https://github.com/SkeltonThatcher/run-book-template). This template will help teams to fully consider most aspects of reliably operating most interesting software systems, if only to confirm that "this section definitely does not apply here" - a valuable realization. - -This page collects this repositories alerts and begins the process of describing what they mean and how it might be addressed. Links from alerts to this page are added [automatically](https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/master/lib/add-runbook-links.libsonnet). - -### Group Name: "kubernetes-absent" - -##### Alert Name: "KubeAPIDown" -+ *Message*: `KubeAPI has disappeared from Prometheus target discovery.` -+ *Severity*: critical -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeapidown/) - -##### Alert Name: "KubeControllerManagerDown" -+ *Message*: `KubeControllerManager has disappeared from Prometheus target discovery.` -+ *Severity*: critical -+ *Runbook*: [Link](https://coreos.com/tectonic/docs/latest/troubleshooting/controller-recovery.html#recovering-a-controller-manager) - -##### Alert Name: KubeSchedulerDown -+ *Message*: `KubeScheduler has disappeared from Prometheus target discovery` -+ *Severity*: critical -+ *Runbook*: [Link](https://coreos.com/tectonic/docs/latest/troubleshooting/controller-recovery.html#recovering-a-scheduler) - -##### Alert Name: KubeletDown -+ *Message*: `Kubelet has disappeared from Prometheus target discovery.` -+ *Severity*: critical -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeletdown/) - -##### Alert Name: KubeProxyDown -+ *Message*: `KubeProxy has disappeared from Prometheus target discovery` -+ *Severity*: critical -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeproxydown/) - -### Group Name: kubernetes-apps - -##### Alert Name: KubePodCrashLooping -+ *Message*: `{{ $labels.namespace }}/{{ $labels.pod }} ({{ $labels.container }}) is restarting {{ printf \"%.2f\" $value }} / second` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubepodcrashlooping/) - -##### Alert Name: "KubePodNotReady" -+ *Message*: `{{ $labels.namespace }}/{{ $labels.pod }} is not ready.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubepodnotready/) - -##### Alert Name: "KubeDeploymentGenerationMismatch" -+ *Message*: `Deployment {{ $labels.namespace }}/{{ $labels.deployment }} generation mismatch` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubedeploymentgenerationmismatch/) - -##### Alert Name: "KubeDeploymentReplicasMismatch" -+ *Message*: `Deployment {{ $labels.namespace }}/{{ $labels.deployment }} replica mismatch` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubedeploymentreplicasmismatch/) - -##### Alert Name: "KubeDeploymentRolloutStuck" -+ *Message*: `Rollout of deployment {{ $labels.namespace }}/{{ $labels.deployment }} is not progressing` -+ *Severity*: warning - -##### Alert Name: "KubeStatefulSetReplicasMismatch" -+ *Message*: `StatefulSet {{ $labels.namespace }}/{{ $labels.statefulset }} replica mismatch` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubestatefulsetreplicasmismatch/) - -##### Alert Name: "KubeStatefulSetGenerationMismatch" -+ *Message*: `StatefulSet {{ $labels.namespace }}/{{ $labels.statefulset }} generation mismatch` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubestatefulsetgenerationmismatch/) - -##### Alert Name: "KubeDaemonSetRolloutStuck" -+ *Message*: `Only {{$value | humanizePercentage }} of desired pods scheduled and ready for daemon set {{$labels.namespace}}/{{$labels.daemonset}}` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubedaemonsetrolloutstuck/) - -##### Alert Name: "KubeContainerWaiting" -+ *Message*: `{{ $labels.namespace }}/{{ $labels.pod }} ({{ $labels.container }}) is in waiting state.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubecontainerwaiting/) - -##### Alert Name: "KubeDaemonSetNotScheduled" -+ *Message*: `A number of pods of daemonset {{$labels.namespace}}/{{$labels.daemonset}} are not scheduled.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubedaemonsetnotscheduled/) - -##### Alert Name: "KubeStatefulSetUpdateNotRolledOut" -+ *Message*: `StatefulSet {{ $labels.namespace }}/{{ $labels.statefulset }} update has not been rolled out.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubestatefulsetupdatenotrolledout/) - -##### Alert Name: "KubeHpaReplicasMismatch" -+ *Message*: `'HPA {{ $labels.namespace }}/{{ $labels.horizontalpodautoscaler }} has not matched the desired number of replicas for longer than 15 minutes.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubehpareplicasmismatch/) - -##### Alert Name: "KubeHpaMaxedOut" -+ *Message*: `HPA {{ $labels.namespace }}/{{ $labels.horizontalpodautoscaler }} has been running at max replicas for longer than 15 minutes.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubehpamaxedout/) - -##### Alert Name: "KubeDaemonSetMisScheduled" -+ *Message*: `A number of pods of daemonset {{$labels.namespace}}/{{$labels.daemonset}} are running where they are not supposed to run.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubedaemonsetmisscheduled/) - -##### Alert Name: "KubeJobNotCompleted" -+ *Message*: `Job {{ $labels.namespace }}/{{ $labels.job_name }} is taking more than {{ "%(kubeJobTimeoutDuration)s" | humanizeDuration }} to complete.` -+ *Severity*: warning -+ *Action*: Check the job using `kubectl describe job ` and look at the pod logs using `kubectl logs ` for further information. - -##### Alert Name: "KubeJobFailed" -+ *Message*: `Job {{ $labels.namespace }}/{{ $labels.job_name }} failed to complete.` -+ *Severity*: warning -+ *Action*: Check the job using `kubectl describe job ` and look at the pod logs using `kubectl logs ` for further information. -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubejobfailed/) - -### Group Name: "kubernetes-resources" - -##### Alert Name: "KubeCPUOvercommit" -+ *Message*: `Cluster has overcommitted CPU resource requests for Pods and cannot tolerate node failure.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubecpuovercommit/) - -##### Alert Name: "KubeMemoryOvercommit" -+ *Message*: `Cluster has overcommitted memory resource requests for Pods and cannot tolerate node failure.` -+ *Severity*: warning - -##### Alert Name: "KubeCPUQuotaOvercommit" -+ *Message*: `Cluster has overcommitted CPU resource requests for Namespaces.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubecpuquotaovercommit/) - -##### Alert Name: "KubeMemoryQuotaOvercommit" -+ *Message*: `Cluster has overcommitted memory resource requests for Namespaces.` -+ *Severity*: warning - -##### Alert Name: "KubeQuotaAlmostFull" -+ *Message*: `{{ $value | humanizePercentage }} usage of {{ $labels.resource }} in namespace {{ $labels.namespace }}.` -+ *Severity*: info -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubequotaalmostfull/) - -##### Alert Name: "KubeQuotaFullyUsed" -+ *Message*: `{{ $value | humanizePercentage }} usage of {{ $labels.resource }} in namespace {{ $labels.namespace }}.` -+ *Severity*: info -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubequotafullyused/) - -##### Alert Name: "KubeQuotaExceeded" -+ *Message*: `{{ $value | humanizePercentage }} usage of {{ $labels.resource }} in namespace {{ $labels.namespace }}.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubequotaexceeded/) - -##### Alert Name: "CPUThrottlingHigh" -+ *Message*: `Processes experience elevated CPU throttling.` -+ *Severity*: info -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/cputhrottlinghigh/) - -### Group Name: "kubernetes-storage" - -##### Alert Name: "KubePersistentVolumeFillingUp" -+ *Message*: `The persistent volume claimed by {{ $labels.persistentvolumeclaim }} in namespace {{ $labels.namespace }} has {{ $value | humanizePercentage }} free.` -+ *Severity*: critical -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubepersistentvolumefillingup/) - -##### Alert Name: "KubePersistentVolumeFillingUp" -+ *Message*: `Based on recent sampling, the persistent volume claimed by {{ $labels.persistentvolumeclaim }} in namespace {{ $labels.namespace }} is expected to fill up within four days.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubepersistentvolumefillingup/) - -##### Alert Name: "KubePersistentVolumeInodesFillingUp" -+ *Message*: `PersistentVolume is filling up.` - -##### Alert Name: "KubePersistentVolumeErrors" -+ *Message*: `PersistentVolume is having issues with provisioning.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubepersistentvolumeerrors/) - -### Group Name: "kubernetes-system" - -##### Alert Name: "KubeNodeNotReady" -+ *Message*: `{{ $labels.node }} has been unready for more than 15 minutes."` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubenodenotready/) - -##### Alert Name: "KubeNodeUnreachable" -+ *Message*: `{{ $labels.node }} is unreachable and some workloads may be rescheduled.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubenodeunreachable/) - -##### Alert Name: "KubeletTooManyPods" -+ *Message*: `Kubelet '{{ $labels.node }}' is running at {{ $value | humanizePercentage }} of its Pod capacity.` -+ *Severity*: info -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubelettoomanypods/) - -##### Alert Name: "KubeNodeReadinessFlapping" -+ *Message*: `The readiness status of node {{ $labels.node }} has changed {{ $value }} times in the last 15 minutes.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubenodereadinessflapping/) - -##### Alert Name: "KubeletPlegDurationHigh" -+ *Message*: `The Kubelet Pod Lifecycle Event Generator has a 99th percentile duration of {{ $value }} seconds on node {{ $labels.node }}.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeletplegdurationhigh/) - -##### Alert Name: "KubeletPodStartUpLatencyHigh" -+ *Message*: `Kubelet Pod startup 99th percentile latency is {{ $value }} seconds on node {{ $labels.node }}.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeletpodstartuplatencyhigh/) - -##### Alert Name: "KubeletClientCertificateExpiration" -+ *Message*: `Client certificate for Kubelet on node {{ $labels.node }} expires in 7 days.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeletclientcertificateexpiration/) - -##### Alert Name: "KubeletClientCertificateExpiration" -+ *Message*: `Client certificate for Kubelet on node {{ $labels.node }} expires in 1 day.` -+ *Severity*: critical -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeletclientcertificateexpiration/) - -##### Alert Name: "KubeletServerCertificateExpiration" -+ *Message*: `Server certificate for Kubelet on node {{ $labels.node }} expires in 7 days.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeletservercertificateexpiration/) - -##### Alert Name: "KubeletServerCertificateExpiration" -+ *Message*: `Server certificate for Kubelet on node {{ $labels.node }} expires in 1 day.` -+ *Severity*: critical -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeletservercertificateexpiration/) - -##### Alert Name: "KubeletClientCertificateRenewalErrors" -+ *Message*: `Kubelet on node {{ $labels.node }} has failed to renew its client certificate ({{ $value | humanize }} errors in the last 15 minutes).` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeletclientcertificaterenewalerrors/) - -##### Alert Name: "KubeletServerCertificateRenewalErrors" -+ *Message*: `Kubelet on node {{ $labels.node }} has failed to renew its server certificate ({{ $value | humanize }} errors in the last 5 minutes).` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeletservercertificaterenewalerrors/) - -##### Alert Name: "KubeVersionMismatch" -+ *Message*: `There are {{ $value }} different versions of Kubernetes components running.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeversionmismatch/) - -##### Alert Name: "KubeClientErrors" -+ *Message*: `Kubernetes API server client '{{ $labels.job }}/{{ $labels.instance }}' is experiencing {{ $value | humanizePercentage }} errors.'` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeclienterrors/) - -##### Alert Name: "KubeClientCertificateExpiration" -+ *Message*: `A client certificate used to authenticate to the apiserver is expiring in less than 7 days.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeclientcertificateexpiration/) - -##### Alert Name: "KubeClientCertificateExpiration" -+ *Message*: `A client certificate used to authenticate to the apiserver is expiring in less than 1 day.` -+ *Severity*: critical -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeclientcertificateexpiration/) - -##### Alert Name: "KubeAPITerminatedRequests" -+ *Message*: `The apiserver has terminated {{ $value | humanizePercentage }} of its incoming requests.` -+ *Severity*: warning -+ *Action*: Use the `apiserver_flowcontrol_rejected_requests_total` metric to determine which flow schema is throttling the traffic to the API Server. The flow schema also provides information on the affected resources and subjects. -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeapiterminatedrequests/) - -##### Alert Name: "KubeAggregatedAPIErrors" -+ *Message*: `Kubernetes aggregated API has reported errors.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeaggregatedapierrors/) - -##### Alert Name: "KubeAggregatedAPIDown" -+ *Message*: `Kubernetes aggregated API is down.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeaggregatedapidown/) - -### Group Name: "kube-apiserver-slos" - -##### Alert Name: "KubeAPIErrorBudgetBurn" -+ *Message*: `The API server is burning too much error budget.` -+ *Severity*: warning -+ *Runbook*: [Link](https://runbooks.prometheus-operator.dev/runbooks/kubernetes/kubeapierrorbudgetburn/) - -## Other Kubernetes Runbooks and troubleshooting -+ [Troubleshoot Clusters](https://kubernetes.io/docs/tasks/debug-application-cluster/debug-cluster/) -+ [Cloud.gov Kubernetes Runbook](https://landing.app.cloud.gov/docs/ops/runbook/troubleshooting-kubernetes/) -+ [Recover a Broken Cluster](https://codefresh.io/Kubernetes-Tutorial/recover-broken-kubernetes-cluster/) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/check-selectors-ksm.sh b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/check-selectors-ksm.sh deleted file mode 100755 index b6b6a9e65..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/check-selectors-ksm.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash - -# Set -u to error out if we use an unset variable. -# Set -o pipefail to propagate errors in a pipeline. -set -uo pipefail - -# Remove kube-state-metrics directory if it exists. -rm -rf kube-state-metrics - -# Clone kube-state-metrics repository. -git clone https://github.com/kubernetes/kube-state-metrics --depth 1 - -# Set the repository root. -repository_root=$(git rev-parse --show-toplevel) - -# Change directory to kube-state-metrics. -cd kube-state-metrics || exit - -# Grep all metrics in the codebase. -find internal/store -type f -not -name '*_test.go' -exec sed -nE 's/.*"(kube_[^"]+)".*/\1/p' {} \; | sort -u > metrics.txt - -# Set the KSM selector specifier. -ksm_selector="kubeStateMetricsSelector" - -# Set the paths to the alerts, lib and rules directories. -alerts_path="$repository_root/alerts" -lib_path="$repository_root/lib" -rules_path="$repository_root/rules" - -# Read metrics.txt line by line. -while IFS= read -r metric; do - selector_misses=$(\ - grep --only-matching --color=always --line-number "$metric{[^}]*}" --directories=recurse "$alerts_path" "$lib_path" "$rules_path" |\ - grep --invert-match "$ksm_selector" \ - ) - if [ -n "$selector_misses" ]; then - echo "The following $metric metrics are missing the $ksm_selector specifier:" - echo "$selector_misses" - fi -done < metrics.txt - -# Clean artefacts. -rm metrics.txt -cd .. || exit -rm -rf kube-state-metrics - -# TODO: Currently, there are only two possible states the workflow can report: success or failure. -# We could benefit from a third "warning" state, for cases where we observe an overlap of selectors for the same metric. -# Ref: https://docs.github.com/en/actions/creating-actions/setting-exit-codes-for-actions#about-exit-codes diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/go.mod b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/go.mod deleted file mode 100644 index 609cc99fa..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/go.mod +++ /dev/null @@ -1,263 +0,0 @@ -module _ - -go 1.22.0 - -toolchain go1.22.4 - -require ( - github.com/Kunde21/markdownfmt/v3 v3.1.0 - github.com/cloudflare/pint v0.62.2 - github.com/errata-ai/vale/v3 v3.6.1 - github.com/google/go-jsonnet v0.20.0 - github.com/grafana/dashboard-linter v0.0.0-20231114210226-c458893a5731 - github.com/jsonnet-bundler/jsonnet-bundler v0.5.1 - github.com/prometheus/prometheus v0.53.1 -) - -require ( - atomicgo.dev/cursor v0.2.0 // indirect - atomicgo.dev/keyboard v0.2.9 // indirect - atomicgo.dev/schedule v0.1.0 // indirect - cloud.google.com/go v0.114.0 // indirect - cloud.google.com/go/auth v0.5.1 // indirect - cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect - cloud.google.com/go/compute/metadata v0.3.0 // indirect - cloud.google.com/go/iam v1.1.8 // indirect - cloud.google.com/go/storage v1.40.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 // indirect - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.6.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4 v4.3.0 // indirect - github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect - github.com/BurntSushi/toml v1.3.2 // indirect - github.com/Code-Hex/go-generics-cache v1.5.1 // indirect - github.com/Masterminds/goutils v1.1.1 // indirect - github.com/Masterminds/semver/v3 v3.2.0 // indirect - github.com/Masterminds/sprig/v3 v3.2.3 // indirect - github.com/Microsoft/go-winio v0.6.1 // indirect - github.com/adrg/strutil v0.3.0 // indirect - github.com/adrg/xdg v0.4.0 // indirect - github.com/agext/levenshtein v1.2.1 // indirect - github.com/alecthomas/kingpin/v2 v2.4.0 // indirect - github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect - github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9 // indirect - github.com/andybalholm/brotli v1.0.1 // indirect - github.com/antonmedv/expr v1.12.0 // indirect - github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect - github.com/armon/go-metrics v0.4.1 // indirect - github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect - github.com/aws/aws-sdk-go v1.53.16 // indirect - github.com/bboreham/go-loser v0.0.0-20230920113527-fcc2c21820a3 // indirect - github.com/benbjohnson/clock v1.3.5 // indirect - github.com/beorn7/perks v1.0.1 // indirect - github.com/bmatcuk/doublestar/v4 v4.6.0 // indirect - github.com/cespare/xxhash/v2 v2.3.0 // indirect - github.com/cncf/xds/go v0.0.0-20240318125728-8a4994d93e50 // indirect - github.com/containerd/console v1.0.3 // indirect - github.com/coreos/go-systemd/v22 v22.5.0 // indirect - github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect - github.com/d5/tengo/v2 v2.10.0 // indirect - github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect - github.com/dennwc/varint v1.0.0 // indirect - github.com/digitalocean/godo v1.117.0 // indirect - github.com/distribution/reference v0.5.0 // indirect - github.com/docker/docker v26.1.3+incompatible // indirect - github.com/docker/go-connections v0.4.0 // indirect - github.com/docker/go-units v0.5.0 // indirect - github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect - github.com/edsrzf/mmap-go v1.1.0 // indirect - github.com/emicklei/go-restful/v3 v3.11.0 // indirect - github.com/envoyproxy/go-control-plane v0.12.0 // indirect - github.com/envoyproxy/protoc-gen-validate v1.0.4 // indirect - github.com/errata-ai/ini v1.63.0 // indirect - github.com/errata-ai/regexp2 v1.7.0 // indirect - github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb // indirect - github.com/fatih/color v1.17.0 // indirect - github.com/felixge/httpsnoop v1.0.4 // indirect - github.com/fsnotify/fsnotify v1.7.0 // indirect - github.com/ghodss/yaml v1.0.0 // indirect - github.com/go-kit/log v0.2.1 // indirect - github.com/go-logfmt/logfmt v0.6.0 // indirect - github.com/go-logr/logr v1.4.1 // indirect - github.com/go-logr/stdr v1.2.2 // indirect - github.com/go-openapi/analysis v0.22.2 // indirect - github.com/go-openapi/errors v0.22.0 // indirect - github.com/go-openapi/jsonpointer v0.20.2 // indirect - github.com/go-openapi/jsonreference v0.20.4 // indirect - github.com/go-openapi/loads v0.21.5 // indirect - github.com/go-openapi/spec v0.20.14 // indirect - github.com/go-openapi/strfmt v0.23.0 // indirect - github.com/go-openapi/swag v0.22.9 // indirect - github.com/go-openapi/validate v0.23.0 // indirect - github.com/go-resty/resty/v2 v2.13.1 // indirect - github.com/go-zookeeper/zk v1.0.3 // indirect - github.com/gobwas/glob v0.2.3 // indirect - github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang-jwt/jwt/v5 v5.2.1 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/protobuf v1.5.4 // indirect - github.com/golang/snappy v0.0.4 // indirect - github.com/google/gnostic-models v0.6.8 // indirect - github.com/google/go-cmp v0.6.0 // indirect - github.com/google/go-github/v63 v63.0.0 // indirect - github.com/google/go-querystring v1.1.0 // indirect - github.com/google/gofuzz v1.2.0 // indirect - github.com/google/pprof v0.0.0-20240528025155-186aa0362fba // indirect - github.com/google/s2a-go v0.1.7 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect - github.com/googleapis/gax-go/v2 v2.12.4 // indirect - github.com/gookit/color v1.5.4 // indirect - github.com/gophercloud/gophercloud v1.12.0 // indirect - github.com/gorilla/websocket v1.5.0 // indirect - github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc // indirect - github.com/hashicorp/consul/api v1.29.1 // indirect - github.com/hashicorp/cronexpr v1.1.2 // indirect - github.com/hashicorp/errwrap v1.1.0 // indirect - github.com/hashicorp/go-cleanhttp v0.5.2 // indirect - github.com/hashicorp/go-hclog v1.6.3 // indirect - github.com/hashicorp/go-immutable-radix v1.3.1 // indirect - github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-retryablehttp v0.7.7 // indirect - github.com/hashicorp/go-rootcerts v1.0.2 // indirect - github.com/hashicorp/golang-lru v0.6.0 // indirect - github.com/hashicorp/hcl v1.0.0 // indirect - github.com/hashicorp/hcl/v2 v2.21.0 // indirect - github.com/hashicorp/nomad/api v0.0.0-20240604134157-e73d8bb1140d // indirect - github.com/hashicorp/serf v0.10.1 // indirect - github.com/hetznercloud/hcloud-go/v2 v2.9.0 // indirect - github.com/huandu/xstrings v1.3.3 // indirect - github.com/imdario/mergo v0.3.16 // indirect - github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/ionos-cloud/sdk-go/v6 v6.1.11 // indirect - github.com/jdkato/twine v0.10.1 // indirect - github.com/jmespath/go-jmespath v0.4.0 // indirect - github.com/josharian/intern v1.0.0 // indirect - github.com/jpillora/backoff v1.0.0 // indirect - github.com/json-iterator/go v1.1.12 // indirect - github.com/karrick/godirwalk v1.16.1 // indirect - github.com/klauspost/compress v1.17.9 // indirect - github.com/klauspost/pgzip v1.2.5 // indirect - github.com/kolo/xmlrpc v0.0.0-20220921171641-a4b6fa1dd06b // indirect - github.com/kylelemons/godebug v1.1.0 // indirect - github.com/linode/linodego v1.35.0 // indirect - github.com/lithammer/fuzzysearch v1.1.8 // indirect - github.com/magiconair/properties v1.8.7 // indirect - github.com/mailru/easyjson v0.7.7 // indirect - github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mattn/go-runewidth v0.0.15 // indirect - github.com/mholt/archiver/v3 v3.5.1 // indirect - github.com/miekg/dns v1.1.59 // indirect - github.com/mitchellh/copystructure v1.0.0 // indirect - github.com/mitchellh/go-homedir v1.1.0 // indirect - github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 // indirect - github.com/mitchellh/mapstructure v1.5.0 // indirect - github.com/mitchellh/reflectwalk v1.0.0 // indirect - github.com/moby/docker-image-spec v1.3.1 // indirect - github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.2 // indirect - github.com/montanaflynn/stats v0.7.1 // indirect - github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect - github.com/niklasfasching/go-org v1.6.6 // indirect - github.com/nsf/jsondiff v0.0.0-20230430225905-43f6cf3098c1 // indirect - github.com/nwaples/rardecode v1.1.0 // indirect - github.com/oklog/ulid v1.3.1 // indirect - github.com/olekukonko/tablewriter v0.0.4 // indirect - github.com/opencontainers/go-digest v1.0.0 // indirect - github.com/opencontainers/image-spec v1.0.2 // indirect - github.com/otiai10/copy v1.7.0 // indirect - github.com/ovh/go-ovh v1.5.1 // indirect - github.com/pelletier/go-toml/v2 v2.0.8 // indirect - github.com/pierrec/lz4/v4 v4.1.2 // indirect - github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect - github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e // indirect - github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/prometheus/alertmanager v0.27.0 // indirect - github.com/prometheus/client_golang v1.19.1 // indirect - github.com/prometheus/client_model v0.6.1 // indirect - github.com/prometheus/common v0.55.0 // indirect - github.com/prometheus/common/sigv4 v0.1.0 // indirect - github.com/prometheus/exporter-toolkit v0.11.0 // indirect - github.com/prometheus/procfs v0.15.1 // indirect - github.com/prymitive/current v0.1.0 // indirect - github.com/pterm/pterm v0.12.76 // indirect - github.com/remeh/sizedwaitgroup v1.0.0 // indirect - github.com/rivo/uniseg v0.4.4 // indirect - github.com/russross/blackfriday/v2 v2.1.0 // indirect - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.27 // indirect - github.com/shopspring/decimal v1.2.0 // indirect - github.com/smacker/go-tree-sitter v0.0.0-20240514083259-c5d1f3f5f99e // indirect - github.com/spf13/afero v1.10.0 // indirect - github.com/spf13/cast v1.5.1 // indirect - github.com/spf13/cobra v1.7.0 // indirect - github.com/spf13/jwalterweatherman v1.1.0 // indirect - github.com/spf13/pflag v1.0.5 // indirect - github.com/spf13/viper v1.16.0 // indirect - github.com/stretchr/testify v1.9.0 // indirect - github.com/subosito/gotenv v1.4.2 // indirect - github.com/ulikunitz/xz v0.5.10 // indirect - github.com/urfave/cli/v2 v2.27.2 // indirect - github.com/vultr/govultr/v2 v2.17.2 // indirect - github.com/xanzy/go-gitlab v0.106.0 // indirect - github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect - github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect - github.com/xeipuuv/gojsonschema v1.2.0 // indirect - github.com/xhit/go-str2duration/v2 v2.1.0 // indirect - github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect - github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect - github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 // indirect - github.com/yuin/goldmark v1.5.6 // indirect - github.com/zclconf/go-cty v1.15.0 // indirect - github.com/zeitlinger/conflate v0.0.0-20230622100834-279724abda8c // indirect - go.mongodb.org/mongo-driver v1.14.0 // indirect - go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/collector/pdata v1.8.0 // indirect - go.opentelemetry.io/collector/semconv v0.101.0 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 // indirect - go.opentelemetry.io/otel v1.27.0 // indirect - go.opentelemetry.io/otel/metric v1.27.0 // indirect - go.opentelemetry.io/otel/trace v1.27.0 // indirect - go.uber.org/atomic v1.11.0 // indirect - go.uber.org/automaxprocs v1.5.3 // indirect - go.uber.org/goleak v1.3.0 // indirect - go.uber.org/multierr v1.11.0 // indirect - go.uber.org/ratelimit v0.3.1 // indirect - golang.org/x/crypto v0.24.0 // indirect - golang.org/x/exp v0.0.0-20240119083558-1b970713d09a // indirect - golang.org/x/mod v0.18.0 // indirect - golang.org/x/net v0.26.0 // indirect - golang.org/x/oauth2 v0.21.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.21.0 // indirect - golang.org/x/term v0.21.0 // indirect - golang.org/x/text v0.16.0 // indirect - golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.22.0 // indirect - google.golang.org/api v0.183.0 // indirect - google.golang.org/genproto v0.0.0-20240528184218-531527333157 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect - google.golang.org/grpc v1.64.1 // indirect - google.golang.org/protobuf v1.34.2 // indirect - gopkg.in/alecthomas/kingpin.v2 v2.2.6 // indirect - gopkg.in/inf.v0 v0.9.1 // indirect - gopkg.in/ini.v1 v1.67.0 // indirect - gopkg.in/neurosnap/sentences.v1 v1.0.7 // indirect - gopkg.in/yaml.v2 v2.4.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/api v0.29.3 // indirect - k8s.io/apimachinery v0.29.3 // indirect - k8s.io/client-go v0.29.3 // indirect - k8s.io/klog/v2 v2.120.1 // indirect - k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect - k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect - sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect - sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect - sigs.k8s.io/yaml v1.3.0 // indirect -) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/go.sum b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/go.sum deleted file mode 100644 index bbf7e8dd8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/go.sum +++ /dev/null @@ -1,1308 +0,0 @@ -atomicgo.dev/assert v0.0.2 h1:FiKeMiZSgRrZsPo9qn/7vmr7mCsh5SZyXY4YGYiYwrg= -atomicgo.dev/assert v0.0.2/go.mod h1:ut4NcI3QDdJtlmAxQULOmA13Gz6e2DWbSAS8RUOmNYQ= -atomicgo.dev/cursor v0.2.0 h1:H6XN5alUJ52FZZUkI7AlJbUc1aW38GWZalpYRPpoPOw= -atomicgo.dev/cursor v0.2.0/go.mod h1:Lr4ZJB3U7DfPPOkbH7/6TOtJ4vFGHlgj1nc+n900IpU= -atomicgo.dev/keyboard v0.2.9 h1:tOsIid3nlPLZ3lwgG8KZMp/SFmr7P0ssEN5JUsm78K8= -atomicgo.dev/keyboard v0.2.9/go.mod h1:BC4w9g00XkxH/f1HXhW2sXmJFOCWbKn9xrOunSFtExQ= -atomicgo.dev/schedule v0.1.0 h1:nTthAbhZS5YZmgYbb2+DH8uQIZcTlIrd4eYr3UQxEjs= -atomicgo.dev/schedule v0.1.0/go.mod h1:xeUa3oAkiuHYh8bKiQBRojqAMq3PXXbJujjb0hw8pEU= -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= -cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= -cloud.google.com/go v0.114.0 h1:OIPFAdfrFDFO2ve2U7r/H5SwSbBzEdrBdE7xkgwc+kY= -cloud.google.com/go v0.114.0/go.mod h1:ZV9La5YYxctro1HTPug5lXH/GefROyW8PPD4T8n9J8E= -cloud.google.com/go/auth v0.5.1 h1:0QNO7VThG54LUzKiQxv8C6x1YX7lUrzlAa1nVLF8CIw= -cloud.google.com/go/auth v0.5.1/go.mod h1:vbZT8GjzDf3AVqCcQmqeeM32U9HBFc32vVVAbwDsa6s= -cloud.google.com/go/auth/oauth2adapt v0.2.2 h1:+TTV8aXpjeChS9M+aTtN/TjdQnzJvmzKFt//oWu7HX4= -cloud.google.com/go/auth/oauth2adapt v0.2.2/go.mod h1:wcYjgpZI9+Yu7LyYBg4pqSiaRkfEK3GQcpb7C/uyF1Q= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc= -cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/iam v1.1.8 h1:r7umDwhj+BQyz0ScZMp4QrGXjSTI3ZINnpgU2nlB/K0= -cloud.google.com/go/iam v1.1.8/go.mod h1:GvE6lyMmfxXauzNq8NbgJbeVQNspG+tcdL/W8QO1+zE= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= -cloud.google.com/go/storage v1.40.0 h1:VEpDQV5CJxFmJ6ueWNsKxcr1QAYOXEgxDa+sBbJahPw= -cloud.google.com/go/storage v1.40.0/go.mod h1:Rrj7/hKlG87BLqDJYtwR0fbPld8uJPbQ2ucUMY7Ir0g= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqbjDYsgN+RzP4q16yV5eM= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.6.0 h1:U2rTu3Ef+7w9FHKIAXM6ZyqF3UOWJZ12zIm8zECAFfg= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.6.0/go.mod h1:9kIvujWAA58nmPmWB1m23fyWic1kYZMxD9CxaWn4Qpg= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0 h1:jBQA3cKT4L2rWMpgE7Yt3Hwh2aUj8KXjIGLxjHeYNNo= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.8.0/go.mod h1:4OG6tQ9EOP/MT0NMjDlRzWoVFxfu9rN9B2X+tlSVktg= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0 h1:LkHbJbgF3YyvC53aqYGR+wWQDn2Rdp9AQdGndf9QvY4= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5 v5.7.0/go.mod h1:QyiQdW4f4/BIfB8ZutZ2s+28RAgfa/pT+zS++ZHyM1I= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4 v4.3.0 h1:bXwSugBiSbgtz7rOtbfGf+woewp4f06orW9OP5BjHLA= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4 v4.3.0/go.mod h1:Y/HgrePTmGy9HjdSGTqZNa+apUpTVIEVKXJyARP2lrk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.1.1 h1:7CBQ+Ei8SP2c6ydQTGCCrS35bDxgTMfoP2miAwK++OU= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.1.1/go.mod h1:c/wcGeGx5FUPbM/JltUYHZcKmigwyVLJlDq+4HdtXaw= -github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= -github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= -github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 h1:XHOnouVk1mxXfQidrMEnLlPk9UMeRtyBTnEFtxkV0kU= -github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8= -github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/Code-Hex/go-generics-cache v1.5.1 h1:6vhZGc5M7Y/YD8cIUcY8kcuQLB4cHR7U+0KMqAA0KcU= -github.com/Code-Hex/go-generics-cache v1.5.1/go.mod h1:qxcC9kRVrct9rHeiYpFWSoW1vxyillCVzX13KZG8dl4= -github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= -github.com/Kunde21/markdownfmt/v3 v3.1.0 h1:KiZu9LKs+wFFBQKhrZJrFZwtLnCCWJahL+S+E/3VnM0= -github.com/Kunde21/markdownfmt/v3 v3.1.0/go.mod h1:tPXN1RTyOzJwhfHoon9wUr4HGYmWgVxSQN6VBJDkrVc= -github.com/MarvinJWendt/testza v0.1.0/go.mod h1:7AxNvlfeHP7Z/hDQ5JtE3OKYT3XFUeLCDE2DQninSqs= -github.com/MarvinJWendt/testza v0.2.1/go.mod h1:God7bhG8n6uQxwdScay+gjm9/LnO4D3kkcZX4hv9Rp8= -github.com/MarvinJWendt/testza v0.2.8/go.mod h1:nwIcjmr0Zz+Rcwfh3/4UhBp7ePKVhuBExvZqnKYWlII= -github.com/MarvinJWendt/testza v0.2.10/go.mod h1:pd+VWsoGUiFtq+hRKSU1Bktnn+DMCSrDrXDpX2bG66k= -github.com/MarvinJWendt/testza v0.2.12/go.mod h1:JOIegYyV7rX+7VZ9r77L/eH6CfJHHzXjB69adAhzZkI= -github.com/MarvinJWendt/testza v0.3.0/go.mod h1:eFcL4I0idjtIx8P9C6KkAuLgATNKpX4/2oUqKc6bF2c= -github.com/MarvinJWendt/testza v0.4.2/go.mod h1:mSdhXiKH8sg/gQehJ63bINcCKp7RtYewEjXsvsVUPbE= -github.com/MarvinJWendt/testza v0.5.2 h1:53KDo64C1z/h/d/stCYCPY69bt/OSwjq5KpFNwi+zB4= -github.com/MarvinJWendt/testza v0.5.2/go.mod h1:xu53QFE5sCdjtMCKk8YMQ2MnymimEctc4n3EjyIYvEY= -github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= -github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= -github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= -github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= -github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= -github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= -github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= -github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= -github.com/adrg/strutil v0.3.0 h1:bi/HB2zQbDihC8lxvATDTDzkT4bG7PATtVnDYp5rvq4= -github.com/adrg/strutil v0.3.0/go.mod h1:Jz0wzBVE6Uiy9wxo62YEqEY1Nwto3QlLl1Il5gkLKWU= -github.com/adrg/xdg v0.4.0 h1:RzRqFcjH4nE5C6oTAxhBtoE2IRyjBSa62SCbyPidvls= -github.com/adrg/xdg v0.4.0/go.mod h1:N6ag73EX4wyxeaoeHctc1mas01KZgsj5tYiAIwqJE/E= -github.com/agext/levenshtein v1.2.1 h1:QmvMAjj2aEICytGiWzmxoE0x2KZvE0fvmqMOfy2tjT8= -github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= -github.com/alecthomas/kingpin/v2 v2.4.0 h1:f48lwail6p8zpO1bC4TxtqACaGqHYA22qkHjHpqDjYY= -github.com/alecthomas/kingpin/v2 v2.4.0/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE= -github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= -github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9 h1:ez/4by2iGztzR4L0zgAOR8lTQK9VlyBVVd7G4omaOQs= -github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= -github.com/andybalholm/brotli v1.0.1 h1:KqhlKozYbRtJvsPrrEeXcO+N2l6NYT5A2QAFmSULpEc= -github.com/andybalholm/brotli v1.0.1/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= -github.com/antonmedv/expr v1.12.0 h1:hIOn7jjY86E09PXvn9zgdt2FbWVru0ud9Rm5DbNoYNw= -github.com/antonmedv/expr v1.12.0/go.mod h1:FPC8iWArxls7axbVLsW+kpg1mz29A1b2M6jt+hZfDkU= -github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= -github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= -github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= -github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= -github.com/atomicgo/cursor v0.0.1/go.mod h1:cBON2QmmrysudxNBFthvMtN32r3jxVRIvzkUiF/RuIk= -github.com/aws/aws-sdk-go v1.38.35/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= -github.com/aws/aws-sdk-go v1.53.16 h1:8oZjKQO/ml1WLUZw5hvF7pvYjPf8o9f57Wldoy/q9Qc= -github.com/aws/aws-sdk-go v1.53.16/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= -github.com/bboreham/go-loser v0.0.0-20230920113527-fcc2c21820a3 h1:6df1vn4bBlDDo4tARvBm7l6KA9iVMnE3NWizDeWSrps= -github.com/bboreham/go-loser v0.0.0-20230920113527-fcc2c21820a3/go.mod h1:CIWtjkly68+yqLPbvwwR/fjNJA/idrtULjZWh2v1ys0= -github.com/benbjohnson/clock v1.3.5 h1:VvXlSJBzZpA/zum6Sj74hxwYI2DIxRWuNIoXAzHZz5o= -github.com/benbjohnson/clock v1.3.5/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= -github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= -github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bmatcuk/doublestar/v4 v4.6.0 h1:HTuxyug8GyFbRkrffIpzNCSK4luc0TY3wzXvzIZhEXc= -github.com/bmatcuk/doublestar/v4 v4.6.0/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= -github.com/campoy/embedmd v1.0.0/go.mod h1:oxyr9RCiSXg0M3VJ3ks0UGfp98BpSSGr0kpiX3MzVl8= -github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= -github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= -github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= -github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cloudflare/pint v0.62.2 h1:raR5i4WApsQoBm7B5DVqUrRrBMEvNuy9S7YzEGvVZow= -github.com/cloudflare/pint v0.62.2/go.mod h1:w5cHtwjEiVPnGlQD+ZpI10DYqCB5Iq/GGtA7ThSLfRM= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/xds/go v0.0.0-20240318125728-8a4994d93e50 h1:DBmgJDC9dTfkVyGgipamEh2BpGYxScCH1TOF1LL1cXc= -github.com/cncf/xds/go v0.0.0-20240318125728-8a4994d93e50/go.mod h1:5e1+Vvlzido69INQaVO6d87Qn543Xr6nooe9Kz7oBFM= -github.com/containerd/console v1.0.3 h1:lIr7SlA5PxZyMV30bDW0MGbiOPXwc63yRuCP0ARubLw= -github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U= -github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= -github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= -github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= -github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= -github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/d5/tengo/v2 v2.10.0 h1:gR3VwfJDBlffV8WzfSNNJ7WJtWduwbTKlAu14cA2fRs= -github.com/d5/tengo/v2 v2.10.0/go.mod h1:XRGjEs5I9jYIKTxly6HCF8oiiilk5E/RYXOZ5b0DZC8= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= -github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dennwc/varint v1.0.0 h1:kGNFFSSw8ToIy3obO/kKr8U9GZYUAxQEVuix4zfDWzE= -github.com/dennwc/varint v1.0.0/go.mod h1:hnItb35rvZvJrbTALZtY/iQfDs48JKRG1RPpgziApxA= -github.com/digitalocean/godo v1.117.0 h1:WVlTe09melDYTd7VCVyvHcNWbgB+uI1O115+5LOtdSw= -github.com/digitalocean/godo v1.117.0/go.mod h1:Vk0vpCot2HOAJwc5WE8wljZGtJ3ZtWIc8MQ8rF38sdo= -github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0= -github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= -github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= -github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= -github.com/docker/docker v26.1.3+incompatible h1:lLCzRbrVZrljpVNobJu1J2FHk8V0s4BawoZippkc+xo= -github.com/docker/docker v26.1.3+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= -github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= -github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= -github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 h1:iFaUwBSo5Svw6L7HYpRu/0lE3e0BaElwnNO1qkNQxBY= -github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5/go.mod h1:qssHWj60/X5sZFNxpG4HBPDHVqxNm4DfnCKgrbZOT+s= -github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= -github.com/edsrzf/mmap-go v1.1.0 h1:6EUwBLQ/Mcr1EYLE4Tn1VdW1A4ckqCQWZBw8Hr0kjpQ= -github.com/edsrzf/mmap-go v1.1.0/go.mod h1:19H/e8pUPLicwkyNgOykDXkJ9F0MHE+Z52B8EIth78Q= -github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g= -github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.12.0 h1:4X+VP1GHd1Mhj6IB5mMeGbLCleqxjletLK6K0rbxyZI= -github.com/envoyproxy/go-control-plane v0.12.0/go.mod h1:ZBTaoJ23lqITozF0M6G4/IragXCQKCnYbmlmtHvwRG0= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= -github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= -github.com/errata-ai/ini v1.63.0 h1:XRFKXTn7FvF8mnC9RPOlYaL4Ud7dP0i35LnLcbIhWYU= -github.com/errata-ai/ini v1.63.0/go.mod h1:PhjYff6ijif0unCnaJtXxnVsmlY95CSiNJDLXQYXdX8= -github.com/errata-ai/regexp2 v1.7.0 h1:N+weOlhwTd5iyDTcTCAMljXnfzkftcOZrdXno6G+QPM= -github.com/errata-ai/regexp2 v1.7.0/go.mod h1:59rO+jaxayJPF1WKI5m9R5F3Y3zR2Wn0DHnQbxtPm4A= -github.com/errata-ai/vale/v3 v3.6.1 h1:7eWqg4fGyP8HCBqhEimTJ09wxNYer9QddWDbevFW+ZA= -github.com/errata-ai/vale/v3 v3.6.1/go.mod h1:nc9dPXfQkJE2/wnGh/Dlf1YBQWYMAs/1YVzyVaF1VRA= -github.com/evanphx/json-patch v5.6.0+incompatible h1:jBYDEEiFBPxA0v50tFdvOzQQTCvpL6mnFh5mB2/l16U= -github.com/evanphx/json-patch v5.6.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb h1:IT4JYU7k4ikYg1SCxNI1/Tieq/NFvh6dzLdgi7eu0tM= -github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb/go.mod h1:bH6Xx7IW64qjjJq8M2u4dxNaBiDfKK+z/3eGDpXEQhc= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= -github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= -github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= -github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= -github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= -github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= -github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= -github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= -github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gkampitakis/ciinfo v0.3.0 h1:gWZlOC2+RYYttL0hBqcoQhM7h1qNkVqvRCV1fOvpAv8= -github.com/gkampitakis/ciinfo v0.3.0/go.mod h1:1NIwaOcFChN4fa/B0hEBdAb6npDlFL8Bwx4dfRLRqAo= -github.com/gkampitakis/go-diff v1.3.2 h1:Qyn0J9XJSDTgnsgHRdz9Zp24RaJeKMUHg2+PDZZdC4M= -github.com/gkampitakis/go-diff v1.3.2/go.mod h1:LLgOrpqleQe26cte8s36HTWcTmMEur6OPYerdAAS9tk= -github.com/gkampitakis/go-snaps v0.5.4 h1:GX+dkKmVsRenz7SoTbdIEL4KQARZctkMiZ8ZKprRwT8= -github.com/gkampitakis/go-snaps v0.5.4/go.mod h1:ZABkO14uCuVxBHAXAfKG+bqNz+aa1bGPAg8jkI0Nk8Y= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= -github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= -github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= -github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= -github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= -github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= -github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= -github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= -github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= -github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= -github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-openapi/analysis v0.22.2 h1:ZBmNoP2h5omLKr/srIC9bfqrUGzT6g6gNv03HE9Vpj0= -github.com/go-openapi/analysis v0.22.2/go.mod h1:pDF4UbZsQTo/oNuRfAWWd4dAh4yuYf//LYorPTjrpvo= -github.com/go-openapi/errors v0.22.0 h1:c4xY/OLxUBSTiepAg3j/MHuAv5mJhnf53LLMWFB+u/w= -github.com/go-openapi/errors v0.22.0/go.mod h1:J3DmZScxCDufmIMsdOuDHxJbdOGC0xtUynjIx092vXE= -github.com/go-openapi/jsonpointer v0.20.2 h1:mQc3nmndL8ZBzStEo3JYF8wzmeWffDH4VbXz58sAx6Q= -github.com/go-openapi/jsonpointer v0.20.2/go.mod h1:bHen+N0u1KEO3YlmqOjTT9Adn1RfD91Ar825/PuiRVs= -github.com/go-openapi/jsonreference v0.20.4 h1:bKlDxQxQJgwpUSgOENiMPzCTBVuc7vTdXSSgNeAhojU= -github.com/go-openapi/jsonreference v0.20.4/go.mod h1:5pZJyJP2MnYCpoeoMAql78cCHauHj0V9Lhc506VOpw4= -github.com/go-openapi/loads v0.21.5 h1:jDzF4dSoHw6ZFADCGltDb2lE4F6De7aWSpe+IcsRzT0= -github.com/go-openapi/loads v0.21.5/go.mod h1:PxTsnFBoBe+z89riT+wYt3prmSBP6GDAQh2l9H1Flz8= -github.com/go-openapi/spec v0.20.14 h1:7CBlRnw+mtjFGlPDRZmAMnq35cRzI91xj03HVyUi/Do= -github.com/go-openapi/spec v0.20.14/go.mod h1:8EOhTpBoFiask8rrgwbLC3zmJfz4zsCUueRuPM6GNkw= -github.com/go-openapi/strfmt v0.23.0 h1:nlUS6BCqcnAk0pyhi9Y+kdDVZdZMHfEKQiS4HaMgO/c= -github.com/go-openapi/strfmt v0.23.0/go.mod h1:NrtIpfKtWIygRkKVsxh7XQMDQW5HKQl6S5ik2elW+K4= -github.com/go-openapi/swag v0.22.9 h1:XX2DssF+mQKM2DHsbgZK74y/zj4mo9I99+89xUmuZCE= -github.com/go-openapi/swag v0.22.9/go.mod h1:3/OXnFfnMAwBD099SwYRk7GD3xOrr1iL7d/XNLXVVwE= -github.com/go-openapi/validate v0.23.0 h1:2l7PJLzCis4YUGEoW6eoQw3WhyM65WSIcjX6SQnlfDw= -github.com/go-openapi/validate v0.23.0/go.mod h1:EeiAZ5bmpSIOJV1WLfyYF9qp/B1ZgSaEpHTJHtN5cbE= -github.com/go-resty/resty/v2 v2.13.1 h1:x+LHXBI2nMB1vqndymf26quycC4aggYJ7DECYbiz03g= -github.com/go-resty/resty/v2 v2.13.1/go.mod h1:GznXlLxkq6Nh4sU59rPmUw3VtgpO3aS96ORAI6Q7d+0= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= -github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= -github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= -github.com/go-zookeeper/zk v1.0.3 h1:7M2kwOsc//9VeeFiPtf+uSJlVpU66x9Ba5+8XK7/TDg= -github.com/go-zookeeper/zk v1.0.3/go.mod h1:nOB03cncLtlp4t+UAkGSV+9beXP/akpekBwL+UX1Qcw= -github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= -github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= -github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= -github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= -github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/golang/snappy v0.0.2/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= -github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4= -github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA= -github.com/google/gnostic-models v0.6.8 h1:yo/ABAfM5IMRsS1VnXjTBvUb61tFIHozhlYvRgGre9I= -github.com/google/gnostic-models v0.6.8/go.mod h1:5n7qKqH0f5wFt+aWF8CW6pZLLNOfYuF5OpfBSENuI8U= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-github/v63 v63.0.0 h1:13xwK/wk9alSokujB9lJkuzdmQuVn2QCPeck76wR3nE= -github.com/google/go-github/v63 v63.0.0/go.mod h1:IqbcrgUmIcEaioWrGYei/09o+ge5vhffGOcxrO0AfmA= -github.com/google/go-jsonnet v0.20.0 h1:WG4TTSARuV7bSm4PMB4ohjxe33IHT5WVTrJSU33uT4g= -github.com/google/go-jsonnet v0.20.0/go.mod h1:VbgWF9JX7ztlv770x/TolZNGGFfiHEVx9G6ca2eUmeA= -github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= -github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= -github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.3.3 h1:DIhPTQrbPkgs2yJYdXU/eNACCG5DVQjySNRNlflZ9Fc= -github.com/google/martian/v3 v3.3.3/go.mod h1:iEPrYcgCF7jA9OtScMFQyAlZZ4YXTKEtJ1E6RWzmBA0= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20240528025155-186aa0362fba h1:ql1qNgCyOB7iAEk8JTNM+zJrgIbnyCKX/wdlyPufP5g= -github.com/google/pprof v0.0.0-20240528025155-186aa0362fba/go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= -github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= -github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/gax-go/v2 v2.12.4 h1:9gWcmF85Wvq4ryPFvGFaOgPIs1AQX0d0bcbGw4Z96qg= -github.com/googleapis/gax-go/v2 v2.12.4/go.mod h1:KYEYLorsnIGDi/rPC8b5TdlB9kbKoFubselGIoBMCwI= -github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= -github.com/gookit/color v1.4.2/go.mod h1:fqRyamkC1W8uxl+lxCQxOT09l/vYfZ+QeiX3rKQHCoQ= -github.com/gookit/color v1.5.0/go.mod h1:43aQb+Zerm/BWh2GnrgOQm7ffz7tvQXEKV6BFMl7wAo= -github.com/gookit/color v1.5.4 h1:FZmqs7XOyGgCAxmWyPslpiok1k05wmY3SJTytgvYFs0= -github.com/gookit/color v1.5.4/go.mod h1:pZJOeOS8DM43rXbp4AZo1n9zCU2qjpcRko0b6/QJi9w= -github.com/gophercloud/gophercloud v1.12.0 h1:Jrz16vPAL93l80q16fp8NplrTCp93y7rZh2P3Q4Yq7g= -github.com/gophercloud/gophercloud v1.12.0/go.mod h1:aAVqcocTSXh2vYFZ1JTvx4EQmfgzxRcNupUfxZbBNDM= -github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= -github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/grafana/dashboard-linter v0.0.0-20231114210226-c458893a5731 h1:DfFbnpd1251Pe5vR/J/CBXsCJJM6N0nt+odU/8EPwwQ= -github.com/grafana/dashboard-linter v0.0.0-20231114210226-c458893a5731/go.mod h1:nciNdOgPMsTHwNUpYDfTqi8lRfZVtSZxXjtXfeXlQds= -github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc h1:GN2Lv3MGO7AS6PrRoT6yV5+wkrOpcszoIsO4+4ds248= -github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc/go.mod h1:+JKpmjMGhpgPL+rXZ5nsZieVzvarn86asRlBg4uNGnk= -github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 h1:bkypFPDjIYGfCYD5mRBvpqxfYX1YCS1PXdKYWi8FsN0= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0/go.mod h1:P+Lt/0by1T8bfcF3z737NnSbmxQAppXMRziHUxPOC8k= -github.com/hashicorp/consul/api v1.29.1 h1:UEwOjYJrd3lG1x5w7HxDRMGiAUPrb3f103EoeKuuEcc= -github.com/hashicorp/consul/api v1.29.1/go.mod h1:lumfRkY/coLuqMICkI7Fh3ylMG31mQSRZyef2c5YvJI= -github.com/hashicorp/consul/proto-public v0.6.1 h1:+uzH3olCrksXYWAYHKqK782CtK9scfqH+Unlw3UHhCg= -github.com/hashicorp/consul/proto-public v0.6.1/go.mod h1:cXXbOg74KBNGajC+o8RlA502Esf0R9prcoJgiOX/2Tg= -github.com/hashicorp/consul/sdk v0.16.1 h1:V8TxTnImoPD5cj0U9Spl0TUxcytjcbbJeADFF07KdHg= -github.com/hashicorp/consul/sdk v0.16.1/go.mod h1:fSXvwxB2hmh1FMZCNl6PwX0Q/1wdWtHJcZ7Ea5tns0s= -github.com/hashicorp/cronexpr v1.1.2 h1:wG/ZYIKT+RT3QkOdgYc+xsKWVRgnxJ1OJtjjy84fJ9A= -github.com/hashicorp/cronexpr v1.1.2/go.mod h1:P4wA0KBl9C5q2hABiMO7cp6jcIg96CDh1Efb3g1PWA4= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= -github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= -github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= -github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= -github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= -github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-msgpack v0.5.5 h1:i9R9JSrqIz0QVLz3sz+i3YJdT7TTSLcfLLzJi9aZTuI= -github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= -github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= -github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= -github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= -github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= -github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= -github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= -github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-sockaddr v1.0.6 h1:RSG8rKU28VTUTvEKghe5gIhIQpv8evvNpnDEyqO4u9I= -github.com/hashicorp/go-sockaddr v1.0.6/go.mod h1:uoUUmtwU7n9Dv3O4SNLeFvg0SxQ3lyjsj6+CCykpaxI= -github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= -github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= -github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= -github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.6.0 h1:uL2shRDx7RTrOrTCUZEGP/wJUFiUI8QT6E7z5o8jga4= -github.com/hashicorp/golang-lru v0.6.0/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= -github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/hcl/v2 v2.21.0 h1:lve4q/o/2rqwYOgUg3y3V2YPyD1/zkCLGjIV74Jit14= -github.com/hashicorp/hcl/v2 v2.21.0/go.mod h1:62ZYHrXgPoX8xBnzl8QzbWq4dyDsDtfCRgIq1rbJEvA= -github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= -github.com/hashicorp/memberlist v0.5.0 h1:EtYPN8DpAURiapus508I4n9CzHs2W+8NZGbmmR/prTM= -github.com/hashicorp/memberlist v0.5.0/go.mod h1:yvyXLpo0QaGE59Y7hDTsTzDD25JYBZ4mHgHUZ8lrOI0= -github.com/hashicorp/nomad/api v0.0.0-20240604134157-e73d8bb1140d h1:KHq+mAzWSkumj4PDoXc5VZbycPGcmYu8tohgVLQ6SIc= -github.com/hashicorp/nomad/api v0.0.0-20240604134157-e73d8bb1140d/go.mod h1:svtxn6QnrQ69P23VvIWMR34tg3vmwLz4UdUzm1dSCgE= -github.com/hashicorp/serf v0.10.1 h1:Z1H2J60yRKvfDYAOZLd2MU0ND4AH/WDz7xYHDWQsIPY= -github.com/hashicorp/serf v0.10.1/go.mod h1:yL2t6BqATOLGc5HF7qbFkTfXoPIY0WZdWHfEvMqbG+4= -github.com/hetznercloud/hcloud-go/v2 v2.9.0 h1:s0N6R7Zoi2DPfMtUF5o9VeUBzTtHVY6MIkHOQnfu/AY= -github.com/hetznercloud/hcloud-go/v2 v2.9.0/go.mod h1:qtW/TuU7Bs16ibXl/ktJarWqU2LwHr7eGlwoilHxtgg= -github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4= -github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= -github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= -github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= -github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= -github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/ionos-cloud/sdk-go/v6 v6.1.11 h1:J/uRN4UWO3wCyGOeDdMKv8LWRzKu6UIkLEaes38Kzh8= -github.com/ionos-cloud/sdk-go/v6 v6.1.11/go.mod h1:EzEgRIDxBELvfoa/uBN0kOQaqovLjUWEB7iW4/Q+t4k= -github.com/jarcoal/httpmock v1.3.1 h1:iUx3whfZWVf3jT01hQTO/Eo5sAYtB2/rqaUuOtpInww= -github.com/jarcoal/httpmock v1.3.1/go.mod h1:3yb8rc4BI7TCBhFY8ng0gjuLKJNquuDNiPaZjnENuYg= -github.com/jdkato/twine v0.10.1 h1:Jexy1dua9nRyr45AQ3Bml1nCVYq3VIi9g09MOkg2Wwk= -github.com/jdkato/twine v0.10.1/go.mod h1:bYejIksa/MD4jxI5/o+DFxMb7Bw7JcGZDoA6ib4j+dg= -github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= -github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= -github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= -github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= -github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= -github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= -github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/jsonnet-bundler/jsonnet-bundler v0.5.1 h1:eUd6EA1Qzz73Q4NLNLOrNkMb96+6NTTERbX9lqaxVwk= -github.com/jsonnet-bundler/jsonnet-bundler v0.5.1/go.mod h1:Qrdw/7mOFS2SKCOALKFfEH8gdvXJi8XZjw9g5ilpf4I= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/karrick/godirwalk v1.16.1 h1:DynhcF+bztK8gooS0+NDJFrdNZjJ3gzVzC545UNA9iw= -github.com/karrick/godirwalk v1.16.1/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= -github.com/klauspost/compress v1.11.4/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= -github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= -github.com/klauspost/cpuid v1.2.0 h1:NMpwD2G9JSFOE1/TJjGSo5zG7Yb2bTe7eq1jH+irmeE= -github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= -github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.0.10/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c= -github.com/klauspost/cpuid/v2 v2.0.12/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c= -github.com/klauspost/cpuid/v2 v2.2.3 h1:sxCkb+qR91z4vsqw4vGGZlDgPz3G7gjaLyK3V8y70BU= -github.com/klauspost/cpuid/v2 v2.2.3/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= -github.com/klauspost/pgzip v1.2.5 h1:qnWYvvKqedOF2ulHpMG72XQol4ILEJ8k2wwRl/Km8oE= -github.com/klauspost/pgzip v1.2.5/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= -github.com/kolo/xmlrpc v0.0.0-20220921171641-a4b6fa1dd06b h1:udzkj9S/zlT5X367kqJis0QP7YMxobob6zhzq6Yre00= -github.com/kolo/xmlrpc v0.0.0-20220921171641-a4b6fa1dd06b/go.mod h1:pcaDhQK0/NJZEvtCO0qQPPropqV0sJOJ6YW7X+9kRwM= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= -github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= -github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= -github.com/linode/linodego v1.35.0 h1:rIhUeCHBLEDlkoRnOTwzSGzljQ3ksXwLxacmXnrV+Do= -github.com/linode/linodego v1.35.0/go.mod h1:JxuhOEAMfSxun6RU5/MgTKH2GGTmFrhKRj3wL1NFin0= -github.com/lithammer/fuzzysearch v1.1.8 h1:/HIuJnjHuXS8bKaiTMeeDlW2/AyIWk2brx1V8LFgLN4= -github.com/lithammer/fuzzysearch v1.1.8/go.mod h1:IdqeyBClc3FFqSzYq/MXESsS4S0FsZ5ajtkr5xPLts4= -github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= -github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/maruel/natural v1.1.1 h1:Hja7XhhmvEFhcByqDoHz9QZbkWey+COd9xWfCfn1ioo= -github.com/maruel/natural v1.1.1/go.mod h1:v+Rfd79xlw1AgVBjbO0BEQmptqb5HvL/k9GRHB7ZKEg= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= -github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= -github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= -github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= -github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= -github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/maxatome/go-testdeep v1.12.0 h1:Ql7Go8Tg0C1D/uMMX59LAoYK7LffeJQ6X2T04nTH68g= -github.com/maxatome/go-testdeep v1.12.0/go.mod h1:lPZc/HAcJMP92l7yI6TRz1aZN5URwUBUAfUNvrclaNM= -github.com/mholt/archiver/v3 v3.5.1 h1:rDjOBX9JSF5BvoJGvjqK479aL70qh9DIpZCl+k7Clwo= -github.com/mholt/archiver/v3 v3.5.1/go.mod h1:e3dqJ7H78uzsRSEACH1joayhuSyhnonssnDhppzS1L4= -github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= -github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= -github.com/miekg/dns v1.1.59 h1:C9EXc/UToRwKLhK5wKU/I4QVsBUc8kE6MkHBkeypWZs= -github.com/miekg/dns v1.1.59/go.mod h1:nZpewl5p6IvctfgrckopVx2OlSEHPRO/U4SYkRklrEk= -github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= -github.com/mitchellh/copystructure v1.0.0 h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ= -github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= -github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= -github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= -github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7 h1:DpOJ2HYzCv8LZP15IdmG+YdwD2luVPHITV96TkirNBM= -github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= -github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= -github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/reflectwalk v1.0.0 h1:9D+8oIskB4VJBN5SFlmc27fSlIBZaov1Wpk/IfikLNY= -github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0= -github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo= -github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 h1:dcztxKSvZ4Id8iPpHERQBbIJfabdt4wUm5qy3wOL2Zc= -github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6/go.mod h1:E2VnQOmVuvZB6UYnnDB0qG5Nq/1tD9acaOpo6xmt0Kw= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/montanaflynn/stats v0.7.1 h1:etflOAAHORrCC44V+aR6Ftzort912ZU+YLiSTuV8eaE= -github.com/montanaflynn/stats v0.7.1/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= -github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= -github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/neilotoole/slogt v1.1.0 h1:c7qE92sq+V0yvCuaxph+RQ2jOKL61c4hqS1Bv9W7FZE= -github.com/neilotoole/slogt v1.1.0/go.mod h1:RCrGXkPc/hYybNulqQrMHRtvlQ7F6NktNVLuLwk6V+w= -github.com/neurosnap/sentences v1.1.2 h1:iphYOzx/XckXeBiLIUBkPu2EKMJ+6jDbz/sLJZ7ZoUw= -github.com/neurosnap/sentences v1.1.2/go.mod h1:/pwU4E9XNL21ygMIkOIllv/SMy2ujHwpf8GQPu1YPbQ= -github.com/niklasfasching/go-org v1.6.6 h1:U6+mJ80p3weR4oP+Z+Pb2EVkSbt1MUwweBbUcF1hVqQ= -github.com/niklasfasching/go-org v1.6.6/go.mod h1:o3pMQpO9n6RNBXz2Oc2DiRkaVwjns0JElyKiG7yXwA4= -github.com/nsf/jsondiff v0.0.0-20230430225905-43f6cf3098c1 h1:dOYG7LS/WK00RWZc8XGgcUTlTxpp3mKhdR2Q9z9HbXM= -github.com/nsf/jsondiff v0.0.0-20230430225905-43f6cf3098c1/go.mod h1:mpRZBD8SJ55OIICQ3iWH0Yz3cjzA61JdqMLoWXeB2+8= -github.com/nwaples/rardecode v1.1.0 h1:vSxaY8vQhOcVr4mm5e8XllHWTiM4JF507A0Katqw7MQ= -github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= -github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= -github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= -github.com/olekukonko/tablewriter v0.0.4 h1:vHD/YYe1Wolo78koG299f7V/VAS08c6IpCLn+Ejf/w8= -github.com/olekukonko/tablewriter v0.0.4/go.mod h1:zq6QwlOf5SlnkVbMSr5EoBv3636FWnp+qbPhuoO21uA= -github.com/onsi/ginkgo/v2 v2.13.0 h1:0jY9lJquiL8fcf3M4LAXN5aMlS/b2BV86HFFPCPMgE4= -github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o= -github.com/onsi/gomega v1.29.0 h1:KIA/t2t5UBzoirT4H9tsML45GEbo3ouUnBHsCfD2tVg= -github.com/onsi/gomega v1.29.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ= -github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= -github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= -github.com/opencontainers/image-spec v1.0.2 h1:9yCKha/T5XdGtO0q9Q9a6T5NUCsTn/DrBg0D7ufOcFM= -github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/otiai10/copy v1.7.0 h1:hVoPiN+t+7d2nzzwMiDHPSOogsWAStewq3TwU05+clE= -github.com/otiai10/copy v1.7.0/go.mod h1:rmRl6QPdJj6EiUqXQ/4Nn2lLXoNQjFCQbbNrxgc/t3U= -github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= -github.com/otiai10/curr v1.0.0/go.mod h1:LskTG5wDwr8Rs+nNQ+1LlxRjAtTZZjtJW4rMXl6j4vs= -github.com/otiai10/mint v1.3.0/go.mod h1:F5AjcsTsWUqX+Na9fpHb52P8pcRX2CI6A3ctIT91xUo= -github.com/otiai10/mint v1.3.3 h1:7JgpsBaN0uMkyju4tbYHu0mnM55hNKVYLsXmwr15NQI= -github.com/otiai10/mint v1.3.3/go.mod h1:/yxELlJQ0ufhjUwhshSj+wFjZ78CnZ48/1wtmBH1OTc= -github.com/ovh/go-ovh v1.5.1 h1:P8O+7H+NQuFK9P/j4sFW5C0fvSS2DnHYGPwdVCp45wI= -github.com/ovh/go-ovh v1.5.1/go.mod h1:cTVDnl94z4tl8pP1uZ/8jlVxntjSIf09bNcQ5TJSC7c= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= -github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= -github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= -github.com/pierrec/lz4/v4 v4.1.2 h1:qvY3YFXRQE/XB8MlLzJH7mSzBs74eA2gg52YTk6jUPM= -github.com/pierrec/lz4/v4 v4.1.2/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= -github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= -github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e h1:aoZm08cpOy4WuID//EZDgcC4zIxODThtZNPirFr42+A= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= -github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= -github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g= -github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U= -github.com/prometheus/alertmanager v0.27.0 h1:V6nTa2J5V4s8TG4C4HtrBP/WNSebCCTYGGv4qecA/+I= -github.com/prometheus/alertmanager v0.27.0/go.mod h1:8Ia/R3urPmbzJ8OsdvmZvIprDwvwmYCmUbwBL+jlPOE= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= -github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.19.1 h1:wZWJDwK+NameRJuPGDhlnFgx8e8HN3XHQeLaYJFJBOE= -github.com/prometheus/client_golang v1.19.1/go.mod h1:mP78NwGzrVks5S2H6ab8+ZZGJLZUq1hoULYBAYBw1Ho= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= -github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= -github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.29.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc= -github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8= -github.com/prometheus/common/sigv4 v0.1.0 h1:qoVebwtwwEhS85Czm2dSROY5fTo2PAPEVdDeppTwGX4= -github.com/prometheus/common/sigv4 v0.1.0/go.mod h1:2Jkxxk9yYvCkE5G1sQT7GuEXm57JrvHu9k5YwTjsNtI= -github.com/prometheus/exporter-toolkit v0.11.0 h1:yNTsuZ0aNCNFQ3aFTD2uhPOvr4iD7fdBvKPAEGkNf+g= -github.com/prometheus/exporter-toolkit v0.11.0/go.mod h1:BVnENhnNecpwoTLiABx7mrPB/OLRIgN74qlQbV+FK1Q= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= -github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= -github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= -github.com/prometheus/prometheus v0.53.1 h1:B0xu4VuVTKYrIuBMn/4YSUoIPYxs956qsOfcS4rqCuA= -github.com/prometheus/prometheus v0.53.1/go.mod h1:RZDkzs+ShMBDkAPQkLEaLBXpjmDcjhNxU2drUVPgKUU= -github.com/prymitive/current v0.1.0 h1:j0qvhMUKEz4rZE7YgftTYnBcaujmv6RVGvvmEC+p+6E= -github.com/prymitive/current v0.1.0/go.mod h1:ZKbTBHjDMGAM3YPcnkA2I4L5U/vYfbXyVTKZJWhTCoc= -github.com/pterm/pterm v0.12.27/go.mod h1:PhQ89w4i95rhgE+xedAoqous6K9X+r6aSOI2eFF7DZI= -github.com/pterm/pterm v0.12.29/go.mod h1:WI3qxgvoQFFGKGjGnJR849gU0TsEOvKn5Q8LlY1U7lg= -github.com/pterm/pterm v0.12.30/go.mod h1:MOqLIyMOgmTDz9yorcYbcw+HsgoZo3BQfg2wtl3HEFE= -github.com/pterm/pterm v0.12.31/go.mod h1:32ZAWZVXD7ZfG0s8qqHXePte42kdz8ECtRyEejaWgXU= -github.com/pterm/pterm v0.12.33/go.mod h1:x+h2uL+n7CP/rel9+bImHD5lF3nM9vJj80k9ybiiTTE= -github.com/pterm/pterm v0.12.36/go.mod h1:NjiL09hFhT/vWjQHSj1athJpx6H8cjpHXNAK5bUw8T8= -github.com/pterm/pterm v0.12.40/go.mod h1:ffwPLwlbXxP+rxT0GsgDTzS3y3rmpAO1NMjUkGTYf8s= -github.com/pterm/pterm v0.12.76 h1:x1gbA2c7mJEd0PjJP3EYN04PR1DVrE3Z8sRDMP+qH6g= -github.com/pterm/pterm v0.12.76/go.mod h1:1v/gzOF1N0FsjbgTHZ1wVycRkKiatFvJSJC4IGaQAAo= -github.com/remeh/sizedwaitgroup v1.0.0 h1:VNGGFwNo/R5+MJBf6yrsr110p0m4/OX4S3DCy7Kyl5E= -github.com/remeh/sizedwaitgroup v1.0.0/go.mod h1:3j2R4OIe/SeS6YDhICBy22RWjJC5eNCJ1V+9+NVNYlo= -github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= -github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= -github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= -github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= -github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= -github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.27 h1:yGAraK1uUjlhSXgNMIy8o/J4LFNcy7yeipBqt9N9mVg= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.27/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= -github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/shoenig/test v1.7.1 h1:UJcjSAI3aUKx52kfcfhblgyhZceouhvvs3OYdWgn+PY= -github.com/shoenig/test v1.7.1/go.mod h1:UxJ6u/x2v/TNs/LoLxBNJRV9DiwBBKYxXSyczsBHFoI= -github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ= -github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= -github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= -github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/smacker/go-tree-sitter v0.0.0-20240514083259-c5d1f3f5f99e h1:nOtrYzQNgRipVsrOkYpVU/ZMDS3/+78It68cPBPKy8A= -github.com/smacker/go-tree-sitter v0.0.0-20240514083259-c5d1f3f5f99e/go.mod h1:q99oHDsbP0xRwmn7Vmob8gbSMNyvJ83OauXPSuHQuKE= -github.com/spf13/afero v1.10.0 h1:EaGW2JJh15aKOejeuJ+wpFSHnbd7GE6Wvp3TsNhb6LY= -github.com/spf13/afero v1.10.0/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= -github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= -github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= -github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= -github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= -github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= -github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= -github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= -github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= -github.com/stretchr/testify v1.7.4/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= -github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= -github.com/tidwall/gjson v1.17.0 h1:/Jocvlh98kcTfpN2+JzGQWQcqrPQwDrVEMApx/M5ZwM= -github.com/tidwall/gjson v1.17.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= -github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= -github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= -github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= -github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= -github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY= -github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28= -github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= -github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= -github.com/ulikunitz/xz v0.5.9/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= -github.com/ulikunitz/xz v0.5.10 h1:t92gobL9l3HE202wg3rlk19F6X+JOxl9BBrCCMYEYd8= -github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= -github.com/urfave/cli/v2 v2.27.2 h1:6e0H+AkS+zDckwPCUrZkKX38mRaau4nL2uipkJpbkcI= -github.com/urfave/cli/v2 v2.27.2/go.mod h1:g0+79LmHHATl7DAcHO99smiR/T7uGLw84w8Y42x+4eM= -github.com/vultr/govultr/v2 v2.17.2 h1:gej/rwr91Puc/tgh+j33p/BLR16UrIPnSr+AIwYWZQs= -github.com/vultr/govultr/v2 v2.17.2/go.mod h1:ZFOKGWmgjytfyjeyAdhQlSWwTjh2ig+X49cAp50dzXI= -github.com/xanzy/go-gitlab v0.106.0 h1:EDfD03K74cIlQo2EducfiupVrip+Oj02bq9ofw5F8sA= -github.com/xanzy/go-gitlab v0.106.0/go.mod h1:ETg8tcj4OhrB84UEgeE8dSuV/0h4BBL1uOV/qK0vlyI= -github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= -github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo= -github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= -github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= -github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= -github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= -github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc= -github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU= -github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 h1:nIPpBwaJSVYIxUFsDv3M8ofmx9yWTog9BfvIu0q41lo= -github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos= -github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs= -github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no= -github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM= -github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 h1:+qGGcbkzsfDQNPPe9UDgpxAWQrhbbBXOYJFQDq/dtJw= -github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913/go.mod h1:4aEEwZQutDLsQv2Deui4iYQ6DWTxR14g6m8Wv88+Xqk= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/yuin/goldmark v1.5.6 h1:COmQAWTCcGetChm3Ig7G/t8AFAN00t+o8Mt4cf7JpwA= -github.com/yuin/goldmark v1.5.6/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zclconf/go-cty v1.15.0 h1:tTCRWxsexYUmtt/wVxgDClUe+uQusuI443uL6e+5sXQ= -github.com/zclconf/go-cty v1.15.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= -github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940 h1:4r45xpDWB6ZMSMNJFMOjqrGHynW3DIBuR2H9j0ug+Mo= -github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940/go.mod h1:CmBdvvj3nqzfzJ6nTCIwDTPZ56aVGvDrmztiO5g3qrM= -github.com/zeitlinger/conflate v0.0.0-20230622100834-279724abda8c h1:PtECnCzGLw8MuQ0tmPRaN5c95ZfNTFZOobvgC6A83zk= -github.com/zeitlinger/conflate v0.0.0-20230622100834-279724abda8c/go.mod h1:KsJBt1tGR0Q7u+3T7CLN+zITAI06GiXVi/cgP9Xrpb8= -go.mongodb.org/mongo-driver v1.14.0 h1:P98w8egYRjYe3XDjxhYJagTokP/H6HzlsnojRgZRd80= -go.mongodb.org/mongo-driver v1.14.0/go.mod h1:Vzb0Mk/pa7e6cWw85R4F/endUC3u0U9jGcNU603k65c= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= -go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/collector/pdata v1.8.0 h1:d/QQgZxB4Y+d3mqLVh2ozvzujUhloD3P/fk7X+In764= -go.opentelemetry.io/collector/pdata v1.8.0/go.mod h1:/W7clu0wFC4WSRp94Ucn6Vm36Wkrt+tmtlDb1aiNZCY= -go.opentelemetry.io/collector/semconv v0.101.0 h1:tOe9iTe9dDCnvz/bqgfNRr4w80kXG8505tQJ5h5v08Q= -go.opentelemetry.io/collector/semconv v0.101.0/go.mod h1:8ElcRZ8Cdw5JnvhTOQOdYizkJaQ10Z2fS+R6djOnj6A= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 h1:9l89oX4ba9kHbBol3Xin3leYJ+252h0zszDtBwyKe2A= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0/go.mod h1:XLZfZboOJWHNKUv7eH0inh0E9VV6eWDFB/9yJyTLPp0= -go.opentelemetry.io/otel v1.27.0 h1:9BZoF3yMK/O1AafMiQTVu0YDj5Ea4hPhxCs7sGva+cg= -go.opentelemetry.io/otel v1.27.0/go.mod h1:DMpAK8fzYRzs+bi3rS5REupisuqTheUlSZJ1WnZaPAQ= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.27.0 h1:R9DE4kQ4k+YtfLI2ULwX82VtNQ2J8yZmA7ZIF/D+7Mc= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.27.0/go.mod h1:OQFyQVrDlbe+R7xrEyDr/2Wr67Ol0hRUgsfA+V5A95s= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0 h1:QY7/0NeRPKlzusf40ZE4t1VlMKbqSNT7cJRYzWuja0s= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0/go.mod h1:HVkSiDhTM9BoUJU8qE6j2eSWLLXvi1USXjyd2BXT8PY= -go.opentelemetry.io/otel/metric v1.27.0 h1:hvj3vdEKyeCi4YaYfNjv2NUje8FqKqUY8IlF0FxV/ik= -go.opentelemetry.io/otel/metric v1.27.0/go.mod h1:mVFgmRlhljgBiuk/MP/oKylr4hs85GZAylncepAX/ak= -go.opentelemetry.io/otel/sdk v1.27.0 h1:mlk+/Y1gLPLn84U4tI8d3GNJmGT/eXe3ZuOXN9kTWmI= -go.opentelemetry.io/otel/sdk v1.27.0/go.mod h1:Ha9vbLwJE6W86YstIywK2xFfPjbWlCuwPtMkKdz/Y4A= -go.opentelemetry.io/otel/trace v1.27.0 h1:IqYb813p7cmbHk0a5y6pD5JPakbVfftRXABGt5/Rscw= -go.opentelemetry.io/otel/trace v1.27.0/go.mod h1:6RiD1hkAprV4/q+yd2ln1HG9GoPx39SuvvstaLBl+l4= -go.opentelemetry.io/proto/otlp v1.2.0 h1:pVeZGk7nXDC9O2hncA6nHldxEjm6LByfA2aN8IOkz94= -go.opentelemetry.io/proto/otlp v1.2.0/go.mod h1:gGpR8txAl5M03pDhMC79G6SdqNV26naRm/KDsgaHD8A= -go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= -go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= -go.uber.org/automaxprocs v1.5.3 h1:kWazyxZUrS3Gs4qUpbwo5kEIMGe/DAvi5Z4tl2NW4j8= -go.uber.org/automaxprocs v1.5.3/go.mod h1:eRbA25aqJrxAbsLO0xy5jVwPt7FQnRgjW+efnwa1WM0= -go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= -go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= -go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= -go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -go.uber.org/ratelimit v0.3.1 h1:K4qVE+byfv/B3tC+4nYWP7v/6SimcO7HzHekoMNBma0= -go.uber.org/ratelimit v0.3.1/go.mod h1:6euWsTB6U/Nb3X++xEUXA8ciPJvr19Q/0h1+oDcJhRk= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220829220503-c86fa9a7ed90/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= -golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= -golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/exp v0.0.0-20240119083558-1b970713d09a h1:Q8/wZp0KX97QFTc2ywcOE0YRjZPVIx+MXInMzdvQqcA= -golang.org/x/exp v0.0.0-20240119083558-1b970713d09a/go.mod h1:idGWGoKP1toJGkd5/ig9ZLuPcZBC3ewk7SzmH0uou08= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.18.0 h1:5+9lSbEzPSdWkH32vYPBwEpX8KwDbM52Ud9xBUvNlb0= -golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= -golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= -golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= -golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= -golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= -golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211013075003-97ac67df715c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= -golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= -golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= -golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA= -golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= -golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= -golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.22.0 h1:gqSGLZqv+AI9lIQzniJ0nZDRG5GBPsSi+DRNHWNz6yA= -golang.org/x/tools v0.22.0/go.mod h1:aCwcsjqvq7Yqt6TNyX7QMU2enbQ/Gt0bo6krSeEri+c= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= -golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= -google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= -google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= -google.golang.org/api v0.183.0 h1:PNMeRDwo1pJdgNcFQ9GstuLe/noWKIc89pRWRLMvLwE= -google.golang.org/api v0.183.0/go.mod h1:q43adC5/pHoSZTx5h2mSmdF7NcyfW9JuDyIOJAgS9ZQ= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20240528184218-531527333157 h1:u7WMYrIrVvs0TF5yaKwKNbcJyySYf+HAIFXxWltJOXE= -google.golang.org/genproto v0.0.0-20240528184218-531527333157/go.mod h1:ubQlAQnzejB8uZzszhrTCU2Fyp6Vi7ZE5nn0c3W8+qQ= -google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 h1:7whR9kGa5LUwFtpLm2ArCEejtnxlGeLbAyjFY8sGNFw= -google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157/go.mod h1:99sLkeliLXfdj2J75X3Ho+rrVCaJze0uwN7zDDkjPVU= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 h1:Zy9XzmMEflZ/MAaA7vNcoebnRAld7FsPW1EeBB7V0m8= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= -google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= -google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.64.1 h1:LKtvyfbX3UGVPFcGqJ9ItpVWW6oN/2XqTxfAnwRRXiA= -google.golang.org/grpc v1.64.1/go.mod h1:hiQF4LFZelK2WKaP6W0L92zGHtiQdZxk8CrSdvyjeP0= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= -gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= -gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= -gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/neurosnap/sentences.v1 v1.0.7 h1:gpTUYnqthem4+o8kyTLiYIB05W+IvdQFYR29erfe8uU= -gopkg.in/neurosnap/sentences.v1 v1.0.7/go.mod h1:YlK+SN+fLQZj+kY3r8DkGDhDr91+S3JmTb5LSxFRQo0= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gotest.tools/v3 v3.0.3 h1:4AuOwCGf4lLR9u3YOe2awrHygurzhO/HeQ6laiA6Sx0= -gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -k8s.io/api v0.29.3 h1:2ORfZ7+bGC3YJqGpV0KSDDEVf8hdGQ6A03/50vj8pmw= -k8s.io/api v0.29.3/go.mod h1:y2yg2NTyHUUkIoTC+phinTnEa3KFM6RZ3szxt014a80= -k8s.io/apimachinery v0.29.3 h1:2tbx+5L7RNvqJjn7RIuIKu9XTsIZ9Z5wX2G22XAa5EU= -k8s.io/apimachinery v0.29.3/go.mod h1:hx/S4V2PNW4OMg3WizRrHutyB5la0iCUbZym+W0EQIU= -k8s.io/client-go v0.29.3 h1:R/zaZbEAxqComZ9FHeQwOh3Y1ZUs7FaHKZdQtIc2WZg= -k8s.io/client-go v0.29.3/go.mod h1:tkDisCvgPfiRpxGnOORfkljmS+UrW+WtXAy2fTvXJB0= -k8s.io/klog/v2 v2.120.1 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw= -k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= -k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 h1:BZqlfIlq5YbRMFko6/PM7FjZpUb45WallggurYhKGag= -k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340/go.mod h1:yD4MZYeKMBwQKVht279WycxKyM84kkAx2DPrTXaeb98= -k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSnlTLKgpAAttJvpI= -k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= -sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= -sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= -sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= -sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= -sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/tools.go b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/tools.go deleted file mode 100644 index 3a39db775..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/scripts/tools.go +++ /dev/null @@ -1,18 +0,0 @@ -//go:build tools -// +build tools - -// Packae tols tracks dependencies for tools that used in the build process. -// See https://github.com/golang/go/issues/25922 -package tools - -import ( - _ "github.com/Kunde21/markdownfmt/v3/cmd/markdownfmt" - _ "github.com/cloudflare/pint/cmd/pint" - _ "github.com/errata-ai/vale/v3/cmd/vale" - _ "github.com/google/go-jsonnet/cmd/jsonnet" - _ "github.com/google/go-jsonnet/cmd/jsonnet-lint" - _ "github.com/google/go-jsonnet/cmd/jsonnetfmt" - _ "github.com/grafana/dashboard-linter" - _ "github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb" - _ "github.com/prometheus/prometheus/cmd/promtool" -) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/tests.yaml b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/tests.yaml deleted file mode 100644 index f1893b63c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes-monitoring/kubernetes-mixin/tests.yaml +++ /dev/null @@ -1,1269 +0,0 @@ -rule_files: - - prometheus_alerts.yaml - - prometheus_rules.yaml - -evaluation_interval: 1m - -tests: -# PersistentVolume disk space -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_available_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 512 64 16' - - series: 'kubelet_volume_stats_capacity_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 1024 1024 1024' - - series: 'kubelet_volume_stats_used_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '16 64 512 1024' - - series: 'kube_persistentvolumeclaim_access_mode{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc", access_mode="ReadWriteOnce", service="kube-state-metrics"}' - values: '1 1 1 1' - alert_rule_test: - - eval_time: 1m - alertname: KubePersistentVolumeFillingUp - - eval_time: 2m - alertname: KubePersistentVolumeFillingUp - - eval_time: 3m - alertname: KubePersistentVolumeFillingUp - - eval_time: 4m - alertname: KubePersistentVolumeFillingUp - exp_alerts: - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - persistentvolumeclaim: somepvc - severity: critical - exp_annotations: - summary: "PersistentVolume is filling up." - description: 'The PersistentVolume claimed by somepvc in Namespace monitoring on Cluster kubernetes is only 1.562% free.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepersistentvolumefillingup - -# Don't alert when PVC access_mode is ReadOnlyMany -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_available_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 512 64 16' - - series: 'kubelet_volume_stats_capacity_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 1024 1024 1024' - - series: 'kubelet_volume_stats_used_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '16 64 512 1024' - - series: 'kube_persistentvolumeclaim_access_mode{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc", access_mode="ReadOnlyMany", service="kube-state-metrics"}' - values: '1 1 1 1' - alert_rule_test: - - eval_time: 1m - alertname: KubePersistentVolumeFillingUp - - eval_time: 2m - alertname: KubePersistentVolumeFillingUp - - eval_time: 3m - alertname: KubePersistentVolumeFillingUp - - eval_time: 4m - alertname: KubePersistentVolumeFillingUp - -# Block volume mounts can report 0 for the kubelet_volume_stats_used_bytes metric but it shouldn't trigger the KubePersistentVolumeFillingUp alert. -# See https://github.com/kubernetes/kubernetes/commit/b997e0e4d6ccbead435a47d6ac75b0db3d17252f for details. -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_available_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 512 64 16' - - series: 'kubelet_volume_stats_capacity_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 1024 1024 1024' - - series: 'kubelet_volume_stats_used_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '0 0 0 0' - alert_rule_test: - - eval_time: 1m - alertname: KubePersistentVolumeFillingUp - - eval_time: 2m - alertname: KubePersistentVolumeFillingUp - - eval_time: 3m - alertname: KubePersistentVolumeFillingUp - - eval_time: 4m - alertname: KubePersistentVolumeFillingUp - - # Don't alert when PVC has been labelled as fully utilised -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_available_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 512 64 16' - - series: 'kubelet_volume_stats_capacity_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 1024 1024 1024' - - series: 'kubelet_volume_stats_used_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '16 64 512 1024' - - series: 'kube_persistentvolumeclaim_access_mode{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc", access_mode="ReadWriteOnce", service="kube-state-metrics"}' - values: '1 1 1 1' - - series: 'kube_persistentvolumeclaim_labels{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc",label_excluded_from_alerts="true"}' - values: '1 1 1 1' - alert_rule_test: - - eval_time: 1m - alertname: KubePersistentVolumeFillingUp - - eval_time: 2m - alertname: KubePersistentVolumeFillingUp - - eval_time: 3m - alertname: KubePersistentVolumeFillingUp - - eval_time: 4m - alertname: KubePersistentVolumeFillingUp - -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_available_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024-10x61' - - series: 'kubelet_volume_stats_capacity_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '32768+0x61' - - series: 'kubelet_volume_stats_used_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024+10x61' - alert_rule_test: - - eval_time: 1h - alertname: KubePersistentVolumeFillingUp - exp_alerts: - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - persistentvolumeclaim: somepvc - severity: critical - exp_annotations: - summary: "PersistentVolume is filling up." - description: 'The PersistentVolume claimed by somepvc in Namespace monitoring on Cluster kubernetes is only 1.294% free.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepersistentvolumefillingup - -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_available_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024-10x61' - - series: 'kubelet_volume_stats_capacity_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '32768+0x61' - - series: 'kubelet_volume_stats_used_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024+10x61' - - series: 'kube_persistentvolumeclaim_access_mode{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc", access_mode="ReadWriteOnce", service="kube-state-metrics"}' - values: '1x61' - alert_rule_test: - - eval_time: 61m - alertname: KubePersistentVolumeFillingUp - exp_alerts: - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - persistentvolumeclaim: somepvc - severity: warning - exp_annotations: - summary: "PersistentVolume is filling up." - description: 'Based on recent sampling, the PersistentVolume claimed by somepvc in Namespace monitoring on Cluster kubernetes is expected to fill up within four days. Currently 1.263% is available.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepersistentvolumefillingup - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - persistentvolumeclaim: somepvc - severity: critical - exp_annotations: - summary: "PersistentVolume is filling up." - description: 'The PersistentVolume claimed by somepvc in Namespace monitoring on Cluster kubernetes is only 1.263% free.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepersistentvolumefillingup - -# Block volume mounts can report 0 for the kubelet_volume_stats_used_bytes metric but it shouldn't trigger the KubePersistentVolumeFillingUp alert. -# See https://github.com/kubernetes/kubernetes/commit/b997e0e4d6ccbead435a47d6ac75b0db3d17252f for details. -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_available_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024-10x61' - - series: 'kubelet_volume_stats_capacity_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '32768+0x61' - - series: 'kubelet_volume_stats_used_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '0x61' - alert_rule_test: - - eval_time: 61m - alertname: KubePersistentVolumeFillingUp - -# Don't alert when PVC access_mode is ReadOnlyMany -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_available_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024-10x61' - - series: 'kubelet_volume_stats_capacity_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '32768+0x61' - - series: 'kubelet_volume_stats_used_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1x61' - - series: 'kube_persistentvolumeclaim_access_mode{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc", access_mode="ReadOnlyMany", service="kube-state-metrics"}' - values: '1x61' - alert_rule_test: - - eval_time: 61m - alertname: KubePersistentVolumeFillingUp - -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_available_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024-10x61' - - series: 'kubelet_volume_stats_capacity_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '32768+0x61' - - series: 'kubelet_volume_stats_used_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024+10x61' - - series: 'kube_persistentvolumeclaim_access_mode{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc", access_mode="ReadWriteOnce", service="kube-state-metrics"}' - values: '1x61' - - series: 'kube_persistentvolumeclaim_labels{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc",label_excluded_from_alerts="true"}' - values: '1x61' - alert_rule_test: - - eval_time: 61m - alertname: KubePersistentVolumeFillingUp - -# PersistentVolume inodes -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_inodes_free{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 512 64 16' - - series: 'kubelet_volume_stats_inodes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 1024 1024 1024' - - series: 'kubelet_volume_stats_inodes_used{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '16 64 512 1024' - - series: 'kube_persistentvolumeclaim_access_mode{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc", access_mode="ReadWriteOnce", service="kube-state-metrics"}' - values: '1 1 1 1' - alert_rule_test: - - eval_time: 1m - alertname: KubePersistentVolumeInodesFillingUp - - eval_time: 2m - alertname: KubePersistentVolumeInodesFillingUp - - eval_time: 3m - alertname: KubePersistentVolumeInodesFillingUp - - eval_time: 4m - alertname: KubePersistentVolumeInodesFillingUp - exp_alerts: - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - persistentvolumeclaim: somepvc - severity: critical - exp_annotations: - summary: "PersistentVolumeInodes are filling up." - description: 'The PersistentVolume claimed by somepvc in Namespace monitoring on Cluster kubernetes only has 1.562% free inodes.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepersistentvolumeinodesfillingup - -# Don't alert when PVC access_mode is ReadOnlyMany -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_inodes_free{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 512 64 16' - - series: 'kubelet_volume_stats_inodes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 1024 1024 1024' - - series: 'kubelet_volume_stats_inodes_used{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '16 64 512 1024' - - series: 'kube_persistentvolumeclaim_access_mode{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc", access_mode="ReadOnlyMany", service="kube-state-metrics"}' - values: '1 1 1 1' - alert_rule_test: - - eval_time: 1m - alertname: KubePersistentVolumeInodesFillingUp - - eval_time: 2m - alertname: KubePersistentVolumeInodesFillingUp - - eval_time: 3m - alertname: KubePersistentVolumeInodesFillingUp - - eval_time: 4m - alertname: KubePersistentVolumeInodesFillingUp - -# Block volume mounts can report 0 for the kubelet_volume_stats_inodes_used metric but it shouldn't trigger the KubePersistentVolumeInodesFillingUp alert. -# See https://github.com/kubernetes/kubernetes/commit/b997e0e4d6ccbead435a47d6ac75b0db3d17252f for details. -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_inodes_free{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 512 64 16' - - series: 'kubelet_volume_stats_inodes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 1024 1024 1024' - - series: 'kubelet_volume_stats_inodes_used{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '0 0 0 0' - alert_rule_test: - - eval_time: 1m - alertname: KubePersistentVolumeInodesFillingUp - - eval_time: 2m - alertname: KubePersistentVolumeInodesFillingUp - - eval_time: 3m - alertname: KubePersistentVolumeInodesFillingUp - - eval_time: 4m - alertname: KubePersistentVolumeInodesFillingUp - - # Don't alert when PVC has been labelled as fully utilised -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_inodes_free{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 512 64 16' - - series: 'kubelet_volume_stats_inodes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024 1024 1024 1024' - - series: 'kubelet_volume_stats_inodes_used{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '16 64 512 1024' - - series: 'kube_persistentvolumeclaim_access_mode{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc", access_mode="ReadWriteOnce", service="kube-state-metrics"}' - values: '1 1 1 1' - - series: 'kube_persistentvolumeclaim_labels{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc",label_excluded_from_alerts="true"}' - values: '1 1 1 1' - alert_rule_test: - - eval_time: 1m - alertname: KubePersistentVolumeInodesFillingUp - - eval_time: 2m - alertname: KubePersistentVolumeInodesFillingUp - - eval_time: 3m - alertname: KubePersistentVolumeInodesFillingUp - - eval_time: 4m - alertname: KubePersistentVolumeInodesFillingUp - -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_inodes_free{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024-10x61' - - series: 'kubelet_volume_stats_inodes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '32768+0x61' - - series: 'kubelet_volume_stats_inodes_used{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024+10x61' - alert_rule_test: - - eval_time: 1h - alertname: KubePersistentVolumeInodesFillingUp - exp_alerts: - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - persistentvolumeclaim: somepvc - severity: critical - exp_annotations: - summary: "PersistentVolumeInodes are filling up." - description: 'The PersistentVolume claimed by somepvc in Namespace monitoring on Cluster kubernetes only has 1.294% free inodes.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepersistentvolumeinodesfillingup - -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_inodes_free{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024-10x61' - - series: 'kubelet_volume_stats_inodes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '32768+0x61' - - series: 'kubelet_volume_stats_inodes_used{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024+10x61' - - series: 'kube_persistentvolumeclaim_access_mode{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc", access_mode="ReadWriteOnce", service="kube-state-metrics"}' - values: '1x61' - alert_rule_test: - - eval_time: 61m - alertname: KubePersistentVolumeInodesFillingUp - exp_alerts: - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - persistentvolumeclaim: somepvc - severity: warning - exp_annotations: - summary: "PersistentVolumeInodes are filling up." - description: 'Based on recent sampling, the PersistentVolume claimed by somepvc in Namespace monitoring on Cluster kubernetes is expected to run out of inodes within four days. Currently 1.263% of its inodes are free.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepersistentvolumeinodesfillingup - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - persistentvolumeclaim: somepvc - severity: critical - exp_annotations: - summary: "PersistentVolumeInodes are filling up." - description: 'The PersistentVolume claimed by somepvc in Namespace monitoring on Cluster kubernetes only has 1.263% free inodes.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepersistentvolumeinodesfillingup - -# Block volume mounts can report 0 for the kubelet_volume_stats_inodes_used metric but it shouldn't trigger the KubePersistentVolumeInodesFillingUp alert. -# See https://github.com/kubernetes/kubernetes/commit/b997e0e4d6ccbead435a47d6ac75b0db3d17252f for details. -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_inodes_free{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024-10x61' - - series: 'kubelet_volume_stats_inodes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '32768+0x61' - - series: 'kubelet_volume_stats_inodes_used{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '0x61' - alert_rule_test: - - eval_time: 61m - alertname: KubePersistentVolumeInodesFillingUp - -# Don't alert when PVC access_mode is ReadOnlyMany -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_inodes_free{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024-10x61' - - series: 'kubelet_volume_stats_inodes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '32768+0x61' - - series: 'kubelet_volume_stats_used_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1x61' - - series: 'kube_persistentvolumeclaim_access_mode{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc", access_mode="ReadOnlyMany", service="kube-state-metrics"}' - values: '1x61' - alert_rule_test: - - eval_time: 61m - alertname: KubePersistentVolumeInodesFillingUp - -- interval: 1m - input_series: - - series: 'kubelet_volume_stats_inodes_free{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024-10x61' - - series: 'kubelet_volume_stats_capacity_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '32768+0x61' - - series: 'kubelet_volume_stats_used_bytes{job="kubelet",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc"}' - values: '1024+10x61' - - series: 'kube_persistentvolumeclaim_access_mode{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc", access_mode="ReadWriteOnce", service="kube-state-metrics"}' - values: '1x61' - - series: 'kube_persistentvolumeclaim_labels{job="ksm",cluster="kubernetes",namespace="monitoring",persistentvolumeclaim="somepvc",label_excluded_from_alerts="true"}' - values: '1x61' - alert_rule_test: - - eval_time: 61m - alertname: KubePersistentVolumeInodesFillingUp - -- interval: 1m - input_series: - - series: 'kube_node_status_capacity{resource="pods",instance="172.17.0.5:8443",cluster="kubernetes",node="minikube",job="kube-state-metrics",namespace="kube-system"}' - values: '3+0x15' - - series: 'kube_pod_info{endpoint="https-main",instance="172.17.0.5:8443",job="kube-state-metrics",cluster="kubernetes",namespace="kube-system",node="minikube",pod="pod-1",service="kube-state-metrics"}' - values: '1+0x15' - - series: 'kube_pod_status_phase{endpoint="https-main",instance="172.17.0.5:8443",job="kube-state-metrics",cluster="kubernetes",namespace="kube-system",phase="Running",pod="pod-1",service="kube-state-metrics"}' - values: '1+0x15' - - series: 'kube_pod_info{endpoint="https-main",instance="172.17.0.5:8443",job="kube-state-metrics",cluster="kubernetes",namespace="kube-system",node="minikube",pod="pod-2",service="kube-state-metrics"}' - values: '1+0x15' - - series: 'kube_pod_status_phase{endpoint="https-main",instance="172.17.0.5:8443",job="kube-state-metrics",cluster="kubernetes",namespace="kube-system",phase="Running",pod="pod-2",service="kube-state-metrics"}' - values: '1+0x15' - - series: 'kube_pod_info{endpoint="https-main",instance="172.17.0.5:8443",job="kube-state-metrics",cluster="kubernetes",namespace="kube-system",node="minikube",pod="pod-3",service="kube-state-metrics"}' - values: '1+0x15' - - series: 'kube_pod_status_phase{endpoint="https-main",instance="172.17.0.5:8443",job="kube-state-metrics",cluster="kubernetes",namespace="kube-system",phase="Running",pod="pod-3",service="kube-state-metrics"}' - values: '1+0x15' - alert_rule_test: - - eval_time: 10m - alertname: KubeletTooManyPods - - eval_time: 15m - alertname: KubeletTooManyPods - exp_alerts: - - exp_labels: - cluster: kubernetes - node: minikube - severity: info - exp_annotations: - summary: "Kubelet is running at capacity." - description: "Kubelet 'minikube' is running at 100% of its Pod capacity." - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubelettoomanypods - -- interval: 1m - input_series: - - series: 'kube_pod_container_resource_requests{resource="cpu",container="kube-apiserver-67",endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",node="node-1",pod="pod-1",service="ksm"}' - values: '0.15+0x10' - - series: 'kube_pod_container_resource_requests{resource="cpu",container="kube-apiserver-67",endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",node="node-1",pod="pod-2",service="ksm"}' - values: '0.15+0x10' - - series: 'kube_pod_container_resource_requests{resource="cpu",container="kube-apiserver-67",endpoint="https-main",instance="ksm-2",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",node="node-1",pod="pod-1",service="ksm"}' - values: '0.1+0x10' - - series: 'kube_pod_container_resource_requests{resource="memory",container="kube-apiserver-67",endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",node="node-1",pod="pod-1",service="ksm"}' - values: '1E9+0x10' - - series: 'kube_pod_container_resource_requests{resource="memory",container="kube-apiserver-67",endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",node="node-1",pod="pod-2",service="ksm"}' - values: '1E9+0x10' - - series: 'kube_pod_container_resource_requests{resource="memory",container="kube-apiserver-67",endpoint="https-main",instance="ksm-2",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",node="node-1",pod="pod-1",service="ksm"}' - values: '0.5E9+0x10' - # Duplicate kube_pod_status_phase timeseries for the same pod. - - series: 'kube_pod_status_phase{endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",phase="Running",pod="pod-1",service="ksm"}' - values: '1 stale' - - series: 'kube_pod_status_phase{endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",phase="Pending",pod="pod-1",service="ksm"}' - values: '1+0x10' - - series: 'kube_pod_status_phase{endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",phase="Completed",pod="pod-2",service="ksm"}' - values: '1+0x10' - - series: 'kube_pod_status_phase{endpoint="https-main",instance="ksm-2",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",phase="Running",pod="pod-1",service="ksm"}' - values: '1+0x10' - promql_expr_test: - - eval_time: 0m - expr: namespace_cpu:kube_pod_container_resource_requests:sum - exp_samples: - - value: 0.15 - labels: 'namespace_cpu:kube_pod_container_resource_requests:sum{cluster="kubernetes",namespace="kube-apiserver"}' - - eval_time: 0m - expr: namespace_memory:kube_pod_container_resource_requests:sum - exp_samples: - - value: 1.0e+9 - labels: 'namespace_memory:kube_pod_container_resource_requests:sum{cluster="kubernetes",namespace="kube-apiserver"}' - - eval_time: 1m - expr: namespace_cpu:kube_pod_container_resource_requests:sum - exp_samples: - - value: 0.15 - labels: 'namespace_cpu:kube_pod_container_resource_requests:sum{cluster="kubernetes",namespace="kube-apiserver"}' - - eval_time: 1m - expr: namespace_memory:kube_pod_container_resource_requests:sum - exp_samples: - - value: 1.0e+9 - labels: 'namespace_memory:kube_pod_container_resource_requests:sum{cluster="kubernetes",namespace="kube-apiserver"}' - -- interval: 1m - input_series: - - series: 'kube_pod_container_resource_requests{resource="cpu",container="kube-apiserver-67",endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",node="node-1",pod="pod-1",service="ksm"}' - values: '0.15+0x10' - - series: 'kube_pod_container_resource_requests{resource="cpu",container="kube-apiserver-67",endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",node="node-1",pod="pod-2",service="ksm"}' - values: '0.15+0x10' - - series: 'kube_pod_container_resource_requests{resource="cpu",container="kube-apiserver-67",endpoint="https-main",instance="ksm-2",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",node="node-1",pod="pod-1",service="ksm"}' - values: '0.1+0x10' - - series: 'kube_pod_container_resource_requests{resource="memory",container="kube-apiserver-67",endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",node="node-1",pod="pod-1",service="ksm"}' - values: '1E9+0x10' - - series: 'kube_pod_container_resource_requests{resource="memory",container="kube-apiserver-67",endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",node="node-1",pod="pod-2",service="ksm"}' - values: '1E9+0x10' - - series: 'kube_pod_container_resource_requests{resource="memory",container="kube-apiserver-67",endpoint="https-main",instance="ksm-2",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",node="node-1",pod="pod-1",service="ksm"}' - values: '0.5E9+0x10' - # Duplicate kube_pod_status_phase timeseries for the same pod. - - series: 'kube_pod_status_phase{endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",phase="Running",pod="pod-1",service="ksm"}' - values: '1 stale' - - series: 'kube_pod_status_phase{endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",phase="Pending",pod="pod-1",service="ksm"}' - values: '1+0x10' - - series: 'kube_pod_status_phase{endpoint="https-main",instance="ksm-1",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",phase="Completed",pod="pod-2",service="ksm"}' - values: '1+0x10' - - series: 'kube_pod_status_phase{endpoint="https-main",instance="ksm-2",job="kube-state-metrics",cluster="kubernetes",namespace="kube-apiserver",phase="Running",pod="pod-1",service="ksm"}' - values: '1+0x10' - promql_expr_test: - - eval_time: 0m - expr: namespace_cpu:kube_pod_container_resource_requests:sum - exp_samples: - - value: 0.15 - labels: 'namespace_cpu:kube_pod_container_resource_requests:sum{cluster="kubernetes",namespace="kube-apiserver"}' - - eval_time: 0m - expr: namespace_memory:kube_pod_container_resource_requests:sum - exp_samples: - - value: 1.0e+9 - labels: 'namespace_memory:kube_pod_container_resource_requests:sum{cluster="kubernetes",namespace="kube-apiserver"}' - - eval_time: 1m - expr: namespace_cpu:kube_pod_container_resource_requests:sum - exp_samples: - - value: 0.15 - labels: 'namespace_cpu:kube_pod_container_resource_requests:sum{cluster="kubernetes",namespace="kube-apiserver"}' - - eval_time: 1m - expr: namespace_memory:kube_pod_container_resource_requests:sum - exp_samples: - - value: 1.0e+9 - labels: 'namespace_memory:kube_pod_container_resource_requests:sum{cluster="kubernetes",namespace="kube-apiserver"}' - -- interval: 1m - input_series: - # Create a histogram where all of the last 10 samples are in the +Inf (> 10 seconds) bucket. - - series: 'kubelet_pleg_relist_duration_seconds_bucket{job="kubelet", le="0.005", cluster="kubernetes",instance="10.0.2.15:10250"}' - values: '1+0x10' - - series: 'kubelet_pleg_relist_duration_seconds_bucket{job="kubelet", le="0.01", cluster="kubernetes",instance="10.0.2.15:10250"}' - values: '1+0x10' - - series: 'kubelet_pleg_relist_duration_seconds_bucket{job="kubelet", le="0.025", cluster="kubernetes",instance="10.0.2.15:10250"}' - values: '1+0x10' - - series: 'kubelet_pleg_relist_duration_seconds_bucket{job="kubelet", le="0.05", cluster="kubernetes",instance="10.0.2.15:10250"}' - values: '1+0x10' - - series: 'kubelet_pleg_relist_duration_seconds_bucket{job="kubelet", le="0.1", cluster="kubernetes",instance="10.0.2.15:10250"}' - values: '1+0x10' - - series: 'kubelet_pleg_relist_duration_seconds_bucket{job="kubelet", le="0.25", cluster="kubernetes",instance="10.0.2.15:10250"}' - values: '1+0x10' - - series: 'kubelet_pleg_relist_duration_seconds_bucket{job="kubelet", le="0.5", cluster="kubernetes",instance="10.0.2.15:10250"}' - values: '1+0x10' - - series: 'kubelet_pleg_relist_duration_seconds_bucket{job="kubelet", le="1", cluster="kubernetes",instance="10.0.2.15:10250"}' - values: '1+0x10' - - series: 'kubelet_pleg_relist_duration_seconds_bucket{job="kubelet", le="2.5", cluster="kubernetes",instance="10.0.2.15:10250"}' - values: '1+0x10' - - series: 'kubelet_pleg_relist_duration_seconds_bucket{job="kubelet", le="5", cluster="kubernetes",instance="10.0.2.15:10250"}' - values: '1+0x10' - - series: 'kubelet_pleg_relist_duration_seconds_bucket{job="kubelet", le="10", cluster="kubernetes",instance="10.0.2.15:10250"}' - values: '1+0x10' - - series: 'kubelet_pleg_relist_duration_seconds_bucket{job="kubelet", le="+Inf", cluster="kubernetes",instance="10.0.2.15:10250"}' - values: '30+1x10' - - series: 'kubelet_node_name{endpoint="https-metrics",cluster="kubernetes",instance="10.0.2.15:10250",job="kubelet",namespace="kube-system",node="minikube",service="kubelet"}' - values: '1 1 1 1 1 1 1 1 1 1' - alert_rule_test: - - eval_time: 10m - alertname: KubeletPlegDurationHigh - exp_alerts: - - exp_labels: - cluster: "kubernetes" - instance: 10.0.2.15:10250 - node: minikube - quantile: 0.99 - severity: warning - exp_annotations: - summary: "Kubelet Pod Lifecycle Event Generator is taking too long to relist." - description: 'The Kubelet Pod Lifecycle Event Generator has a 99th percentile duration of 10 seconds on node minikube.' - runbook_url: 'https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeletplegdurationhigh' - -- interval: 1m - input_series: - - series: 'kube_node_status_condition{condition="Ready",endpoint="https-main",cluster="kubernetes",instance="10.0.2.15:10250",job="kube-state-metrics",namespace="monitoring",node="minikube",pod="kube-state-metrics-b894d84cc-d6htw",service="kube-state-metrics",status="true"}' - values: '1 0 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 0 0 1' - alert_rule_test: - - eval_time: 18m - alertname: KubeNodeReadinessFlapping - exp_alerts: - - exp_labels: - cluster: kubernetes - node: minikube - severity: warning - exp_annotations: - summary: "Node readiness status is flapping." - description: 'The readiness status of node minikube has changed 10 times in the last 15 minutes.' - runbook_url: 'https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubenodereadinessflapping' - -# Verify that node:node_num_cpu:sum triggers no many-to-many errors. -- interval: 1m - input_series: - - series: 'node_cpu_seconds_total{cpu="0",endpoint="https",instance="instance1",job="node-exporter",mode="idle",cluster="kubernetes",namespace="openshift-monitoring",pod="node-exporter-1",service="node-exporter"}' - values: '1 1' - - series: 'node_cpu_seconds_total{cpu="1",endpoint="https",instance="instance1",job="node-exporter",mode="idle",cluster="kubernetes",namespace="openshift-monitoring",pod="node-exporter-1",service="node-exporter"}' - values: '1 1' - - series: 'kube_pod_info{cluster="kubernetes",namespace="openshift-monitoring",node="node-1",pod="node-exporter-1",job="kube-state-metrics",instance="10.129.2.7:8443"}' - values: '1 1' - - series: 'kube_pod_info{cluster="kubernetes",namespace="openshift-monitoring",node="node-1",pod="alertmanager-0",job="kube-state-metrics",instance="10.129.2.7:8443"}' - values: '1 stale' - - series: 'kube_pod_info{cluster="kubernetes",namespace="openshift-monitoring",node="node-2",pod="alertmanager-0",job="kube-state-metrics",instance="10.129.2.7:8443"}' - values: '1 1' - promql_expr_test: - - eval_time: 0m - expr: node:node_num_cpu:sum - exp_samples: - - value: 2 - labels: 'node:node_num_cpu:sum{cluster="kubernetes",node="node-1"}' - - eval_time: 1m - expr: node:node_num_cpu:sum - exp_samples: - - value: 2 - labels: 'node:node_num_cpu:sum{cluster="kubernetes",node="node-1"}' - -# Verify that node:node_num_cpu:sum doesn't trigger many-to-many errors when -# node_namespace_pod:kube_pod_info: has duplicate entries for the same -# (namespace,pod) tuple. This can happen when Prometheus is restarted because -# it didn't add stale markers to the "old" series on shutdown. -- interval: 1m - input_series: - - series: 'node_cpu_seconds_total{cpu="0",endpoint="https",instance="instance1",job="node-exporter",mode="idle",cluster="kubernetes",namespace="openshift-monitoring",pod="node-exporter-1",service="node-exporter"}' - values: '1 1' - - series: 'node_cpu_seconds_total{cpu="0",endpoint="https",instance="instance2",job="node-exporter",mode="idle",cluster="kubernetes",namespace="openshift-monitoring",pod="node-exporter-2",service="node-exporter"}' - values: '1 1' - - series: 'node_namespace_pod:kube_pod_info:{cluster="kubernetes",node="node-1",namespace="openshift-monitoring",pod="node-exporter-1"}' - values: '1 1' - - series: 'node_namespace_pod:kube_pod_info:{cluster="kubernetes",node="node-2",namespace="openshift-monitoring",pod="node-exporter-2"}' - values: '1 1' - # series for the "old" prometheus instance. - - series: 'node_namespace_pod:kube_pod_info:{cluster="kubernetes",node="node-1",namespace="openshift-monitoring",pod="prometheus-0"}' - values: '1' - # series for the "new" prometheus instance. - - series: 'node_namespace_pod:kube_pod_info:{cluster="kubernetes",node="node-2",namespace="openshift-monitoring",pod="prometheus-0"}' - values: 'stale 1' - promql_expr_test: - - eval_time: 0m - expr: node:node_num_cpu:sum - exp_samples: - - value: 1 - labels: 'node:node_num_cpu:sum{cluster="kubernetes",node="node-1"}' - - value: 1 - labels: 'node:node_num_cpu:sum{cluster="kubernetes",node="node-2"}' - - eval_time: 1m - expr: node:node_num_cpu:sum - exp_samples: - - value: 1 - labels: 'node:node_num_cpu:sum{cluster="kubernetes",node="node-1"}' - - value: 1 - labels: 'node:node_num_cpu:sum{cluster="kubernetes",node="node-2"}' - - -- interval: 1m - input_series: - - series: 'kube_pod_owner{endpoint="https",instance="instance1",job="kube-state-metrics",cluster="kubernetes",namespace="ns1",owner_is_controller="true",owner_kind="ReplicaSet",owner_name="ds-7cc77d965f",pod="ds-7cc77d965f-cgsdv",service="ksm"}' - values: '1 1' - - series: 'kube_pod_owner{endpoint="https",instance="instance2",job="kube-state-metrics",cluster="kubernetes",namespace="ns1",owner_is_controller="true",owner_kind="ReplicaSet",owner_name="ds-7cc77d965f",pod="ds-7cc77d965f-cgsdv",service="ksm"}' - values: '1 stale' - - series: 'kube_replicaset_owner{endpoint="https",instance="instance1",job="kube-state-metrics",cluster="kubernetes",namespace="ns1",owner_is_controller="true",owner_kind="Deployment",owner_name="ds",pod="ds-777f6bf798-kq7tj",replicaset="ds-7cc77d965f",service="ksm"}' - values: '1 1' - - series: 'kube_replicaset_owner{endpoint="https",instance="instance2",job="kube-state-metrics",cluster="kubernetes",namespace="ns1",owner_is_controller="true",owner_kind="Deployment",owner_name="ds",pod="ds-777f6bf798-kq7tj",replicaset="ds-7cc77d965f",service="ksm"}' - values: '1 stale' - promql_expr_test: - - eval_time: 0m - expr: namespace_workload_pod:kube_pod_owner:relabel - exp_samples: - - value: 1 - labels: 'namespace_workload_pod:kube_pod_owner:relabel{cluster="kubernetes",namespace="ns1", pod="ds-7cc77d965f-cgsdv", workload="ds", workload_type="deployment"}' - - eval_time: 1m - expr: namespace_workload_pod:kube_pod_owner:relabel - exp_samples: - - value: 1 - labels: 'namespace_workload_pod:kube_pod_owner:relabel{cluster="kubernetes",namespace="ns1", pod="ds-7cc77d965f-cgsdv", workload="ds", workload_type="deployment"}' - -- interval: 1m - input_series: - - series: 'kube_pod_status_phase{endpoint="https",instance="instance1",job="kube-state-metrics",cluster="kubernetes",namespace="ns1",phase="Pending",pod="pod-ds-7cc77d965f-cgsdv",service="ksm"}' - values: '1+0x20' - - series: 'kube_pod_owner{endpoint="https",instance="instance1",job="kube-state-metrics",cluster="kubernetes",namespace="ns1",owner_is_controller="false",owner_kind="",owner_name="ds-7cc77d965f",pod="pod-ds-7cc77d965f-cgsdv",service="ksm"}' - values: '1+0x20' - - series: 'kube_pod_owner{endpoint="https",instance="instance1",job="kube-state-metrics",cluster="kubernetes",namespace="ns1",owner_is_controller="true",owner_kind="ReplicaSet",owner_name="ds-7cc77d965f",pod="pod-ds-7cc77d965f-cgsdv",service="ksm"}' - values: '1+0x20' - alert_rule_test: - - eval_time: 15m - alertname: KubePodNotReady - exp_alerts: - - exp_labels: - cluster: kubernetes - namespace: ns1 - pod: pod-ds-7cc77d965f-cgsdv - severity: warning - exp_annotations: - summary: "Pod has been in a non-ready state for more than 15 minutes." - description: "Pod ns1/pod-ds-7cc77d965f-cgsdv has been in a non-ready state for longer than 15 minutes." - runbook_url: "https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepodnotready" - -- interval: 1m - input_series: - - series: 'container_cpu_usage_seconds_total{container="alertmanager",cpu="total",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-0",service="kubelet"}' - values: '0+3x5' - - series: 'container_cpu_usage_seconds_total{container="alertmanager",cpu="total",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-1",service="kubelet"}' - values: '0+3x5' - # Duplicate timeseries from different instances. - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",job="kube-state-metrics",instance="instance1"}' - values: '1+0x5' - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",job="kube-state-metrics",instance="instance2"}' - values: '1+0x5' - # Missing node label. - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-1",job="kube-state-metrics",instance="instance1"}' - values: '1+0x5' - promql_expr_test: - - eval_time: 5m - expr: node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate - exp_samples: - - value: 5.0e-2 - labels: 'node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster="kubernetes",namespace="monitoring", pod="alertmanager-main-0", container="alertmanager",node="node1"}' - -- interval: 1m - input_series: - - series: 'container_memory_working_set_bytes{container="alertmanager",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-0",service="kubelet"}' - values: '1000+0x5' - - series: 'container_memory_working_set_bytes{container="alertmanager",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-1",service="kubelet"}' - values: '1000+0x5' - # Duplicate timeseries from different instances. - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",job="kube-state-metrics",instance="instance1"}' - values: '1+0x5' - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",job="kube-state-metrics",instance="instance2"}' - values: '1+0x5' - # Missing node label. - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-1",job="kube-state-metrics",instance="instance1"}' - values: '1+0x5' - promql_expr_test: - - eval_time: 5m - expr: node_namespace_pod_container:container_memory_working_set_bytes - exp_samples: - - value: 1.0e+3 - labels: 'node_namespace_pod_container:container_memory_working_set_bytes{container="alertmanager",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",service="kubelet"}' - -- interval: 1m - input_series: - - series: 'container_memory_rss{container="alertmanager",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-0",service="kubelet"}' - values: '1000+0x5' - - series: 'container_memory_rss{container="alertmanager",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-1",service="kubelet"}' - values: '1000+0x5' - # Duplicate timeseries from different instances. - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",job="kube-state-metrics",instance="instance1"}' - values: '1+0x5' - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",job="kube-state-metrics",instance="instance2"}' - values: '1+0x5' - # Missing node label. - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-1",job="kube-state-metrics",instance="instance1"}' - values: '1+0x5' - promql_expr_test: - - eval_time: 5m - expr: node_namespace_pod_container:container_memory_rss - exp_samples: - - value: 1.0e+3 - labels: 'node_namespace_pod_container:container_memory_rss{container="alertmanager",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",service="kubelet"}' - -- interval: 1m - input_series: - - series: 'container_memory_cache{container="alertmanager",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-0",service="kubelet"}' - values: '1000+0x5' - - series: 'container_memory_cache{container="alertmanager",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-1",service="kubelet"}' - values: '1000+0x5' - # Duplicate timeseries from different instances. - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",job="kube-state-metrics",instance="instance1"}' - values: '1+0x5' - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",job="kube-state-metrics",instance="instance2"}' - values: '1+0x5' - # Missing node label. - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-1",job="kube-state-metrics",instance="instance1"}' - values: '1+0x5' - promql_expr_test: - - eval_time: 5m - expr: node_namespace_pod_container:container_memory_cache - exp_samples: - - value: 1.0e+3 - labels: 'node_namespace_pod_container:container_memory_cache{container="alertmanager",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",service="kubelet"}' - -- interval: 1m - input_series: - - series: 'container_memory_swap{container="alertmanager",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-0",service="kubelet"}' - values: '1000+0x5' - - series: 'container_memory_swap{container="alertmanager",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-1",service="kubelet"}' - values: '1000+0x5' - # Duplicate timeseries from different instances. - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",job="kube-state-metrics",instance="instance1"}' - values: '1+0x5' - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",job="kube-state-metrics",instance="instance2"}' - values: '1+0x5' - # Missing node label. - - series: 'kube_pod_info{cluster="kubernetes",namespace="monitoring",pod="alertmanager-main-1",job="kube-state-metrics",instance="instance1"}' - values: '1+0x5' - promql_expr_test: - - eval_time: 5m - expr: node_namespace_pod_container:container_memory_swap - exp_samples: - - value: 1.0e+3 - labels: 'node_namespace_pod_container:container_memory_swap{container="alertmanager",endpoint="https",id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3426a9c5_53d6_4736_9ca8_f575828e3e4b.slice/crio-f0d7fb2c909605aad16946ff065a42b25cdcdb812459e712ecdd6bce8a3ed6cb.scope",image="quay.io/prometheus/alertmanager:latest",instance="instance1",job="cadvisor",name="name1",cluster="kubernetes",namespace="monitoring",node="node1",pod="alertmanager-main-0",service="kubelet"}' -- interval: 1m - # Current unequal desired and not progressing. - input_series: - - series: 'kube_daemonset_status_current_number_scheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 4 4 3 4 4 4 3 4 4 4 3 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4' - - series: 'kube_daemonset_status_desired_number_scheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4' - - series: 'kube_daemonset_status_number_misscheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0' - - series: 'kube_daemonset_status_updated_number_scheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4' - - series: 'kube_daemonset_status_number_available{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 4 3 3 3 4 3 3 3 4 3 3 3 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4' - alert_rule_test: - - eval_time: 32m - alertname: KubeDaemonSetRolloutStuck - - eval_time: 33m - alertname: KubeDaemonSetRolloutStuck - exp_alerts: - - exp_labels: - job: kube-state-metrics - namespace: monitoring - cluster: kubernetes - daemonset: node-exporter - severity: warning - exp_annotations: - summary: "DaemonSet rollout is stuck." - description: 'DaemonSet monitoring/node-exporter has not finished or progressed for at least 15 minutes.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubedaemonsetrolloutstuck - - eval_time: 34m - alertname: KubeDaemonSetRolloutStuck -# KubeDeploymentRolloutStuck -- interval: 1m - input_series: - - series: 'kube_deployment_status_condition{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",deployment="stuck", condition="Progressing", status="false"}' - values: '1+0x17 0+0x5' - alert_rule_test: - - eval_time: 14m - alertname: KubeDeploymentRolloutStuck - - eval_time: 16m - alertname: KubeDeploymentRolloutStuck - exp_alerts: - - exp_labels: - job: kube-state-metrics - namespace: monitoring - cluster: kubernetes - deployment: stuck - severity: warning - condition: Progressing - status: "false" - exp_annotations: - summary: 'Deployment rollout is not progressing.' - description: 'Rollout of deployment monitoring/stuck is not progressing for longer than 15 minutes.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubedeploymentrolloutstuck - - eval_time: 18m - alertname: KubeDeploymentRolloutStuck -- interval: 1m - # Misscheduled is non zero. - input_series: - - series: 'kube_daemonset_status_current_number_scheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 4 4 3 4 4 4 3 4 4 4 3 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4' - - series: 'kube_daemonset_status_desired_number_scheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4' - - series: 'kube_daemonset_status_number_misscheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0' - - series: 'kube_daemonset_status_updated_number_scheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4' - - series: 'kube_daemonset_status_number_available{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 4 3 3 3 4 3 3 3 4 3 3 3 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4' - alert_rule_test: - - eval_time: 32m - alertname: KubeDaemonSetRolloutStuck - - eval_time: 33m - alertname: KubeDaemonSetRolloutStuck - exp_alerts: - - exp_labels: - job: kube-state-metrics - namespace: monitoring - cluster: kubernetes - daemonset: node-exporter - severity: warning - exp_annotations: - summary: "DaemonSet rollout is stuck." - description: 'DaemonSet monitoring/node-exporter has not finished or progressed for at least 15 minutes.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubedaemonsetrolloutstuck - - eval_time: 34m - alertname: KubeDaemonSetRolloutStuck -- interval: 1m - # Updated number unequal desired. - input_series: - - series: 'kube_daemonset_status_current_number_scheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 4 4 3 4 4 4 3 4 4 4 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4' - - series: 'kube_daemonset_status_desired_number_scheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4' - - series: 'kube_daemonset_status_number_misscheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0' - - series: 'kube_daemonset_status_updated_number_scheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4' - - series: 'kube_daemonset_status_number_available{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 4 3 3 3 4 3 3 3 4 3 3 3 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4' - alert_rule_test: - - eval_time: 32m - alertname: KubeDaemonSetRolloutStuck - - eval_time: 33m - alertname: KubeDaemonSetRolloutStuck - exp_alerts: - - exp_labels: - job: kube-state-metrics - namespace: monitoring - cluster: kubernetes - daemonset: node-exporter - severity: warning - exp_annotations: - summary: "DaemonSet rollout is stuck." - description: 'DaemonSet monitoring/node-exporter has not finished or progressed for at least 15 minutes.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubedaemonsetrolloutstuck - - eval_time: 34m - alertname: KubeDaemonSetRolloutStuck -- interval: 1m - # Number available unequal desired. - input_series: - - series: 'kube_daemonset_status_current_number_scheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 4 4 3 4 4 4 3 4 4 4 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4' - - series: 'kube_daemonset_status_desired_number_scheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4' - - series: 'kube_daemonset_status_number_misscheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0' - - series: 'kube_daemonset_status_updated_number_scheduled{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 0 0 0 1 1 1 1 2 2 2 2 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4' - - series: 'kube_daemonset_status_number_available{job="kube-state-metrics",cluster="kubernetes",namespace="monitoring",daemonset="node-exporter"}' - values: '4 4 4 3 3 3 4 3 3 3 4 3 3 3 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4' - alert_rule_test: - - eval_time: 34m - alertname: KubeDaemonSetRolloutStuck - - eval_time: 35m - alertname: KubeDaemonSetRolloutStuck - exp_alerts: - - exp_labels: - job: kube-state-metrics - namespace: monitoring - cluster: kubernetes - daemonset: node-exporter - severity: warning - exp_annotations: - summary: "DaemonSet rollout is stuck." - description: 'DaemonSet monitoring/node-exporter has not finished or progressed for at least 15 minutes.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubedaemonsetrolloutstuck - - eval_time: 36m - alertname: KubeDaemonSetRolloutStuck - -- interval: 1m - input_series: - - series: 'kubelet_certificate_manager_client_ttl_seconds{job="kubelet",cluster="kubernetes",namespace="monitoring",node="minikube"}' - values: '86400-60x1' - alert_rule_test: - - eval_time: 0m - alertname: KubeletClientCertificateExpiration - exp_alerts: - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - node: minikube - severity: warning - exp_annotations: - summary: "Kubelet client certificate is about to expire." - description: 'Client certificate for Kubelet on node minikube expires in 1d 0h 0m 0s.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeletclientcertificateexpiration - - eval_time: 1m - alertname: KubeletClientCertificateExpiration - exp_alerts: - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - node: minikube - severity: warning - exp_annotations: - summary: "Kubelet client certificate is about to expire." - description: 'Client certificate for Kubelet on node minikube expires in 23h 59m 0s.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeletclientcertificateexpiration - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - node: minikube - severity: critical - exp_annotations: - summary: "Kubelet client certificate is about to expire." - description: 'Client certificate for Kubelet on node minikube expires in 23h 59m 0s.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeletclientcertificateexpiration - -- interval: 1m - input_series: - - series: 'kubelet_certificate_manager_server_ttl_seconds{job="kubelet",cluster="kubernetes",namespace="monitoring",node="minikube"}' - values: '86400-60x1' - alert_rule_test: - - eval_time: 0m - alertname: KubeletServerCertificateExpiration - exp_alerts: - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - node: minikube - severity: warning - exp_annotations: - summary: "Kubelet server certificate is about to expire." - description: 'Server certificate for Kubelet on node minikube expires in 1d 0h 0m 0s.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeletservercertificateexpiration - - eval_time: 1m - alertname: KubeletServerCertificateExpiration - exp_alerts: - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - node: minikube - severity: warning - exp_annotations: - summary: "Kubelet server certificate is about to expire." - description: 'Server certificate for Kubelet on node minikube expires in 23h 59m 0s.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeletservercertificateexpiration - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - node: minikube - severity: critical - exp_annotations: - summary: "Kubelet server certificate is about to expire." - description: 'Server certificate for Kubelet on node minikube expires in 23h 59m 0s.' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeletservercertificateexpiration - -- interval: 1m - input_series: - - series: 'kubelet_certificate_manager_client_expiration_renew_errors{job="kubelet",cluster="kubernetes",namespace="monitoring",node="minikube"}' - values: '0+1x20' - alert_rule_test: - - eval_time: 16m - alertname: KubeletClientCertificateRenewalErrors - exp_alerts: - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - node: minikube - severity: warning - exp_annotations: - summary: "Kubelet has failed to renew its client certificate." - description: 'Kubelet on node minikube has failed to renew its client certificate (5 errors in the last 5 minutes).' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeletclientcertificaterenewalerrors - - -- interval: 1m - input_series: - - series: 'kubelet_server_expiration_renew_errors{job="kubelet",cluster="kubernetes",namespace="monitoring",node="minikube"}' - values: '0+1x20' - alert_rule_test: - - eval_time: 16m - alertname: KubeletServerCertificateRenewalErrors - exp_alerts: - - exp_labels: - job: kubelet - namespace: monitoring - cluster: kubernetes - node: minikube - severity: warning - exp_annotations: - summary: "Kubelet has failed to renew its server certificate." - description: 'Kubelet on node minikube has failed to renew its server certificate (5 errors in the last 5 minutes).' - runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeletservercertificaterenewalerrors - -- interval: 1m - input_series: - - series: 'kube_job_failed{instance="instance1",condition="true",job="kube-state-metrics",job_name="job-1597623120",cluster="kubernetes",namespace="ns1"}' - values: '1+0x20' - alert_rule_test: - - eval_time: 15m - alertname: KubeJobFailed - exp_alerts: - - exp_labels: - cluster: "kubernetes" - namespace: ns1 - job_name: job-1597623120 - severity: warning - condition: true - instance: instance1 - job: kube-state-metrics - exp_annotations: - summary: "Job failed to complete." - description: "Job ns1/job-1597623120 failed to complete. Removing failed job after investigation should clear this alert." - runbook_url: "https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubejobfailed" - -- interval: 1m - input_series: - - series: 'kube_job_status_start_time{cluster="kubernetes",namespace="ns1", job="kube-state-metrics", instance="instance1", job_name="job1"}' - values: '0+0x200 _x500 0+0x40' - - series: 'kube_job_status_active{cluster="kubernetes",namespace="ns1", job="kube-state-metrics", instance="instance1", job_name="job1"}' - values: '1x200 _x500 1x40' - alert_rule_test: - - eval_time: 6h - alertname: KubeJobNotCompleted - - eval_time: 12h1m - alertname: KubeJobNotCompleted - exp_alerts: - - exp_labels: - cluster: "kubernetes" - namespace: ns1 - job_name: job1 - severity: warning - exp_annotations: - summary: "Job did not complete in time" - description: "Job ns1/job1 is taking more than 12h 0m 0s to complete." - runbook_url: "https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubejobnotcompleted" - -- interval: 1m - input_series: - - series: 'kube_job_status_start_time{cluster="kubernetes",namespace="ns1", job="kube-state-metrics", instance="instance1", job_name="job1"}' - values: '0+0x740' - - series: 'kube_job_status_active{cluster="kubernetes",namespace="ns1", job="kube-state-metrics", instance="instance1", job_name="job1"}' - values: '1+0x710 0x30' - alert_rule_test: - - eval_time: 6h - alertname: KubeJobNotCompleted - - eval_time: 12h - alertname: KubeJobNotCompleted - -- interval: 1m - input_series: - - series: 'apiserver_request_terminations_total{job="kube-apiserver",apiserver="kube-apiserver"}' - values: '1+1x10' - - series: 'apiserver_request_total{job="kube-apiserver",apiserver="kube-apiserver"}' - values: '1+2x10' - alert_rule_test: - - eval_time: 5m # alert hasn't fired - alertname: KubeAPITerminatedRequests - - eval_time: 10m # alert fired - alertname: KubeAPITerminatedRequests - exp_alerts: - - exp_labels: - severity: warning - exp_annotations: - summary: "The kubernetes apiserver has terminated 33.33% of its incoming requests." - description: "The kubernetes apiserver has terminated 33.33% of its incoming requests." - runbook_url: "https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubeapiterminatedrequests" - -- interval: 1m - input_series: - - series: 'kube_pod_container_status_waiting_reason{reason="CrashLoopBackOff",cluster="kubernetes",namespace="test",pod="static-web",container="script",job="kube-state-metrics"}' - values: '1 1 stale _x3 1 1 stale _x2 1+0x4 stale' - alert_rule_test: - - eval_time: 10m # alert hasn't fired - alertname: KubePodCrashLooping - - eval_time: 16m # alert fired - alertname: KubePodCrashLooping - exp_alerts: - - exp_labels: - severity: "warning" - container: "script" - job: "kube-state-metrics" - cluster: "kubernetes" - namespace: "test" - pod: "static-web" - reason: "CrashLoopBackOff" - exp_annotations: - description: 'Pod test/static-web (script) is in waiting state (reason: "CrashLoopBackOff").' - runbook_url: "https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepodcrashlooping" - summary: "Pod is crash looping." - - eval_time: 20m - alertname: KubePodCrashLooping # alert fired for a period of 5 minutes after resolution because the alert looks back at the last 5 minutes of data and the range vector doesn't take stale samples into account - exp_alerts: - - exp_labels: - severity: "warning" - container: "script" - job: "kube-state-metrics" - cluster: "kubernetes" - namespace: "test" - pod: "static-web" - reason: "CrashLoopBackOff" - exp_annotations: - description: 'Pod test/static-web (script) is in waiting state (reason: "CrashLoopBackOff").' - runbook_url: "https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubepodcrashlooping" - summary: "Pod is crash looping." - - eval_time: 21m # alert recovers - alertname: KubePodCrashLooping - -# When ResourceQuota has both cpu and requests.cpu, min value of those will be taken into account for quota calculation. -- interval: 1m - input_series: - - series: 'kube_resourcequota{cluster="kubernetes",namespace="test", resource="cpu", type="hard", job="kube-state-metrics"}' - values: '1000x10' - - series: 'kube_resourcequota{cluster="kubernetes",namespace="test", resource="requests.cpu", type="hard", job="kube-state-metrics"}' - values: '100x10' - - series: 'kube_resourcequota{cluster="kubernetes",namespace="test1", resource="requests.cpu", type="hard", job="kube-state-metrics"}' - values: '50x10' - - series: 'kube_node_status_allocatable{cluster="kubernetes",namespace="monitoring",node="n1", resource="cpu", job="kube-state-metrics"}' - values: '100x10' - - series: 'kube_node_status_allocatable{cluster="kubernetes",namespace="monitoring",node="n2", resource="cpu", job="kube-state-metrics"}' - values: '100x10' - alert_rule_test: - - eval_time: 4m - alertname: KubeCPUQuotaOvercommit - - eval_time: 5m # alert shouldn't fire - alertname: KubeCPUQuotaOvercommit -- interval: 1m - input_series: - - series: 'kube_resourcequota{cluster="kubernetes",namespace="test", resource="cpu", type="hard", job="kube-state-metrics"}' - values: '1000x10' - - series: 'kube_resourcequota{cluster="kubernetes",namespace="test", resource="requests.cpu", type="hard", job="kube-state-metrics"}' - values: '200x10' - - series: 'kube_resourcequota{cluster="kubernetes",namespace="test1", resource="requests.cpu", type="hard", job="kube-state-metrics"}' - values: '200x10' - - series: 'kube_node_status_allocatable{cluster="kubernetes",namespace="monitoring",node="n1", resource="cpu", job="kube-state-metrics"}' - values: '100x10' - - series: 'kube_node_status_allocatable{cluster="kubernetes",namespace="monitoring",node="n2", resource="cpu", job="kube-state-metrics"}' - values: '100x10' - alert_rule_test: - - eval_time: 4m - alertname: KubeCPUQuotaOvercommit - - eval_time: 5m # alert shouldn't fire - alertname: KubeCPUQuotaOvercommit - exp_alerts: - - exp_labels: - severity: "warning" - exp_annotations: - description: 'Cluster has overcommitted CPU resource requests for Namespaces.' - runbook_url: "https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubecpuquotaovercommit" - summary: "Cluster has overcommitted CPU resource requests." - -# When ResourceQuota has both memory and requests.memory, min value of those will be taken into account for quota calculation. -- interval: 1m - input_series: - - series: 'kube_resourcequota{cluster="kubernetes",namespace="test", resource="memory", type="hard", job="kube-state-metrics"}' - values: '1000x10' - - series: 'kube_resourcequota{cluster="kubernetes",namespace="test", resource="requests.memory", type="hard", job="kube-state-metrics"}' - values: '100x10' - - series: 'kube_resourcequota{cluster="kubernetes",namespace="test1", resource="requests.memory", type="hard", job="kube-state-metrics"}' - values: '50x10' - - series: 'kube_node_status_allocatable{cluster="kubernetes",namespace="monitoring",node="n1", resource="memory", job="kube-state-metrics"}' - values: '100x10' - - series: 'kube_node_status_allocatable{cluster="kubernetes",namespace="monitoring",node="n2", resource="memory", job="kube-state-metrics"}' - values: '100x10' - alert_rule_test: - - eval_time: 4m - alertname: KubeMemoryQuotaOvercommit - - eval_time: 5m # alert shouldn't fire - alertname: KubeMemoryQuotaOvercommit -- interval: 1m - input_series: - - series: 'kube_resourcequota{cluster="kubernetes",namespace="test", resource="memory", type="hard", job="kube-state-metrics"}' - values: '1000x10' - - series: 'kube_resourcequota{cluster="kubernetes",namespace="test", resource="requests.memory", type="hard", job="kube-state-metrics"}' - values: '500x10' - - series: 'kube_resourcequota{cluster="kubernetes",namespace="test1", resource="requests.memory", type="hard", job="kube-state-metrics"}' - values: '500x10' - - series: 'kube_node_status_allocatable{cluster="kubernetes",namespace="monitoring",node="n1", resource="memory", job="kube-state-metrics"}' - values: '10x10' - - series: 'kube_node_status_allocatable{cluster="kubernetes",namespace="monitoring",node="n2", resource="memory", job="kube-state-metrics"}' - values: '10x10' - alert_rule_test: - - eval_time: 4m - alertname: KubeMemoryQuotaOvercommit - - eval_time: 5m # alert shouldn't fire - alertname: KubeMemoryQuotaOvercommit - exp_alerts: - - exp_labels: - severity: "warning" - exp_annotations: - description: 'Cluster has overcommitted memory resource requests for Namespaces.' - runbook_url: "https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubememoryquotaovercommit" - summary: "Cluster has overcommitted memory resource requests." diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/alerts.libsonnet deleted file mode 100644 index e378df18e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/alerts.libsonnet +++ /dev/null @@ -1,82 +0,0 @@ -{ - prometheusAlerts+:: { - groups+: [ - { - name: 'kube-state-metrics', - rules: [ - { - alert: 'KubeStateMetricsListErrors', - expr: ||| - (sum(rate(kube_state_metrics_list_total{%(kubeStateMetricsSelector)s,result="error"}[5m])) by (%(clusterLabel)s) - / - sum(rate(kube_state_metrics_list_total{%(kubeStateMetricsSelector)s}[5m])) by (%(clusterLabel)s)) - > 0.01 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'kube-state-metrics is experiencing errors in list operations.', - description: 'kube-state-metrics is experiencing errors at an elevated rate in list operations. This is likely causing it to not be able to expose metrics about Kubernetes objects correctly or at all.', - }, - }, - { - alert: 'KubeStateMetricsWatchErrors', - expr: ||| - (sum(rate(kube_state_metrics_watch_total{%(kubeStateMetricsSelector)s,result="error"}[5m])) by (%(clusterLabel)s) - / - sum(rate(kube_state_metrics_watch_total{%(kubeStateMetricsSelector)s}[5m])) by (%(clusterLabel)s)) - > 0.01 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'kube-state-metrics is experiencing errors in watch operations.', - description: 'kube-state-metrics is experiencing errors at an elevated rate in watch operations. This is likely causing it to not be able to expose metrics about Kubernetes objects correctly or at all.', - }, - }, - { - alert: 'KubeStateMetricsShardingMismatch', - // - expr: ||| - stdvar (kube_state_metrics_total_shards{%(kubeStateMetricsSelector)s}) by (%(clusterLabel)s) != 0 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'kube-state-metrics sharding is misconfigured.', - description: 'kube-state-metrics pods are running with different --total-shards configuration, some Kubernetes objects may be exposed multiple times or not exposed at all.', - }, - }, - { - alert: 'KubeStateMetricsShardsMissing', - // Each shard ordinal is assigned a binary position (2^ordinal) and we compute a sum of those. - // This sum is compared to the expected number (2^total_shards - 1). - // Result of zero all shards are being scraped, anything else indicates an issue. - // A handy side effect of this computation is the result indicates what ordinals are missing. - // Eg. a result of "5" decimal, which translates to binary "101", means shards #0 and #2 are not available. - expr: ||| - 2^max(kube_state_metrics_total_shards{%(kubeStateMetricsSelector)s}) by (%(clusterLabel)s) - 1 - - - sum( 2 ^ max by (%(clusterLabel)s, shard_ordinal) (kube_state_metrics_shard_ordinal{%(kubeStateMetricsSelector)s}) ) by (%(clusterLabel)s) - != 0 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'kube-state-metrics shards are missing.', - description: 'kube-state-metrics shards are missing, some Kubernetes objects are not being exposed.', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/config.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/config.libsonnet deleted file mode 100644 index f4e66f12f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/config.libsonnet +++ /dev/null @@ -1,7 +0,0 @@ -{ - _config+:: { - // Select the metrics coming from the kube state metrics. - kubeStateMetricsSelector: 'job="kube-state-metrics"', - clusterLabel: 'cluster', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/mixin.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/mixin.libsonnet deleted file mode 100644 index 95efe331f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/mixin.libsonnet +++ /dev/null @@ -1,2 +0,0 @@ -(import 'config.libsonnet') + -(import 'alerts.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics/jsonnetfile.json deleted file mode 100644 index 677d98118..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics/jsonnetfile.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "dependencies": [] -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics/kube-state-metrics.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics/kube-state-metrics.libsonnet deleted file mode 100644 index a035cbae4..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics/kube-state-metrics.libsonnet +++ /dev/null @@ -1,480 +0,0 @@ -{ - local ksm = self, - name:: error 'must set namespace', - namespace:: error 'must set namespace', - version:: error 'must set version', - image:: error 'must set image', - - commonLabels:: { - 'app.kubernetes.io/name': 'kube-state-metrics', - 'app.kubernetes.io/version': ksm.version, - }, - - extraRecommendedLabels:: { - 'app.kubernetes.io/component': 'exporter', - }, - - podLabels:: { - [labelName]: ksm.commonLabels[labelName] - for labelName in std.objectFields(ksm.commonLabels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, - - clusterRoleBinding: - { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - metadata: { - name: ksm.name, - labels: ksm.commonLabels + ksm.extraRecommendedLabels, - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: ksm.name, - }, - subjects: [{ - kind: 'ServiceAccount', - name: ksm.name, - namespace: ksm.namespace, - }], - }, - - clusterRole: - local rules = [ - { - apiGroups: [''], - resources: [ - 'configmaps', - 'secrets', - 'nodes', - 'pods', - 'services', - 'serviceaccounts', - 'resourcequotas', - 'replicationcontrollers', - 'limitranges', - 'persistentvolumeclaims', - 'persistentvolumes', - 'namespaces', - 'endpoints', - ], - verbs: ['list', 'watch'], - }, - { - apiGroups: ['apps'], - resources: [ - 'statefulsets', - 'daemonsets', - 'deployments', - 'replicasets', - ], - verbs: ['list', 'watch'], - }, - { - apiGroups: ['batch'], - resources: [ - 'cronjobs', - 'jobs', - ], - verbs: ['list', 'watch'], - }, - { - apiGroups: ['autoscaling'], - resources: [ - 'horizontalpodautoscalers', - ], - verbs: ['list', 'watch'], - }, - { - apiGroups: ['authentication.k8s.io'], - resources: [ - 'tokenreviews', - ], - verbs: ['create'], - }, - { - apiGroups: ['authorization.k8s.io'], - resources: [ - 'subjectaccessreviews', - ], - verbs: ['create'], - }, - { - apiGroups: ['policy'], - resources: [ - 'poddisruptionbudgets', - ], - verbs: ['list', 'watch'], - }, - { - apiGroups: ['certificates.k8s.io'], - resources: [ - 'certificatesigningrequests', - ], - verbs: ['list', 'watch'], - }, - { - apiGroups: ['discovery.k8s.io'], - resources: [ - 'endpointslices', - ], - verbs: ['list', 'watch'], - }, - { - apiGroups: ['storage.k8s.io'], - resources: [ - 'storageclasses', - 'volumeattachments', - ], - verbs: ['list', 'watch'], - }, - { - apiGroups: ['admissionregistration.k8s.io'], - resources: [ - 'mutatingwebhookconfigurations', - 'validatingwebhookconfigurations', - ], - verbs: ['list', 'watch'], - }, - { - apiGroups: ['networking.k8s.io'], - resources: [ - 'networkpolicies', - 'ingressclasses', - 'ingresses', - ], - verbs: ['list', 'watch'], - }, - { - apiGroups: ['coordination.k8s.io'], - resources: [ - 'leases', - ], - verbs: ['list', 'watch'], - }, - { - apiGroups: ['rbac.authorization.k8s.io'], - resources: [ - 'clusterrolebindings', - 'clusterroles', - 'rolebindings', - 'roles', - ], - verbs: ['list', 'watch'], - }, - ]; - - { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRole', - metadata: { - name: ksm.name, - labels: ksm.commonLabels + ksm.extraRecommendedLabels, - }, - rules: rules, - }, - deployment: - local c = { - name: 'kube-state-metrics', - image: ksm.image, - ports: [ - { name: 'http-metrics', containerPort: 8080 }, - { name: 'telemetry', containerPort: 8081 }, - ], - securityContext: { - runAsUser: 65534, - runAsNonRoot: true, - allowPrivilegeEscalation: false, - readOnlyRootFilesystem: true, - capabilities: { drop: ['ALL'] }, - seccompProfile: { type: 'RuntimeDefault' }, - }, - livenessProbe: { timeoutSeconds: 5, initialDelaySeconds: 5, httpGet: { - port: 'http-metrics', - path: '/livez', - } }, - readinessProbe: { timeoutSeconds: 5, initialDelaySeconds: 5, httpGet: { - port: 'telemetry', - path: '/readyz', - } }, - }; - - { - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: { - name: ksm.name, - namespace: ksm.namespace, - labels: ksm.commonLabels + ksm.extraRecommendedLabels, - }, - spec: { - replicas: 1, - selector: { matchLabels: ksm.podLabels }, - template: { - metadata: { - labels: ksm.commonLabels + ksm.extraRecommendedLabels, - }, - spec: { - containers: [c], - serviceAccountName: ksm.serviceAccount.metadata.name, - automountServiceAccountToken: true, - nodeSelector: { 'kubernetes.io/os': 'linux' }, - }, - }, - }, - }, - - serviceAccount: - { - apiVersion: 'v1', - kind: 'ServiceAccount', - metadata: { - name: ksm.name, - namespace: ksm.namespace, - labels: ksm.commonLabels + ksm.extraRecommendedLabels, - }, - automountServiceAccountToken: false, - }, - - service: - { - apiVersion: 'v1', - kind: 'Service', - metadata: { - name: ksm.name, - namespace: ksm.namespace, - labels: ksm.commonLabels + ksm.extraRecommendedLabels, - }, - spec: { - clusterIP: 'None', - selector: ksm.podLabels, - ports: [ - { name: 'http-metrics', port: 8080, targetPort: 'http-metrics' }, - { name: 'telemetry', port: 8081, targetPort: 'telemetry' }, - ], - }, - }, - - autosharding:: { - role: - { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'Role', - metadata: { - name: ksm.name, - namespace: ksm.namespace, - labels: ksm.commonLabels + ksm.extraRecommendedLabels, - }, - rules: [{ - apiGroups: [''], - resources: ['pods'], - verbs: ['get'], - }, { - apiGroups: ['apps'], - resourceNames: ['kube-state-metrics'], - resources: ['statefulsets'], - verbs: ['get'], - }], - }, - - roleBinding: - { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'RoleBinding', - metadata: { - name: ksm.name, - namespace: ksm.namespace, - labels: ksm.commonLabels + ksm.extraRecommendedLabels, - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'Role', - name: 'kube-state-metrics', - }, - subjects: [{ - kind: 'ServiceAccount', - name: ksm.serviceAccount.metadata.name, - }], - }, - - statefulset: - // extending the default container from above - local c = ksm.deployment.spec.template.spec.containers[0] { - args: [ - '--pod=$(POD_NAME)', - '--pod-namespace=$(POD_NAMESPACE)', - ], - env: [ - { name: 'POD_NAME', valueFrom: { fieldRef: { fieldPath: 'metadata.name' } } }, - { name: 'POD_NAMESPACE', valueFrom: { fieldRef: { fieldPath: 'metadata.namespace' } } }, - ], - }; - - { - apiVersion: 'apps/v1', - kind: 'StatefulSet', - metadata: { - name: ksm.name, - namespace: ksm.namespace, - labels: ksm.commonLabels + ksm.extraRecommendedLabels, - }, - spec: { - replicas: 2, - selector: { matchLabels: ksm.podLabels }, - serviceName: ksm.service.metadata.name, - template: { - metadata: { - labels: ksm.commonLabels + ksm.extraRecommendedLabels, - }, - spec: { - containers: [c], - serviceAccountName: ksm.serviceAccount.metadata.name, - automountServiceAccountToken: true, - nodeSelector: { 'kubernetes.io/os': 'linux' }, - }, - }, - }, - }, - } + { - service: ksm.service, - serviceAccount: ksm.serviceAccount, - clusterRole: ksm.clusterRole, - clusterRoleBinding: ksm.clusterRoleBinding, - }, - daemonsetsharding:: { - local shardksmname = ksm.name + '-shard', - daemonsetService: std.mergePatch( - ksm.service, - { - metadata: { - name: shardksmname, - labels: { 'app.kubernetes.io/name': shardksmname }, - }, - spec: { selector: { 'app.kubernetes.io/name': shardksmname } }, - } - ), - deployment: - // extending the default container from above - local c = ksm.deployment.spec.template.spec.containers[0] { - args: [ - '--resources=certificatesigningrequests,configmaps,cronjobs,daemonsets,deployments,endpoints,horizontalpodautoscalers,ingresses,jobs,leases,limitranges,mutatingwebhookconfigurations,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,poddisruptionbudgets,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses,validatingwebhookconfigurations,volumeattachments', - ], - }; - std.mergePatch( - ksm.deployment, - { - spec: { - template: { - spec: { - containers: [c], - }, - }, - }, - }, - ), - - deploymentNoNodePods: - local shardksmname = ksm.name + '-unscheduled-pods-fetching'; - local c = ksm.deployment.spec.template.spec.containers[0] { - args: [ - '--resources=pods', - '--track-unscheduled-pods', - ], - name: shardksmname, - }; - std.mergePatch( - ksm.deployment, - { - metadata: { - name: shardksmname, - labels: { 'app.kubernetes.io/name': shardksmname }, - }, - spec: { - selector: { - matchLabels: { 'app.kubernetes.io/name': shardksmname }, - }, - template: { - metadata: { - labels: { - 'app.kubernetes.io/name': shardksmname, - }, - }, - spec: { - containers: [c], - }, - }, - }, - }, - ), - - deploymentNoNodePodsService: - local c = ksm.deployment.spec.template.spec.containers[0] { - args: [ - '--resources=pods', - '--track-unscheduled-pods', - ], - }; - local shardksmname = ksm.name + '-unscheduled-pods-fetching'; - std.mergePatch( - ksm.service, - { - metadata: { - name: shardksmname, - labels: { 'app.kubernetes.io/name': shardksmname }, - }, - spec: { - selector: { - 'app.kubernetes.io/name': shardksmname, - }, - }, - } - ), - daemonset: - // extending the default container from above - local c0 = ksm.deployment.spec.template.spec.containers[0] { - args: [ - '--resources=pods', - '--node=$(NODE_NAME)', - ], - env: [ - { name: 'NODE_NAME', valueFrom: { fieldRef: { apiVersion: 'v1', fieldPath: 'spec.nodeName' } } }, - ], - }; - - local c = std.mergePatch(c0, { name: shardksmname }); - - local ksmLabels = std.mergePatch(ksm.commonLabels + ksm.extraRecommendedLabels, { 'app.kubernetes.io/name': shardksmname }); - local ksmPodLabels = std.mergePatch(ksm.podLabels, { 'app.kubernetes.io/name': shardksmname }); - - { - apiVersion: 'apps/v1', - kind: 'DaemonSet', - metadata: { - namespace: ksm.namespace, - labels: ksmLabels, - name: shardksmname, - }, - spec: { - selector: { matchLabels: ksmPodLabels }, - template: { - metadata: { - labels: ksmLabels, - }, - spec: { - containers: [c], - serviceAccountName: ksm.serviceAccount.metadata.name, - automountServiceAccountToken: true, - nodeSelector: { 'kubernetes.io/os': 'linux' }, - }, - }, - }, - }, - - } + { - deploymentService: ksm.service, - serviceAccount: ksm.serviceAccount, - clusterRole: ksm.clusterRole, - clusterRoleBinding: ksm.clusterRoleBinding, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/.gitignore b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/.gitignore deleted file mode 100644 index 52a75ecba..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -jsonnetfile.lock.json -vendor/ diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/all-namespaces.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/all-namespaces.libsonnet deleted file mode 100644 index 568ba4763..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/all-namespaces.libsonnet +++ /dev/null @@ -1,22 +0,0 @@ -{ - prometheus+: { - clusterRole+: { - rules+: [ - { - apiGroups: [''], - resources: ['services', 'endpoints', 'pods'], - verbs: ['get', 'list', 'watch'], - }, - { - apiGroups: ['networking.k8s.io'], - resources: ['ingresses'], - verbs: ['get', 'list', 'watch'], - }, - ], - }, - // There is no need for specific namespaces RBAC as this addon grants - // all required permissions for every namespace - roleBindingSpecificNamespaces:: null, - roleSpecificNamespaces:: null, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/anti-affinity.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/anti-affinity.libsonnet deleted file mode 100644 index ef92453e4..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/anti-affinity.libsonnet +++ /dev/null @@ -1,99 +0,0 @@ -{ - values+:: { - alertmanager+: { - podAntiAffinity: 'soft', - podAntiAffinityTopologyKey: 'kubernetes.io/hostname', - }, - prometheus+: { - podAntiAffinity: 'soft', - podAntiAffinityTopologyKey: 'kubernetes.io/hostname', - }, - blackboxExporter+: { - podAntiAffinity: 'soft', - podAntiAffinityTopologyKey: 'kubernetes.io/hostname', - }, - prometheusAdapter+: { - podAntiAffinity: 'soft', - podAntiAffinityTopologyKey: 'kubernetes.io/hostname', - }, - }, - - antiaffinity(labelSelector, namespace, type, topologyKey):: { - local podAffinityTerm = { - namespaces: [namespace], - topologyKey: topologyKey, - labelSelector: { - matchLabels: labelSelector, - }, - }, - - affinity: { - podAntiAffinity: if type == 'soft' then { - preferredDuringSchedulingIgnoredDuringExecution: [{ - weight: 100, - podAffinityTerm: podAffinityTerm, - }], - } else if type == 'hard' then { - requiredDuringSchedulingIgnoredDuringExecution: [ - podAffinityTerm, - ], - } else error 'podAntiAffinity must be either "soft" or "hard"', - }, - }, - - alertmanager+: { - alertmanager+: { - spec+: - $.antiaffinity( - $.alertmanager._config.selectorLabels, - $.values.alertmanager.namespace, - $.values.alertmanager.podAntiAffinity, - $.values.alertmanager.podAntiAffinityTopologyKey, - ), - }, - }, - - prometheus+: { - prometheus+: { - spec+: - $.antiaffinity( - $.prometheus._config.selectorLabels, - $.values.prometheus.namespace, - $.values.prometheus.podAntiAffinity, - $.values.prometheus.podAntiAffinityTopologyKey, - ), - }, - }, - - blackboxExporter+: { - deployment+: { - spec+: { - template+: { - spec+: - $.antiaffinity( - $.blackboxExporter._config.selectorLabels, - $.values.blackboxExporter.namespace, - $.values.blackboxExporter.podAntiAffinity, - $.values.blackboxExporter.podAntiAffinityTopologyKey, - ), - }, - }, - }, - }, - - prometheusAdapter+: { - deployment+: { - spec+: { - template+: { - spec+: - $.antiaffinity( - $.prometheusAdapter._config.selectorLabels, - $.values.prometheusAdapter.namespace, - $.values.prometheusAdapter.podAntiAffinity, - $.values.prometheusAdapter.podAntiAffinityTopologyKey, - ), - }, - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/aws-vpc-cni.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/aws-vpc-cni.libsonnet deleted file mode 100644 index c68ebae04..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/aws-vpc-cni.libsonnet +++ /dev/null @@ -1,114 +0,0 @@ -{ - values+:: { - awsVpcCni: { - // `minimumWarmIPs` should be inferior or equal to `WARM_IP_TARGET`. - // - // References: - // https://github.com/aws/amazon-vpc-cni-k8s/blob/v1.9.0/docs/eni-and-ip-target.md - // https://github.com/aws/amazon-vpc-cni-k8s/blob/v1.9.0/pkg/ipamd/ipamd.go#L61-L71 - minimumWarmIPs: 10, - minimumWarmIPsTime: '10m', - }, - }, - kubernetesControlPlane+: { - serviceAwsVpcCni: { - apiVersion: 'v1', - kind: 'Service', - metadata: { - name: 'aws-node', - namespace: 'kube-system', - labels: { 'app.kubernetes.io/name': 'aws-node' }, - }, - spec: { - ports: [ - { - name: 'cni-metrics-port', - port: 61678, - targetPort: 61678, - }, - ], - selector: { 'app.kubernetes.io/name': 'aws-node' }, - clusterIP: 'None', - }, - }, - - serviceMonitorAwsVpcCni: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: { - name: 'aws-node', - namespace: $.values.kubernetesControlPlane.namespace, - labels: { - 'app.kubernetes.io/name': 'aws-node', - }, - }, - spec: { - jobLabel: 'app.kubernetes.io/name', - selector: { - matchLabels: { - 'app.kubernetes.io/name': 'aws-node', - }, - }, - namespaceSelector: { - matchNames: [ - 'kube-system', - ], - }, - endpoints: [ - { - port: 'cni-metrics-port', - interval: '30s', - path: '/metrics', - relabelings: [ - { - action: 'replace', - regex: '(.*)', - replacement: '$1', - sourceLabels: ['__meta_kubernetes_pod_node_name'], - targetLabel: 'instance', - }, - ], - }, - ], - }, - }, - - prometheusRuleAwsVpcCni: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PrometheusRule', - metadata: { - labels: { - 'app.kubernetes.io/name': 'prometheus-vpc-cni-rules', - 'app.kubernetes.io/component': 'prometheus', - 'app.kubernetes.io/part-of': 'kube-prometheus', - }, - name: 'aws-vpc-cni-rules', - namespace: $.values.prometheus.namespace, - }, - spec: { - groups: [ - { - name: 'aws-vpc-cni.rules', - rules: [ - { - expr: 'sum by(instance) (awscni_total_ip_addresses) - sum by(instance) (awscni_assigned_ip_addresses) < %s' % $.values.awsVpcCni.minimumWarmIPs, - labels: { - severity: 'critical', - }, - annotations: { - summary: 'AWS VPC CNI has a low warm IP pool', - description: ||| - Instance {{ $labels.instance }} has only {{ $value }} warm IPs which is lower than set threshold of %s. - It could mean the current subnet is out of available IP addresses or the CNI is unable to request them from the EC2 API. - ||| % $.values.awsVpcCni.minimumWarmIPs, - }, - 'for': $.values.awsVpcCni.minimumWarmIPsTime, - alert: 'AwsVpcCniWarmIPsLow', - }, - ], - }, - ], - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/config-mixins.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/config-mixins.libsonnet deleted file mode 100644 index 874123a4b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/config-mixins.libsonnet +++ /dev/null @@ -1,40 +0,0 @@ -local imageName(image) = - local parts = std.split(image, '/'); - local len = std.length(parts); - if len == 3 then - // registry.com/org/image - parts[2] - else if len == 2 then - // org/image - parts[1] - else if len == 1 then - // image, ie. busybox - parts[0] - else - error 'unknown image format: ' + image; - - -// withImageRepository is a mixin that replaces all images prefixes by repository. eg. -// quay.io/coreos/addon-resizer -> $repository/addon-resizer -// grafana/grafana -> grafana $repository/grafana -local withImageRepository(repository) = { - local oldRepos = super.values.common.images, - local substituteRepository(image, repository) = - if repository == null then image else repository + '/' + imageName(image), - values+:: { - common+:: { - images:: { - [field]: substituteRepository(oldRepos[field], repository) - for field in std.objectFields(oldRepos) - }, - }, - }, -}; - -{ - imageName:: imageName, -} - -{ - withImageRepository:: withImageRepository, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/custom-metrics.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/custom-metrics.libsonnet deleted file mode 100644 index d2357f4f4..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/custom-metrics.libsonnet +++ /dev/null @@ -1,164 +0,0 @@ -// Custom metrics API allows the HPA v2 to scale based on arbirary metrics. -// For more details on usage visit https://github.com/DirectXMan12/k8s-prometheus-adapter#quick-links - -{ - values+:: { - prometheusAdapter+: { - // Rules for custom-metrics - config+:: { - rules+: [ - { - seriesQuery: '{__name__=~"^container_.*",container!="POD",namespace!="",pod!=""}', - seriesFilters: [], - resources: { - overrides: { - namespace: { resource: 'namespace' }, - pod: { resource: 'pod' }, - }, - }, - name: { matches: '^container_(.*)_seconds_total$', as: '' }, - metricsQuery: 'sum(rate(<<.Series>>{<<.LabelMatchers>>,container!="POD"}[1m])) by (<<.GroupBy>>)', - }, - { - seriesQuery: '{__name__=~"^container_.*",container!="POD",namespace!="",pod!=""}', - seriesFilters: [ - { isNot: '^container_.*_seconds_total$' }, - ], - resources: { - overrides: { - namespace: { resource: 'namespace' }, - pod: { resource: 'pod' }, - }, - }, - name: { matches: '^container_(.*)_total$', as: '' }, - metricsQuery: 'sum(rate(<<.Series>>{<<.LabelMatchers>>,container!="POD"}[1m])) by (<<.GroupBy>>)', - }, - { - seriesQuery: '{__name__=~"^container_.*",container!="POD",namespace!="",pod!=""}', - seriesFilters: [ - { isNot: '^container_.*_total$' }, - ], - resources: { - overrides: { - namespace: { resource: 'namespace' }, - pod: { resource: 'pod' }, - }, - }, - name: { matches: '^container_(.*)$', as: '' }, - metricsQuery: 'sum(<<.Series>>{<<.LabelMatchers>>,container!="POD"}) by (<<.GroupBy>>)', - }, - { - seriesQuery: '{namespace!="",__name__!~"^container_.*"}', - seriesFilters: [ - { isNot: '.*_total$' }, - ], - resources: { template: '<<.Resource>>' }, - name: { matches: '', as: '' }, - metricsQuery: 'sum(<<.Series>>{<<.LabelMatchers>>}) by (<<.GroupBy>>)', - }, - { - seriesQuery: '{namespace!="",__name__!~"^container_.*"}', - seriesFilters: [ - { isNot: '.*_seconds_total' }, - ], - resources: { template: '<<.Resource>>' }, - name: { matches: '^(.*)_total$', as: '' }, - metricsQuery: 'sum(rate(<<.Series>>{<<.LabelMatchers>>}[1m])) by (<<.GroupBy>>)', - }, - { - seriesQuery: '{namespace!="",__name__!~"^container_.*"}', - seriesFilters: [], - resources: { template: '<<.Resource>>' }, - name: { matches: '^(.*)_seconds_total$', as: '' }, - metricsQuery: 'sum(rate(<<.Series>>{<<.LabelMatchers>>}[1m])) by (<<.GroupBy>>)', - }, - ], - }, - }, - }, - - prometheusAdapter+: { - customMetricsApiService: { - apiVersion: 'apiregistration.k8s.io/v1', - kind: 'APIService', - metadata: { - name: 'v1beta1.custom.metrics.k8s.io', - }, - spec: { - service: { - name: $.prometheusAdapter.service.metadata.name, - namespace: $.values.prometheusAdapter.namespace, - }, - group: 'custom.metrics.k8s.io', - version: 'v1beta1', - insecureSkipTLSVerify: true, - groupPriorityMinimum: 100, - versionPriority: 100, - }, - }, - customMetricsApiServiceV1Beta2: { - apiVersion: 'apiregistration.k8s.io/v1', - kind: 'APIService', - metadata: { - name: 'v1beta2.custom.metrics.k8s.io', - }, - spec: { - service: { - name: $.prometheusAdapter.service.metadata.name, - namespace: $.values.prometheusAdapter.namespace, - }, - group: 'custom.metrics.k8s.io', - version: 'v1beta2', - insecureSkipTLSVerify: true, - groupPriorityMinimum: 100, - versionPriority: 200, - }, - }, - customMetricsClusterRoleServerResources: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRole', - metadata: { - name: 'custom-metrics-server-resources', - }, - rules: [{ - apiGroups: ['custom.metrics.k8s.io'], - resources: ['*'], - verbs: ['*'], - }], - }, - customMetricsClusterRoleBindingServerResources: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - metadata: { - name: 'custom-metrics-server-resources', - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: 'custom-metrics-server-resources', - }, - subjects: [{ - kind: 'ServiceAccount', - name: $.prometheusAdapter.serviceAccount.metadata.name, - namespace: $.values.prometheusAdapter.namespace, - }], - }, - customMetricsClusterRoleBindingHPA: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - metadata: { - name: 'hpa-controller-custom-metrics', - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: 'custom-metrics-server-resources', - }, - subjects: [{ - kind: 'ServiceAccount', - name: 'horizontal-pod-autoscaler', - namespace: 'kube-system', - }], - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/dropping-deprecated-metrics-relabelings.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/dropping-deprecated-metrics-relabelings.libsonnet deleted file mode 100644 index d390d61f3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/dropping-deprecated-metrics-relabelings.libsonnet +++ /dev/null @@ -1,139 +0,0 @@ -[ - // Drop all kubelet metrics which are deprecated in kubernetes. - { - sourceLabels: ['__name__'], - regex: 'kubelet_(pod_worker_latency_microseconds|pod_start_latency_microseconds|cgroup_manager_latency_microseconds|pod_worker_start_latency_microseconds|pleg_relist_latency_microseconds|pleg_relist_interval_microseconds|runtime_operations|runtime_operations_latency_microseconds|runtime_operations_errors|eviction_stats_age_microseconds|device_plugin_registration_count|device_plugin_alloc_latency_microseconds|network_plugin_operations_latency_microseconds)', - action: 'drop', - }, - // Drop all scheduler metrics which are deprecated in kubernetes. - { - sourceLabels: ['__name__'], - regex: 'scheduler_(e2e_scheduling_latency_microseconds|scheduling_algorithm_predicate_evaluation|scheduling_algorithm_priority_evaluation|scheduling_algorithm_preemption_evaluation|scheduling_algorithm_latency_microseconds|binding_latency_microseconds|scheduling_latency_seconds)', - action: 'drop', - }, - // Drop all apiserver metrics which are deprecated in kubernetes. - { - sourceLabels: ['__name__'], - regex: 'apiserver_(request_count|request_latencies|request_latencies_summary|dropped_requests|storage_data_key_generation_latencies_microseconds|storage_transformation_failures_total|storage_transformation_latencies_microseconds|proxy_tunnel_sync_latency_secs|longrunning_gauge|registered_watchers|storage_db_total_size_in_bytes)', - action: 'drop', - }, - // Drop all docker metrics which are deprecated in kubernetes. - { - sourceLabels: ['__name__'], - regex: 'kubelet_docker_(operations|operations_latency_microseconds|operations_errors|operations_timeout)', - action: 'drop', - }, - // Drop all reflector metrics which are deprecated in kubernetes. - { - sourceLabels: ['__name__'], - regex: 'reflector_(items_per_list|items_per_watch|list_duration_seconds|lists_total|short_watches_total|watch_duration_seconds|watches_total)', - action: 'drop', - }, - // Drop all etcd metrics which are deprecated in kubernetes. - { - sourceLabels: ['__name__'], - regex: 'etcd_(helper_cache_hit_count|helper_cache_miss_count|helper_cache_entry_count|object_counts|request_cache_get_latencies_summary|request_cache_add_latencies_summary|request_latencies_summary)', - action: 'drop', - }, - // Drop all transformation metrics which are deprecated in kubernetes. - { - sourceLabels: ['__name__'], - regex: 'transformation_(transformation_latencies_microseconds|failures_total)', - action: 'drop', - }, - // Drop all other metrics which are deprecated in kubernetes. - { - sourceLabels: ['__name__'], - regex: '(' + std.join('|', - [ - 'admission_quota_controller_adds', - 'admission_quota_controller_depth', - 'admission_quota_controller_longest_running_processor_microseconds', - 'admission_quota_controller_queue_latency', - 'admission_quota_controller_unfinished_work_seconds', - 'admission_quota_controller_work_duration', - 'APIServiceOpenAPIAggregationControllerQueue1_adds', - 'APIServiceOpenAPIAggregationControllerQueue1_depth', - 'APIServiceOpenAPIAggregationControllerQueue1_longest_running_processor_microseconds', - 'APIServiceOpenAPIAggregationControllerQueue1_queue_latency', - 'APIServiceOpenAPIAggregationControllerQueue1_retries', - 'APIServiceOpenAPIAggregationControllerQueue1_unfinished_work_seconds', - 'APIServiceOpenAPIAggregationControllerQueue1_work_duration', - 'APIServiceRegistrationController_adds', - 'APIServiceRegistrationController_depth', - 'APIServiceRegistrationController_longest_running_processor_microseconds', - 'APIServiceRegistrationController_queue_latency', - 'APIServiceRegistrationController_retries', - 'APIServiceRegistrationController_unfinished_work_seconds', - 'APIServiceRegistrationController_work_duration', - 'autoregister_adds', - 'autoregister_depth', - 'autoregister_longest_running_processor_microseconds', - 'autoregister_queue_latency', - 'autoregister_retries', - 'autoregister_unfinished_work_seconds', - 'autoregister_work_duration', - 'AvailableConditionController_adds', - 'AvailableConditionController_depth', - 'AvailableConditionController_longest_running_processor_microseconds', - 'AvailableConditionController_queue_latency', - 'AvailableConditionController_retries', - 'AvailableConditionController_unfinished_work_seconds', - 'AvailableConditionController_work_duration', - 'crd_autoregistration_controller_adds', - 'crd_autoregistration_controller_depth', - 'crd_autoregistration_controller_longest_running_processor_microseconds', - 'crd_autoregistration_controller_queue_latency', - 'crd_autoregistration_controller_retries', - 'crd_autoregistration_controller_unfinished_work_seconds', - 'crd_autoregistration_controller_work_duration', - 'crdEstablishing_adds', - 'crdEstablishing_depth', - 'crdEstablishing_longest_running_processor_microseconds', - 'crdEstablishing_queue_latency', - 'crdEstablishing_retries', - 'crdEstablishing_unfinished_work_seconds', - 'crdEstablishing_work_duration', - 'crd_finalizer_adds', - 'crd_finalizer_depth', - 'crd_finalizer_longest_running_processor_microseconds', - 'crd_finalizer_queue_latency', - 'crd_finalizer_retries', - 'crd_finalizer_unfinished_work_seconds', - 'crd_finalizer_work_duration', - 'crd_naming_condition_controller_adds', - 'crd_naming_condition_controller_depth', - 'crd_naming_condition_controller_longest_running_processor_microseconds', - 'crd_naming_condition_controller_queue_latency', - 'crd_naming_condition_controller_retries', - 'crd_naming_condition_controller_unfinished_work_seconds', - 'crd_naming_condition_controller_work_duration', - 'crd_openapi_controller_adds', - 'crd_openapi_controller_depth', - 'crd_openapi_controller_longest_running_processor_microseconds', - 'crd_openapi_controller_queue_latency', - 'crd_openapi_controller_retries', - 'crd_openapi_controller_unfinished_work_seconds', - 'crd_openapi_controller_work_duration', - 'DiscoveryController_adds', - 'DiscoveryController_depth', - 'DiscoveryController_longest_running_processor_microseconds', - 'DiscoveryController_queue_latency', - 'DiscoveryController_retries', - 'DiscoveryController_unfinished_work_seconds', - 'DiscoveryController_work_duration', - 'kubeproxy_sync_proxy_rules_latency_microseconds', - 'non_structural_schema_condition_controller_adds', - 'non_structural_schema_condition_controller_depth', - 'non_structural_schema_condition_controller_longest_running_processor_microseconds', - 'non_structural_schema_condition_controller_queue_latency', - 'non_structural_schema_condition_controller_retries', - 'non_structural_schema_condition_controller_unfinished_work_seconds', - 'non_structural_schema_condition_controller_work_duration', - 'rest_client_request_latency_seconds', - 'storage_operation_errors_total', - 'storage_operation_status_count', - ]) + ')', - action: 'drop', - }, -] diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/external-metrics.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/external-metrics.libsonnet deleted file mode 100644 index dac9d5f96..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/external-metrics.libsonnet +++ /dev/null @@ -1,94 +0,0 @@ -// External metrics API allows the HPA v2 to scale based on metrics coming from outside of Kubernetes cluster -// For more details on usage visit https://github.com/DirectXMan12/k8s-prometheus-adapter#quick-links - -{ - values+:: { - prometheusAdapter+: { - // Rules for external-metrics - config+:: { - externalRules+: [ - // { - // seriesQuery: '{__name__=~"^.*_queue$",namespace!=""}', - // seriesFilters: [], - // resources: { - // overrides: { - // namespace: { resource: 'namespace' } - // }, - // }, - // name: { matches: '^.*_queue$', as: '$0' }, - // metricsQuery: 'max(<<.Series>>{<<.LabelMatchers>>})', - // }, - ], - }, - }, - }, - - prometheusAdapter+: { - externalMetricsApiService: { - apiVersion: 'apiregistration.k8s.io/v1', - kind: 'APIService', - metadata: { - name: 'v1beta1.external.metrics.k8s.io', - }, - spec: { - service: { - name: $.prometheusAdapter.service.metadata.name, - namespace: $.values.prometheusAdapter.namespace, - }, - group: 'external.metrics.k8s.io', - version: 'v1beta1', - insecureSkipTLSVerify: true, - groupPriorityMinimum: 100, - versionPriority: 100, - }, - }, - externalMetricsClusterRoleServerResources: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRole', - metadata: { - name: 'external-metrics-server-resources', - }, - rules: [{ - apiGroups: ['external.metrics.k8s.io'], - resources: ['*'], - verbs: ['*'], - }], - }, - externalMetricsClusterRoleBindingServerResources: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - metadata: { - name: 'external-metrics-server-resources', - }, - - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: 'external-metrics-server-resources', - }, - subjects: [{ - kind: 'ServiceAccount', - name: $.prometheusAdapter.serviceAccount.metadata.name, - namespace: $.values.prometheusAdapter.namespace, - }], - }, - externalMetricsClusterRoleBindingHPA: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - metadata: { - name: 'hpa-controller-external-metrics', - }, - - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: 'external-metrics-server-resources', - }, - subjects: [{ - kind: 'ServiceAccount', - name: 'horizontal-pod-autoscaler', - namespace: 'kube-system', - }], - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/insecure-kubelet.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/insecure-kubelet.libsonnet deleted file mode 100644 index ab6f29434..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/insecure-kubelet.libsonnet +++ /dev/null @@ -1,40 +0,0 @@ -{ - prometheus+: { - serviceMonitorKubelet+: - { - spec+: { - endpoints: [ - { - port: 'http-metrics', - scheme: 'http', - interval: '30s', - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - relabelings: [ - { sourceLabels: ['__metrics_path__'], targetLabel: 'metrics_path' }, - ], - }, - { - port: 'http-metrics', - scheme: 'http', - path: '/metrics/cadvisor', - interval: '30s', - honorLabels: true, - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - relabelings: [ - { sourceLabels: ['__metrics_path__'], targetLabel: 'metrics_path' }, - ], - metricRelabelings: [ - // Drop a bunch of metrics which are disabled but still sent, see - // https://github.com/google/cadvisor/issues/1925. - { - sourceLabels: ['__name__'], - regex: 'container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)', - action: 'drop', - }, - ], - }, - ], - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/ksm-autoscaler.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/ksm-autoscaler.libsonnet deleted file mode 100644 index 35b7f4efd..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/ksm-autoscaler.libsonnet +++ /dev/null @@ -1,136 +0,0 @@ -{ - values+:: { - clusterVerticalAutoscaler: { - version: '0.8.1', - image: 'gcr.io/google_containers/cpvpa-amd64:v0.8.1', - baseCPU: '1m', - stepCPU: '1m', - baseMemory: '1Mi', - stepMemory: '2Mi', - }, - }, - ksmAutoscaler+: { - clusterRole: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRole', - metadata: { name: 'ksm-autoscaler' }, - rules: [{ - apiGroups: [''], - resources: ['nodes'], - verbs: ['list', 'watch'], - }], - }, - - clusterRoleBinding: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - metadata: { name: 'ksm-autoscaler' }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: 'ksm-autoscaler', - }, - subjects: [{ kind: 'ServiceAccount', name: 'ksm-autoscaler', namespace: $.values.kubeStateMetrics.namespace }], - }, - - roleBinding: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'RoleBinding', - metadata: { - name: 'ksm-autoscaler', - namespace: $.values.kubeStateMetrics.namespace, - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'Role', - name: 'ksm-autoscaler', - }, - subjects: [{ kind: 'ServiceAccount', name: 'ksm-autoscaler' }], - }, - - role: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'Role', - metadata: { - name: 'ksm-autoscaler', - namespace: $.values.kubeStateMetrics.namespace, - }, - rules: [ - { - apiGroups: ['extensions'], - resources: ['deployments'], - verbs: ['patch'], - resourceNames: ['kube-state-metrics'], - }, - { - apiGroups: ['apps'], - resources: ['deployments'], - verbs: ['patch'], - resourceNames: ['kube-state-metrics'], - }, - ], - }, - - serviceAccount: { - apiVersion: 'v1', - kind: 'ServiceAccount', - metadata: { - name: 'ksm-autoscaler', - namespace: $.values.kubeStateMetrics.namespace, - }, - }, - - deployment: - local podLabels = { 'app.kubernetes.io/name': 'ksm-autoscaler' }; - local c = { - name: 'ksm-autoscaler', - image: $.values.clusterVerticalAutoscaler.image, - args: [ - '/cpvpa', - '--target=deployment/kube-state-metrics', - '--namespace=' + $.values.kubeStateMetrics.namespace, - '--logtostderr=true', - '--poll-period-seconds=10', - '--default-config={"kube-state-metrics":{"requests":{"cpu":{"base":"' + $.values.clusterVerticalAutoscaler.baseCPU + - '","step":"' + $.values.clusterVerticalAutoscaler.stepCPU + - '","nodesPerStep":1},"memory":{"base":"' + $.values.clusterVerticalAutoscaler.baseMemory + - '","step":"' + $.values.clusterVerticalAutoscaler.stepMemory + - '","nodesPerStep":1}},"limits":{"cpu":{"base":"' + $.values.clusterVerticalAutoscaler.baseCPU + - '","step":"' + $.values.clusterVerticalAutoscaler.stepCPU + - '","nodesPerStep":1},"memory":{"base":"' + $.values.clusterVerticalAutoscaler.baseMemory + - '","step":"' + $.values.clusterVerticalAutoscaler.stepMemory + '","nodesPerStep":1}}}}', - ], - resources: { - requests: { cpu: '20m', memory: '10Mi' }, - }, - }; - - { - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: { - name: 'ksm-autoscaler', - namespace: $.values.kubeStateMetrics.namespace, - labels: podLabels, - }, - spec: { - replicas: 1, - selector: { matchLabels: podLabels }, - template: { - metadata: { - labels: podLabels, - }, - spec: { - containers: [c], - serviceAccount: 'ksm-autoscaler', - nodeSelector: { 'kubernetes.io/os': 'linux' }, - securityContext: { - runAsNonRoot: true, - runAsUser: 65534, - }, - }, - }, - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/ksm-lite.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/ksm-lite.libsonnet deleted file mode 100644 index a34655ad6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/ksm-lite.libsonnet +++ /dev/null @@ -1,39 +0,0 @@ -local addArgs(args, name, containers) = std.map( - function(c) if c.name == name then - c { - args+: args, - } - else c, - containers, -); - -{ - kubeStateMetrics+: { - deployment+: { - spec+: { - template+: { - spec+: { - containers: addArgs( - [||| - --metric-denylist= - ^kube_.+_created$, - ^kube_.+_metadata_resource_version$, - ^kube_replicaset_metadata_generation$, - ^kube_replicaset_status_observed_generation$, - ^kube_pod_restart_policy$, - ^kube_pod_init_container_status_terminated$, - ^kube_pod_init_container_status_running$, - ^kube_pod_container_status_terminated$, - ^kube_pod_container_status_running$, - ^kube_pod_completion_time$, - ^kube_pod_status_scheduled$ - |||], - 'kube-state-metrics', - super.containers - ), - }, - }, - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/managed-cluster.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/managed-cluster.libsonnet deleted file mode 100644 index 79c464a67..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/managed-cluster.libsonnet +++ /dev/null @@ -1,20 +0,0 @@ -// On managed Kubernetes clusters some of the control plane components are not exposed to customers. -// Disable scrape jobs, service monitors, and alert groups for these components by overwriting 'main.libsonnet' defaults - -{ - kubernetesControlPlane+: { - serviceMonitorKubeControllerManager:: null, - serviceMonitorKubeScheduler:: null, - } + { - prometheusRule+: { - spec+: { - local g = super.groups, - groups: [ - h - for h in g - if !std.setMember(h.name, ['kubernetes-system-controller-manager', 'kubernetes-system-scheduler']) - ], - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/networkpolicies-disabled.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/networkpolicies-disabled.libsonnet deleted file mode 100644 index 882fe8bfa..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/networkpolicies-disabled.libsonnet +++ /dev/null @@ -1,35 +0,0 @@ -// Disables creation of NetworkPolicies - -{ - blackboxExporter+: { - networkPolicy:: {}, - }, - - kubeStateMetrics+: { - networkPolicy:: {}, - }, - - nodeExporter+: { - networkPolicy:: {}, - }, - - prometheusAdapter+: { - networkPolicy:: {}, - }, - - alertmanager+: { - networkPolicy:: {}, - }, - - grafana+: { - networkPolicy:: {}, - }, - - prometheus+: { - networkPolicy:: {}, - }, - - prometheusOperator+: { - networkPolicy:: {}, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/node-ports.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/node-ports.libsonnet deleted file mode 100644 index 405a70cee..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/node-ports.libsonnet +++ /dev/null @@ -1,18 +0,0 @@ -local patch(ports) = { - spec+: { - ports: ports, - type: 'NodePort', - }, -}; - -{ - prometheus+: { - service+: patch([{ name: 'web', port: 9090, targetPort: 'web', nodePort: 30900 }]), - }, - alertmanager+: { - service+: patch([{ name: 'web', port: 9093, targetPort: 'web', nodePort: 30903 }]), - }, - grafana+: { - service+: patch([{ name: 'http', port: 3000, targetPort: 'http', nodePort: 30902 }]), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet deleted file mode 100644 index 243557465..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet +++ /dev/null @@ -1,268 +0,0 @@ -local restrictedPodSecurityPolicy = { - apiVersion: 'policy/v1beta1', - kind: 'PodSecurityPolicy', - metadata: { - name: 'kube-prometheus-restricted', - }, - spec: { - privileged: false, - // Required to prevent escalations to root. - allowPrivilegeEscalation: false, - // This is redundant with non-root + disallow privilege escalation, - // but we can provide it for defense in depth. - requiredDropCapabilities: ['ALL'], - // Allow core volume types. - volumes: [ - 'configMap', - 'emptyDir', - 'secret', - 'projected', - // Assume that persistentVolumes set up by the cluster admin are safe to use. - 'persistentVolumeClaim', - ], - hostNetwork: false, - hostIPC: false, - hostPID: false, - runAsUser: { - // Require the container to run without root privileges. - rule: 'MustRunAsNonRoot', - }, - seLinux: { - // This policy assumes the nodes are using AppArmor rather than SELinux. - rule: 'RunAsAny', - }, - supplementalGroups: { - rule: 'MustRunAs', - ranges: [{ - // Forbid adding the root group. - min: 1, - max: 65535, - }], - }, - fsGroup: { - rule: 'MustRunAs', - ranges: [{ - // Forbid adding the root group. - min: 1, - max: 65535, - }], - }, - readOnlyRootFilesystem: false, - }, -}; - -{ - restrictedPodSecurityPolicy: restrictedPodSecurityPolicy, - - alertmanager+: { - role: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'Role', - metadata: { - name: 'alertmanager-' + $.values.alertmanager.name, - namespace: $.values.alertmanager.namespace, - }, - rules: [{ - apiGroups: ['policy'], - resources: ['podsecuritypolicies'], - verbs: ['use'], - resourceNames: [restrictedPodSecurityPolicy.metadata.name], - }], - }, - - roleBinding: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'RoleBinding', - metadata: { - name: 'alertmanager-' + $.values.alertmanager.name, - namespace: $.values.alertmanager.namespace, - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'Role', - name: 'alertmanager-' + $.values.alertmanager.name, - }, - subjects: [{ - kind: 'ServiceAccount', - name: 'alertmanager-' + $.values.alertmanager.name, - namespace: $.values.alertmanager.namespace, - }], - }, - }, - - blackboxExporter+: { - clusterRole+: { - rules+: [ - { - apiGroups: ['policy'], - resources: ['podsecuritypolicies'], - verbs: ['use'], - resourceNames: ['blackbox-exporter-psp'], - }, - ], - }, - - podSecurityPolicy: - local blackboxExporterPspPrivileged = - if $.blackboxExporter._config.privileged then - { - metadata+: { - name: 'blackbox-exporter-psp', - }, - spec+: { - privileged: true, - allowedCapabilities: ['NET_RAW'], - runAsUser: { - rule: 'RunAsAny', - }, - }, - } - else - { - metadata+: { - name: 'blackbox-exporter-psp', - }, - }; - - restrictedPodSecurityPolicy + blackboxExporterPspPrivileged, - }, - - grafana+: { - role: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'Role', - metadata: { - name: 'grafana', - namespace: $.values.grafana.namespace, - }, - rules: [{ - apiGroups: ['policy'], - resources: ['podsecuritypolicies'], - verbs: ['use'], - resourceNames: [restrictedPodSecurityPolicy.metadata.name], - }], - }, - - roleBinding: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'RoleBinding', - metadata: { - name: 'grafana', - namespace: $.values.grafana.namespace, - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'Role', - name: 'grafana', - }, - subjects: [{ - kind: 'ServiceAccount', - name: $.grafana.serviceAccount.metadata.name, - namespace: $.grafana.serviceAccount.metadata.namespace, - }], - }, - }, - - kubeStateMetrics+: { - clusterRole+: { - rules+: [{ - apiGroups: ['policy'], - resources: ['podsecuritypolicies'], - verbs: ['use'], - resourceNames: ['kube-state-metrics-psp'], - }], - }, - - podSecurityPolicy: restrictedPodSecurityPolicy { - metadata+: { - name: 'kube-state-metrics-psp', - }, - spec+: { - runAsUser: { - rule: 'RunAsAny', - }, - }, - }, - }, - - nodeExporter+: { - clusterRole+: { - rules+: [{ - apiGroups: ['policy'], - resources: ['podsecuritypolicies'], - verbs: ['use'], - resourceNames: ['node-exporter-psp'], - }], - }, - - podSecurityPolicy: restrictedPodSecurityPolicy { - metadata+: { - name: 'node-exporter-psp', - }, - spec+: { - allowedCapabilities: [ - 'SYS_TIME', - ], - allowedHostPaths+: [ - { - pathPrefix: '/proc', - readOnly: true, - }, - { - pathPrefix: '/sys', - readOnly: true, - }, - { - pathPrefix: '/', - readOnly: true, - }, - ], - hostNetwork: true, - hostPID: true, - hostPorts: [ - { - max: $.nodeExporter._config.port, - min: $.nodeExporter._config.port, - }, - ], - readOnlyRootFilesystem: true, - volumes+: [ - 'hostPath', - ], - }, - }, - }, - - prometheusAdapter+: { - clusterRole+: { - rules+: [{ - apiGroups: ['policy'], - resources: ['podsecuritypolicies'], - verbs: ['use'], - resourceNames: [restrictedPodSecurityPolicy.metadata.name], - }], - }, - }, - - prometheusOperator+: { - clusterRole+: { - rules+: [{ - apiGroups: ['policy'], - resources: ['podsecuritypolicies'], - verbs: ['use'], - resourceNames: [restrictedPodSecurityPolicy.metadata.name], - }], - }, - }, - - prometheus+: { - clusterRole+: { - rules+: [{ - apiGroups: ['policy'], - resources: ['podsecuritypolicies'], - verbs: ['use'], - resourceNames: [restrictedPodSecurityPolicy.metadata.name], - }], - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/pyrra.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/pyrra.libsonnet deleted file mode 100644 index 18621853b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/pyrra.libsonnet +++ /dev/null @@ -1,626 +0,0 @@ -{ - values+:: { - common+: { - versions+: { - pyrra: error 'must provide version', - } + (import '../versions.json'), - images+: { - pyrra+: 'ghcr.io/pyrra-dev/pyrra:v' + $.values.common.versions.pyrra, - }, - }, - pyrra+: { - namespace: $.values.common.namespace, - version: $.values.common.versions.pyrra, - image: $.values.common.images.pyrra, - }, - }, - - local defaults = { - local defaults = self, - - name:: 'pyrra', - namespace:: error 'must provide namespace', - version:: error 'must provide version', - image: error 'must provide image', - replicas:: 1, - port:: 9099, - - commonLabels:: { - 'app.kubernetes.io/name': 'pyrra', - 'app.kubernetes.io/version': defaults.version, - 'app.kubernetes.io/part-of': 'kube-prometheus', - }, - }, - - local pyrra = function(params) { - local pyrra = self, - _config:: defaults + params, - - crd: ( - import 'github.com/pyrra-dev/pyrra/config/crd/bases/pyrra.dev_servicelevelobjectives.json' - ), - - - _apiMetadata:: { - name: pyrra._config.name + '-api', - namespace: pyrra._config.namespace, - labels: pyrra._config.commonLabels { - 'app.kubernetes.io/component': 'api', - }, - }, - apiSelectorLabels:: { - [labelName]: pyrra._apiMetadata.labels[labelName] - for labelName in std.objectFields(pyrra._apiMetadata.labels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, - - apiService: { - apiVersion: 'v1', - kind: 'Service', - metadata: pyrra._apiMetadata, - spec: { - ports: [ - { name: 'http', targetPort: pyrra._config.port, port: pyrra._config.port }, - ], - selector: pyrra.apiSelectorLabels, - }, - }, - - apiDeployment: - local c = { - name: pyrra._config.name, - image: pyrra._config.image, - args: [ - 'api', - '--api-url=http://%s.%s.svc.cluster.local:9444' % [pyrra.kubernetesService.metadata.name, pyrra.kubernetesService.metadata.namespace], - '--prometheus-url=http://prometheus-k8s.%s.svc.cluster.local:9090' % pyrra._config.namespace, - ], - // resources: pyrra._config.resources, - ports: [{ containerPort: pyrra._config.port }], - securityContext: { - allowPrivilegeEscalation: false, - readOnlyRootFilesystem: true, - runAsNonRoot: true, - capabilities: { drop: ['ALL'] }, - seccompProfile: { type: 'RuntimeDefault' }, - }, - }; - - { - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: pyrra._apiMetadata, - spec: { - replicas: pyrra._config.replicas, - selector: { - matchLabels: pyrra.apiSelectorLabels, - }, - strategy: { - rollingUpdate: { - maxSurge: 1, - maxUnavailable: 1, - }, - }, - template: { - metadata: { labels: pyrra._apiMetadata.labels }, - spec: { - containers: [c], - // serviceAccountName: $.serviceAccount.metadata.name, - nodeSelector: { 'kubernetes.io/os': 'linux' }, - }, - }, - }, - }, - - _kubernetesMetadata:: { - name: pyrra._config.name + '-kubernetes', - namespace: pyrra._config.namespace, - labels: pyrra._config.commonLabels { - 'app.kubernetes.io/component': 'kubernetes', - }, - }, - kubernetesSelectorLabels:: { - [labelName]: pyrra._kubernetesMetadata.labels[labelName] - for labelName in std.objectFields(pyrra._kubernetesMetadata.labels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, - - kubernetesServiceAccount: { - apiVersion: 'v1', - kind: 'ServiceAccount', - metadata: pyrra._kubernetesMetadata, - }, - - kubernetesClusterRole: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRole', - metadata: pyrra._kubernetesMetadata, - rules: [{ - apiGroups: ['monitoring.coreos.com'], - resources: ['prometheusrules'], - verbs: ['create', 'delete', 'get', 'list', 'patch', 'update', 'watch'], - }, { - apiGroups: ['monitoring.coreos.com'], - resources: ['prometheusrules/status'], - verbs: ['get'], - }, { - apiGroups: ['pyrra.dev'], - resources: ['servicelevelobjectives'], - verbs: ['create', 'delete', 'get', 'list', 'patch', 'update', 'watch'], - }, { - apiGroups: ['pyrra.dev'], - resources: ['servicelevelobjectives/status'], - verbs: ['get', 'patch', 'update'], - }], - }, - - kubernetesClusterRoleBinding: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - metadata: pyrra._kubernetesMetadata, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: pyrra.kubernetesClusterRole.metadata.name, - }, - subjects: [{ - kind: 'ServiceAccount', - name: pyrra.kubernetesServiceAccount.metadata.name, - namespace: pyrra._config.namespace, - }], - }, - - kubernetesService: { - apiVersion: 'v1', - kind: 'Service', - metadata: pyrra._kubernetesMetadata, - spec: { - ports: [ - { name: 'http', targetPort: 9444, port: 9444 }, - ], - selector: pyrra.kubernetesSelectorLabels, - }, - }, - - kubernetesDeployment: - local c = { - name: pyrra._config.name, - image: pyrra._config.image, - args: [ - 'kubernetes', - ], - // resources: pyrra._config.resources, - ports: [{ containerPort: pyrra._config.port }], - securityContext: { - allowPrivilegeEscalation: false, - readOnlyRootFilesystem: true, - }, - }; - - { - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: pyrra._kubernetesMetadata { - name: pyrra._config.name + '-kubernetes', - }, - spec: { - replicas: pyrra._config.replicas, - selector: { - matchLabels: pyrra.kubernetesSelectorLabels, - }, - strategy: { - rollingUpdate: { - maxSurge: 1, - maxUnavailable: 1, - }, - }, - template: { - metadata: { labels: pyrra._kubernetesMetadata.labels }, - spec: { - containers: [c], - serviceAccountName: pyrra.kubernetesServiceAccount.metadata.name, - nodeSelector: { 'kubernetes.io/os': 'linux' }, - }, - }, - }, - }, - - // Most of these should eventually be moved to the components themselves. - // For now, this is a good start to have everything in one place. - 'slo-apiserver-read-response-errors': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'apiserver-read-response-errors', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '99', - window: '2w', - description: '', - indicator: { - ratio: { - errors: { - metric: 'apiserver_request_total{component="apiserver",verb=~"LIST|GET",code=~"5.."}', - }, - total: { - metric: 'apiserver_request_total{component="apiserver",verb=~"LIST|GET"}', - }, - }, - }, - }, - }, - - 'slo-apiserver-write-response-errors': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'apiserver-write-response-errors', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '99', - window: '2w', - description: '', - indicator: { - ratio: { - errors: { - metric: 'apiserver_request_total{component="apiserver",verb=~"POST|PUT|PATCH|DELETE",code=~"5.."}', - }, - total: { - metric: 'apiserver_request_total{component="apiserver",verb=~"POST|PUT|PATCH|DELETE"}', - }, - }, - }, - }, - }, - - 'slo-apiserver-read-resource-latency': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'apiserver-read-resource-latency', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '99', - window: '2w', - description: '', - indicator: { - latency: { - success: { - metric: 'apiserver_request_duration_seconds_bucket{component="apiserver",scope=~"resource|",verb=~"LIST|GET",le="0.1"}', - }, - total: { - metric: 'apiserver_request_duration_seconds_count{component="apiserver",scope=~"resource|",verb=~"LIST|GET"}', - }, - }, - }, - }, - }, - - 'slo-apiserver-read-namespace-latency': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'apiserver-read-namespace-latency', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '99', - window: '2w', - description: '', - indicator: { - latency: { - success: { - metric: 'apiserver_request_duration_seconds_bucket{component="apiserver",scope=~"namespace|",verb=~"LIST|GET",le="5"}', - }, - total: { - metric: 'apiserver_request_duration_seconds_count{component="apiserver",scope=~"namespace|",verb=~"LIST|GET"}', - }, - }, - }, - }, - }, - - 'slo-apiserver-read-cluster-latency': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'apiserver-read-cluster-latency', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '99', - window: '2w', - description: '', - indicator: { - latency: { - success: { - metric: 'apiserver_request_duration_seconds_bucket{component="apiserver",scope=~"cluster|",verb=~"LIST|GET",le="5"}', - }, - total: { - metric: 'apiserver_request_duration_seconds_count{component="apiserver",scope=~"cluster|",verb=~"LIST|GET"}', - }, - }, - }, - }, - }, - - 'slo-kubelet-request-errors': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'kubelet-request-errors', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '99', - window: '2w', - description: '', - indicator: { - ratio: { - errors: { - metric: 'rest_client_requests_total{job="kubelet",code=~"5.."}', - }, - total: { - metric: 'rest_client_requests_total{job="kubelet"}', - }, - }, - }, - }, - }, - - 'slo-kubelet-runtime-errors': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'kubelet-runtime-errors', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '99', - window: '2w', - description: '', - indicator: { - ratio: { - errors: { - metric: 'kubelet_runtime_operations_errors_total{job="kubelet"}', - }, - total: { - metric: 'kubelet_runtime_operations_total{job="kubelet"}', - }, - }, - }, - }, - }, - - 'slo-coredns-response-errors': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'coredns-response-errors', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '99.99', - window: '2w', - description: '', - indicator: { - ratio: { - errors: { - metric: 'coredns_dns_responses_total{job="kube-dns",rcode="SERVFAIL"}', - }, - total: { - metric: 'coredns_dns_responses_total{job="kube-dns"}', - }, - }, - }, - }, - }, - - 'slo-prometheus-operator-reconcile-errors': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'prometheus-operator-reconcile-errors', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '95', - window: '2w', - description: '', - indicator: { - ratio: { - errors: { - metric: 'prometheus_operator_reconcile_errors_total{job="prometheus-operator"}', - }, - total: { - metric: 'prometheus_operator_reconcile_operations_total{job="prometheus-operator"}', - }, - grouping: ['controller'], - }, - }, - }, - }, - - 'slo-prometheus-operator-http-errors': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'prometheus-operator-http-errors', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '99.5', - window: '2w', - description: '', - indicator: { - ratio: { - errors: { - metric: 'prometheus_operator_kubernetes_client_http_requests_total{job="prometheus-operator",status_code=~"5.."}', - }, - total: { - metric: 'prometheus_operator_kubernetes_client_http_requests_total{job="prometheus-operator"}', - }, - }, - }, - }, - }, - - 'slo-prometheus-rule-evaluation-failures': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'prometheus-rule-evaluation-failures', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '99.99', - window: '2w', - description: 'Rule and alerting rules are being evaluated every few seconds. This needs to work for recording rules to be created and most importantly for alerts to be evaluated.', - indicator: { - ratio: { - errors: { - metric: 'prometheus_rule_evaluation_failures_total{job="prometheus-k8s"}', - }, - total: { - metric: 'prometheus_rule_evaluations_total{job="prometheus-k8s"}', - }, - }, - }, - }, - }, - - 'slo-prometheus-sd-kubernetes-errors': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'prometheus-sd-kubernetes-errors', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '99', - window: '2w', - description: 'If there are too many errors Prometheus is having a bad time discovering new Kubernetes services.', - indicator: { - ratio: { - errors: { - metric: 'prometheus_sd_kubernetes_http_request_total{job="prometheus-k8s",status_code=~"5..|"}', - }, - total: { - metric: 'prometheus_sd_kubernetes_http_request_total{job="prometheus-k8s"}', - }, - }, - }, - }, - }, - - 'slo-prometheus-query-errors': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'prometheus-query-errors', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '99', - window: '2w', - description: '', - indicator: { - ratio: { - grouping: ['handler'], - errors: { - metric: 'prometheus_http_requests_total{job="prometheus-k8s",handler=~"/api/v1/query.*",code=~"5.."}', - }, - total: { - metric: 'prometheus_http_requests_total{job="prometheus-k8s",handler=~"/api/v1/query.*"}', - }, - }, - }, - }, - }, - - 'slo-prometheus-notification-errors': { - apiVersion: 'pyrra.dev/v1alpha1', - kind: 'ServiceLevelObjective', - metadata: { - name: 'prometheus-notification-errors', - namespace: pyrra._config.namespace, - labels: { - prometheus: 'k8s', - role: 'alert-rules', - }, - }, - spec: { - target: '99', - window: '2w', - description: '', - indicator: { - ratio: { - errors: { - metric: 'prometheus_notifications_errors_total{job="prometheus-k8s"}', - }, - total: { - metric: 'prometheus_notifications_sent_total{job="prometheus-k8s"}', - }, - }, - }, - }, - }, - }, - - pyrra: pyrra($.values.pyrra), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/static-etcd.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/static-etcd.libsonnet deleted file mode 100644 index 1d8050e44..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/static-etcd.libsonnet +++ /dev/null @@ -1,102 +0,0 @@ -(import 'github.com/etcd-io/etcd/contrib/mixin/mixin.libsonnet') + { - values+:: { - etcd: { - ips: [], - clientCA: null, - clientKey: null, - clientCert: null, - serverName: null, - insecureSkipVerify: null, - }, - }, - prometheus+: { - serviceEtcd: { - apiVersion: 'v1', - kind: 'Service', - metadata: { - name: 'etcd', - namespace: 'kube-system', - labels: { 'app.kubernetes.io/name': 'etcd' }, - }, - spec: { - ports: [ - { name: 'metrics', targetPort: 2379, port: 2379 }, - ], - clusterIP: 'None', - }, - }, - endpointsEtcd: { - apiVersion: 'v1', - kind: 'Endpoints', - metadata: { - name: 'etcd', - namespace: 'kube-system', - labels: { 'app.kubernetes.io/name': 'etcd' }, - }, - subsets: [{ - addresses: [ - { ip: etcdIP } - for etcdIP in $.values.etcd.ips - ], - ports: [ - { name: 'metrics', port: 2379, protocol: 'TCP' }, - ], - }], - }, - serviceMonitorEtcd: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: { - name: 'etcd', - namespace: 'kube-system', - labels: { - 'app.kubernetes.io/name': 'etcd', - }, - }, - spec: { - jobLabel: 'app.kubernetes.io/name', - endpoints: [ - { - port: 'metrics', - interval: '30s', - scheme: 'https', - // Prometheus Operator (and Prometheus) allow us to specify a tlsConfig. This is required as most likely your etcd metrics end points is secure. - tlsConfig: { - caFile: '/etc/prometheus/secrets/kube-etcd-client-certs/etcd-client-ca.crt', - keyFile: '/etc/prometheus/secrets/kube-etcd-client-certs/etcd-client.key', - certFile: '/etc/prometheus/secrets/kube-etcd-client-certs/etcd-client.crt', - [if $.values.etcd.serverName != null then 'serverName']: $.values.etcd.serverName, - [if $.values.etcd.insecureSkipVerify != null then 'insecureSkipVerify']: $.values.etcd.insecureSkipVerify, - }, - }, - ], - selector: { - matchLabels: { - 'app.kubernetes.io/name': 'etcd', - }, - }, - }, - }, - secretEtcdCerts: { - // Prometheus Operator allows us to mount secrets in the pod. By loading the secrets as files, they can be made available inside the Prometheus pod. - apiVersion: 'v1', - kind: 'Secret', - type: 'Opaque', - metadata: { - name: 'kube-etcd-client-certs', - namespace: $.values.prometheus.namespace, - }, - data: { - 'etcd-client-ca.crt': std.base64($.values.etcd.clientCA), - 'etcd-client.key': std.base64($.values.etcd.clientKey), - 'etcd-client.crt': std.base64($.values.etcd.clientCert), - }, - }, - prometheus+: { - // Reference info: https://coreos.com/operators/prometheus/docs/latest/api.html#prometheusspec - spec+: { - secrets+: [$.prometheus.secretEtcdCerts.metadata.name], - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/strip-limits.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/strip-limits.libsonnet deleted file mode 100644 index e740614f2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/strip-limits.libsonnet +++ /dev/null @@ -1,57 +0,0 @@ -// Strips spec.containers[].limits for certain containers -// https://github.com/prometheus-operator/kube-prometheus/issues/72 - -{ - //TODO(arthursens): Expand example once kube-rbac-proxy can be managed with a first-class - // object inside node-exporter, kube-state-metrics and prometheus-operator. - // See also: https://github.com/prometheus-operator/kube-prometheus/issues/1500#issuecomment-966727623 - values+:: { - alertmanager+: { - resources+: { - limits: {}, - }, - }, - - blackboxExporter+: { - resources+: { - limits: {}, - }, - }, - - grafana+: { - resources+: { - limits: {}, - }, - }, - - kubeStateMetrics+: { - resources+: { - limits: {}, - }, - }, - - nodeExporter+: { - resources+: { - limits: {}, - }, - }, - - prometheusAdapter+: { - resources+: { - limits: {}, - }, - }, - - prometheusOperator+: { - resources+: { - limits: {}, - }, - }, - - prometheus+: { - resources+: { - limits: {}, - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/alerts.libsonnet deleted file mode 100644 index c0ca940a9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/alerts.libsonnet +++ /dev/null @@ -1,134 +0,0 @@ -[ - { - alert: 'WeaveNetIPAMSplitBrain', - expr: 'max(weave_ipam_unreachable_percentage) - min(weave_ipam_unreachable_percentage) > 0', - 'for': '3m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Percentage of all IP addresses owned by unreachable peers is not same for every node.', - description: 'actionable: Weave Net network has a split brain problem. Please find the problem and fix it.', - }, - }, - { - alert: 'WeaveNetIPAMUnreachable', - expr: 'weave_ipam_unreachable_percentage > 25', - 'for': '10m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Percentage of all IP addresses owned by unreachable peers is above threshold.', - description: 'actionable: Please find the problem and fix it.', - }, - }, - { - alert: 'WeaveNetIPAMPendingAllocates', - expr: 'sum(weave_ipam_pending_allocates) > 0', - 'for': '3m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Number of pending allocates is above the threshold.', - description: 'actionable: Please find the problem and fix it.', - }, - }, - { - alert: 'WeaveNetIPAMPendingClaims', - expr: 'sum(weave_ipam_pending_claims) > 0', - 'for': '3m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Number of pending claims is above the threshold.', - description: 'actionable: Please find the problem and fix it.', - }, - }, - { - alert: 'WeaveNetFastDPFlowsLow', - expr: 'sum(weave_flows) < 15000', - 'for': '3m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Number of FastDP flows is below the threshold.', - description: 'actionable: Please find the reason for FastDP flows to go below the threshold and fix it.', - }, - }, - { - alert: 'WeaveNetFastDPFlowsOff', - expr: 'sum(weave_flows == bool 0) > 0', - 'for': '3m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'FastDP flows is zero.', - description: 'actionable: Please find the reason for FastDP flows to be off and fix it.', - }, - }, - { - alert: 'WeaveNetHighConnectionTerminationRate', - expr: 'rate(weave_connection_terminations_total[5m]) > 0.1', - 'for': '5m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'A lot of connections are getting terminated.', - description: 'actionable: Please find the reason for the high connection termination rate and fix it.', - }, - }, - { - alert: 'WeaveNetConnectionsConnecting', - expr: 'sum(weave_connections{state="connecting"}) > 0', - 'for': '3m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'A lot of connections are in connecting state.', - description: 'actionable: Please find the reason for this and fix it.', - }, - }, - { - alert: 'WeaveNetConnectionsRetying', - expr: 'sum(weave_connections{state="retrying"}) > 0', - 'for': '3m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'A lot of connections are in retrying state.', - description: 'actionable: Please find the reason for this and fix it.', - }, - }, - { - alert: 'WeaveNetConnectionsPending', - expr: 'sum(weave_connections{state="pending"}) > 0', - 'for': '3m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'A lot of connections are in pending state.', - description: 'actionable: Please find the reason for this and fix it.', - }, - }, - { - alert: 'WeaveNetConnectionsFailed', - expr: 'sum(weave_connections{state="failed"}) > 0', - 'for': '3m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'A lot of connections are in failed state.', - description: 'actionable: Please find the reason and fix it.', - }, - }, -] diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/grafana-weave-net-cluster.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/grafana-weave-net-cluster.json deleted file mode 100644 index 102269f0b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/grafana-weave-net-cluster.json +++ /dev/null @@ -1,3347 +0,0 @@ -{ - "__inputs": [], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.6.0" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "description": "WeaveNet metrics at the cluster level. It was made on top of the weave-net prometheus metrics. Please check this for more details https://www.weave.works/docs/net/latest/tasks/manage/metrics", - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "iteration": 1582990339310, - "links": [], - "panels": [ - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 20, - "panels": [], - "repeat": null, - "title": "Headlines", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorPrefix": false, - "colorValue": false, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 1 - }, - "id": 56, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sum(weave_flows)", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1", - "timeFrom": null, - "timeShift": null, - "title": "Fast DP flows", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "#FADE2A", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 1 - }, - "id": 5, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sum(weave_flows == bool 0)", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,2", - "timeFrom": null, - "timeShift": null, - "title": "Fast DP off", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 8, - "y": 1 - }, - "id": 3, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sum(weave_ipam_pending_allocates)", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,10", - "timeFrom": null, - "timeShift": null, - "title": "IPAM Pending Allocates", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 12, - "y": 1 - }, - "id": 4, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sum(weave_ipam_pending_claims)", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,10", - "timeFrom": null, - "timeShift": null, - "title": "IPAM Pending Claims", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "cpm", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 16, - "y": 1 - }, - "id": 61, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sum(increase(weave_connection_terminations_total[1m]))", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1", - "timeFrom": null, - "timeShift": null, - "title": "Terminations", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 20, - "y": 1 - }, - "id": 1, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "count(central_nodeagent:node_route_unhealthy_count)", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "70,80", - "timeFrom": null, - "timeShift": null, - "title": "Weave Pods", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorPostfix": false, - "colorValue": false, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#5794F2" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 4 - }, - "id": 57, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sum(weave_connections{state=\"established\"})", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,", - "timeFrom": null, - "timeShift": null, - "title": "P2P Established", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 4 - }, - "id": 62, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sum(weave_connections{state=\"connecting\"})", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,10", - "timeFrom": null, - "timeShift": null, - "title": "P2P Connecting", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 8, - "y": 4 - }, - "id": 59, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sum(weave_connections{state=\"pending\"})", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,10", - "timeFrom": null, - "timeShift": null, - "title": "P2P Pending", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 12, - "y": 4 - }, - "id": 58, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sum(weave_connections{state=\"failed\"})", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,10", - "timeFrom": null, - "timeShift": null, - "title": "P2P Failed", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorPrefix": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 16, - "y": 4 - }, - "id": 60, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sum(weave_connections{state=\"retrying\"})", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,10", - "timeFrom": null, - "timeShift": null, - "title": "P2P Retrying", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 7 - }, - "id": 21, - "panels": [], - "repeat": null, - "title": "IPAM", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "Percentage of all IP addresses owned by unreachable peers.", - "fill": 0, - "fillGradient": 9, - "gridPos": { - "h": 5, - "w": 8, - "x": 0, - "y": 8 - }, - "hiddenSeries": false, - "id": 7, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "label_replace(weave_ipam_unreachable_percentage, \"node\", \"$1\", \"instance\", \"(.*):.*\")", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "{{node}}", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "IPAM Unreachable Percentage", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "percent", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "Number of unreachable peers that own IPAM addresses.", - "fill": 0, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 8, - "x": 8, - "y": 8 - }, - "hiddenSeries": false, - "id": 35, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "label_replace(weave_ipam_unreachable_count, \"node\", \"$1\", \"instance\", \"(.*):.*\")", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "{{node}}", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "IPAM Unreachable Count", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": " Number of pending claims.", - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 8, - "x": 16, - "y": 8 - }, - "hiddenSeries": false, - "id": 36, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum(weave_ipam_pending_allocates)", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "pending allocates", - "legendLink": null, - "refId": "A", - "step": 10 - }, - { - "expr": "sum(weave_ipam_pending_claims)", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "pending claims", - "legendLink": null, - "refId": "B", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "IPAM Pending", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 13 - }, - "id": 41, - "panels": [], - "title": "Connections", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 13, - "x": 0, - "y": 14 - }, - "hiddenSeries": false, - "id": 50, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null as zero", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "label_replace(weave_flows, \"node\", \"$1\", \"instance\", \"(.*):.*\")", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "{{node}}", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Fast DP Flows", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 11, - "x": 13, - "y": 14 - }, - "hiddenSeries": false, - "id": 51, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "label_replace(rate(weave_connection_terminations_total[5m]), \"node\", \"$1\", \"instance\", \"(.*):.*\") > 0", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "{{node}}", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Rate of Terminated Connections", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 8, - "x": 0, - "y": 21 - }, - "hiddenSeries": false, - "id": 55, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum(weave_connections{state=\"established\"})", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "connections established", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "P2P / Established", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 8, - "x": 8, - "y": 21 - }, - "hiddenSeries": false, - "id": 52, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum(weave_connections{state=\"connecting\"})", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "connections connecting", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "P2P / Connecting", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 8, - "x": 16, - "y": 21 - }, - "hiddenSeries": false, - "id": 54, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum(weave_connections{state=\"pending\"})", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "pending connections", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "P2P / Pending", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 8, - "x": 0, - "y": 28 - }, - "hiddenSeries": false, - "id": 67, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum(weave_connections{state=\"retrying\"})", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "retrying connections", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "P2P / Retrying", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 16, - "x": 8, - "y": 28 - }, - "hiddenSeries": false, - "id": 53, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum(weave_connections{state=\"failed\"})", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "failed connections", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "P2P / Failed", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "columns": [], - "datasource": "$datasource", - "description": "", - "fontSize": "100%", - "gridPos": { - "h": 10, - "w": 6, - "x": 0, - "y": 35 - }, - "id": 46, - "interval": "", - "options": {}, - "pageSize": null, - "pluginVersion": "6.6.0", - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Node", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Established", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 0, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sort(label_replace(weave_connections{state=\"established\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "instant": true, - "legendFormat": "{{node_ip}}", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "P2P / Established", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "columns": [], - "datasource": "$datasource", - "description": "", - "fontSize": "100%", - "gridPos": { - "h": 10, - "w": 6, - "x": 6, - "y": 35 - }, - "id": 63, - "interval": "", - "options": {}, - "pageSize": null, - "pluginVersion": "6.6.0", - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Node", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Connecting", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 0, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sort(label_replace(weave_connections{state=\"connecting\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "instant": true, - "legendFormat": "{{node_ip}}", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "P2P / Connecting", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "columns": [], - "datasource": "$datasource", - "description": "", - "fontSize": "100%", - "gridPos": { - "h": 10, - "w": 6, - "x": 12, - "y": 35 - }, - "id": 64, - "interval": "", - "options": {}, - "pageSize": null, - "pluginVersion": "6.6.0", - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Node", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Pending", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 0, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sort(label_replace(weave_connections{state=\"pending\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "instant": true, - "legendFormat": "{{node_ip}}", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "P2P / Pending", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "columns": [], - "datasource": "$datasource", - "description": "", - "fontSize": "100%", - "gridPos": { - "h": 10, - "w": 6, - "x": 18, - "y": 35 - }, - "id": 65, - "interval": "", - "options": {}, - "pageSize": null, - "pluginVersion": "6.6.0", - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Node", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Failed", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 0, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sort(label_replace(weave_connections{state=\"failed\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "instant": true, - "legendFormat": "{{node_ip}}", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "P2P / Failed", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "columns": [], - "datasource": "$datasource", - "description": "", - "fontSize": "100%", - "gridPos": { - "h": 10, - "w": 6, - "x": 0, - "y": 45 - }, - "id": 66, - "interval": "", - "options": {}, - "pageSize": null, - "pluginVersion": "6.6.0", - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Node", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Retrying", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 0, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sort_desc(label_replace(weave_connections{state=\"retrying\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "instant": true, - "legendFormat": "{{node_ip}}", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "P2P / Retrying", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "columns": [], - "datasource": "$datasource", - "description": "", - "fontSize": "100%", - "gridPos": { - "h": 10, - "w": 6, - "x": 6, - "y": 45 - }, - "id": 44, - "interval": "", - "options": {}, - "pageSize": null, - "pluginVersion": "6.6.0", - "showHeader": true, - "sort": { - "col": 2, - "desc": false - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Node", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Fast DP Flows", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sort_desc(label_replace(weave_flows, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "instant": true, - "legendFormat": "{{node_ip}}", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Fast DP Flows (Current)", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "columns": [], - "datasource": "$datasource", - "description": "", - "fontSize": "100%", - "gridPos": { - "h": 10, - "w": 6, - "x": 12, - "y": 45 - }, - "id": 45, - "interval": "", - "options": {}, - "pageSize": null, - "pluginVersion": "6.6.0", - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Node", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "No. of Pods", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 0, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sort_desc(floor(label_replace(max by(node) (max by(instance) (kubelet_running_pod_count{job=\"kubelet\",metrics_path=\"/metrics\"}) * on(instance) group_left(node) kubelet_node_name{job=\"kubelet\",metrics_path=\"/metrics\"}) / max by(node) (kube_node_status_capacity{resource=\"pods\",unit=\"integer\",job=\"kube-state-metrics\"}) , \"node_ip\", \"$1.$2.$3.$4\", \"node\", \"^ip-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).*$\") * 100))", - "format": "time_series", - "hide": false, - "instant": true, - "legendFormat": "{{node_ip}}", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Pods Per Node (Current)", - "transform": "timeseries_to_rows", - "type": "table" - }, - { - "columns": [], - "datasource": "$datasource", - "description": "", - "fontSize": "100%", - "gridPos": { - "h": 10, - "w": 6, - "x": 18, - "y": 45 - }, - "id": 47, - "interval": "", - "options": {}, - "pageSize": null, - "pluginVersion": "6.6.0", - "showHeader": true, - "sort": { - "col": 2, - "desc": false - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Node", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Metric", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Terminated", - "align": "left", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 0, - "pattern": "Value", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "expr": "sort(label_replace(increase(weave_connection_terminations_total[1m]), \"node_ip\", \"$1\", \"instance\", \"(.*):.*\")) != 0", - "format": "time_series", - "hide": false, - "instant": true, - "legendFormat": "{{node_ip}}", - "refId": "A" - } - ], - "timeFrom": null, - "timeShift": null, - "title": "Peer To Peer Connections Terminated", - "transform": "timeseries_to_rows", - "type": "table" - } - ], - "refresh": "10s", - "schemaVersion": 22, - "style": "dark", - "tags": [ - "practo-managed" - ], - "templating": { - "list": [ - { - "current": { - "text": "prometheus", - "value": "prometheus" - }, - "hide": 0, - "includeAll": false, - "label": null, - "multi": false, - "name": "datasource", - "options": [], - "query": "prometheus", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "type": "datasource" - }, - { - "allValue": null, - "current": {}, - "datasource": "$datasource", - "definition": "", - "hide": 2, - "includeAll": false, - "label": "cluster", - "multi": false, - "name": "cluster", - "options": [], - "query": "label_values(node_cpu_seconds_total, cluster)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 2, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "auto": false, - "auto_count": 30, - "auto_min": "10s", - "current": { - "selected": false, - "text": "4h", - "value": "4h" - }, - "datasource": "$datasource", - "hide": 2, - "includeAll": false, - "label": null, - "multi": false, - "name": "interval", - "options": [ - { - "selected": true, - "text": "4h", - "value": "4h" - } - ], - "query": "4h", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "interval", - "useTags": false - } - ] - }, - "time": { - "from": "now-12h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "WeaveNet (Cluster)", - "uid": "voS3tW_Zk", - "version": 9 -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/grafana-weave-net.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/grafana-weave-net.json deleted file mode 100644 index fb0e5049d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/grafana-weave-net.json +++ /dev/null @@ -1,2605 +0,0 @@ -{ - "__inputs": [], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.6.0" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "description": "WeaveNet metrics. It was made on top of the weave-net prometheus metrics. Please check this for more details https://www.weave.works/docs/net/latest/tasks/manage/metrics", - "editable": true, - "gnetId": null, - "graphTooltip": 0, - "id": null, - "iteration": 1582990295515, - "links": [], - "panels": [ - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 20, - "panels": [], - "repeat": null, - "title": "Headlines", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 1 - }, - "id": 48, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sort_desc(label_replace(weave_flows{instance=\"$instance\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,50", - "timeFrom": null, - "timeShift": null, - "title": "Fast DP Flows", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 1 - }, - "id": 3, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sum(weave_ipam_pending_allocates{instance=\"$instance\"})", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,10", - "timeFrom": null, - "timeShift": null, - "title": "IPAM Pending Allocates", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 8, - "y": 1 - }, - "id": 4, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sum(weave_ipam_pending_claims{instance=\"$instance\"})", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,10", - "timeFrom": null, - "timeShift": null, - "title": "IPAM Pending Claims", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 12, - "y": 1 - }, - "id": 62, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sort(label_replace(weave_max_ips{instance=\"$instance\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Max IPs", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "format": "cpm", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 16, - "y": 1 - }, - "id": 54, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "increase(weave_connection_terminations_total{instance=\"$instance\"}[1m])", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,2", - "timeFrom": null, - "timeShift": null, - "title": "Terminations", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 4 - }, - "id": 50, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sort_desc(label_replace(weave_connections{instance=\"$instance\", state=\"established\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,10", - "timeFrom": null, - "timeShift": null, - "title": "P2P Established", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 4 - }, - "id": 53, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sort_desc(label_replace(weave_connections{instance=\"$instance\", state=\"connecting\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,10", - "timeFrom": null, - "timeShift": null, - "title": "P2P Connecting", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 8, - "y": 4 - }, - "id": 52, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sort_desc(label_replace(weave_connections{instance=\"$instance\", state=\"pending\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1,10", - "timeFrom": null, - "timeShift": null, - "title": "P2P Pending", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 12, - "y": 4 - }, - "id": 51, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sort_desc(label_replace(weave_connections{instance=\"$instance\", state=\"failed\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1, 5", - "timeFrom": null, - "timeShift": null, - "title": "P2P Failed", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "format": "short", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 16, - "y": 4 - }, - "id": 49, - "interval": null, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "null as zero", - "nullText": null, - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false, - "ymax": null, - "ymin": null - }, - "stack": false, - "steppedLine": false, - "tableColumn": "", - "targets": [ - { - "expr": "sort_desc(label_replace(weave_connections{instance=\"$instance\", state=\"retrying\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "instant": true, - "intervalFactor": 2, - "refId": "A" - } - ], - "thresholds": "1, 5", - "timeFrom": null, - "timeShift": null, - "title": "P2P Retrying", - "tooltip": { - "shared": false, - "sort": 0, - "value_type": "individual" - }, - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "avg", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": 0, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ] - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 7 - }, - "id": 21, - "panels": [], - "repeat": null, - "title": "IPAM", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "Percentage of all IP addresses owned by unreachable peers.", - "fill": 1, - "fillGradient": 9, - "gridPos": { - "h": 5, - "w": 8, - "x": 0, - "y": 8 - }, - "hiddenSeries": false, - "id": 7, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "label_replace(weave_ipam_unreachable_percentage{instance=\"$instance\"}, \"node\", \"$1\", \"instance\", \"(.*):.*\")", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "IPAM unreachable percentage", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "IPAM Unreachable Percentage", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "percent", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "Number of unreachable peers that own IPAM addresses.", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 5, - "w": 8, - "x": 8, - "y": 8 - }, - "hiddenSeries": false, - "id": 35, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "label_replace(weave_ipam_unreachable_count{instance=\"$instance\"}, \"node\", \"$1\", \"instance\", \"(.*):.*\")", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "IPAM unreachable count", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "IPAM Unreachable Count", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": " Number of pending allocates and claims.", - "fill": 5, - "fillGradient": 0, - "gridPos": { - "h": 5, - "w": 8, - "x": 16, - "y": 8 - }, - "hiddenSeries": false, - "id": 34, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "pending allocates", - "color": "#FF9830" - }, - { - "alias": "pending claims", - "color": "#F2495C" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "label_replace(weave_ipam_pending_allocates{instance=\"$instance\"}, \"node\", \"$1\", \"instance\", \"(.*):.*\")", - "format": "time_series", - "hide": false, - "intervalFactor": 1, - "legendFormat": "pending allocates", - "legendLink": null, - "refId": "A", - "step": 10 - }, - { - "expr": "label_replace(weave_ipam_pending_claims{instance=\"$instance\"}, \"node\", \"$1\", \"instance\", \"(.*):.*\")", - "legendFormat": "pending claims", - "refId": "B" - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "IPAM Pending", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "collapsed": false, - "datasource": null, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 13 - }, - "id": 41, - "panels": [], - "title": "Connections", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "https://github.com/weaveworks/weave/blob/master/site/concepts/fastdp-how-it-works.md", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 13, - "x": 0, - "y": 14 - }, - "hiddenSeries": false, - "id": 55, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "label_replace(weave_flows{instance=\"$instance\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\")", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "weave fast dp flows", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Fast DP Flows", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "https://weave-community.slack.com/archives/C2ND76PAA/p1582641797016700?thread_ts=1582613239.010900&cid=C2ND76PAA", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 11, - "x": 13, - "y": 14 - }, - "hiddenSeries": false, - "id": 56, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "label_replace(increase(weave_connection_terminations_total{instance=\"$instance\"}[1m]), \"node\", \"$1\", \"instance\", \"(.*):.*\")", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "rate of terminated connections", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Rate of Terminated Connections", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "cpm", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 8, - "x": 0, - "y": 21 - }, - "hiddenSeries": false, - "id": 59, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sort_desc(label_replace(weave_connections{instance=\"$instance\", state=\"established\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "connections established", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "P2P / Established", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 8, - "x": 8, - "y": 21 - }, - "hiddenSeries": false, - "id": 57, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sort_desc(label_replace(weave_connections{instance=\"$instance\", state=\"connecting\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "connections connecting", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "P2P / Connecting", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 8, - "x": 16, - "y": 21 - }, - "hiddenSeries": false, - "id": 58, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sort_desc(label_replace(weave_connections{instance=\"$instance\", state=\"pending\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "connections pending", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "P2P / Pending", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 8, - "x": 0, - "y": 28 - }, - "hiddenSeries": false, - "id": 61, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sort_desc(label_replace(weave_connections{instance=\"$instance\", state=\"retrying\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "retrying connections", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "P2P / Retrying", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "description": "", - "fill": 1, - "fillGradient": 4, - "gridPos": { - "h": 7, - "w": 16, - "x": 8, - "y": 28 - }, - "hiddenSeries": false, - "id": 60, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] - }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sort_desc(label_replace(weave_connections{instance=\"$instance\", state=\"failed\"}, \"node_ip\", \"$1\", \"instance\", \"(.*):.*\"))", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "failed connections", - "legendLink": null, - "refId": "A", - "step": 10 - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "P2P / Failed", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - } - ], - "refresh": "10s", - "schemaVersion": 22, - "style": "dark", - "tags": [ - "practo-managed" - ], - "templating": { - "list": [ - { - "current": { - "text": "prometheus", - "value": "prometheus" - }, - "hide": 0, - "includeAll": false, - "label": null, - "multi": false, - "name": "datasource", - "options": [], - "query": "prometheus", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "type": "datasource" - }, - { - "allValue": null, - "current": {}, - "datasource": "$datasource", - "definition": "", - "hide": 2, - "includeAll": false, - "label": "cluster", - "multi": false, - "name": "cluster", - "options": [], - "query": "label_values(node_cpu_seconds_total, cluster)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 2, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "auto": false, - "auto_count": 30, - "auto_min": "10s", - "current": { - "selected": false, - "text": "4h", - "value": "4h" - }, - "datasource": "$datasource", - "hide": 2, - "includeAll": false, - "label": null, - "multi": false, - "name": "interval", - "options": [ - { - "selected": true, - "text": "4h", - "value": "4h" - } - ], - "query": "4h", - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "interval", - "useTags": false - }, - { - "allValue": null, - "current": {}, - "datasource": "$datasource", - "definition": "label_values(weave_ipam_unreachable_percentage, instance)", - "hide": 0, - "includeAll": false, - "label": "instance", - "multi": false, - "name": "instance", - "options": [], - "query": "label_values(weave_ipam_unreachable_percentage, instance)", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": { - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "WeaveNet", - "uid": "GzIXGqwZz", - "version": 5 -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/weave-net.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/weave-net.libsonnet deleted file mode 100644 index d5cc9ead7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/weave-net/weave-net.libsonnet +++ /dev/null @@ -1,73 +0,0 @@ -{ - prometheus+: { - local p = self, - serviceWeaveNet: { - apiVersion: 'v1', - kind: 'Service', - metadata: { - name: 'weave-net', - namespace: 'kube-system', - labels: { 'app.kubernetes.io/name': 'weave-net' }, - }, - spec: { - ports: [ - { name: 'weave-net-metrics', targetPort: 6782, port: 6782 }, - ], - selector: { name: 'weave-net' }, - clusterIP: 'None', - }, - }, - serviceMonitorWeaveNet: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: { - name: 'weave-net', - labels: { - 'app.kubernetes.io/name': 'weave-net', - }, - namespace: 'monitoring', - }, - spec: { - jobLabel: 'app.kubernetes.io/name', - endpoints: [ - { - port: 'weave-net-metrics', - path: '/metrics', - interval: '15s', - }, - ], - namespaceSelector: { - matchNames: [ - 'kube-system', - ], - }, - selector: { - matchLabels: { - 'app.kubernetes.io/name': 'weave-net', - }, - }, - }, - }, - prometheusRuleWeaveNet: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PrometheusRule', - metadata: { - labels: p._config.mixin.ruleLabels, - name: 'weave-net-rules', - namespace: p._config.namespace, - }, - spec: { - groups: [{ - name: 'weave-net', - rules: (import './alerts.libsonnet'), - }], - }, - }, - mixin+:: { - grafanaDashboards+:: { - 'weave-net.json': (import './grafana-weave-net.json'), - 'weave-net-cluster.json': (import './grafana-weave-net-cluster.json'), - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/windows-hostprocess.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/windows-hostprocess.libsonnet deleted file mode 100644 index d4929d95d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/windows-hostprocess.libsonnet +++ /dev/null @@ -1,197 +0,0 @@ -local windowsdashboards = import 'github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/windows.libsonnet'; -local windowsrules = import 'github.com/kubernetes-monitoring/kubernetes-mixin/rules/windows.libsonnet'; - -local defaults = { - local defaults = self, - // Convention: Top-level fields related to CRDs are public, other fields are hidden - // If there is no CRD for the component, everything is hidden in defaults. - name:: 'windows-exporter', - namespace:: error 'must provide namespace', - version:: error 'must provide version', - image:: error 'must provide image', - resources:: { - requests: { cpu: '300m', memory: '200Mi' }, - limits: { memory: '200Mi' }, - }, - collectorsEnabled:: 'cpu,logical_disk,net,os,system,container,memory', - scrapeTimeout:: '15s', - interval:: '30s', - listenAddress:: '127.0.0.1', - port:: 9182, - commonLabels:: { - 'app.kubernetes.io/name': defaults.name, - 'app.kubernetes.io/version': defaults.version, - 'app.kubernetes.io/component': 'windows-exporter', - 'app.kubernetes.io/part-of': 'kube-prometheus', - }, - selectorLabels:: { - [labelName]: defaults.commonLabels[labelName] - for labelName in std.objectFields(defaults.commonLabels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, -}; - -local windowsExporter = function(params) { - local we = self, - _config:: defaults + params, - // Safety check - assert std.isObject(we._config.resources), - _metadata:: { - name: we._config.name, - namespace: we._config.namespace, - labels: we._config.commonLabels, - }, - - daemonset: { - apiVersion: 'apps/v1', - kind: 'DaemonSet', - metadata: we._metadata, - spec: { - selector: { - matchLabels: we._config.selectorLabels, - }, - updateStrategy: { - type: 'RollingUpdate', - rollingUpdate: { maxUnavailable: '10%' }, - }, - template: { - metadata: we._metadata, - spec: { - securityContext: { - windowsOptions: { - hostProcess: true, - runAsUserName: 'NT AUTHORITY\\system', - }, - }, - hostNetwork: true, - initContainers: [ - { - name: 'configure-firewall', - image: 'mcr.microsoft.com/windows/nanoserver:1809', - resources: we._config.resources, - command: [ - 'powershell', - ], - args: [ - 'New-NetFirewallRule', - '-DisplayName', - "'windows-exporter'", - '-Direction', - 'inbound', - '-Profile', - 'Any', - '-Action', - 'Allow', - '-LocalPort', - std.toString(we._config.port), - '-Protocol', - 'TCP', - ], - }, - ], - containers: [ - { - args: [ - '--config.file=%CONTAINER_SANDBOX_MOUNT_POINT%/config.yml', - '--collector.textfile.directory=%CONTAINER_SANDBOX_MOUNT_POINT%', - ], - name: we._config.name, - image: we._config.image + ':' + we._config.version, - imagePullPolicy: 'Always', - resources: we._config.resources, - ports: [ - { - containerPort: we._config.port, - hostPort: we._config.port, - name: 'http', - }, - ], - volumeMounts: [ - { - name: 'windows-exporter-config', - mountPath: '/config.yml', - subPath: 'config.yml', - }, - ], - }, - ], - nodeSelector: { - 'kubernetes.io/os': 'windows', - }, - volumes: [ - { - name: 'windows-exporter-config', - configMap: { - name: we._config.name, - }, - }, - ], - }, - }, - }, - }, - configmap: { - kind: 'ConfigMap', - apiVersion: 'v1', - metadata: we._metadata, - data: { - 'config.yml': "collectors:\n enabled: '" + we._config.collectorsEnabled + "'", - }, - }, - podmonitor: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PodMonitor', - metadata: we._metadata, - spec: { - jobLabel: 'app.kubernetes.io/name', - selector: { - matchLabels: we._config.selectorLabels, - }, - podMetricsEndpoints: [ - { - port: 'http', - scheme: 'http', - scrapeTimeout: we._config.scrapeTimeout, - interval: we._config.interval, - relabelings: [ - { - action: 'replace', - regex: '(.*)', - replacement: '$1', - sourceLabels: ['__meta_kubernetes_pod_node_name'], - targetLabel: 'instance', - }, - ], - }, - ], - }, - }, -}; - -{ - values+:: { - windowsExporter+: { - name: defaults.name, - namespace: $.values.common.namespace, - }, - grafana+:: { - dashboards+:: windowsdashboards { - _config: $.kubernetesControlPlane.mixin._config { - windowsExporterSelector: 'job="' + $.values.windowsExporter.name + '"', - }, - }.grafanaDashboards, - }, - }, - kubernetesControlPlane+: { - mixin+:: { - prometheusRules+:: { - groups+: windowsrules { - _config: $.kubernetesControlPlane.mixin._config { - windowsExporterSelector: 'job="' + $.values.windowsExporter.name + '"', - }, - }.prometheusRules.groups, - }, - }, - }, - windowsExporter: windowsExporter($.values.windowsExporter), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/windows.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/windows.libsonnet deleted file mode 100644 index d97e8ffeb..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/addons/windows.libsonnet +++ /dev/null @@ -1,70 +0,0 @@ -local windowsdashboards = import 'github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/windows.libsonnet'; -local windowsrules = import 'github.com/kubernetes-monitoring/kubernetes-mixin/rules/windows.libsonnet'; - -{ - values+:: { - // This needs to follow prometheus naming convention and not prometheus-operator one - windowsScrapeConfig+:: { - job_name: 'windows-exporter', - static_configs: [ - { - targets: [error 'must provide targets array'], - }, - ], - relabel_configs: [ - { - action: 'replace', - regex: '(.*)', - replacement: '$1', - source_labels: [ - '__meta_kubernetes_endpoint_address_target_name', - ], - target_label: 'instance', - }, - ], - }, - - grafana+:: { - dashboards+:: windowsdashboards { - _config: $.kubernetesControlPlane.mixin._config { - wmiExporterSelector: 'job="' + $.values.windowsScrapeConfig.job_name + '"', - }, - }.grafanaDashboards, - }, - }, - kubernetesControlPlane+: { - mixin+:: { - prometheusRules+:: { - groups+: windowsrules { - _config: $.kubernetesControlPlane.mixin._config { - wmiExporterSelector: 'job="' + $.values.windowsScrapeConfig.job_name + '"', - }, - }.prometheusRules.groups, - }, - }, - }, - prometheus+: { - local p = self, - local sc = [$.values.windowsScrapeConfig], - prometheus+: { - spec+: { - additionalScrapeConfigs: { - name: 'prometheus-' + p._config.name + '-additional-scrape-config', - key: 'prometheus-additional.yaml', - }, - }, - - }, - windowsConfig: { - apiVersion: 'v1', - kind: 'Secret', - metadata: { - name: 'prometheus-' + p._config.name + '-additional-scrape-config', - namespace: p._config.namespace, - }, - stringData: { - 'prometheus-additional.yaml': std.manifestYamlDoc(sc), - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/alertmanager.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/alertmanager.libsonnet deleted file mode 100644 index 1faf0609c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/alertmanager.libsonnet +++ /dev/null @@ -1,238 +0,0 @@ -local defaults = { - local defaults = self, - // Convention: Top-level fields related to CRDs are public, other fields are hidden - // If there is no CRD for the component, everything is hidden in defaults. - namespace:: error 'must provide namespace', - image: error 'must provide image', - version: error 'must provide version', - resources: { - limits: { cpu: '100m', memory: '100Mi' }, - requests: { cpu: '4m', memory: '100Mi' }, - }, - commonLabels:: { - 'app.kubernetes.io/name': 'alertmanager', - 'app.kubernetes.io/instance': defaults.name, - 'app.kubernetes.io/version': defaults.version, - 'app.kubernetes.io/component': 'alert-router', - 'app.kubernetes.io/part-of': 'kube-prometheus', - }, - selectorLabels:: { - [labelName]: defaults.commonLabels[labelName] - for labelName in std.objectFields(defaults.commonLabels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, - name:: error 'must provide name', - reloaderPort:: 8080, - config:: { - global: { - resolve_timeout: '5m', - }, - inhibit_rules: [{ - source_matchers: ['severity = critical'], - target_matchers: ['severity =~ warning|info'], - equal: ['namespace', 'alertname'], - }, { - source_matchers: ['severity = warning'], - target_matchers: ['severity = info'], - equal: ['namespace', 'alertname'], - }, { - source_matchers: ['alertname = InfoInhibitor'], - target_matchers: ['severity = info'], - equal: ['namespace'], - }], - route: { - group_by: ['namespace'], - group_wait: '30s', - group_interval: '5m', - repeat_interval: '12h', - receiver: 'Default', - routes: [ - { receiver: 'Watchdog', matchers: ['alertname = Watchdog'] }, - { receiver: 'null', matchers: ['alertname = InfoInhibitor'] }, - { receiver: 'Critical', matchers: ['severity = critical'] }, - ], - }, - receivers: [ - { name: 'Default' }, - { name: 'Watchdog' }, - { name: 'Critical' }, - { name: 'null' }, - ], - }, - replicas: 3, - secrets: [], - mixin:: { - ruleLabels: {}, - _config: { - alertmanagerName: '{{ $labels.namespace }}/{{ $labels.pod}}', - alertmanagerClusterLabels: 'namespace,service', - alertmanagerSelector: 'job="alertmanager-' + defaults.name + '",namespace="' + defaults.namespace + '"', - runbookURLPattern: 'https://runbooks.prometheus-operator.dev/runbooks/alertmanager/%s', - }, - }, -}; - - -function(params) { - local am = self, - _config:: defaults + params, - // Safety check - assert std.isObject(am._config.resources), - assert std.isObject(am._config.mixin._config), - _metadata:: { - name: 'alertmanager-' + am._config.name, - namespace: am._config.namespace, - labels: am._config.commonLabels, - }, - - mixin:: (import 'github.com/prometheus/alertmanager/doc/alertmanager-mixin/mixin.libsonnet') + - (import 'github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet') { - _config+:: am._config.mixin._config, - }, - - prometheusRule: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PrometheusRule', - metadata: am._metadata { - labels+: am._config.mixin.ruleLabels, - name: am._metadata.name + '-rules', - }, - spec: { - local r = if std.objectHasAll(am.mixin, 'prometheusRules') then am.mixin.prometheusRules.groups else [], - local a = if std.objectHasAll(am.mixin, 'prometheusAlerts') then am.mixin.prometheusAlerts.groups else [], - groups: a + r, - }, - }, - - networkPolicy: { - apiVersion: 'networking.k8s.io/v1', - kind: 'NetworkPolicy', - metadata: am.service.metadata, - spec: { - podSelector: { - matchLabels: am._config.selectorLabels, - }, - policyTypes: ['Egress', 'Ingress'], - egress: [{}], - ingress: [ - { - from: [{ - podSelector: { - matchLabels: { - 'app.kubernetes.io/name': 'prometheus', - }, - }, - }], - ports: std.map(function(o) { - port: o.port, - protocol: 'TCP', - }, am.service.spec.ports), - }, - // Alertmanager cluster peer-to-peer communication - { - from: [{ - podSelector: { - matchLabels: { - 'app.kubernetes.io/name': 'alertmanager', - }, - }, - }], - ports: [{ - port: 9094, - protocol: 'TCP', - }, { - port: 9094, - protocol: 'UDP', - }], - }, - ], - }, - }, - - secret: { - apiVersion: 'v1', - kind: 'Secret', - type: 'Opaque', - metadata: am._metadata, - stringData: { - 'alertmanager.yaml': if std.type(am._config.config) == 'object' - then - std.manifestYamlDoc(am._config.config) - else - am._config.config, - }, - }, - - serviceAccount: { - apiVersion: 'v1', - kind: 'ServiceAccount', - metadata: am._metadata, - automountServiceAccountToken: false, - }, - - service: { - apiVersion: 'v1', - kind: 'Service', - metadata: am._metadata, - spec: { - ports: [ - { name: 'web', targetPort: 'web', port: 9093 }, - { name: 'reloader-web', port: am._config.reloaderPort, targetPort: 'reloader-web' }, - ], - selector: am._config.selectorLabels, - sessionAffinity: 'ClientIP', - }, - }, - - serviceMonitor: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: am._metadata, - spec: { - selector: { - matchLabels: am._config.selectorLabels, - }, - endpoints: [ - { port: 'web', interval: '30s' }, - { port: 'reloader-web', interval: '30s' }, - ], - }, - }, - - [if (defaults + params).replicas > 1 then 'podDisruptionBudget']: { - apiVersion: 'policy/v1', - kind: 'PodDisruptionBudget', - metadata: am._metadata, - spec: { - maxUnavailable: 1, - selector: { - matchLabels: am._config.selectorLabels, - }, - }, - }, - - alertmanager: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'Alertmanager', - metadata: am._metadata { - name: am._config.name, - }, - spec: { - replicas: am._config.replicas, - version: am._config.version, - image: am._config.image, - podMetadata: { - labels: am.alertmanager.metadata.labels, - }, - resources: am._config.resources, - nodeSelector: { 'kubernetes.io/os': 'linux' }, - secrets: am._config.secrets, - serviceAccountName: am.serviceAccount.metadata.name, - securityContext: { - runAsUser: 1000, - runAsNonRoot: true, - fsGroup: 2000, - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/blackbox-exporter.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/blackbox-exporter.libsonnet deleted file mode 100644 index 2db244c40..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/blackbox-exporter.libsonnet +++ /dev/null @@ -1,328 +0,0 @@ -local krp = import './kube-rbac-proxy.libsonnet'; - -local defaults = { - local defaults = self, - // Convention: Top-level fields related to CRDs are public, other fields are hidden - // If there is no CRD for the component, everything is hidden in defaults. - namespace:: error 'must provide namespace', - version:: error 'must provide version', - image:: error 'must provide image', - resources:: { - requests: { cpu: '10m', memory: '20Mi' }, - limits: { cpu: '20m', memory: '40Mi' }, - }, - kubeRbacProxy:: { - resources+: { - requests: { cpu: '10m', memory: '20Mi' }, - limits: { cpu: '20m', memory: '40Mi' }, - }, - }, - commonLabels:: { - 'app.kubernetes.io/name': 'blackbox-exporter', - 'app.kubernetes.io/version': defaults.version, - 'app.kubernetes.io/component': 'exporter', - 'app.kubernetes.io/part-of': 'kube-prometheus', - }, - selectorLabels:: { - [labelName]: defaults.commonLabels[labelName] - for labelName in std.objectFields(defaults.commonLabels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, - configmapReloaderImage:: error 'must provide version', - kubeRbacProxyImage:: error 'must provide kubeRbacProxyImage', - - port:: 9115, - internalPort:: 19115, - replicas:: 1, - modules:: { - http_2xx: { - prober: 'http', - http: { - preferred_ip_protocol: 'ip4', - }, - }, - http_post_2xx: { - prober: 'http', - http: { - method: 'POST', - preferred_ip_protocol: 'ip4', - }, - }, - tcp_connect: { - prober: 'tcp', - tcp: { - preferred_ip_protocol: 'ip4', - }, - }, - pop3s_banner: { - prober: 'tcp', - tcp: { - query_response: [ - { expect: '^+OK' }, - ], - tls: true, - tls_config: { - insecure_skip_verify: false, - }, - preferred_ip_protocol: 'ip4', - }, - }, - ssh_banner: { - prober: 'tcp', - tcp: { - query_response: [ - { expect: '^SSH-2.0-' }, - ], - preferred_ip_protocol: 'ip4', - }, - }, - irc_banner: { - prober: 'tcp', - tcp: { - query_response: [ - { send: 'NICK prober' }, - { send: 'USER prober prober prober :prober' }, - { expect: 'PING :([^ ]+)', send: 'PONG ${1}' }, - { expect: '^:[^ ]+ 001' }, - ], - preferred_ip_protocol: 'ip4', - }, - }, - }, - privileged:: - local icmpModules = [self.modules[m] for m in std.objectFields(self.modules) if self.modules[m].prober == 'icmp']; - std.length(icmpModules) > 0, -}; - - -function(params) { - local bb = self, - _config:: defaults + params, - // Safety check - assert std.isObject(bb._config.resources), - _metadata:: { - name: 'blackbox-exporter', - namespace: bb._config.namespace, - labels: bb._config.commonLabels, - }, - - configuration: { - apiVersion: 'v1', - kind: 'ConfigMap', - metadata: bb._metadata { - name: 'blackbox-exporter-configuration', - }, - data: { - 'config.yml': std.manifestYamlDoc({ modules: bb._config.modules }), - }, - }, - - serviceAccount: { - apiVersion: 'v1', - kind: 'ServiceAccount', - metadata: bb._metadata, - automountServiceAccountToken: false, - }, - - clusterRole: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRole', - metadata: { - name: 'blackbox-exporter', - }, - rules: [ - { - apiGroups: ['authentication.k8s.io'], - resources: ['tokenreviews'], - verbs: ['create'], - }, - { - apiGroups: ['authorization.k8s.io'], - resources: ['subjectaccessreviews'], - verbs: ['create'], - }, - ], - }, - - clusterRoleBinding: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - metadata: { - name: 'blackbox-exporter', - labels: bb._config.commonLabels, - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: 'blackbox-exporter', - }, - subjects: [{ - kind: 'ServiceAccount', - name: 'blackbox-exporter', - namespace: bb._config.namespace, - }], - }, - - deployment: - local blackboxExporter = { - name: 'blackbox-exporter', - image: bb._config.image, - args: [ - '--config.file=/etc/blackbox_exporter/config.yml', - '--web.listen-address=:%d' % bb._config.internalPort, - ], - ports: [{ - name: 'http', - containerPort: bb._config.internalPort, - }], - resources: bb._config.resources, - securityContext: if bb._config.privileged then { - runAsNonRoot: false, - capabilities: { drop: ['ALL'], add: ['NET_RAW'] }, - readOnlyRootFilesystem: true, - } else { - runAsNonRoot: true, - runAsUser: 65534, - runAsGroup: 65534, - allowPrivilegeEscalation: false, - readOnlyRootFilesystem: true, - capabilities: { drop: ['ALL'] }, - }, - volumeMounts: [{ - mountPath: '/etc/blackbox_exporter/', - name: 'config', - readOnly: true, - }], - }; - - local reloader = { - name: 'module-configmap-reloader', - image: bb._config.configmapReloaderImage, - args: [ - '--webhook-url=http://localhost:%d/-/reload' % bb._config.internalPort, - '--volume-dir=/etc/blackbox_exporter/', - ], - resources: bb._config.resources, - securityContext: { - runAsNonRoot: true, - runAsUser: 65534, - runAsGroup: 65534, - allowPrivilegeEscalation: false, - readOnlyRootFilesystem: true, - capabilities: { drop: ['ALL'] }, - }, - terminationMessagePath: '/dev/termination-log', - terminationMessagePolicy: 'FallbackToLogsOnError', - volumeMounts: [{ - mountPath: '/etc/blackbox_exporter/', - name: 'config', - readOnly: true, - }], - }; - - local kubeRbacProxy = krp(bb._config.kubeRbacProxy { - name: 'kube-rbac-proxy', - upstream: 'http://127.0.0.1:' + bb._config.internalPort + '/', - resources: bb._config.resources, - secureListenAddress: ':' + bb._config.port, - ports: [ - { name: 'https', containerPort: bb._config.port }, - ], - image: bb._config.kubeRbacProxyImage, - }); - - { - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: bb._metadata, - spec: { - replicas: bb._config.replicas, - selector: { - matchLabels: bb._config.selectorLabels, - }, - template: { - metadata: { - labels: bb._config.commonLabels, - annotations: { - 'kubectl.kubernetes.io/default-container': blackboxExporter.name, - }, - }, - spec: { - containers: [blackboxExporter, reloader, kubeRbacProxy], - nodeSelector: { 'kubernetes.io/os': 'linux' }, - automountServiceAccountToken: true, - serviceAccountName: 'blackbox-exporter', - volumes: [{ - name: 'config', - configMap: { name: 'blackbox-exporter-configuration' }, - }], - }, - }, - }, - }, - - networkPolicy: { - apiVersion: 'networking.k8s.io/v1', - kind: 'NetworkPolicy', - metadata: bb.service.metadata, - spec: { - podSelector: { - matchLabels: bb._config.selectorLabels, - }, - policyTypes: ['Egress', 'Ingress'], - egress: [{}], - ingress: [{ - from: [{ - podSelector: { - matchLabels: { - 'app.kubernetes.io/name': 'prometheus', - }, - }, - }], - ports: std.map(function(o) { - port: o.port, - protocol: 'TCP', - }, bb.service.spec.ports), - }], - }, - }, - - service: { - apiVersion: 'v1', - kind: 'Service', - metadata: bb._metadata, - spec: { - ports: [{ - name: 'https', - port: bb._config.port, - targetPort: 'https', - }, { - name: 'probe', - port: bb._config.internalPort, - targetPort: 'http', - }], - selector: bb._config.selectorLabels, - }, - }, - - serviceMonitor: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: bb._metadata, - spec: { - endpoints: [{ - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - interval: '30s', - path: '/metrics', - port: 'https', - scheme: 'https', - tlsConfig: { - insecureSkipVerify: true, - }, - }], - selector: { - matchLabels: bb._config.selectorLabels, - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/grafana.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/grafana.libsonnet deleted file mode 100644 index 72aec9241..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/grafana.libsonnet +++ /dev/null @@ -1,126 +0,0 @@ -local kubernetesGrafana = import 'github.com/brancz/kubernetes-grafana/grafana/grafana.libsonnet'; - -local defaults = { - local defaults = self, - // Convention: Top-level fields related to CRDs are public, other fields are hidden - // If there is no CRD for the component, everything is hidden in defaults. - name:: 'grafana', - namespace:: error 'must provide namespace', - version:: error 'must provide version', - image:: error 'must provide image', - resources:: { - requests: { cpu: '100m', memory: '100Mi' }, - limits: { cpu: '200m', memory: '200Mi' }, - }, - commonLabels:: { - 'app.kubernetes.io/name': defaults.name, - 'app.kubernetes.io/version': defaults.version, - 'app.kubernetes.io/component': 'grafana', - 'app.kubernetes.io/part-of': 'kube-prometheus', - }, - selectorLabels:: { - [labelName]: defaults.commonLabels[labelName] - for labelName in std.objectFields(defaults.commonLabels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, - prometheusName:: error 'must provide prometheus name', - mixin: { - ruleLabels: {}, - _config: { - runbookURLPattern: 'https://runbooks.prometheus-operator.dev/runbooks/grafana/%s', - }, - }, -}; - -function(params) - local config = defaults + params; - // Safety check - assert std.isObject(config.resources); - - kubernetesGrafana(config) { - local g = self, - _config+:: config, - _metadata:: { - name: 'grafana', - namespace: g._config.namespace, - labels: g._config.commonLabels, - }, - - mixin:: - (import 'github.com/grafana/grafana/grafana-mixin/mixin.libsonnet') + - (import 'github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet') + { - _config+:: g._config.mixin._config, - }, - - prometheusRule: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PrometheusRule', - metadata: { - labels: g._config.commonLabels + g._config.mixin.ruleLabels, - name: g._config.name + '-rules', - namespace: g._config.namespace, - }, - spec: { - local r = if std.objectHasAll(g.mixin, 'prometheusRules') then g.mixin.prometheusRules.groups else [], - local a = if std.objectHasAll(g.mixin, 'prometheusAlerts') then g.mixin.prometheusAlerts.groups else [], - groups: a + r, - }, - }, - - serviceMonitor: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: g._metadata, - spec: { - selector: { - matchLabels: { - 'app.kubernetes.io/name': 'grafana', - }, - }, - endpoints: [{ - port: 'http', - interval: '15s', - }], - }, - }, - - networkPolicy: { - apiVersion: 'networking.k8s.io/v1', - kind: 'NetworkPolicy', - metadata: g.service.metadata, - spec: { - podSelector: { - matchLabels: g._config.selectorLabels, - }, - policyTypes: ['Egress', 'Ingress'], - egress: [{}], - ingress: [{ - from: [{ - podSelector: { - matchLabels: { - 'app.kubernetes.io/name': 'prometheus', - }, - }, - }], - ports: std.map(function(o) { - port: o.port, - protocol: 'TCP', - }, g.service.spec.ports), - }], - }, - }, - - // FIXME(paulfantom): `automountServiceAccountToken` can be removed after porting to brancz/kuberentes-grafana - deployment+: { - spec+: { - template+: { - spec+: { - automountServiceAccountToken: false, - securityContext+: { - runAsGroup: 65534, - }, - }, - }, - }, - }, - } diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet deleted file mode 100644 index 8692f38df..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet +++ /dev/null @@ -1,400 +0,0 @@ -local relabelings = import '../addons/dropping-deprecated-metrics-relabelings.libsonnet'; - -local defaults = { - // Convention: Top-level fields related to CRDs are public, other fields are hidden - // If there is no CRD for the component, everything is hidden in defaults. - namespace:: error 'must provide namespace', - commonLabels:: { - 'app.kubernetes.io/name': 'kube-prometheus', - 'app.kubernetes.io/part-of': 'kube-prometheus', - }, - mixin:: { - ruleLabels: {}, - _config: { - showMultiCluster: true, - cadvisorSelector: 'job="kubelet", metrics_path="/metrics/cadvisor"', - kubeletSelector: 'job="kubelet", metrics_path="/metrics"', - kubeStateMetricsSelector: 'job="kube-state-metrics"', - nodeExporterSelector: 'job="node-exporter"', - kubeSchedulerSelector: 'job="kube-scheduler"', - kubeControllerManagerSelector: 'job="kube-controller-manager"', - kubeApiserverSelector: 'job="apiserver"', - podLabel: 'pod', - runbookURLPattern: 'https://runbooks.prometheus-operator.dev/runbooks/kubernetes/%s', - diskDeviceSelector: 'device=~"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)"', - hostNetworkInterfaceSelector: 'device!~"veth.+"', - }, - }, - kubeProxy:: false, -}; - -function(params) { - local k8s = self, - _config:: defaults + params, - _metadata:: { - labels: k8s._config.commonLabels, - namespace: k8s._config.namespace, - }, - - mixin:: (import 'github.com/kubernetes-monitoring/kubernetes-mixin/mixin.libsonnet') { - _config+:: k8s._config.mixin._config, - } + { - // Filter-out alerts related to kube-proxy when `kubeProxy: false` - [if !(defaults + params).kubeProxy then 'prometheusAlerts']+:: { - groups: std.filter( - function(g) !std.member(['kubernetes-system-kube-proxy'], g.name), - super.groups - ), - }, - }, - - prometheusRule: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PrometheusRule', - metadata: k8s._metadata { - name: 'kubernetes-monitoring-rules', - labels+: k8s._config.mixin.ruleLabels, - }, - spec: { - local r = if std.objectHasAll(k8s.mixin, 'prometheusRules') then k8s.mixin.prometheusRules.groups else [], - local a = if std.objectHasAll(k8s.mixin, 'prometheusAlerts') then k8s.mixin.prometheusAlerts.groups else [], - groups: a + r, - }, - }, - - serviceMonitorKubeScheduler: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: k8s._metadata { - name: 'kube-scheduler', - labels+: { 'app.kubernetes.io/name': 'kube-scheduler' }, - }, - spec: { - jobLabel: 'app.kubernetes.io/name', - endpoints: [ - { - port: 'https-metrics', - interval: '30s', - scheme: 'https', - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - tlsConfig: { insecureSkipVerify: true }, - }, - { - port: 'https-metrics', - interval: '5s', - scheme: 'https', - path: '/metrics/slis', - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - tlsConfig: { insecureSkipVerify: true }, - }, - ], - selector: { - matchLabels: { 'app.kubernetes.io/name': 'kube-scheduler' }, - }, - namespaceSelector: { - matchNames: ['kube-system'], - }, - }, - }, - - serviceMonitorKubelet: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: k8s._metadata { - name: 'kubelet', - labels+: { 'app.kubernetes.io/name': 'kubelet' }, - }, - spec: { - jobLabel: 'app.kubernetes.io/name', - endpoints: [ - { - port: 'https-metrics', - scheme: 'https', - interval: '30s', - honorLabels: true, - tlsConfig: { insecureSkipVerify: true }, - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - metricRelabelings: relabelings, - relabelings: [{ - action: 'replace', - sourceLabels: ['__metrics_path__'], - targetLabel: 'metrics_path', - }], - }, - { - port: 'https-metrics', - scheme: 'https', - path: '/metrics/cadvisor', - interval: '30s', - honorLabels: true, - honorTimestamps: false, - tlsConfig: { - insecureSkipVerify: true, - }, - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - relabelings: [{ - action: 'replace', - sourceLabels: ['__metrics_path__'], - targetLabel: 'metrics_path', - }], - metricRelabelings: [ - // Drop a bunch of metrics which are disabled but still sent, see - // https://github.com/google/cadvisor/issues/1925. - { - sourceLabels: ['__name__'], - regex: 'container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)', - action: 'drop', - }, - // Drop cAdvisor metrics with no (pod, namespace) labels while preserving ability to monitor system services resource usage (cardinality estimation) - { - sourceLabels: ['__name__', 'pod', 'namespace'], - action: 'drop', - regex: '(' + std.join('|', - [ - 'container_spec_.*', // everything related to cgroup specification and thus static data (nodes*services*5) - 'container_file_descriptors', // file descriptors limits and global numbers are exposed via (nodes*services) - 'container_sockets', // used sockets in cgroup. Usually not important for system services (nodes*services) - 'container_threads_max', // max number of threads in cgroup. Usually for system services it is not limited (nodes*services) - 'container_threads', // used threads in cgroup. Usually not important for system services (nodes*services) - 'container_start_time_seconds', // container start. Possibly not needed for system services (nodes*services) - 'container_last_seen', // not needed as system services are always running (nodes*services) - ]) + ');;', - }, - { - sourceLabels: ['__name__', 'container'], - action: 'drop', - regex: '(' + std.join('|', - [ - 'container_blkio_device_usage_total', - ]) + ');.+', - }, - ], - }, - { - port: 'https-metrics', - scheme: 'https', - path: '/metrics/probes', - interval: '30s', - honorLabels: true, - tlsConfig: { insecureSkipVerify: true }, - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - relabelings: [{ - action: 'replace', - sourceLabels: ['__metrics_path__'], - targetLabel: 'metrics_path', - }], - }, - { - port: 'https-metrics', - scheme: 'https', - path: '/metrics/slis', - interval: '5s', - honorLabels: true, - tlsConfig: { insecureSkipVerify: true }, - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - relabelings: [{ - action: 'replace', - sourceLabels: ['__metrics_path__'], - targetLabel: 'metrics_path', - }], - }, - ], - selector: { - matchLabels: { 'app.kubernetes.io/name': 'kubelet' }, - }, - namespaceSelector: { - matchNames: ['kube-system'], - }, - }, - }, - - serviceMonitorKubeControllerManager: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: k8s._metadata { - name: 'kube-controller-manager', - labels+: { 'app.kubernetes.io/name': 'kube-controller-manager' }, - }, - spec: { - jobLabel: 'app.kubernetes.io/name', - endpoints: [ - { - port: 'https-metrics', - interval: '30s', - scheme: 'https', - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - tlsConfig: { - insecureSkipVerify: true, - }, - metricRelabelings: relabelings + [ - { - sourceLabels: ['__name__'], - regex: 'etcd_(debugging|disk|request|server).*', - action: 'drop', - }, - ], - }, - { - port: 'https-metrics', - interval: '5s', - scheme: 'https', - path: '/metrics/slis', - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - tlsConfig: { - insecureSkipVerify: true, - }, - }, - ], - selector: { - matchLabels: { 'app.kubernetes.io/name': 'kube-controller-manager' }, - }, - namespaceSelector: { - matchNames: ['kube-system'], - }, - }, - }, - - serviceMonitorApiserver: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: k8s._metadata { - name: 'kube-apiserver', - labels+: { 'app.kubernetes.io/name': 'apiserver' }, - }, - spec: { - jobLabel: 'component', - selector: { - matchLabels: { - component: 'apiserver', - provider: 'kubernetes', - }, - }, - namespaceSelector: { - matchNames: ['default'], - }, - endpoints: [ - { - port: 'https', - interval: '30s', - scheme: 'https', - tlsConfig: { - caFile: '/var/run/secrets/kubernetes.io/serviceaccount/ca.crt', - serverName: 'kubernetes', - }, - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - metricRelabelings: relabelings + [ - { - sourceLabels: ['__name__'], - regex: 'etcd_(debugging|disk|server).*', - action: 'drop', - }, - { - sourceLabels: ['__name__'], - regex: 'apiserver_admission_controller_admission_latencies_seconds_.*', - action: 'drop', - }, - { - sourceLabels: ['__name__'], - regex: 'apiserver_admission_step_admission_latencies_seconds_.*', - action: 'drop', - }, - { - sourceLabels: ['__name__', 'le'], - regex: 'apiserver_request_duration_seconds_bucket;(0.15|0.25|0.3|0.35|0.4|0.45|0.6|0.7|0.8|0.9|1.25|1.5|1.75|2.5|3|3.5|4.5|6|7|8|9|15|25|30|50)', - action: 'drop', - }, - ], - }, - { - port: 'https', - interval: '5s', - scheme: 'https', - path: '/metrics/slis', - tlsConfig: { - caFile: '/var/run/secrets/kubernetes.io/serviceaccount/ca.crt', - serverName: 'kubernetes', - }, - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - }, - ], - }, - }, - - [if (defaults + params).kubeProxy then 'podMonitorKubeProxy']: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PodMonitor', - metadata: k8s._metadata { - labels+: { 'k8s-app': 'kube-proxy' }, - name: 'kube-proxy', - }, - spec: { - jobLabel: 'k8s-app', - namespaceSelector: { - matchNames: [ - 'kube-system', - ], - }, - selector: { - matchLabels: { - 'k8s-app': 'kube-proxy', - }, - }, - podMetricsEndpoints: [{ - honorLabels: true, - relabelings: [ - { - action: 'replace', - regex: '(.*)', - replacement: '$1', - sourceLabels: ['__meta_kubernetes_pod_node_name'], - targetLabel: 'instance', - }, - { - action: 'replace', - regex: '(.*)', - replacement: '$1:10249', - targetLabel: '__address__', - sourceLabels: ['__meta_kubernetes_pod_ip'], - }, - ], - }], - }, - }, - - - serviceMonitorCoreDNS: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: k8s._metadata { - name: 'coredns', - labels+: { 'app.kubernetes.io/name': 'coredns' }, - }, - spec: { - jobLabel: 'app.kubernetes.io/name', - selector: { - matchLabels: { 'k8s-app': 'kube-dns' }, - }, - namespaceSelector: { - matchNames: ['kube-system'], - }, - endpoints: [ - { - port: 'metrics', - interval: '15s', - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - metricRelabelings: [ - // Drop deprecated metrics - // TODO (pgough) - consolidate how we drop metrics across the project - { - sourceLabels: ['__name__'], - regex: 'coredns_cache_misses_total', - action: 'drop', - }, - ], - }, - ], - }, - }, - - -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/kube-rbac-proxy.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/kube-rbac-proxy.libsonnet deleted file mode 100644 index 7055c3089..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/kube-rbac-proxy.libsonnet +++ /dev/null @@ -1,68 +0,0 @@ -local defaults = { - // Convention: Top-level fields related to CRDs are public, other fields are hidden - // If there is no CRD for the component, everything is hidden in defaults. - namespace:: error 'must provide namespace', - image:: error 'must provide image', - ports:: error 'must provide ports', - secureListenAddress:: error 'must provide secureListenAddress', - upstream:: error 'must provide upstream', - resources:: { - requests: { cpu: '10m', memory: '20Mi' }, - limits: { cpu: '20m', memory: '40Mi' }, - }, - tlsCipherSuites:: [ - 'TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256', // required by h2: http://golang.org/cl/30721 - 'TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256', // required by h2: http://golang.org/cl/30721 - - // 'TLS_RSA_WITH_RC4_128_SHA', // insecure: https://access.redhat.com/security/cve/cve-2013-2566 - // 'TLS_RSA_WITH_3DES_EDE_CBC_SHA', // insecure: https://access.redhat.com/articles/2548661 - // 'TLS_RSA_WITH_AES_128_CBC_SHA', // disabled by h2 - // 'TLS_RSA_WITH_AES_256_CBC_SHA', // disabled by h2 - // 'TLS_RSA_WITH_AES_128_CBC_SHA256', // insecure: https://access.redhat.com/security/cve/cve-2013-0169 - // 'TLS_RSA_WITH_AES_128_GCM_SHA256', // disabled by h2 - // 'TLS_RSA_WITH_AES_256_GCM_SHA384', // disabled by h2 - // 'TLS_ECDHE_ECDSA_WITH_RC4_128_SHA', // insecure: https://access.redhat.com/security/cve/cve-2013-2566 - // 'TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA', // disabled by h2 - // 'TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA', // disabled by h2 - // 'TLS_ECDHE_RSA_WITH_RC4_128_SHA', // insecure: https://access.redhat.com/security/cve/cve-2013-2566 - // 'TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA', // insecure: https://access.redhat.com/articles/2548661 - // 'TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA', // disabled by h2 - // 'TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA', // disabled by h2 - // 'TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256', // insecure: https://access.redhat.com/security/cve/cve-2013-0169 - // 'TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256', // insecure: https://access.redhat.com/security/cve/cve-2013-0169 - - // disabled by h2 means: https://github.com/golang/net/blob/e514e69ffb8bc3c76a71ae40de0118d794855992/http2/ciphers.go - - 'TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384', - 'TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384', - 'TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305', - 'TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305', - ], -}; - - -function(params) { - local krp = self, - _config:: defaults + params, - // Safety check - assert std.isObject(krp._config.resources), - - name: krp._config.name, - image: krp._config.image, - args: [ - '--secure-listen-address=' + krp._config.secureListenAddress, - '--tls-cipher-suites=' + std.join(',', krp._config.tlsCipherSuites), - '--upstream=' + krp._config.upstream, - ], - resources: krp._config.resources, - ports: krp._config.ports, - securityContext: { - runAsUser: 65532, - runAsGroup: 65532, - runAsNonRoot: true, - allowPrivilegeEscalation: false, - readOnlyRootFilesystem: true, - capabilities: { drop: ['ALL'] }, - seccompProfile: { type: 'RuntimeDefault' }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/kube-state-metrics.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/kube-state-metrics.libsonnet deleted file mode 100644 index 1535877ed..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/kube-state-metrics.libsonnet +++ /dev/null @@ -1,225 +0,0 @@ -local krp = import './kube-rbac-proxy.libsonnet'; - -local defaults = { - local defaults = self, - // Convention: Top-level fields related to CRDs are public, other fields are hidden - // If there is no CRD for the component, everything is hidden in defaults. - name:: 'kube-state-metrics', - namespace:: error 'must provide namespace', - version:: error 'must provide version', - image:: error 'must provide image', - kubeRbacProxyImage:: error 'must provide kubeRbacProxyImage', - resources:: { - requests: { cpu: '10m', memory: '190Mi' }, - limits: { cpu: '100m', memory: '250Mi' }, - }, - - kubeRbacProxyMain:: { - resources+: { - limits+: { cpu: '40m' }, - requests+: { cpu: '20m' }, - }, - }, - kubeRbacProxySelf:: { - resources+: { - limits+: { cpu: '20m' }, - requests+: { cpu: '10m' }, - }, - }, - scrapeInterval:: '30s', - scrapeTimeout:: '30s', - commonLabels:: { - 'app.kubernetes.io/name': defaults.name, - 'app.kubernetes.io/version': defaults.version, - 'app.kubernetes.io/component': 'exporter', - 'app.kubernetes.io/part-of': 'kube-prometheus', - }, - selectorLabels:: { - [labelName]: defaults.commonLabels[labelName] - for labelName in std.objectFields(defaults.commonLabels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, - mixin:: { - ruleLabels: {}, - _config: { - kubeStateMetricsSelector: 'job="' + defaults.name + '"', - runbookURLPattern: 'https://runbooks.prometheus-operator.dev/runbooks/kube-state-metrics/%s', - }, - }, -}; - -function(params) (import 'github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics/kube-state-metrics.libsonnet') { - local ksm = self, - _config:: defaults + params, - // Safety check - assert std.isObject(ksm._config.resources), - assert std.isObject(ksm._config.mixin._config), - - name:: ksm._config.name, - namespace:: ksm._config.namespace, - version:: ksm._config.version, - image:: ksm._config.image, - commonLabels:: ksm._config.commonLabels, - podLabels:: ksm._config.selectorLabels, - - _metadata:: { - labels: ksm._config.commonLabels, - name: ksm._config.name, - namespace: ksm._config.namespace, - }, - - mixin:: (import 'github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/mixin.libsonnet') + - (import 'github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet') { - _config+:: ksm._config.mixin._config, - }, - - prometheusRule: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PrometheusRule', - metadata: ksm._metadata { - labels+: ksm._config.mixin.ruleLabels, - name: ksm._config.name + '-rules', - }, - spec: { - local r = if std.objectHasAll(ksm.mixin, 'prometheusRules') then ksm.mixin.prometheusRules.groups else [], - local a = if std.objectHasAll(ksm.mixin, 'prometheusAlerts') then ksm.mixin.prometheusAlerts.groups else [], - groups: a + r, - }, - }, - - service+: { - spec+: { - ports: [ - { - name: 'https-main', - port: 8443, - targetPort: 'https-main', - }, - { - name: 'https-self', - port: 9443, - targetPort: 'https-self', - }, - ], - }, - }, - - local kubeRbacProxyMain = krp(ksm._config.kubeRbacProxyMain { - name: 'kube-rbac-proxy-main', - upstream: 'http://127.0.0.1:8081/', - secureListenAddress: ':8443', - ports: [ - { name: 'https-main', containerPort: 8443 }, - ], - image: ksm._config.kubeRbacProxyImage, - }), - - local kubeRbacProxySelf = krp(ksm._config.kubeRbacProxySelf { - name: 'kube-rbac-proxy-self', - upstream: 'http://127.0.0.1:8082/', - secureListenAddress: ':9443', - ports: [ - { name: 'https-self', containerPort: 9443 }, - ], - image: ksm._config.kubeRbacProxyImage, - }), - - networkPolicy: { - apiVersion: 'networking.k8s.io/v1', - kind: 'NetworkPolicy', - metadata: ksm.service.metadata, - spec: { - podSelector: { - matchLabels: ksm._config.selectorLabels, - }, - policyTypes: ['Egress', 'Ingress'], - egress: [{}], - ingress: [{ - from: [{ - podSelector: { - matchLabels: { - 'app.kubernetes.io/name': 'prometheus', - }, - }, - }], - ports: std.map(function(o) { - port: o.port, - protocol: 'TCP', - }, ksm.service.spec.ports), - }], - }, - }, - - deployment+: { - spec+: { - template+: { - metadata+: { - annotations+: { - 'kubectl.kubernetes.io/default-container': 'kube-state-metrics', - }, - }, - spec+: { - automountServiceAccountToken: true, - containers: std.map(function(c) c { - ports:: null, - livenessProbe:: null, - readinessProbe:: null, - securityContext+: { - runAsGroup: 65534, - }, - args: ['--host=127.0.0.1', '--port=8081', '--telemetry-host=127.0.0.1', '--telemetry-port=8082'], - resources: ksm._config.resources, - }, super.containers) + [kubeRbacProxyMain, kubeRbacProxySelf], - }, - }, - }, - }, - serviceMonitor: - { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: ksm._metadata, - spec: { - jobLabel: 'app.kubernetes.io/name', - selector: { - matchLabels: ksm._config.selectorLabels, - }, - endpoints: [ - { - port: 'https-main', - scheme: 'https', - interval: ksm._config.scrapeInterval, - scrapeTimeout: ksm._config.scrapeTimeout, - honorLabels: true, - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - relabelings: [ - { - regex: '(pod|service|endpoint|namespace)', - action: 'labeldrop', - }, - ], - metricRelabelings: [ - { - // Dropping metric deprecated from kube-state-metrics 2.6.0 version - sourceLabels: ['__name__'], - regex: 'kube_endpoint_address_not_ready|kube_endpoint_address_available', - action: 'drop', - }, - ], - tlsConfig: { - insecureSkipVerify: true, - }, - }, - { - port: 'https-self', - scheme: 'https', - interval: ksm._config.scrapeInterval, - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - tlsConfig: { - insecureSkipVerify: true, - }, - }, - ], - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/alerts/alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/alerts/alerts.libsonnet deleted file mode 100644 index 8733ae447..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/alerts/alerts.libsonnet +++ /dev/null @@ -1,2 +0,0 @@ -(import 'general.libsonnet') + -(import 'node.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/alerts/general.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/alerts/general.libsonnet deleted file mode 100644 index c23628374..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/alerts/general.libsonnet +++ /dev/null @@ -1,58 +0,0 @@ -{ - prometheusAlerts+:: { - groups+: [ - { - name: 'general.rules', - rules: [ - { - alert: 'TargetDown', - annotations: { - summary: 'One or more targets are unreachable.', - description: '{{ printf "%.4g" $value }}% of the {{ $labels.job }}/{{ $labels.service }} targets in {{ $labels.namespace }} namespace are down.', - }, - expr: '100 * (count(up == 0) BY (cluster, job, namespace, service) / count(up) BY (cluster, job, namespace, service)) > 10', - 'for': '10m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'Watchdog', - annotations: { - summary: 'An alert that should always be firing to certify that Alertmanager is working properly.', - description: ||| - This is an alert meant to ensure that the entire alerting pipeline is functional. - This alert is always firing, therefore it should always be firing in Alertmanager - and always fire against a receiver. There are integrations with various notification - mechanisms that send a notification when this alert is not firing. For example the - "DeadMansSnitch" integration in PagerDuty. - |||, - }, - expr: 'vector(1)', - labels: { - severity: 'none', - }, - }, - { - alert: 'InfoInhibitor', - annotations: { - summary: 'Info-level alert inhibition.', - description: ||| - This is an alert that is used to inhibit info alerts. - By themselves, the info-level alerts are sometimes very noisy, but they are relevant when combined with - other alerts. - This alert fires whenever there's a severity="info" alert, and stops firing when another alert with a - severity of 'warning' or 'critical' starts firing on the same namespace. - This alert should be routed to a null receiver and configured to inhibit alerts with severity="info". - |||, - }, - expr: 'ALERTS{severity = "info"} == 1 unless on(namespace) ALERTS{alertname != "InfoInhibitor", severity =~ "warning|critical", alertstate="firing"} == 1', - labels: { - severity: 'none', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/alerts/node.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/alerts/node.libsonnet deleted file mode 100644 index 5bad9bf8d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/alerts/node.libsonnet +++ /dev/null @@ -1,25 +0,0 @@ -{ - prometheusAlerts+:: { - groups+: [ - { - name: 'node-network', - rules: [ - { - alert: 'NodeNetworkInterfaceFlapping', - annotations: { - summary: 'Network interface is often changing its status', - description: 'Network interface "{{ $labels.device }}" changing its up status often on node-exporter {{ $labels.namespace }}/{{ $labels.pod }}', - }, - expr: ||| - changes(node_network_up{%(nodeExporterSelector)s,%(hostNetworkInterfaceSelector)s}[2m]) > 2 - ||| % $._config, - 'for': '2m', - labels: { - severity: 'warning', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/custom.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/custom.libsonnet deleted file mode 100644 index c8f43b034..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/custom.libsonnet +++ /dev/null @@ -1,44 +0,0 @@ -local defaults = { - name: 'kube-prometheus', - namespace: error 'must provide namespace', - commonLabels:: { - 'app.kubernetes.io/name': 'kube-prometheus', - 'app.kubernetes.io/component': 'exporter', - 'app.kubernetes.io/part-of': 'kube-prometheus', - }, - mixin: { - ruleLabels: {}, - _config: { - nodeExporterSelector: 'job="node-exporter"', - hostNetworkInterfaceSelector: 'device!~"veth.+"', - runbookURLPattern: 'https://runbooks.prometheus-operator.dev/runbooks/general/%s', - }, - }, -}; - -function(params) { - local m = self, - _config:: defaults + params, - - local alertsandrules = (import './alerts/alerts.libsonnet') + (import './rules/rules.libsonnet'), - - mixin:: alertsandrules + - (import 'github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet') { - _config+:: m._config.mixin._config, - }, - - prometheusRule: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PrometheusRule', - metadata: { - labels: m._config.commonLabels + m._config.mixin.ruleLabels, - name: m._config.name + '-rules', - namespace: m._config.namespace, - }, - spec: { - local r = if std.objectHasAll(m.mixin, 'prometheusRules') then m.mixin.prometheusRules.groups else [], - local a = if std.objectHasAll(m.mixin, 'prometheusAlerts') then m.mixin.prometheusAlerts.groups else [], - groups: a + r, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/rules/general.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/rules/general.libsonnet deleted file mode 100644 index 231d5cb52..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/rules/general.libsonnet +++ /dev/null @@ -1,19 +0,0 @@ -{ - prometheusRules+:: { - groups+: [ - { - name: 'kube-prometheus-general.rules', - rules: [ - { - expr: 'count without(instance, pod, node) (up == 1)', - record: 'count:up1', - }, - { - expr: 'count without(instance, pod, node) (up == 0)', - record: 'count:up0', - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/rules/node-rules.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/rules/node-rules.libsonnet deleted file mode 100644 index 9cb22f263..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/rules/node-rules.libsonnet +++ /dev/null @@ -1,35 +0,0 @@ -{ - prometheusRules+:: { - groups+: [ - { - name: 'kube-prometheus-node-recording.rules', - rules: [ - { - expr: 'sum(rate(node_cpu_seconds_total{mode!="idle",mode!="iowait",mode!="steal"}[3m])) BY (instance)', - record: 'instance:node_cpu:rate:sum', - }, - { - expr: 'sum(rate(node_network_receive_bytes_total[3m])) BY (instance)', - record: 'instance:node_network_receive_bytes:rate:sum', - }, - { - expr: 'sum(rate(node_network_transmit_bytes_total[3m])) BY (instance)', - record: 'instance:node_network_transmit_bytes:rate:sum', - }, - { - expr: 'sum(rate(node_cpu_seconds_total{mode!="idle",mode!="iowait",mode!="steal"}[5m])) WITHOUT (cpu, mode) / ON(instance) GROUP_LEFT() count(sum(node_cpu_seconds_total) BY (instance, cpu)) BY (instance)', - record: 'instance:node_cpu:ratio', - }, - { - expr: 'sum(rate(node_cpu_seconds_total{mode!="idle",mode!="iowait",mode!="steal"}[5m]))', - record: 'cluster:node_cpu:sum_rate5m', - }, - { - expr: 'cluster:node_cpu:sum_rate5m / count(sum(node_cpu_seconds_total) BY (instance, cpu))', - record: 'cluster:node_cpu:ratio', - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/rules/rules.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/rules/rules.libsonnet deleted file mode 100644 index 79a5c0ab8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/mixin/rules/rules.libsonnet +++ /dev/null @@ -1,2 +0,0 @@ -(import 'node-rules.libsonnet') + -(import 'general.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/node-exporter.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/node-exporter.libsonnet deleted file mode 100644 index 21aa9e285..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/node-exporter.libsonnet +++ /dev/null @@ -1,308 +0,0 @@ -local krp = import './kube-rbac-proxy.libsonnet'; - -local defaults = { - local defaults = self, - // Convention: Top-level fields related to CRDs are public, other fields are hidden - // If there is no CRD for the component, everything is hidden in defaults. - name:: 'node-exporter', - namespace:: error 'must provide namespace', - version:: error 'must provide version', - image:: error 'must provide image', - kubeRbacProxyImage:: error 'must provide kubeRbacProxyImage', - resources:: { - requests: { cpu: '102m', memory: '180Mi' }, - limits: { cpu: '250m', memory: '180Mi' }, - }, - kubeRbacProxy:: { - resources+: { - requests: { cpu: '10m', memory: '20Mi' }, - limits: { cpu: '20m', memory: '40Mi' }, - }, - }, - listenAddress:: '127.0.0.1', - filesystemMountPointsExclude:: '^/(dev|proc|sys|run/k3s/containerd/.+|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)', - // NOTE: ignore veth network interface associated with containers. - // OVN renames veth.* to @if where X is /sys/class/net//ifindex - // thus [a-z0-9] regex below - ignoredNetworkDevices:: '^(veth.*|[a-f0-9]{15})$', - port:: 9100, - commonLabels:: { - 'app.kubernetes.io/name': defaults.name, - 'app.kubernetes.io/version': defaults.version, - 'app.kubernetes.io/component': 'exporter', - 'app.kubernetes.io/part-of': 'kube-prometheus', - }, - selectorLabels:: { - [labelName]: defaults.commonLabels[labelName] - for labelName in std.objectFields(defaults.commonLabels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, - mixin:: { - ruleLabels: {}, - _config: { - nodeExporterSelector: 'job="' + defaults.name + '"', - // Adjust NodeFilesystemSpaceFillingUp warning and critical thresholds according to the following default kubelet - // GC values, - // imageGCLowThresholdPercent: 80 - // imageGCHighThresholdPercent: 85 - // GC kicks in when imageGCHighThresholdPercent is hit and attempts to free upto imageGCLowThresholdPercent. - // See https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/ for more details. - // Warn only after imageGCHighThresholdPercent is hit, but filesystem is not freed up for a prolonged duration. - fsSpaceFillingUpWarningThreshold: 15, - // Send critical alert only after (imageGCHighThresholdPercent + 5) is hit, but filesystem is not freed up for a prolonged duration. - fsSpaceFillingUpCriticalThreshold: 10, - diskDeviceSelector: 'device=~"(/dev/)?(mmcblk.p.+|nvme.+|rbd.+|sd.+|vd.+|xvd.+|dm-.+|md.+|dasd.+)"', - runbookURLPattern: 'https://runbooks.prometheus-operator.dev/runbooks/node/%s', - }, - }, -}; - - -function(params) { - local ne = self, - _config:: defaults + params, - // Safety check - assert std.isObject(ne._config.resources), - assert std.isObject(ne._config.mixin._config), - _metadata:: { - name: ne._config.name, - namespace: ne._config.namespace, - labels: ne._config.commonLabels, - }, - - mixin:: (import 'github.com/prometheus/node_exporter/docs/node-mixin/mixin.libsonnet') + - (import 'github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet') { - _config+:: ne._config.mixin._config, - }, - - prometheusRule: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PrometheusRule', - metadata: ne._metadata { - labels+: ne._config.mixin.ruleLabels, - name: ne._config.name + '-rules', - }, - spec: { - local r = if std.objectHasAll(ne.mixin, 'prometheusRules') then ne.mixin.prometheusRules.groups else [], - local a = if std.objectHasAll(ne.mixin, 'prometheusAlerts') then ne.mixin.prometheusAlerts.groups else [], - groups: a + r, - }, - }, - - clusterRoleBinding: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - metadata: { - name: ne._config.name, - labels: ne._config.commonLabels, - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: ne._config.name, - }, - subjects: [{ - kind: 'ServiceAccount', - name: ne._config.name, - namespace: ne._config.namespace, - }], - }, - - clusterRole: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRole', - metadata: { - name: ne._config.name, - labels: ne._config.commonLabels, - }, - rules: [ - { - apiGroups: ['authentication.k8s.io'], - resources: ['tokenreviews'], - verbs: ['create'], - }, - { - apiGroups: ['authorization.k8s.io'], - resources: ['subjectaccessreviews'], - verbs: ['create'], - }, - ], - }, - - serviceAccount: { - apiVersion: 'v1', - kind: 'ServiceAccount', - metadata: ne._metadata, - automountServiceAccountToken: false, - }, - - service: { - apiVersion: 'v1', - kind: 'Service', - metadata: ne._metadata, - spec: { - ports: [ - { name: 'https', targetPort: 'https', port: ne._config.port }, - ], - selector: ne._config.selectorLabels, - clusterIP: 'None', - }, - }, - - serviceMonitor: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: ne._metadata, - spec: { - jobLabel: 'app.kubernetes.io/name', - selector: { - matchLabels: ne._config.selectorLabels, - }, - endpoints: [{ - port: 'https', - scheme: 'https', - interval: '15s', - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - relabelings: [ - { - action: 'replace', - regex: '(.*)', - replacement: '$1', - sourceLabels: ['__meta_kubernetes_pod_node_name'], - targetLabel: 'instance', - }, - ], - tlsConfig: { - insecureSkipVerify: true, - }, - }], - }, - }, - - networkPolicy: { - apiVersion: 'networking.k8s.io/v1', - kind: 'NetworkPolicy', - metadata: ne.service.metadata, - spec: { - podSelector: { - matchLabels: ne._config.selectorLabels, - }, - policyTypes: ['Egress', 'Ingress'], - egress: [{}], - ingress: [{ - from: [{ - podSelector: { - matchLabels: { - 'app.kubernetes.io/name': 'prometheus', - }, - }, - }], - ports: std.map(function(o) { - port: o.port, - protocol: 'TCP', - }, ne.service.spec.ports), - }], - }, - }, - - daemonset: - local nodeExporter = { - name: ne._config.name, - image: ne._config.image, - args: [ - '--web.listen-address=' + std.join(':', [ne._config.listenAddress, std.toString(ne._config.port)]), - '--path.sysfs=/host/sys', - '--path.rootfs=/host/root', - '--path.udev.data=/host/root/run/udev/data', - '--no-collector.wifi', - '--no-collector.hwmon', - '--no-collector.btrfs', - '--collector.filesystem.mount-points-exclude=' + ne._config.filesystemMountPointsExclude, - '--collector.netclass.ignored-devices=' + ne._config.ignoredNetworkDevices, - '--collector.netdev.device-exclude=' + ne._config.ignoredNetworkDevices, - ], - volumeMounts: [ - { name: 'sys', mountPath: '/host/sys', mountPropagation: 'HostToContainer', readOnly: true }, - { name: 'root', mountPath: '/host/root', mountPropagation: 'HostToContainer', readOnly: true }, - ], - resources: ne._config.resources, - securityContext: { - allowPrivilegeEscalation: false, - readOnlyRootFilesystem: true, - capabilities: { drop: ['ALL'], add: ['SYS_TIME'] }, - }, - }; - - local kubeRbacProxy = krp(ne._config.kubeRbacProxy { - name: 'kube-rbac-proxy', - //image: krpImage, - upstream: 'http://127.0.0.1:' + ne._config.port + '/', - secureListenAddress: '[$(IP)]:' + ne._config.port, - // Keep `hostPort` here, rather than in the node-exporter container - // because Kubernetes mandates that if you define a `hostPort` then - // `containerPort` must match. In our case, we are splitting the - // host port and container port between the two containers. - // We'll keep the port specification here so that the named port - // used by the service is tied to the proxy container. We *could* - // forgo declaring the host port, however it is important to declare - // it so that the scheduler can decide if the pod is schedulable. - // - // Although hostPort might not seem necessary, kubernetes adds it anyway - // when running with 'hostNetwork'. We might as well make sure it works - // the way we want. - // - // See also: https://github.com/kubernetes/kubernetes/blob/1945829906546caf867992669a0bfa588edf8be6/pkg/apis/core/v1/defaults.go#L402-L411 - ports: [ - { name: 'https', containerPort: ne._config.port, hostPort: ne._config.port }, - ], - image: ne._config.kubeRbacProxyImage, - }) + { - env: [ - { name: 'IP', valueFrom: { fieldRef: { fieldPath: 'status.podIP' } } }, - ], - }; - - { - apiVersion: 'apps/v1', - kind: 'DaemonSet', - metadata: ne._metadata, - spec: { - selector: { - matchLabels: ne._config.selectorLabels, - }, - updateStrategy: { - type: 'RollingUpdate', - rollingUpdate: { maxUnavailable: '10%' }, - }, - template: { - metadata: { - annotations: { - 'kubectl.kubernetes.io/default-container': nodeExporter.name, - }, - labels: ne._config.commonLabels, - }, - spec: { - nodeSelector: { 'kubernetes.io/os': 'linux' }, - tolerations: [{ - operator: 'Exists', - }], - containers: [nodeExporter, kubeRbacProxy], - volumes: [ - { name: 'sys', hostPath: { path: '/sys' } }, - { name: 'root', hostPath: { path: '/' } }, - ], - automountServiceAccountToken: true, - serviceAccountName: ne._config.name, - priorityClassName: 'system-cluster-critical', - securityContext: { - runAsGroup: 65534, - runAsUser: 65534, - runAsNonRoot: true, - }, - hostPID: true, - hostNetwork: true, - }, - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet deleted file mode 100644 index af8172627..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet +++ /dev/null @@ -1,439 +0,0 @@ -local defaults = { - local defaults = self, - // Convention: Top-level fields related to CRDs are public, other fields are hidden - // If there is no CRD for the component, everything is hidden in defaults. - name:: 'prometheus-adapter', - namespace:: error 'must provide namespace', - version:: error 'must provide version', - image: error 'must provide image', - resources:: { - requests: { cpu: '102m', memory: '180Mi' }, - limits: { cpu: '250m', memory: '180Mi' }, - }, - replicas:: 2, - listenAddress:: '127.0.0.1', - port:: 9100, - commonLabels:: { - 'app.kubernetes.io/name': 'prometheus-adapter', - 'app.kubernetes.io/version': defaults.version, - 'app.kubernetes.io/component': 'metrics-adapter', - 'app.kubernetes.io/part-of': 'kube-prometheus', - }, - selectorLabels:: { - [labelName]: defaults.commonLabels[labelName] - for labelName in std.objectFields(defaults.commonLabels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, - // Default range intervals are equal to 4 times the default scrape interval. - // This is done in order to follow Prometheus rule of thumb with irate(). - rangeIntervals:: { - kubelet: '4m', - nodeExporter: '4m', - windowsExporter: '4m', - }, - containerMetricsPrefix:: '', - - prometheusURL:: error 'must provide prometheusURL', - containerQuerySelector:: '', - nodeQuerySelector:: '', - config:: { - local containerSelector = if $.containerQuerySelector != '' then ',' + $.containerQuerySelector else '', - local nodeSelector = if $.nodeQuerySelector != '' then ',' + $.nodeQuerySelector else '', - resourceRules: { - cpu: { - containerQuery: ||| - sum by (<<.GroupBy>>) ( - irate ( - %(containerMetricsPrefix)scontainer_cpu_usage_seconds_total{<<.LabelMatchers>>,container!="",pod!=""%(addtionalSelector)s}[%(kubelet)s] - ) - ) - ||| % { kubelet: $.rangeIntervals.kubelet, containerMetricsPrefix: $.containerMetricsPrefix, addtionalSelector: containerSelector }, - nodeQuery: ||| - sum by (<<.GroupBy>>) ( - 1 - irate( - node_cpu_seconds_total{mode="idle"%(addtionalSelector)s}[%(nodeExporter)s] - ) - * on(namespace, pod) group_left(node) ( - node_namespace_pod:kube_pod_info:{<<.LabelMatchers>>} - ) - ) - or sum by (<<.GroupBy>>) ( - 1 - irate( - windows_cpu_time_total{mode="idle", job="windows-exporter",<<.LabelMatchers>>%(addtionalSelector)s}[%(windowsExporter)s] - ) - ) - ||| % { nodeExporter: $.rangeIntervals.nodeExporter, windowsExporter: $.rangeIntervals.windowsExporter, containerMetricsPrefix: $.containerMetricsPrefix, addtionalSelector: nodeSelector }, - resources: { - overrides: { - node: { resource: 'node' }, - namespace: { resource: 'namespace' }, - pod: { resource: 'pod' }, - }, - }, - containerLabel: 'container', - }, - memory: { - containerQuery: ||| - sum by (<<.GroupBy>>) ( - %(containerMetricsPrefix)scontainer_memory_working_set_bytes{<<.LabelMatchers>>,container!="",pod!=""%(addtionalSelector)s} - ) - ||| % { containerMetricsPrefix: $.containerMetricsPrefix, addtionalSelector: containerSelector }, - nodeQuery: ||| - sum by (<<.GroupBy>>) ( - node_memory_MemTotal_bytes{job="node-exporter",<<.LabelMatchers>>%(addtionalSelector)s} - - - node_memory_MemAvailable_bytes{job="node-exporter",<<.LabelMatchers>>%(addtionalSelector)s} - ) - or sum by (<<.GroupBy>>) ( - windows_cs_physical_memory_bytes{job="windows-exporter",<<.LabelMatchers>>%(addtionalSelector)s} - - - windows_memory_available_bytes{job="windows-exporter",<<.LabelMatchers>>%(addtionalSelector)s} - ) - ||| % { containerMetricsPrefix: $.containerMetricsPrefix, addtionalSelector: nodeSelector }, - resources: { - overrides: { - instance: { resource: 'node' }, - namespace: { resource: 'namespace' }, - pod: { resource: 'pod' }, - }, - }, - containerLabel: 'container', - }, - window: '5m', - }, - }, - tlsCipherSuites:: [ - 'TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305', - 'TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305', - 'TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256', - 'TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384', - 'TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256', - 'TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384', - 'TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA', - 'TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256', - 'TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA', - 'TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA', - 'TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA', - 'TLS_RSA_WITH_AES_128_GCM_SHA256', - 'TLS_RSA_WITH_AES_256_GCM_SHA384', - 'TLS_RSA_WITH_AES_128_CBC_SHA', - 'TLS_RSA_WITH_AES_256_CBC_SHA', - ], -}; - -function(params) { - local pa = self, - _config:: defaults + params, - // Safety check - assert std.isObject(pa._config.resources), - - _metadata:: { - name: pa._config.name, - namespace: pa._config.namespace, - labels: pa._config.commonLabels, - }, - - _metadata_no_ns:: { - name: pa._config.name, - labels: pa._config.commonLabels, - }, - - apiService: { - apiVersion: 'apiregistration.k8s.io/v1', - kind: 'APIService', - metadata: { - name: 'v1beta1.metrics.k8s.io', - labels: pa._config.commonLabels, - }, - spec: { - service: { - name: $.service.metadata.name, - namespace: pa._config.namespace, - }, - group: 'metrics.k8s.io', - version: 'v1beta1', - insecureSkipTLSVerify: true, - groupPriorityMinimum: 100, - versionPriority: 100, - }, - }, - - configMap: { - apiVersion: 'v1', - kind: 'ConfigMap', - metadata: pa._metadata { - name: 'adapter-config', - }, - data: { 'config.yaml': std.manifestYamlDoc(pa._config.config) }, - }, - - serviceMonitor: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: pa._metadata, - spec: { - selector: { - matchLabels: pa._config.selectorLabels, - }, - endpoints: [ - { - port: 'https', - interval: '30s', - scheme: 'https', - tlsConfig: { - insecureSkipVerify: true, - }, - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - metricRelabelings: [ - { - sourceLabels: ['__name__'], - action: 'drop', - regex: '(' + std.join('|', - [ - 'apiserver_client_certificate_.*', // The only client supposed to connect to the aggregated API is the apiserver so it is not really meaningful to monitor its certificate. - 'apiserver_envelope_.*', // Prometheus-adapter isn't using envelope for storage. - 'apiserver_flowcontrol_.*', // Prometheus-adapter isn't using flowcontrol. - 'apiserver_storage_.*', // Prometheus-adapter isn't using the apiserver storage. - 'apiserver_webhooks_.*', // Prometeus-adapter doesn't make use of apiserver webhooks. - 'workqueue_.*', // Metrics related to the internal apiserver auth workqueues are not very useful to prometheus-adapter. - ]) + ')', - }, - ], - }, - ], - }, - }, - - service: { - apiVersion: 'v1', - kind: 'Service', - metadata: pa._metadata, - spec: { - ports: [ - { name: 'https', targetPort: 6443, port: 443 }, - ], - selector: pa._config.selectorLabels, - }, - }, - - networkPolicy: { - apiVersion: 'networking.k8s.io/v1', - kind: 'NetworkPolicy', - metadata: pa.service.metadata, - spec: { - podSelector: { - matchLabels: pa._config.selectorLabels, - }, - policyTypes: ['Egress', 'Ingress'], - egress: [{}], - // Prometheus-adapter needs ingress allowed so HPAs can request metrics from it. - ingress: [{}], - }, - }, - - deployment: - local c = { - name: pa._config.name, - image: pa._config.image, - args: [ - '--cert-dir=/var/run/serving-cert', - '--config=/etc/adapter/config.yaml', - '--metrics-relist-interval=1m', - '--prometheus-url=' + pa._config.prometheusURL, - '--secure-port=6443', - '--tls-cipher-suites=' + std.join(',', pa._config.tlsCipherSuites), - ], - resources: pa._config.resources, - startupProbe: { - httpGet: { - path: '/livez', - port: 'https', - scheme: 'HTTPS', - }, - periodSeconds: 10, - failureThreshold: 18, - }, - readinessProbe: { - httpGet: { - path: '/readyz', - port: 'https', - scheme: 'HTTPS', - }, - periodSeconds: 5, - failureThreshold: 5, - }, - livenessProbe: { - httpGet: { - path: '/livez', - port: 'https', - scheme: 'HTTPS', - }, - periodSeconds: 5, - failureThreshold: 5, - }, - ports: [{ containerPort: 6443, name: 'https' }], - volumeMounts: [ - { name: 'tmpfs', mountPath: '/tmp', readOnly: false }, - { name: 'volume-serving-cert', mountPath: '/var/run/serving-cert', readOnly: false }, - { name: 'config', mountPath: '/etc/adapter', readOnly: false }, - ], - securityContext: { - allowPrivilegeEscalation: false, - readOnlyRootFilesystem: true, - runAsNonRoot: true, - capabilities: { drop: ['ALL'] }, - seccompProfile: { type: 'RuntimeDefault' }, - }, - }; - - { - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: pa._metadata, - spec: { - replicas: pa._config.replicas, - selector: { - matchLabels: pa._config.selectorLabels, - }, - strategy: { - rollingUpdate: { - maxSurge: 1, - maxUnavailable: 1, - }, - }, - template: { - metadata: { - annotations: { - 'checksum.config/md5': std.md5(std.manifestYamlDoc(pa._config.config)), - }, - labels: pa._config.commonLabels, - }, - spec: { - containers: [c], - serviceAccountName: $.serviceAccount.metadata.name, - automountServiceAccountToken: true, - nodeSelector: { 'kubernetes.io/os': 'linux' }, - volumes: [ - { name: 'tmpfs', emptyDir: {} }, - { name: 'volume-serving-cert', emptyDir: {} }, - { name: 'config', configMap: { name: 'adapter-config' } }, - ], - }, - }, - }, - }, - - serviceAccount: { - apiVersion: 'v1', - kind: 'ServiceAccount', - metadata: pa._metadata, - automountServiceAccountToken: false, - }, - - clusterRole: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRole', - metadata: pa._metadata_no_ns, - rules: [{ - apiGroups: [''], - resources: ['nodes', 'namespaces', 'pods', 'services'], - verbs: ['get', 'list', 'watch'], - }], - }, - - clusterRoleBinding: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - metadata: pa._metadata_no_ns, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: $.clusterRole.metadata.name, - }, - subjects: [{ - kind: 'ServiceAccount', - name: $.serviceAccount.metadata.name, - namespace: pa._config.namespace, - }], - }, - - clusterRoleBindingDelegator: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - metadata: pa._metadata_no_ns { - name: 'resource-metrics:system:auth-delegator', - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: 'system:auth-delegator', - }, - subjects: [{ - kind: 'ServiceAccount', - name: $.serviceAccount.metadata.name, - namespace: pa._config.namespace, - }], - }, - - clusterRoleServerResources: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRole', - metadata: pa._metadata_no_ns { - name: 'resource-metrics-server-resources', - }, - rules: [{ - apiGroups: ['metrics.k8s.io'], - resources: ['*'], - verbs: ['*'], - }], - }, - - clusterRoleAggregatedMetricsReader: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRole', - metadata: pa._metadata_no_ns { - name: 'system:aggregated-metrics-reader', - labels+: { - 'rbac.authorization.k8s.io/aggregate-to-admin': 'true', - 'rbac.authorization.k8s.io/aggregate-to-edit': 'true', - 'rbac.authorization.k8s.io/aggregate-to-view': 'true', - }, - }, - rules: [{ - apiGroups: ['metrics.k8s.io'], - resources: ['pods', 'nodes'], - verbs: ['get', 'list', 'watch'], - }], - }, - - roleBindingAuthReader: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'RoleBinding', - metadata: pa._metadata { - name: 'resource-metrics-auth-reader', - namespace: 'kube-system', - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'Role', - name: 'extension-apiserver-authentication-reader', - }, - subjects: [{ - kind: 'ServiceAccount', - name: $.serviceAccount.metadata.name, - namespace: pa._config.namespace, - }], - }, - - [if (defaults + params).replicas > 1 then 'podDisruptionBudget']: { - apiVersion: 'policy/v1', - kind: 'PodDisruptionBudget', - metadata: pa._metadata, - spec: { - minAvailable: 1, - selector: { - matchLabels: pa._config.selectorLabels, - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/prometheus-operator.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/prometheus-operator.libsonnet deleted file mode 100644 index 104d76a8b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/prometheus-operator.libsonnet +++ /dev/null @@ -1,174 +0,0 @@ -local krp = import './kube-rbac-proxy.libsonnet'; -local prometheusOperator = import 'github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheus-operator.libsonnet'; - -local defaults = { - local defaults = self, - // Convention: Top-level fields related to CRDs are public, other fields are hidden - // If there is no CRD for the component, everything is hidden in defaults. - name:: 'prometheus-operator', - namespace:: error 'must provide namespace', - version:: error 'must provide version', - image:: error 'must provide image', - kubeRbacProxyImage:: error 'must provide kubeRbacProxyImage', - configReloaderImage:: error 'must provide config reloader image', - resources:: { - limits: { cpu: '200m', memory: '200Mi' }, - requests: { cpu: '100m', memory: '100Mi' }, - }, - kubeRbacProxy:: { - resources+: { - requests: { cpu: '10m', memory: '20Mi' }, - limits: { cpu: '20m', memory: '40Mi' }, - }, - }, - commonLabels:: { - 'app.kubernetes.io/name': defaults.name, - 'app.kubernetes.io/version': defaults.version, - 'app.kubernetes.io/component': 'controller', - 'app.kubernetes.io/part-of': 'kube-prometheus', - }, - selectorLabels:: { - [labelName]: defaults.commonLabels[labelName] - for labelName in std.objectFields(defaults.commonLabels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, - mixin:: { - ruleLabels: { - role: 'alert-rules', - prometheus: defaults.name, - }, - _config: { - groupLabels: 'cluster,controller,namespace', - prometheusOperatorSelector: 'job="prometheus-operator",namespace="' + defaults.namespace + '"', - runbookURLPattern: 'https://runbooks.prometheus-operator.dev/runbooks/prometheus-operator/%s', - }, - }, -}; - -function(params) - local config = defaults + params; - // Safety check - assert std.isObject(config.resources); - - prometheusOperator(config) { - local po = self, - // declare variable as a field to allow overriding options and to have unified API across all components - _config:: config, - _metadata:: { - labels: po._config.commonLabels, - name: po._config.name, - namespace: po._config.namespace, - }, - mixin:: (import 'github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/mixin.libsonnet') + - (import 'github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet') { - _config+:: po._config.mixin._config, - }, - - prometheusRule: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PrometheusRule', - metadata: { - labels: po._config.commonLabels + po._config.mixin.ruleLabels, - name: po._config.name + '-rules', - namespace: po._config.namespace, - }, - spec: { - local r = if std.objectHasAll(po.mixin, 'prometheusRules') then po.mixin.prometheusRules.groups else [], - local a = if std.objectHasAll(po.mixin, 'prometheusAlerts') then po.mixin.prometheusAlerts.groups else [], - groups: a + r, - }, - }, - - networkPolicy: { - apiVersion: 'networking.k8s.io/v1', - kind: 'NetworkPolicy', - metadata: po.service.metadata, - spec: { - podSelector: { - matchLabels: po._config.selectorLabels, - }, - policyTypes: ['Egress', 'Ingress'], - egress: [{}], - ingress: [{ - from: [{ - podSelector: { - matchLabels: { - 'app.kubernetes.io/name': 'prometheus', - }, - }, - }], - ports: std.map(function(o) { - port: o.port, - protocol: 'TCP', - }, po.service.spec.ports), - }], - }, - }, - - service+: { - spec+: { - ports: [ - { - name: 'https', - port: 8443, - targetPort: 'https', - }, - ], - }, - }, - - serviceMonitor+: { - spec+: { - endpoints: [ - { - port: 'https', - scheme: 'https', - honorLabels: true, - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - tlsConfig: { - insecureSkipVerify: true, - }, - }, - ], - }, - }, - - clusterRole+: { - rules+: [ - { - apiGroups: ['authentication.k8s.io'], - resources: ['tokenreviews'], - verbs: ['create'], - }, - { - apiGroups: ['authorization.k8s.io'], - resources: ['subjectaccessreviews'], - verbs: ['create'], - }, - ], - }, - - local kubeRbacProxy = krp(po._config.kubeRbacProxy { - name: 'kube-rbac-proxy', - upstream: 'http://127.0.0.1:8080/', - secureListenAddress: ':8443', - ports: [ - { name: 'https', containerPort: 8443 }, - ], - image: po._config.kubeRbacProxyImage, - }), - - deployment+: { - spec+: { - template+: { - spec+: { - automountServiceAccountToken: true, - securityContext+: { - runAsGroup: 65534, - }, - containers+: [kubeRbacProxy], - }, - }, - }, - }, - } diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/prometheus.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/prometheus.libsonnet deleted file mode 100644 index 8aaad02ae..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/components/prometheus.libsonnet +++ /dev/null @@ -1,444 +0,0 @@ -local defaults = { - local defaults = self, - // Convention: Top-level fields related to CRDs are public, other fields are hidden - // If there is no CRD for the component, everything is hidden in defaults. - name:: error 'must provide name', - namespace:: error 'must provide namespace', - version: error 'must provide version', - image: error 'must provide image', - resources: { - requests: { memory: '400Mi' }, - }, - //TODO(paulfantom): remove alertmanagerName after release-0.10 and convert to plain 'alerting' object. - alertmanagerName:: '', - alerting: {}, - namespaces:: ['default', 'kube-system', defaults.namespace], - replicas: 2, - externalLabels: {}, - enableFeatures: [], - ruleSelector: {}, - commonLabels:: { - 'app.kubernetes.io/name': 'prometheus', - 'app.kubernetes.io/instance': defaults.name, - 'app.kubernetes.io/version': defaults.version, - 'app.kubernetes.io/component': 'prometheus', - 'app.kubernetes.io/part-of': 'kube-prometheus', - }, - selectorLabels:: { - [labelName]: defaults.commonLabels[labelName] - for labelName in std.objectFields(defaults.commonLabels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, - mixin:: { - ruleLabels: {}, - _config: { - prometheusSelector: 'job="prometheus-' + defaults.name + '",namespace="' + defaults.namespace + '"', - prometheusName: '{{$labels.namespace}}/{{$labels.pod}}', - // TODO: remove `thanosSelector` after 0.10.0 release. - thanosSelector: 'job="thanos-sidecar"', - thanos: { - targetGroups: { - namespace: defaults.namespace, - }, - sidecar: { - selector: defaults.mixin._config.thanosSelector, - thanosPrometheusCommonDimensions: 'namespace, pod', - }, - }, - runbookURLPattern: 'https://runbooks.prometheus-operator.dev/runbooks/prometheus/%s', - }, - }, - thanos: null, - reloaderPort:: 8080, -}; - - -function(params) { - local p = self, - _config:: defaults + params, - // Safety check - assert std.isObject(p._config.resources), - assert std.isObject(p._config.mixin._config), - _metadata:: { - name: 'prometheus-' + p._config.name, - namespace: p._config.namespace, - labels: p._config.commonLabels, - }, - - mixin:: - (import 'github.com/prometheus/prometheus/documentation/prometheus-mixin/mixin.libsonnet') + - (import 'github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet') + { - _config+:: p._config.mixin._config, - }, - - mixinThanos:: - (import 'github.com/thanos-io/thanos/mixin/alerts/sidecar.libsonnet') + - (import 'github.com/kubernetes-monitoring/kubernetes-mixin/lib/add-runbook-links.libsonnet') + { - _config+:: p._config.mixin._config, - targetGroups+: p._config.mixin._config.thanos.targetGroups, - // TODO: remove `_config.thanosSelector` after 0.10.0 release. - sidecar+: { selector: p._config.mixin._config.thanosSelector } + p._config.mixin._config.thanos.sidecar, - }, - - prometheusRule: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PrometheusRule', - metadata: p._metadata { - labels+: p._config.mixin.ruleLabels, - name: p._metadata.name + '-prometheus-rules', - }, - spec: { - local r = if std.objectHasAll(p.mixin, 'prometheusRules') then p.mixin.prometheusRules.groups else [], - local a = if std.objectHasAll(p.mixin, 'prometheusAlerts') then p.mixin.prometheusAlerts.groups else [], - groups: a + r, - }, - }, - - networkPolicy: { - apiVersion: 'networking.k8s.io/v1', - kind: 'NetworkPolicy', - metadata: p.service.metadata, - spec: { - podSelector: { - matchLabels: p._config.selectorLabels, - }, - policyTypes: ['Egress', 'Ingress'], - egress: [{}], - ingress: [{ - from: [{ - podSelector: { - matchLabels: { - 'app.kubernetes.io/name': 'prometheus', - }, - }, - }], - ports: std.map(function(o) { - port: o.port, - protocol: 'TCP', - }, p.service.spec.ports), - }, { - from: [{ - podSelector: { - matchLabels: { - 'app.kubernetes.io/name': 'prometheus-adapter', - }, - }, - }], - ports: [{ - port: 9090, - protocol: 'TCP', - }], - }, { - from: [{ - podSelector: { - matchLabels: { - 'app.kubernetes.io/name': 'grafana', - }, - }, - }], - ports: [{ - port: 9090, - protocol: 'TCP', - }], - }] + (if p._config.thanos != null then - [{ - from: [{ - podSelector: { - matchLabels: { - 'app.kubernetes.io/name': 'thanos-query', - }, - }, - }], - ports: [{ - port: 10901, - protocol: 'TCP', - }], - }] else []), - }, - }, - - serviceAccount: { - apiVersion: 'v1', - kind: 'ServiceAccount', - metadata: p._metadata, - automountServiceAccountToken: true, - }, - - service: { - apiVersion: 'v1', - kind: 'Service', - metadata: p._metadata, - spec: { - ports: [ - { name: 'web', targetPort: 'web', port: 9090 }, - { name: 'reloader-web', port: p._config.reloaderPort, targetPort: 'reloader-web' }, - ] + - ( - if p._config.thanos != null then - [ - { name: 'grpc', port: 10901, targetPort: 10901 }, - { name: 'http', port: 10902, targetPort: 10902 }, - ] - else [] - ), - selector: p._config.selectorLabels, - sessionAffinity: 'ClientIP', - }, - }, - - roleBindingSpecificNamespaces: - local newSpecificRoleBinding(namespace) = { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'RoleBinding', - metadata: p._metadata { - namespace: namespace, - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'Role', - name: p._metadata.name, - }, - subjects: [{ - kind: 'ServiceAccount', - name: p.serviceAccount.metadata.name, - namespace: p._config.namespace, - }], - }; - { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'RoleBindingList', - items: [newSpecificRoleBinding(x) for x in p._config.namespaces], - }, - - clusterRole: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRole', - metadata: p._metadata { - namespace:: null, - }, - rules: [ - { - apiGroups: [''], - resources: ['nodes/metrics'], - verbs: ['get'], - }, - { - nonResourceURLs: ['/metrics', '/metrics/slis'], - verbs: ['get'], - }, - ], - }, - - roleConfig: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'Role', - metadata: p._metadata { - name: p._metadata.name + '-config', - }, - rules: [{ - apiGroups: [''], - resources: ['configmaps'], - verbs: ['get'], - }], - }, - - roleBindingConfig: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'RoleBinding', - metadata: p._metadata { - name: p._metadata.name + '-config', - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'Role', - name: p.roleConfig.metadata.name, - }, - subjects: [{ - kind: 'ServiceAccount', - name: p.serviceAccount.metadata.name, - namespace: p._config.namespace, - }], - }, - - clusterRoleBinding: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - metadata: p._metadata { - namespace:: null, - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: p.clusterRole.metadata.name, - }, - subjects: [{ - kind: 'ServiceAccount', - name: p.serviceAccount.metadata.name, - namespace: p._config.namespace, - }], - }, - - roleSpecificNamespaces: - local newSpecificRole(namespace) = { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'Role', - metadata: p._metadata { - namespace: namespace, - }, - rules: [ - { - apiGroups: [''], - resources: ['services', 'endpoints', 'pods'], - verbs: ['get', 'list', 'watch'], - }, - { - apiGroups: ['extensions'], - resources: ['ingresses'], - verbs: ['get', 'list', 'watch'], - }, - { - apiGroups: ['networking.k8s.io'], - resources: ['ingresses'], - verbs: ['get', 'list', 'watch'], - }, - ], - }; - { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'RoleList', - items: [newSpecificRole(x) for x in p._config.namespaces], - }, - - [if (defaults + params).replicas > 1 then 'podDisruptionBudget']: { - apiVersion: 'policy/v1', - kind: 'PodDisruptionBudget', - metadata: p._metadata, - spec: { - minAvailable: 1, - selector: { - matchLabels: p._config.selectorLabels, - }, - }, - }, - - prometheus: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'Prometheus', - metadata: p._metadata { - name: p._config.name, - }, - spec: { - replicas: p._config.replicas, - version: p._config.version, - image: p._config.image, - podMetadata: { - labels: p.prometheus.metadata.labels, - }, - externalLabels: p._config.externalLabels, - enableFeatures: p._config.enableFeatures, - serviceAccountName: p.serviceAccount.metadata.name, - podMonitorSelector: {}, - podMonitorNamespaceSelector: {}, - probeSelector: {}, - probeNamespaceSelector: {}, - ruleNamespaceSelector: {}, - ruleSelector: p._config.ruleSelector, - scrapeConfigSelector: {}, - scrapeConfigNamespaceSelector: {}, - serviceMonitorSelector: {}, - serviceMonitorNamespaceSelector: {}, - nodeSelector: { 'kubernetes.io/os': 'linux' }, - resources: p._config.resources, - alerting: if p._config.alerting != {} then p._config.alerting else { - alertmanagers: [{ - namespace: p._config.namespace, - name: 'alertmanager-' + p._config.alertmanagerName, - port: 'web', - apiVersion: 'v2', - }], - }, - securityContext: { - runAsUser: 1000, - runAsNonRoot: true, - fsGroup: 2000, - }, - [if std.objectHas(params, 'thanos') then 'thanos']: p._config.thanos, - }, - }, - - serviceMonitor: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: p._metadata, - spec: { - selector: { - matchLabels: p._config.selectorLabels, - }, - endpoints: [ - { port: 'web', interval: '30s' }, - { port: 'reloader-web', interval: '30s' }, - ], - }, - }, - - // Include thanos sidecar PrometheusRule only if thanos config was passed by user - [if std.objectHas(params, 'thanos') && params.thanos != null then 'prometheusRuleThanosSidecar']: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PrometheusRule', - metadata: p._metadata { - labels+: p._config.mixin.ruleLabels, - name: p._metadata.name + '-thanos-sidecar-rules', - }, - spec: { - local r = if std.objectHasAll(p.mixinThanos, 'prometheusRules') then p.mixinThanos.prometheusRules.groups else [], - local a = if std.objectHasAll(p.mixinThanos, 'prometheusAlerts') then p.mixinThanos.prometheusAlerts.groups else [], - groups: a + r, - }, - }, - - // Include thanos sidecar Service only if thanos config was passed by user - [if std.objectHas(params, 'thanos') && params.thanos != null then 'serviceThanosSidecar']: { - apiVersion: 'v1', - kind: 'Service', - metadata+: p._metadata { - name: p._metadata.name + '-thanos-sidecar', - labels+: { - 'app.kubernetes.io/component': 'thanos-sidecar', - }, - }, - spec+: { - ports: [ - { name: 'grpc', port: 10901, targetPort: 10901 }, - { name: 'http', port: 10902, targetPort: 10902 }, - ], - selector: p._config.selectorLabels { - 'app.kubernetes.io/component': 'prometheus', - }, - clusterIP: 'None', - }, - }, - - // Include thanos sidecar ServiceMonitor only if thanos config was passed by user - [if std.objectHas(params, 'thanos') && params.thanos != null then 'serviceMonitorThanosSidecar']: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata+: p._metadata { - name: 'thanos-sidecar', - labels+: { - 'app.kubernetes.io/component': 'thanos-sidecar', - }, - }, - spec+: { - jobLabel: 'app.kubernetes.io/component', - selector: { - matchLabels: { - 'app.kubernetes.io/component': 'thanos-sidecar', - }, - }, - endpoints: [{ - port: 'http', - interval: '30s', - }], - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/jsonnetfile.json deleted file mode 100644 index 786accc37..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/jsonnetfile.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/brancz/kubernetes-grafana", - "subdir": "grafana" - } - }, - "version": "master" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafana", - "subdir": "grafana-mixin" - } - }, - "version": "main", - "name": "grafana-mixin" - }, - { - "source": { - "git": { - "remote": "https://github.com/etcd-io/etcd", - "subdir": "contrib/mixin" - } - }, - "version": "main" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus-operator/prometheus-operator", - "subdir": "jsonnet/prometheus-operator" - } - }, - "version": "main" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus-operator/prometheus-operator", - "subdir": "jsonnet/mixin" - } - }, - "version": "main", - "name": "prometheus-operator-mixin" - }, - { - "source": { - "git": { - "remote": "https://github.com/kubernetes-monitoring/kubernetes-mixin", - "subdir": "" - } - }, - "version": "master" - }, - { - "source": { - "git": { - "remote": "https://github.com/kubernetes/kube-state-metrics", - "subdir": "jsonnet/kube-state-metrics" - } - }, - "version": "main" - }, - { - "source": { - "git": { - "remote": "https://github.com/kubernetes/kube-state-metrics", - "subdir": "jsonnet/kube-state-metrics-mixin" - } - }, - "version": "main" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus/node_exporter", - "subdir": "docs/node-mixin" - } - }, - "version": "master" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus/prometheus", - "subdir": "documentation/prometheus-mixin" - } - }, - "version": "main", - "name": "prometheus" - }, - { - "source": { - "git": { - "remote": "https://github.com/prometheus/alertmanager", - "subdir": "doc/alertmanager-mixin" - } - }, - "version": "main", - "name": "alertmanager" - }, - { - "source": { - "git": { - "remote": "https://github.com/pyrra-dev/pyrra.git", - "subdir": "config/crd/bases" - } - }, - "version": "release-0.6", - "name": "pyrra" - }, - { - "source": { - "git": { - "remote": "https://github.com/thanos-io/thanos", - "subdir": "mixin" - } - }, - "version": "main", - "name": "thanos-mixin" - } - ], - "legacyImports": true -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/lib/mixin.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/lib/mixin.libsonnet deleted file mode 100644 index 4c0665eac..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/lib/mixin.libsonnet +++ /dev/null @@ -1,38 +0,0 @@ -local defaults = { - name: error 'provide name', - namespace: 'monitoring', - labels: { - prometheus: 'k8s', - }, - mixin: error 'provide a mixin', -}; - -function(params) { - _config:: defaults + params, - - local m = self, - - local prometheusRules = if std.objectHasAll(m._config.mixin, 'prometheusRules') || std.objectHasAll(m._config.mixin, 'prometheusAlerts') then { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'PrometheusRule', - metadata: { - labels: m._config.labels, - name: m._config.name, - namespace: m._config.namespace, - }, - spec: { - local r = if std.objectHasAll(m._config.mixin, 'prometheusRules') then m._config.mixin.prometheusRules.groups else [], - local a = if std.objectHasAll(m._config.mixin, 'prometheusAlerts') then m._config.mixin.prometheusAlerts.groups else [], - groups: a + r, - }, - }, - - local grafanaDashboards = if std.objectHasAll(m._config.mixin, 'grafanaDashboards') then ( - if std.objectHas(m._config, 'dashboardFolder') then { - [m._config.dashboardFolder]+: m._config.mixin.grafanaDashboards, - } else (m._config.mixin.grafanaDashboards) - ), - - prometheusRules: prometheusRules, - grafanaDashboards: grafanaDashboards, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/lib/rule-sanitizer.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/lib/rule-sanitizer.libsonnet deleted file mode 100644 index 00cc27ce7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/lib/rule-sanitizer.libsonnet +++ /dev/null @@ -1,156 +0,0 @@ -local defaults = { - /* name of rule groups to exclude */ - excludedRuleGroups: [], - /* Rule match is based on field "alert" or "record" for excludedRules and patchedRules. - * When multiple match is found, we can use a "index" field to distingush each rule, - * which represents their order of appearance. For example, if we have two rules: - * [ - * { - * name: 'alertmanager.rules', - * rules: [ - * { - * alert: 'A', - * field: 'A0 rule', - * labels: { - * severity: 'warning', - * }, - * }, - * { - * alert: 'A', - * field: 'A1 rule', - * labels: { - * severity: 'warning', - * }, - * }, - * ], - * }, - * ] - * We can use index 1 to choose "A1 rule" for patching, as shown in the example below: - * [ - * { - * name: 'alertmanager.rules', - * rules: [ - * { - * alert: 'A', - * index: 1, - * patch: 'A1', - * labels: { - * severity: 'warning', - * }, - * }, - * ], - * }, - * ] - */ - excludedRules: [], - patchedRules: [], -}; - - -local deleteIndex(rule) = { - [k]: rule[k] - for k in std.objectFields(rule) - if k != 'index' -}; - - -local patchOrExcludeRule(rule, ruleSet, operation) = - if std.length(ruleSet) == 0 then - [deleteIndex(rule)] - /* 2 rules match when the name of the patch is a prefix of the name of the rule to patch. */ - else if ((('alert' in rule && 'alert' in ruleSet[0]) && std.startsWith(rule.alert, ruleSet[0].alert)) || - (('record' in rule && 'record' in ruleSet[0]) && std.startsWith(rule.record, ruleSet[0].record))) && - (!('index' in ruleSet[0]) || (('index' in ruleSet[0]) && (ruleSet[0].index == rule.index))) then - if operation == 'patch' then - local patch = { - [k]: ruleSet[0][k] - for k in std.objectFields(ruleSet[0]) - if k != 'alert' && k != 'record' && k != 'index' - }; - [deleteIndex(std.mergePatch(rule, patch))] - else // equivalnt to operation == 'exclude' - [] - - else - [] + patchOrExcludeRule(rule, ruleSet[1:], operation); - - -local sameRuleName(rule1, rule2) = - if ('alert' in rule1 && 'alert' in rule2) then - rule1.alert == rule2.alert - else if ('record' in rule1 && 'record' in rule2) then - rule1.record == rule2.record - else - false; - -local indexRules(lastRule, ruleSet) = - if std.length(ruleSet) == 0 then - [] - else if (lastRule != null) && sameRuleName(lastRule, ruleSet[0]) then - local updatedRule = std.mergePatch(ruleSet[0], { index: lastRule.index + 1 }); - [updatedRule] + indexRules(updatedRule, ruleSet[1:]) - else - local updatedRule = std.mergePatch(ruleSet[0], { index: 0 }); - [updatedRule] + indexRules(updatedRule, ruleSet[1:]); - -local ruleName(rule) = - if ('alert' in rule) then - rule.alert - else if ('record' in rule) then - rule.record - else - assert false : 'rule should have either "alert" or "record" field' + std.toString(rule); - ''; - -local patchOrExcludeRuleGroup(group, groupSet, operation) = - if std.length(groupSet) == 0 then - [group.rules] - else if (group.name == groupSet[0].name) then - local indexedRules = indexRules(null, std.sort( - group.rules, keyF=ruleName - )); - [patchOrExcludeRule(rule, groupSet[0].rules, operation) for rule in indexedRules] - else - [] + patchOrExcludeRuleGroup(group, groupSet[1:], operation); - -function(params) { - local ruleModifications = defaults + params, - assert std.isArray(ruleModifications.excludedRuleGroups) : 'rule-patcher: excludedRuleGroups should be an array', - assert std.isArray(ruleModifications.excludedRules) : 'rule-patcher: excludedRules should be an array', - assert std.isArray(ruleModifications.patchedRules) : 'rule-patcher: patchedRules should be an array', - - local excludeRule(o) = o { - [if (o.kind == 'PrometheusRule') then 'spec']+: { - groups: std.filterMap( - function(group) !std.member(ruleModifications.excludedRuleGroups, group.name), - function(group) - group { - rules: std.flattenArrays( - patchOrExcludeRuleGroup(group, ruleModifications.excludedRules, 'exclude') - ), - }, - super.groups, - ), - }, - }, - - local patchRule(o) = o { - [if (o.kind == 'PrometheusRule') then 'spec']+: { - groups: std.map( - function(group) - group { - rules: std.flattenArrays( - patchOrExcludeRuleGroup(group, ruleModifications.patchedRules, 'patch') - ), - }, - super.groups, - ), - }, - }, - - // shorthand for rule patching, rule excluding - sanitizePrometheusRules(o): { - [k]: patchRule(excludeRule(o[k])) - for k in std.objectFields(o) - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/lib/utils.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/lib/utils.libsonnet deleted file mode 100644 index b5d29825b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/lib/utils.libsonnet +++ /dev/null @@ -1,7 +0,0 @@ -{ - // rangeInterval takes a scrape interval and convert its to a range interval - // following Prometheus rule of thumb for rate() and irate(). - rangeInterval(i='1m'): - local interval = std.parseInt(std.substr(i, 0, std.length(i) - 1)); - interval * 4 + i[std.length(i) - 1], -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/main.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/main.libsonnet deleted file mode 100644 index d8aa5028a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/main.libsonnet +++ /dev/null @@ -1,160 +0,0 @@ -local alertmanager = import './components/alertmanager.libsonnet'; -local blackboxExporter = import './components/blackbox-exporter.libsonnet'; -local grafana = import './components/grafana.libsonnet'; -local kubernetesControlPlane = import './components/k8s-control-plane.libsonnet'; -local kubeStateMetrics = import './components/kube-state-metrics.libsonnet'; -local customMixin = import './components/mixin/custom.libsonnet'; -local nodeExporter = import './components/node-exporter.libsonnet'; -local prometheusAdapter = import './components/prometheus-adapter.libsonnet'; -local prometheusOperator = import './components/prometheus-operator.libsonnet'; -local prometheus = import './components/prometheus.libsonnet'; - -local platformPatch = import './platforms/platforms.libsonnet'; - -local utils = import './lib/utils.libsonnet'; - -{ - // using `values` as this is similar to helm - values:: { - common: { - namespace: 'default', - platform: null, - ruleLabels: { - role: 'alert-rules', - prometheus: $.values.prometheus.name, - }, - // to allow automatic upgrades of components, we store versions in autogenerated `versions.json` file and import it here - versions: { - alertmanager: error 'must provide version', - blackboxExporter: error 'must provide version', - grafana: error 'must provide version', - kubeStateMetrics: error 'must provide version', - nodeExporter: error 'must provide version', - prometheus: error 'must provide version', - prometheusAdapter: error 'must provide version', - prometheusOperator: error 'must provide version', - kubeRbacProxy: error 'must provide version', - configmapReload: error 'must provide version', - } + (import 'versions.json'), - images: { - alertmanager: 'quay.io/prometheus/alertmanager:v' + $.values.common.versions.alertmanager, - blackboxExporter: 'quay.io/prometheus/blackbox-exporter:v' + $.values.common.versions.blackboxExporter, - grafana: 'grafana/grafana:' + $.values.common.versions.grafana, - kubeStateMetrics: 'registry.k8s.io/kube-state-metrics/kube-state-metrics:v' + $.values.common.versions.kubeStateMetrics, - nodeExporter: 'quay.io/prometheus/node-exporter:v' + $.values.common.versions.nodeExporter, - prometheus: 'quay.io/prometheus/prometheus:v' + $.values.common.versions.prometheus, - prometheusAdapter: 'registry.k8s.io/prometheus-adapter/prometheus-adapter:v' + $.values.common.versions.prometheusAdapter, - prometheusOperator: 'quay.io/prometheus-operator/prometheus-operator:v' + $.values.common.versions.prometheusOperator, - prometheusOperatorReloader: 'quay.io/prometheus-operator/prometheus-config-reloader:v' + $.values.common.versions.prometheusOperator, - kubeRbacProxy: 'quay.io/brancz/kube-rbac-proxy:v' + $.values.common.versions.kubeRbacProxy, - configmapReload: 'ghcr.io/jimmidyson/configmap-reload:v' + $.values.common.versions.configmapReload, - }, - }, - alertmanager: { - name: 'main', - namespace: $.values.common.namespace, - version: $.values.common.versions.alertmanager, - image: $.values.common.images.alertmanager, - mixin+: { ruleLabels: $.values.common.ruleLabels }, - }, - blackboxExporter: { - namespace: $.values.common.namespace, - version: $.values.common.versions.blackboxExporter, - image: $.values.common.images.blackboxExporter, - kubeRbacProxyImage: $.values.common.images.kubeRbacProxy, - configmapReloaderImage: $.values.common.images.configmapReload, - }, - grafana: { - namespace: $.values.common.namespace, - version: $.values.common.versions.grafana, - image: $.values.common.images.grafana, - prometheusName: $.values.prometheus.name, - // TODO(paulfantom) This should be done by iterating over all objects and looking for object.mixin.grafanaDashboards - dashboards: $.nodeExporter.mixin.grafanaDashboards + - $.prometheus.mixin.grafanaDashboards + - $.kubernetesControlPlane.mixin.grafanaDashboards + - $.alertmanager.mixin.grafanaDashboards + - $.grafana.mixin.grafanaDashboards, - mixin+: { ruleLabels: $.values.common.ruleLabels }, - }, - kubeStateMetrics: { - namespace: $.values.common.namespace, - version: $.values.common.versions.kubeStateMetrics, - image: $.values.common.images.kubeStateMetrics, - mixin+: { ruleLabels: $.values.common.ruleLabels }, - kubeRbacProxyImage: $.values.common.images.kubeRbacProxy, - }, - nodeExporter: { - namespace: $.values.common.namespace, - version: $.values.common.versions.nodeExporter, - image: $.values.common.images.nodeExporter, - mixin+: { ruleLabels: $.values.common.ruleLabels }, - kubeRbacProxyImage: $.values.common.images.kubeRbacProxy, - }, - prometheus: { - namespace: $.values.common.namespace, - version: $.values.common.versions.prometheus, - image: $.values.common.images.prometheus, - name: 'k8s', - alerting: { - alertmanagers: [{ - namespace: $.values.common.namespace, - name: 'alertmanager-' + $.values.alertmanager.name, - port: $.alertmanager.service.spec.ports[0].name, - apiVersion: 'v2', - }], - }, - mixin+: { ruleLabels: $.values.common.ruleLabels }, - }, - prometheusAdapter: { - namespace: $.values.common.namespace, - version: $.values.common.versions.prometheusAdapter, - image: $.values.common.images.prometheusAdapter, - prometheusURL: 'http://prometheus-' + $.values.prometheus.name + '.' + $.values.prometheus.namespace + '.svc:9090/', - rangeIntervals+: { - kubelet: utils.rangeInterval($.kubernetesControlPlane.serviceMonitorKubelet.spec.endpoints[0].interval), - nodeExporter: utils.rangeInterval($.nodeExporter.serviceMonitor.spec.endpoints[0].interval), - }, - }, - prometheusOperator: { - namespace: $.values.common.namespace, - version: $.values.common.versions.prometheusOperator, - image: $.values.common.images.prometheusOperator, - configReloaderImage: $.values.common.images.prometheusOperatorReloader, - mixin+: { ruleLabels: $.values.common.ruleLabels }, - kubeRbacProxyImage: $.values.common.images.kubeRbacProxy, - }, - kubernetesControlPlane: { - namespace: $.values.common.namespace, - mixin+: { ruleLabels: $.values.common.ruleLabels }, - }, - }, - - alertmanager: alertmanager($.values.alertmanager), - blackboxExporter: blackboxExporter($.values.blackboxExporter), - grafana: grafana($.values.grafana), - kubeStateMetrics: kubeStateMetrics($.values.kubeStateMetrics), - nodeExporter: nodeExporter($.values.nodeExporter), - prometheus: prometheus($.values.prometheus), - prometheusAdapter: prometheusAdapter($.values.prometheusAdapter), - prometheusOperator: prometheusOperator($.values.prometheusOperator), - kubernetesControlPlane: kubernetesControlPlane($.values.kubernetesControlPlane), - kubePrometheus: customMixin( - { - namespace: $.values.common.namespace, - mixin+: { ruleLabels: $.values.common.ruleLabels }, - } - ) + { - namespace: { - apiVersion: 'v1', - kind: 'Namespace', - metadata: { - name: $.values.common.namespace, - labels: { - 'pod-security.kubernetes.io/warn': 'privileged', - 'pod-security.kubernetes.io/warn-version': 'latest', - }, - }, - }, - }, -} + platformPatch diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/README.md deleted file mode 100644 index cd080dd9b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Adding a new platform specific configuration - -Adding a new platform specific configuration requires to update the [customization example](https://github.com/prometheus-operator/kube-prometheus/tree/main/../docs/customizations/platform-specific.md#running-kube-prometheus-on-specific-platforms) and the [platforms.libsonnet](platforms.libsonnet) file by adding the platform to the list of existing ones. This allow the new platform to be discoverable and easily configurable by the users. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/aks.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/aks.libsonnet deleted file mode 100644 index cb34f3e26..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/aks.libsonnet +++ /dev/null @@ -1,32 +0,0 @@ -(import '../addons/managed-cluster.libsonnet') + { - values+:: { - prometheusAdapter+: { - config+: { - resourceRules:: null, - }, - }, - }, - - prometheusAdapter+:: { - apiService:: null, - }, - - kubernetesControlPlane+: { - kubeDnsPrometheusStackService: { - apiVersion: 'v1', - kind: 'Service', - metadata: { - name: 'kube-prometheus-stack-coredns', - namespace: 'kube-system', - labels: { 'k8s-app': 'kube-dns' }, - }, - spec: { - ports: [ - { name: 'metrics', port: 9153, targetPort: 9153 }, - ], - selector: { 'k8s-app': 'kube-dns' }, - clusterIP: 'None', - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/aws.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/aws.libsonnet deleted file mode 100644 index 27a61c2b8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/aws.libsonnet +++ /dev/null @@ -1,33 +0,0 @@ -local service(name, namespace, labels, selector, ports) = { - apiVersion: 'v1', - kind: 'Service', - metadata: { - name: name, - namespace: namespace, - labels: labels, - }, - spec: { - ports+: ports, - selector: selector, - clusterIP: 'None', - }, -}; - -{ - kubernetesControlPlane+: { - kubeControllerManagerPrometheusDiscoveryService: service( - 'kube-controller-manager-prometheus-discovery', - 'kube-system', - { 'app.kubernetes.io/name': 'kube-controller-manager' }, - { 'app.kubernetes.io/name': 'kube-controller-manager' }, - [{ name: 'https-metrics', port: 10257, targetPort: 10257 }], - ), - kubeSchedulerPrometheusDiscoveryService: service( - 'kube-scheduler-prometheus-discovery', - 'kube-system', - { 'app.kubernetes.io/name': 'kube-scheduler' }, - { 'app.kubernetes.io/name': 'kube-scheduler' }, - [{ name: 'https-metrics', port: 10259, targetPort: 10259 }], - ), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/bootkube.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/bootkube.libsonnet deleted file mode 100644 index e4651ae92..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/bootkube.libsonnet +++ /dev/null @@ -1,42 +0,0 @@ -local service(name, namespace, labels, selector, ports) = { - apiVersion: 'v1', - kind: 'Service', - metadata: { - name: name, - namespace: namespace, - labels: labels, - }, - spec: { - ports+: ports, - selector: selector, - clusterIP: 'None', - }, -}; - -{ - kubernetesControlPlane+: { - kubeControllerManagerPrometheusDiscoveryService: service( - 'kube-controller-manager-prometheus-discovery', - 'kube-system', - { 'app.kubernetes.io/name': 'kube-controller-manager' }, - { 'app.kubernetes.io/name': 'kube-controller-manager' }, - [{ name: 'https-metrics', port: 10257, targetPort: 10257 }] - ), - - kubeSchedulerPrometheusDiscoveryService: service( - 'kube-scheduler-prometheus-discovery', - 'kube-system', - { 'app.kubernetes.io/name': 'kube-scheduler' }, - { 'app.kubernetes.io/name': 'kube-scheduler' }, - [{ name: 'https-metrics', port: 10259, targetPort: 10259 }] - ), - - kubeDnsPrometheusDiscoveryService: service( - 'kube-dns-prometheus-discovery', - 'kube-system', - { 'app.kubernetes.io/name': 'kube-dns' }, - { 'app.kubernetes.io/name': 'kube-dns' }, - [{ name: 'http-metrics-skydns', port: 10055, targetPort: 10055 }, { name: 'http-metrics-dnsmasq', port: 10054, targetPort: 10054 }] - ), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/eks.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/eks.libsonnet deleted file mode 100644 index f46709f2f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/eks.libsonnet +++ /dev/null @@ -1,16 +0,0 @@ -(import '../addons/aws-vpc-cni.libsonnet') + -(import '../addons/managed-cluster.libsonnet') + { - kubernetesControlPlane+: { - serviceMonitorCoreDNS+: { - spec+: { - endpoints: [ - { - bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token', - interval: '15s', - targetPort: 9153, - }, - ], - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/gke.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/gke.libsonnet deleted file mode 100644 index 973eeffb8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/gke.libsonnet +++ /dev/null @@ -1,13 +0,0 @@ -(import '../addons/managed-cluster.libsonnet') + { - values+:: { - prometheusAdapter+: { - config+: { - resourceRules:: null, - }, - }, - }, - - prometheusAdapter+:: { - apiService:: null, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kops-coredns.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kops-coredns.libsonnet deleted file mode 100644 index b9688173f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kops-coredns.libsonnet +++ /dev/null @@ -1,20 +0,0 @@ -{ - kubernetesControlPlane+: { - kubeDnsPrometheusDiscoveryService: { - apiVersion: 'v1', - kind: 'Service', - metadata: { - name: 'kube-dns-prometheus-discovery', - namespace: 'kube-system', - labels: { 'app.kubernetes.io/name': 'kube-dns' }, - }, - spec: { - ports: [ - { name: 'metrics', port: 9153, targetPort: 9153 }, - ], - selector: { 'app.kubernetes.io/name': 'kube-dns' }, - clusterIP: 'None', - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kops.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kops.libsonnet deleted file mode 100644 index 52eac3624..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kops.libsonnet +++ /dev/null @@ -1,40 +0,0 @@ -local service(name, namespace, labels, selector, ports) = { - apiVersion: 'v1', - kind: 'Service', - metadata: { - name: name, - namespace: namespace, - labels: labels, - }, - spec: { - ports+: ports, - selector: selector, - clusterIP: 'None', - }, -}; - -{ - kubernetesControlPlane+: { - kubeControllerManagerPrometheusDiscoveryService: service( - 'kube-controller-manager-prometheus-discovery', - 'kube-system', - { 'k8s-app': 'kube-controller-manager', 'app.kubernetes.io/name': 'kube-controller-manager' }, - { 'k8s-app': 'kube-controller-manager' }, - [{ name: 'https-metrics', port: 10257, targetPort: 10257 }] - ), - kubeSchedulerPrometheusDiscoveryService: service( - 'kube-scheduler-prometheus-discovery', - 'kube-system', - { 'k8s-app': 'kube-controller-manager', 'app.kubernetes.io/name': 'kube-scheduler' }, - { 'k8s-app': 'kube-scheduler' }, - [{ name: 'https-metrics', port: 10259, targetPort: 10259 }] - ), - kubeDnsPrometheusDiscoveryService: service( - 'kube-dns-prometheus-discovery', - 'kube-system', - { 'k8s-app': 'kube-controller-manager', 'app.kubernetes.io/name': 'kube-dns' }, - { 'k8s-app': 'kube-dns' }, - [{ name: 'metrics', port: 10055, targetPort: 10055 }, { name: 'http-metrics-dnsmasq', port: 10054, targetPort: 10054 }] - ), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kubeadm.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kubeadm.libsonnet deleted file mode 100644 index dec785d9d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kubeadm.libsonnet +++ /dev/null @@ -1,33 +0,0 @@ -local service(name, namespace, labels, selector, ports) = { - apiVersion: 'v1', - kind: 'Service', - metadata: { - name: name, - namespace: namespace, - labels: labels, - }, - spec: { - ports+: ports, - selector: selector, - clusterIP: 'None', - }, -}; - -{ - kubernetesControlPlane+: { - kubeControllerManagerPrometheusDiscoveryService: service( - 'kube-controller-manager-prometheus-discovery', - 'kube-system', - { 'app.kubernetes.io/name': 'kube-controller-manager' }, - { component: 'kube-controller-manager' }, - [{ name: 'https-metrics', port: 10257, targetPort: 10257 }] - ), - kubeSchedulerPrometheusDiscoveryService: service( - 'kube-scheduler-prometheus-discovery', - 'kube-system', - { 'app.kubernetes.io/name': 'kube-scheduler' }, - { component: 'kube-scheduler' }, - [{ name: 'https-metrics', port: 10259, targetPort: 10259 }], - ), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kubespray.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kubespray.libsonnet deleted file mode 100644 index dabee2519..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/kubespray.libsonnet +++ /dev/null @@ -1 +0,0 @@ -(import './kubeadm.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/platforms.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/platforms.libsonnet deleted file mode 100644 index c3c64c4d3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/platforms/platforms.libsonnet +++ /dev/null @@ -1,45 +0,0 @@ -local platforms = { - aks: import './aks.libsonnet', - aws: import './aws.libsonnet', - bootkube: import './bootkube.libsonnet', - gke: import './gke.libsonnet', - eks: import './eks.libsonnet', - kops: import './kops.libsonnet', - kops_coredns: (import './kops.libsonnet') + (import './kops-coredns.libsonnet'), - kubeadm: import './kubeadm.libsonnet', - kubespray: import './kubespray.libsonnet', -}; - -// platformPatch returns the platform specific patch associated to the given -// platform. -local platformPatch(p) = if p != null && std.objectHas(platforms, p) then platforms[p] else {}; - -{ - // initialize the object to prevent "Indexed object has no field" lint errors - local p = { - values+:: $.values, - alertmanager: {}, - blackboxExporter: {}, - grafana: {}, - kubePrometheus: {}, - kubernetesControlPlane: {}, - kubeStateMetrics: {}, - nodeExporter: {}, - prometheus: {}, - prometheusAdapter: {}, - prometheusOperator: {}, - pyrra: {}, - } + platformPatch($.values.common.platform), - - alertmanager+: p.alertmanager, - blackboxExporter+: p.blackboxExporter, - grafana+: p.grafana, - kubeStateMetrics+: p.kubeStateMetrics, - nodeExporter+: p.nodeExporter, - prometheus+: p.prometheus, - prometheusAdapter+: p.prometheusAdapter, - prometheusOperator+: p.prometheusOperator, - kubernetesControlPlane+: p.kubernetesControlPlane, - kubePrometheus+: p.kubePrometheus, - pyrra+: p.pyrra, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/versions.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/versions.json deleted file mode 100644 index 5eca32a28..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus/versions.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "alertmanager": "0.27.0", - "blackboxExporter": "0.25.0", - "grafana": "11.2.0", - "kubeStateMetrics": "2.13.0", - "nodeExporter": "1.8.2", - "prometheus": "2.54.1", - "prometheusAdapter": "0.12.0", - "prometheusOperator": "0.76.0", - "kubeRbacProxy": "0.18.1", - "configmapReload": "0.13.1", - "pyrra": "0.6.4" -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/alerts.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/alerts.jsonnet deleted file mode 100644 index 23f4afea6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/alerts.jsonnet +++ /dev/null @@ -1,3 +0,0 @@ -( - import 'mixin.libsonnet' -).prometheusAlerts diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/alerts/alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/alerts/alerts.libsonnet deleted file mode 100644 index 3ed1872ec..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/alerts/alerts.libsonnet +++ /dev/null @@ -1,142 +0,0 @@ -{ - prometheusAlerts+:: { - groups+: [ - { - name: 'prometheus-operator', - rules: [ - { - alert: 'PrometheusOperatorListErrors', - expr: ||| - (sum by (%(groupLabels)s) (rate(prometheus_operator_list_operations_failed_total{%(prometheusOperatorSelector)s}[10m])) / sum by (%(groupLabels)s) (rate(prometheus_operator_list_operations_total{%(prometheusOperatorSelector)s}[10m]))) > 0.4 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Errors while performing List operations in controller {{$labels.controller}} in {{$labels.namespace}} namespace.', - summary: 'Errors while performing list operations in controller.', - }, - 'for': '15m', - }, - { - alert: 'PrometheusOperatorWatchErrors', - expr: ||| - (sum by (%(groupLabels)s) (rate(prometheus_operator_watch_operations_failed_total{%(prometheusOperatorSelector)s}[5m])) / sum by (%(groupLabels)s) (rate(prometheus_operator_watch_operations_total{%(prometheusOperatorSelector)s}[5m]))) > 0.4 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Errors while performing watch operations in controller {{$labels.controller}} in {{$labels.namespace}} namespace.', - summary: 'Errors while performing watch operations in controller.', - }, - 'for': '15m', - }, - { - alert: 'PrometheusOperatorSyncFailed', - expr: ||| - min_over_time(prometheus_operator_syncs{status="failed",%(prometheusOperatorSelector)s}[5m]) > 0 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Controller {{ $labels.controller }} in {{ $labels.namespace }} namespace fails to reconcile {{ $value }} objects.', - summary: 'Last controller reconciliation failed', - }, - 'for': '10m', - }, - { - alert: 'PrometheusOperatorReconcileErrors', - expr: ||| - (sum by (%(groupLabels)s) (rate(prometheus_operator_reconcile_errors_total{%(prometheusOperatorSelector)s}[5m]))) / (sum by (%(groupLabels)s) (rate(prometheus_operator_reconcile_operations_total{%(prometheusOperatorSelector)s}[5m]))) > 0.1 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: '{{ $value | humanizePercentage }} of reconciling operations failed for {{ $labels.controller }} controller in {{ $labels.namespace }} namespace.', - summary: 'Errors while reconciling objects.', - }, - 'for': '10m', - }, - { - alert: 'PrometheusOperatorStatusUpdateErrors', - expr: ||| - (sum by (%(groupLabels)s) (rate(prometheus_operator_status_update_errors_total{%(prometheusOperatorSelector)s}[5m]))) / (sum by (%(groupLabels)s) (rate(prometheus_operator_status_update_operations_total{%(prometheusOperatorSelector)s}[5m]))) > 0.1 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: '{{ $value | humanizePercentage }} of status update operations failed for {{ $labels.controller }} controller in {{ $labels.namespace }} namespace.', - summary: 'Errors while updating objects status.', - }, - 'for': '10m', - }, - { - alert: 'PrometheusOperatorNodeLookupErrors', - expr: ||| - rate(prometheus_operator_node_address_lookup_errors_total{%(prometheusOperatorSelector)s}[5m]) > 0.1 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Errors while reconciling Prometheus in {{ $labels.namespace }} Namespace.', - summary: 'Errors while reconciling Prometheus.', - }, - 'for': '10m', - }, - { - alert: 'PrometheusOperatorNotReady', - expr: ||| - min by (%(groupLabels)s) (max_over_time(prometheus_operator_ready{%(prometheusOperatorSelector)s}[5m]) == 0) - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: "Prometheus operator in {{ $labels.namespace }} namespace isn't ready to reconcile {{ $labels.controller }} resources.", - summary: 'Prometheus operator not ready', - }, - 'for': '5m', - }, - { - alert: 'PrometheusOperatorRejectedResources', - expr: ||| - min_over_time(prometheus_operator_managed_resources{state="rejected",%(prometheusOperatorSelector)s}[5m]) > 0 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Prometheus operator in {{ $labels.namespace }} namespace rejected {{ printf "%0.0f" $value }} {{ $labels.controller }}/{{ $labels.resource }} resources.', - summary: 'Resources rejected by Prometheus operator', - }, - 'for': '5m', - }, - ], - }, - { - name: 'config-reloaders', - rules: [ - { - alert: 'ConfigReloaderSidecarErrors', - expr: ||| - max_over_time(reloader_last_reload_successful{%(configReloaderSelector)s}[5m]) == 0 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - description: 'Errors encountered while the {{$labels.pod}} config-reloader sidecar attempts to sync config in {{$labels.namespace}} namespace.\nAs a result, configuration for service running in {{$labels.pod}} may be stale and cannot be updated anymore.', - summary: 'config-reloader sidecar has not had a successful reload for 10m', - }, - 'for': '10m', - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/config.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/config.libsonnet deleted file mode 100644 index ca8954161..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/config.libsonnet +++ /dev/null @@ -1,7 +0,0 @@ -{ - _config+:: { - prometheusOperatorSelector: 'job="prometheus-operator"', - configReloaderSelector: 'namespace=~".+"', - groupLabels: 'controller,namespace', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/mixin.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/mixin.libsonnet deleted file mode 100644 index 7cb7c3d06..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/mixin/mixin.libsonnet +++ /dev/null @@ -1,2 +0,0 @@ -(import 'config.libsonnet') + -(import 'alerts/alerts.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/.gitignore b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/.gitignore deleted file mode 100644 index 80243dae6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -vendor/ -jsonnetfile.lock.json diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/admission-webhook.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/admission-webhook.libsonnet deleted file mode 100644 index 201a12378..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/admission-webhook.libsonnet +++ /dev/null @@ -1,177 +0,0 @@ -local defaults = { - local defaults = self, - name: 'prometheus-operator-admission-webhook', - namespace: error 'must provide namespace', - version: error 'must provide version', - image: error 'must provide admission webhook image', - // The name of the Secret containing the TLS certificate and key of the admission webhook service. - tlsSecretName: error 'must provide tlsSecretName', - // The Secret's key containing the TLS certificate. - tlsCertRef: 'tls.crt', - // The Secret's key containing the TLS private key. - tlsPrivateKeyRef: 'tls.key', - port: 443, - replicas: 2, - resources: { - limits: { cpu: '200m', memory: '200Mi' }, - requests: { cpu: '50m', memory: '50Mi' }, - }, - commonLabels:: { - 'app.kubernetes.io/name': defaults.name, - 'app.kubernetes.io/version': defaults.version, - }, - selectorLabels:: { - [labelName]: defaults.commonLabels[labelName] - for labelName in std.objectFields(defaults.commonLabels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, -}; - -function(params) { - local aw = self, - _config:: defaults + params, - _metadata:: { - name: aw._config.name, - namespace: aw._config.namespace, - labels: aw._config.commonLabels, - }, - - serviceAccount: { - apiVersion: 'v1', - kind: 'ServiceAccount', - metadata: aw._metadata, - automountServiceAccountToken: false, - }, - - service: { - apiVersion: 'v1', - kind: 'Service', - metadata: aw._metadata, - spec: { - ports: [ - { name: 'https', targetPort: 'https', port: aw._config.port }, - ], - selector: aw._config.selectorLabels, - }, - }, - - deployment: - local container = { - name: aw._config.name, - image: aw._config.image, - ports: [{ - containerPort: 8443, - name: 'https', - }], - args: [ - '--web.enable-tls=true', - '--web.cert-file=/etc/tls/private/tls.crt', - '--web.key-file=/etc/tls/private/tls.key', - ], - resources: aw._config.resources, - terminationMessagePolicy: 'FallbackToLogsOnError', - securityContext: { - allowPrivilegeEscalation: false, - readOnlyRootFilesystem: true, - capabilities: { drop: ['ALL'] }, - }, - volumeMounts: [ - { - mountPath: '/etc/tls/private', - name: 'tls-certificates', - readOnly: true, - }, - ], - }; - { - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: aw._metadata, - spec: { - replicas: aw._config.replicas, - selector: { matchLabels: aw._config.selectorLabels }, - template: { - metadata: { - labels: aw._config.commonLabels, - annotations: { - 'kubectl.kubernetes.io/default-container': container.name, - }, - }, - spec: { - containers: [container], - securityContext: { - runAsNonRoot: true, - runAsUser: 65534, - seccompProfile: { type: 'RuntimeDefault' }, - }, - serviceAccountName: aw._config.name, - automountServiceAccountToken: false, - volumes: [{ - name: 'tls-certificates', - secret: { - secretName: aw._config.tlsSecretName, - items: [{ - key: aw._config.tlsCertRef, - path: 'tls.crt', - }, { - key: aw._config.tlsPrivateKeyRef, - path: 'tls.key', - }], - }, - }], - }, - }, - - } + if aw._config.replicas > 1 then { - // configure hard anti-affinity + rolling update for proper HA. - template+: { - spec+: { - affinity: { - podAntiAffinity: { - requiredDuringSchedulingIgnoredDuringExecution: [{ - namespaces: [aw._config.namespace], - topologyKey: 'kubernetes.io/hostname', - labelSelector: { - matchLabels: aw._config.selectorLabels, - }, - }], - }, - }, - }, - }, - strategy: { - rollingUpdate: { - maxUnavailable: 1, - }, - }, - }, - }, - - serviceMonitor: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: aw._metadata, - spec: { - endpoints: [ - { - port: 'https', - honorLabels: true, - }, - ], - selector: { - matchLabels: aw._config.commonLabels, - }, - }, - }, - - [if (defaults + params).replicas > 1 then 'podDisruptionBudget']: { - apiVersion: 'policy/v1', - kind: 'PodDisruptionBudget', - metadata: aw._metadata, - spec: { - minAvailable: 1, - selector: { matchLabels: aw._config.selectorLabels }, - - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/alertmanagerconfigs-crd.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/alertmanagerconfigs-crd.json deleted file mode 100644 index 738c496ff..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/alertmanagerconfigs-crd.json +++ /dev/null @@ -1,8833 +0,0 @@ -{ - "apiVersion": "apiextensions.k8s.io/v1", - "kind": "CustomResourceDefinition", - "metadata": { - "annotations": { - "controller-gen.kubebuilder.io/version": "v0.16.1", - "operator.prometheus.io/version": "0.76.0" - }, - "name": "alertmanagerconfigs.monitoring.coreos.com" - }, - "spec": { - "group": "monitoring.coreos.com", - "names": { - "categories": [ - "prometheus-operator" - ], - "kind": "AlertmanagerConfig", - "listKind": "AlertmanagerConfigList", - "plural": "alertmanagerconfigs", - "shortNames": [ - "amcfg" - ], - "singular": "alertmanagerconfig" - }, - "scope": "Namespaced", - "versions": [ - { - "name": "v1alpha1", - "schema": { - "openAPIV3Schema": { - "description": "AlertmanagerConfig configures the Prometheus Alertmanager,\nspecifying how alerts should be grouped, inhibited and notified to external systems.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "type": "object" - }, - "spec": { - "description": "AlertmanagerConfigSpec is a specification of the desired behavior of the\nAlertmanager configuration.\nBy default, the Alertmanager configuration only applies to alerts for which\nthe `namespace` label is equal to the namespace of the AlertmanagerConfig\nresource (see the `.spec.alertmanagerConfigMatcherStrategy` field of the\nAlertmanager CRD).", - "properties": { - "inhibitRules": { - "description": "List of inhibition rules. The rules will only apply to alerts matching\nthe resource's namespace.", - "items": { - "description": "InhibitRule defines an inhibition rule that allows to mute alerts when other\nalerts are already firing.\nSee https://prometheus.io/docs/alerting/latest/configuration/#inhibit_rule", - "properties": { - "equal": { - "description": "Labels that must have an equal value in the source and target alert for\nthe inhibition to take effect.", - "items": { - "type": "string" - }, - "type": "array" - }, - "sourceMatch": { - "description": "Matchers for which one or more alerts have to exist for the inhibition\nto take effect. The operator enforces that the alert matches the\nresource's namespace.", - "items": { - "description": "Matcher defines how to match on alert's labels.", - "properties": { - "matchType": { - "description": "Match operation available with AlertManager >= v0.22.0 and\ntakes precedence over Regex (deprecated) if non-empty.", - "enum": [ - "!=", - "=", - "=~", - "!~" - ], - "type": "string" - }, - "name": { - "description": "Label to match.", - "minLength": 1, - "type": "string" - }, - "regex": { - "description": "Whether to match on equality (false) or regular-expression (true).\nDeprecated: for AlertManager >= v0.22.0, `matchType` should be used instead.", - "type": "boolean" - }, - "value": { - "description": "Label value to match.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "targetMatch": { - "description": "Matchers that have to be fulfilled in the alerts to be muted. The\noperator enforces that the alert matches the resource's namespace.", - "items": { - "description": "Matcher defines how to match on alert's labels.", - "properties": { - "matchType": { - "description": "Match operation available with AlertManager >= v0.22.0 and\ntakes precedence over Regex (deprecated) if non-empty.", - "enum": [ - "!=", - "=", - "=~", - "!~" - ], - "type": "string" - }, - "name": { - "description": "Label to match.", - "minLength": 1, - "type": "string" - }, - "regex": { - "description": "Whether to match on equality (false) or regular-expression (true).\nDeprecated: for AlertManager >= v0.22.0, `matchType` should be used instead.", - "type": "boolean" - }, - "value": { - "description": "Label value to match.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - } - }, - "type": "object" - }, - "type": "array" - }, - "muteTimeIntervals": { - "description": "List of MuteTimeInterval specifying when the routes should be muted.", - "items": { - "description": "MuteTimeInterval specifies the periods in time when notifications will be muted", - "properties": { - "name": { - "description": "Name of the time interval", - "type": "string" - }, - "timeIntervals": { - "description": "TimeIntervals is a list of TimeInterval", - "items": { - "description": "TimeInterval describes intervals of time", - "properties": { - "daysOfMonth": { - "description": "DaysOfMonth is a list of DayOfMonthRange", - "items": { - "description": "DayOfMonthRange is an inclusive range of days of the month beginning at 1", - "properties": { - "end": { - "description": "End of the inclusive range", - "maximum": 31, - "minimum": -31, - "type": "integer" - }, - "start": { - "description": "Start of the inclusive range", - "maximum": 31, - "minimum": -31, - "type": "integer" - } - }, - "type": "object" - }, - "type": "array" - }, - "months": { - "description": "Months is a list of MonthRange", - "items": { - "description": "MonthRange is an inclusive range of months of the year beginning in January\nMonths can be specified by name (e.g 'January') by numerical month (e.g '1') or as an inclusive range (e.g 'January:March', '1:3', '1:March')", - "pattern": "^((?i)january|february|march|april|may|june|july|august|september|october|november|december|1[0-2]|[1-9])(?:((:((?i)january|february|march|april|may|june|july|august|september|october|november|december|1[0-2]|[1-9]))$)|$)", - "type": "string" - }, - "type": "array" - }, - "times": { - "description": "Times is a list of TimeRange", - "items": { - "description": "TimeRange defines a start and end time in 24hr format", - "properties": { - "endTime": { - "description": "EndTime is the end time in 24hr format.", - "pattern": "^((([01][0-9])|(2[0-3])):[0-5][0-9])$|(^24:00$)", - "type": "string" - }, - "startTime": { - "description": "StartTime is the start time in 24hr format.", - "pattern": "^((([01][0-9])|(2[0-3])):[0-5][0-9])$|(^24:00$)", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "weekdays": { - "description": "Weekdays is a list of WeekdayRange", - "items": { - "description": "WeekdayRange is an inclusive range of days of the week beginning on Sunday\nDays can be specified by name (e.g 'Sunday') or as an inclusive range (e.g 'Monday:Friday')", - "pattern": "^((?i)sun|mon|tues|wednes|thurs|fri|satur)day(?:((:(sun|mon|tues|wednes|thurs|fri|satur)day)$)|$)", - "type": "string" - }, - "type": "array" - }, - "years": { - "description": "Years is a list of YearRange", - "items": { - "description": "YearRange is an inclusive range of years", - "pattern": "^2\\d{3}(?::2\\d{3}|$)", - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "type": "array" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "receivers": { - "description": "List of receivers.", - "items": { - "description": "Receiver defines one or more notification integrations.", - "properties": { - "discordConfigs": { - "description": "List of Discord configurations.", - "items": { - "description": "DiscordConfig configures notifications via Discord.\nSee https://prometheus.io/docs/alerting/latest/configuration/#discord_config", - "properties": { - "apiURL": { - "description": "The secret's key that contains the Discord webhook URL.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "httpConfig": { - "description": "HTTP client configuration.", - "properties": { - "authorization": { - "description": "Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "followRedirects": { - "description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "oauth2": { - "description": "OAuth2 client credentials used to fetch a token for the targets.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyURL": { - "description": "Optional proxy URL.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration for the client.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "message": { - "description": "The template of the message's body.", - "type": "string" - }, - "sendResolved": { - "description": "Whether or not to notify about resolved alerts.", - "type": "boolean" - }, - "title": { - "description": "The template of the message's title.", - "type": "string" - } - }, - "required": [ - "apiURL" - ], - "type": "object" - }, - "type": "array" - }, - "emailConfigs": { - "description": "List of Email configurations.", - "items": { - "description": "EmailConfig configures notifications via Email.", - "properties": { - "authIdentity": { - "description": "The identity to use for authentication.", - "type": "string" - }, - "authPassword": { - "description": "The secret's key that contains the password to use for authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "authSecret": { - "description": "The secret's key that contains the CRAM-MD5 secret.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "authUsername": { - "description": "The username to use for authentication.", - "type": "string" - }, - "from": { - "description": "The sender address.", - "type": "string" - }, - "headers": { - "description": "Further headers email header key/value pairs. Overrides any headers\npreviously set by the notification implementation.", - "items": { - "description": "KeyValue defines a (key, value) tuple.", - "properties": { - "key": { - "description": "Key of the tuple.", - "minLength": 1, - "type": "string" - }, - "value": { - "description": "Value of the tuple.", - "type": "string" - } - }, - "required": [ - "key", - "value" - ], - "type": "object" - }, - "type": "array" - }, - "hello": { - "description": "The hostname to identify to the SMTP server.", - "type": "string" - }, - "html": { - "description": "The HTML body of the email notification.", - "type": "string" - }, - "requireTLS": { - "description": "The SMTP TLS requirement.\nNote that Go does not support unencrypted connections to remote SMTP endpoints.", - "type": "boolean" - }, - "sendResolved": { - "description": "Whether or not to notify about resolved alerts.", - "type": "boolean" - }, - "smarthost": { - "description": "The SMTP host and port through which emails are sent. E.g. example.com:25", - "type": "string" - }, - "text": { - "description": "The text body of the email notification.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "to": { - "description": "The email address to send notifications to.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "msteamsConfigs": { - "description": "List of MSTeams configurations.\nIt requires Alertmanager >= 0.26.0.", - "items": { - "description": "MSTeamsConfig configures notifications via Microsoft Teams.\nIt requires Alertmanager >= 0.26.0.", - "properties": { - "httpConfig": { - "description": "HTTP client configuration.", - "properties": { - "authorization": { - "description": "Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "followRedirects": { - "description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "oauth2": { - "description": "OAuth2 client credentials used to fetch a token for the targets.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyURL": { - "description": "Optional proxy URL.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration for the client.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "sendResolved": { - "description": "Whether to notify about resolved alerts.", - "type": "boolean" - }, - "summary": { - "description": "Message summary template.\nIt requires Alertmanager >= 0.27.0.", - "type": "string" - }, - "text": { - "description": "Message body template.", - "type": "string" - }, - "title": { - "description": "Message title template.", - "type": "string" - }, - "webhookUrl": { - "description": "MSTeams webhook URL.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "webhookUrl" - ], - "type": "object" - }, - "type": "array" - }, - "name": { - "description": "Name of the receiver. Must be unique across all items from the list.", - "minLength": 1, - "type": "string" - }, - "opsgenieConfigs": { - "description": "List of OpsGenie configurations.", - "items": { - "description": "OpsGenieConfig configures notifications via OpsGenie.\nSee https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config", - "properties": { - "actions": { - "description": "Comma separated list of actions that will be available for the alert.", - "type": "string" - }, - "apiKey": { - "description": "The secret's key that contains the OpsGenie API key.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "apiURL": { - "description": "The URL to send OpsGenie API requests to.", - "type": "string" - }, - "description": { - "description": "Description of the incident.", - "type": "string" - }, - "details": { - "description": "A set of arbitrary key/value pairs that provide further detail about the incident.", - "items": { - "description": "KeyValue defines a (key, value) tuple.", - "properties": { - "key": { - "description": "Key of the tuple.", - "minLength": 1, - "type": "string" - }, - "value": { - "description": "Value of the tuple.", - "type": "string" - } - }, - "required": [ - "key", - "value" - ], - "type": "object" - }, - "type": "array" - }, - "entity": { - "description": "Optional field that can be used to specify which domain alert is related to.", - "type": "string" - }, - "httpConfig": { - "description": "HTTP client configuration.", - "properties": { - "authorization": { - "description": "Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "followRedirects": { - "description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "oauth2": { - "description": "OAuth2 client credentials used to fetch a token for the targets.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyURL": { - "description": "Optional proxy URL.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration for the client.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "message": { - "description": "Alert text limited to 130 characters.", - "type": "string" - }, - "note": { - "description": "Additional alert note.", - "type": "string" - }, - "priority": { - "description": "Priority level of alert. Possible values are P1, P2, P3, P4, and P5.", - "type": "string" - }, - "responders": { - "description": "List of responders responsible for notifications.", - "items": { - "description": "OpsGenieConfigResponder defines a responder to an incident.\nOne of `id`, `name` or `username` has to be defined.", - "properties": { - "id": { - "description": "ID of the responder.", - "type": "string" - }, - "name": { - "description": "Name of the responder.", - "type": "string" - }, - "type": { - "description": "Type of responder.", - "minLength": 1, - "type": "string" - }, - "username": { - "description": "Username of the responder.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "type": "array" - }, - "sendResolved": { - "description": "Whether or not to notify about resolved alerts.", - "type": "boolean" - }, - "source": { - "description": "Backlink to the sender of the notification.", - "type": "string" - }, - "tags": { - "description": "Comma separated list of tags attached to the notifications.", - "type": "string" - }, - "updateAlerts": { - "description": "Whether to update message and description of the alert in OpsGenie if it already exists\nBy default, the alert is never updated in OpsGenie, the new message only appears in activity log.", - "type": "boolean" - } - }, - "type": "object" - }, - "type": "array" - }, - "pagerdutyConfigs": { - "description": "List of PagerDuty configurations.", - "items": { - "description": "PagerDutyConfig configures notifications via PagerDuty.\nSee https://prometheus.io/docs/alerting/latest/configuration/#pagerduty_config", - "properties": { - "class": { - "description": "The class/type of the event.", - "type": "string" - }, - "client": { - "description": "Client identification.", - "type": "string" - }, - "clientURL": { - "description": "Backlink to the sender of notification.", - "type": "string" - }, - "component": { - "description": "The part or component of the affected system that is broken.", - "type": "string" - }, - "description": { - "description": "Description of the incident.", - "type": "string" - }, - "details": { - "description": "Arbitrary key/value pairs that provide further detail about the incident.", - "items": { - "description": "KeyValue defines a (key, value) tuple.", - "properties": { - "key": { - "description": "Key of the tuple.", - "minLength": 1, - "type": "string" - }, - "value": { - "description": "Value of the tuple.", - "type": "string" - } - }, - "required": [ - "key", - "value" - ], - "type": "object" - }, - "type": "array" - }, - "group": { - "description": "A cluster or grouping of sources.", - "type": "string" - }, - "httpConfig": { - "description": "HTTP client configuration.", - "properties": { - "authorization": { - "description": "Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "followRedirects": { - "description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "oauth2": { - "description": "OAuth2 client credentials used to fetch a token for the targets.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyURL": { - "description": "Optional proxy URL.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration for the client.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "pagerDutyImageConfigs": { - "description": "A list of image details to attach that provide further detail about an incident.", - "items": { - "description": "PagerDutyImageConfig attaches images to an incident", - "properties": { - "alt": { - "description": "Alt is the optional alternative text for the image.", - "type": "string" - }, - "href": { - "description": "Optional URL; makes the image a clickable link.", - "type": "string" - }, - "src": { - "description": "Src of the image being attached to the incident", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "pagerDutyLinkConfigs": { - "description": "A list of link details to attach that provide further detail about an incident.", - "items": { - "description": "PagerDutyLinkConfig attaches text links to an incident", - "properties": { - "alt": { - "description": "Text that describes the purpose of the link, and can be used as the link's text.", - "type": "string" - }, - "href": { - "description": "Href is the URL of the link to be attached", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "routingKey": { - "description": "The secret's key that contains the PagerDuty integration key (when using\nEvents API v2). Either this field or `serviceKey` needs to be defined.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "sendResolved": { - "description": "Whether or not to notify about resolved alerts.", - "type": "boolean" - }, - "serviceKey": { - "description": "The secret's key that contains the PagerDuty service key (when using\nintegration type \"Prometheus\"). Either this field or `routingKey` needs to\nbe defined.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "severity": { - "description": "Severity of the incident.", - "type": "string" - }, - "source": { - "description": "Unique location of the affected system.", - "type": "string" - }, - "url": { - "description": "The URL to send requests to.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "pushoverConfigs": { - "description": "List of Pushover configurations.", - "items": { - "description": "PushoverConfig configures notifications via Pushover.\nSee https://prometheus.io/docs/alerting/latest/configuration/#pushover_config", - "properties": { - "device": { - "description": "The name of a device to send the notification to", - "type": "string" - }, - "expire": { - "description": "How long your notification will continue to be retried for, unless the user\nacknowledges the notification.", - "pattern": "^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$", - "type": "string" - }, - "html": { - "description": "Whether notification message is HTML or plain text.", - "type": "boolean" - }, - "httpConfig": { - "description": "HTTP client configuration.", - "properties": { - "authorization": { - "description": "Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "followRedirects": { - "description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "oauth2": { - "description": "OAuth2 client credentials used to fetch a token for the targets.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyURL": { - "description": "Optional proxy URL.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration for the client.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "message": { - "description": "Notification message.", - "type": "string" - }, - "priority": { - "description": "Priority, see https://pushover.net/api#priority", - "type": "string" - }, - "retry": { - "description": "How often the Pushover servers will send the same notification to the user.\nMust be at least 30 seconds.", - "pattern": "^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$", - "type": "string" - }, - "sendResolved": { - "description": "Whether or not to notify about resolved alerts.", - "type": "boolean" - }, - "sound": { - "description": "The name of one of the sounds supported by device clients to override the user's default sound choice", - "type": "string" - }, - "title": { - "description": "Notification title.", - "type": "string" - }, - "token": { - "description": "The secret's key that contains the registered application's API token, see https://pushover.net/apps.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.\nEither `token` or `tokenFile` is required.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "tokenFile": { - "description": "The token file that contains the registered application's API token, see https://pushover.net/apps.\nEither `token` or `tokenFile` is required.\nIt requires Alertmanager >= v0.26.0.", - "type": "string" - }, - "ttl": { - "description": "The time to live definition for the alert notification", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "url": { - "description": "A supplementary URL shown alongside the message.", - "type": "string" - }, - "urlTitle": { - "description": "A title for supplementary URL, otherwise just the URL is shown", - "type": "string" - }, - "userKey": { - "description": "The secret's key that contains the recipient user's user key.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.\nEither `userKey` or `userKeyFile` is required.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "userKeyFile": { - "description": "The user key file that contains the recipient user's user key.\nEither `userKey` or `userKeyFile` is required.\nIt requires Alertmanager >= v0.26.0.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "slackConfigs": { - "description": "List of Slack configurations.", - "items": { - "description": "SlackConfig configures notifications via Slack.\nSee https://prometheus.io/docs/alerting/latest/configuration/#slack_config", - "properties": { - "actions": { - "description": "A list of Slack actions that are sent with each notification.", - "items": { - "description": "SlackAction configures a single Slack action that is sent with each\nnotification.\nSee https://api.slack.com/docs/message-attachments#action_fields and\nhttps://api.slack.com/docs/message-buttons for more information.", - "properties": { - "confirm": { - "description": "SlackConfirmationField protect users from destructive actions or\nparticularly distinguished decisions by asking them to confirm their button\nclick one more time.\nSee https://api.slack.com/docs/interactive-message-field-guide#confirmation_fields\nfor more information.", - "properties": { - "dismissText": { - "type": "string" - }, - "okText": { - "type": "string" - }, - "text": { - "minLength": 1, - "type": "string" - }, - "title": { - "type": "string" - } - }, - "required": [ - "text" - ], - "type": "object" - }, - "name": { - "type": "string" - }, - "style": { - "type": "string" - }, - "text": { - "minLength": 1, - "type": "string" - }, - "type": { - "minLength": 1, - "type": "string" - }, - "url": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "text", - "type" - ], - "type": "object" - }, - "type": "array" - }, - "apiURL": { - "description": "The secret's key that contains the Slack webhook URL.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "callbackId": { - "type": "string" - }, - "channel": { - "description": "The channel or user to send notifications to.", - "type": "string" - }, - "color": { - "type": "string" - }, - "fallback": { - "type": "string" - }, - "fields": { - "description": "A list of Slack fields that are sent with each notification.", - "items": { - "description": "SlackField configures a single Slack field that is sent with each notification.\nEach field must contain a title, value, and optionally, a boolean value to indicate if the field\nis short enough to be displayed next to other fields designated as short.\nSee https://api.slack.com/docs/message-attachments#fields for more information.", - "properties": { - "short": { - "type": "boolean" - }, - "title": { - "minLength": 1, - "type": "string" - }, - "value": { - "minLength": 1, - "type": "string" - } - }, - "required": [ - "title", - "value" - ], - "type": "object" - }, - "type": "array" - }, - "footer": { - "type": "string" - }, - "httpConfig": { - "description": "HTTP client configuration.", - "properties": { - "authorization": { - "description": "Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "followRedirects": { - "description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "oauth2": { - "description": "OAuth2 client credentials used to fetch a token for the targets.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyURL": { - "description": "Optional proxy URL.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration for the client.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "iconEmoji": { - "type": "string" - }, - "iconURL": { - "type": "string" - }, - "imageURL": { - "type": "string" - }, - "linkNames": { - "type": "boolean" - }, - "mrkdwnIn": { - "items": { - "type": "string" - }, - "type": "array" - }, - "pretext": { - "type": "string" - }, - "sendResolved": { - "description": "Whether or not to notify about resolved alerts.", - "type": "boolean" - }, - "shortFields": { - "type": "boolean" - }, - "text": { - "type": "string" - }, - "thumbURL": { - "type": "string" - }, - "title": { - "type": "string" - }, - "titleLink": { - "type": "string" - }, - "username": { - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "snsConfigs": { - "description": "List of SNS configurations", - "items": { - "description": "SNSConfig configures notifications via AWS SNS.\nSee https://prometheus.io/docs/alerting/latest/configuration/#sns_configs", - "properties": { - "apiURL": { - "description": "The SNS API URL i.e. https://sns.us-east-2.amazonaws.com.\nIf not specified, the SNS API URL from the SNS SDK will be used.", - "type": "string" - }, - "attributes": { - "additionalProperties": { - "type": "string" - }, - "description": "SNS message attributes.", - "type": "object" - }, - "httpConfig": { - "description": "HTTP client configuration.", - "properties": { - "authorization": { - "description": "Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "followRedirects": { - "description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "oauth2": { - "description": "OAuth2 client credentials used to fetch a token for the targets.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyURL": { - "description": "Optional proxy URL.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration for the client.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "message": { - "description": "The message content of the SNS notification.", - "type": "string" - }, - "phoneNumber": { - "description": "Phone number if message is delivered via SMS in E.164 format.\nIf you don't specify this value, you must specify a value for the TopicARN or TargetARN.", - "type": "string" - }, - "sendResolved": { - "description": "Whether or not to notify about resolved alerts.", - "type": "boolean" - }, - "sigv4": { - "description": "Configures AWS's Signature Verification 4 signing process to sign requests.", - "properties": { - "accessKey": { - "description": "AccessKey is the AWS API key. If not specified, the environment variable\n`AWS_ACCESS_KEY_ID` is used.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "profile": { - "description": "Profile is the named AWS profile used to authenticate.", - "type": "string" - }, - "region": { - "description": "Region is the AWS region. If blank, the region from the default credentials chain used.", - "type": "string" - }, - "roleArn": { - "description": "RoleArn is the named AWS profile used to authenticate.", - "type": "string" - }, - "secretKey": { - "description": "SecretKey is the AWS API secret. If not specified, the environment\nvariable `AWS_SECRET_ACCESS_KEY` is used.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "subject": { - "description": "Subject line when the message is delivered to email endpoints.", - "type": "string" - }, - "targetARN": { - "description": "The mobile platform endpoint ARN if message is delivered via mobile notifications.\nIf you don't specify this value, you must specify a value for the topic_arn or PhoneNumber.", - "type": "string" - }, - "topicARN": { - "description": "SNS topic ARN, i.e. arn:aws:sns:us-east-2:698519295917:My-Topic\nIf you don't specify this value, you must specify a value for the PhoneNumber or TargetARN.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "telegramConfigs": { - "description": "List of Telegram configurations.", - "items": { - "description": "TelegramConfig configures notifications via Telegram.\nSee https://prometheus.io/docs/alerting/latest/configuration/#telegram_config", - "properties": { - "apiURL": { - "description": "The Telegram API URL i.e. https://api.telegram.org.\nIf not specified, default API URL will be used.", - "type": "string" - }, - "botToken": { - "description": "Telegram bot token. It is mutually exclusive with `botTokenFile`.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.\n\nEither `botToken` or `botTokenFile` is required.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "botTokenFile": { - "description": "File to read the Telegram bot token from. It is mutually exclusive with `botToken`.\nEither `botToken` or `botTokenFile` is required.\n\nIt requires Alertmanager >= v0.26.0.", - "type": "string" - }, - "chatID": { - "description": "The Telegram chat ID.", - "format": "int64", - "type": "integer" - }, - "disableNotifications": { - "description": "Disable telegram notifications", - "type": "boolean" - }, - "httpConfig": { - "description": "HTTP client configuration.", - "properties": { - "authorization": { - "description": "Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "followRedirects": { - "description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "oauth2": { - "description": "OAuth2 client credentials used to fetch a token for the targets.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyURL": { - "description": "Optional proxy URL.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration for the client.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "message": { - "description": "Message template", - "type": "string" - }, - "parseMode": { - "description": "Parse mode for telegram message", - "enum": [ - "MarkdownV2", - "Markdown", - "HTML" - ], - "type": "string" - }, - "sendResolved": { - "description": "Whether to notify about resolved alerts.", - "type": "boolean" - } - }, - "required": [ - "chatID" - ], - "type": "object" - }, - "type": "array" - }, - "victoropsConfigs": { - "description": "List of VictorOps configurations.", - "items": { - "description": "VictorOpsConfig configures notifications via VictorOps.\nSee https://prometheus.io/docs/alerting/latest/configuration/#victorops_config", - "properties": { - "apiKey": { - "description": "The secret's key that contains the API key to use when talking to the VictorOps API.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "apiUrl": { - "description": "The VictorOps API URL.", - "type": "string" - }, - "customFields": { - "description": "Additional custom fields for notification.", - "items": { - "description": "KeyValue defines a (key, value) tuple.", - "properties": { - "key": { - "description": "Key of the tuple.", - "minLength": 1, - "type": "string" - }, - "value": { - "description": "Value of the tuple.", - "type": "string" - } - }, - "required": [ - "key", - "value" - ], - "type": "object" - }, - "type": "array" - }, - "entityDisplayName": { - "description": "Contains summary of the alerted problem.", - "type": "string" - }, - "httpConfig": { - "description": "The HTTP client's configuration.", - "properties": { - "authorization": { - "description": "Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "followRedirects": { - "description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "oauth2": { - "description": "OAuth2 client credentials used to fetch a token for the targets.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyURL": { - "description": "Optional proxy URL.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration for the client.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "messageType": { - "description": "Describes the behavior of the alert (CRITICAL, WARNING, INFO).", - "type": "string" - }, - "monitoringTool": { - "description": "The monitoring tool the state message is from.", - "type": "string" - }, - "routingKey": { - "description": "A key used to map the alert to a team.", - "type": "string" - }, - "sendResolved": { - "description": "Whether or not to notify about resolved alerts.", - "type": "boolean" - }, - "stateMessage": { - "description": "Contains long explanation of the alerted problem.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "webexConfigs": { - "description": "List of Webex configurations.", - "items": { - "description": "WebexConfig configures notification via Cisco Webex\nSee https://prometheus.io/docs/alerting/latest/configuration/#webex_config", - "properties": { - "apiURL": { - "description": "The Webex Teams API URL i.e. https://webexapis.com/v1/messages\nProvide if different from the default API URL.", - "pattern": "^https?://.+$", - "type": "string" - }, - "httpConfig": { - "description": "The HTTP client's configuration.\nYou must supply the bot token via the `httpConfig.authorization` field.", - "properties": { - "authorization": { - "description": "Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "followRedirects": { - "description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "oauth2": { - "description": "OAuth2 client credentials used to fetch a token for the targets.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyURL": { - "description": "Optional proxy URL.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration for the client.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "message": { - "description": "Message template", - "type": "string" - }, - "roomID": { - "description": "ID of the Webex Teams room where to send the messages.", - "minLength": 1, - "type": "string" - }, - "sendResolved": { - "description": "Whether to notify about resolved alerts.", - "type": "boolean" - } - }, - "required": [ - "roomID" - ], - "type": "object" - }, - "type": "array" - }, - "webhookConfigs": { - "description": "List of webhook configurations.", - "items": { - "description": "WebhookConfig configures notifications via a generic receiver supporting the webhook payload.\nSee https://prometheus.io/docs/alerting/latest/configuration/#webhook_config", - "properties": { - "httpConfig": { - "description": "HTTP client configuration.", - "properties": { - "authorization": { - "description": "Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "followRedirects": { - "description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "oauth2": { - "description": "OAuth2 client credentials used to fetch a token for the targets.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyURL": { - "description": "Optional proxy URL.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration for the client.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "maxAlerts": { - "description": "Maximum number of alerts to be sent per webhook message. When 0, all alerts are included.", - "format": "int32", - "minimum": 0, - "type": "integer" - }, - "sendResolved": { - "description": "Whether or not to notify about resolved alerts.", - "type": "boolean" - }, - "url": { - "description": "The URL to send HTTP POST requests to. `urlSecret` takes precedence over\n`url`. One of `urlSecret` and `url` should be defined.", - "type": "string" - }, - "urlSecret": { - "description": "The secret's key that contains the webhook URL to send HTTP requests to.\n`urlSecret` takes precedence over `url`. One of `urlSecret` and `url`\nshould be defined.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "type": "array" - }, - "wechatConfigs": { - "description": "List of WeChat configurations.", - "items": { - "description": "WeChatConfig configures notifications via WeChat.\nSee https://prometheus.io/docs/alerting/latest/configuration/#wechat_config", - "properties": { - "agentID": { - "type": "string" - }, - "apiSecret": { - "description": "The secret's key that contains the WeChat API key.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "apiURL": { - "description": "The WeChat API URL.", - "type": "string" - }, - "corpID": { - "description": "The corp id for authentication.", - "type": "string" - }, - "httpConfig": { - "description": "HTTP client configuration.", - "properties": { - "authorization": { - "description": "Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "followRedirects": { - "description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "oauth2": { - "description": "OAuth2 client credentials used to fetch a token for the targets.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyURL": { - "description": "Optional proxy URL.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration for the client.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "message": { - "description": "API request data as defined by the WeChat API.", - "type": "string" - }, - "messageType": { - "type": "string" - }, - "sendResolved": { - "description": "Whether or not to notify about resolved alerts.", - "type": "boolean" - }, - "toParty": { - "type": "string" - }, - "toTag": { - "type": "string" - }, - "toUser": { - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "route": { - "description": "The Alertmanager route definition for alerts matching the resource's\nnamespace. If present, it will be added to the generated Alertmanager\nconfiguration as a first-level route.", - "properties": { - "activeTimeIntervals": { - "description": "ActiveTimeIntervals is a list of MuteTimeInterval names when this route should be active.", - "items": { - "type": "string" - }, - "type": "array" - }, - "continue": { - "description": "Boolean indicating whether an alert should continue matching subsequent\nsibling nodes. It will always be overridden to true for the first-level\nroute by the Prometheus operator.", - "type": "boolean" - }, - "groupBy": { - "description": "List of labels to group by.\nLabels must not be repeated (unique list).\nSpecial label \"...\" (aggregate by all possible labels), if provided, must be the only element in the list.", - "items": { - "type": "string" - }, - "type": "array" - }, - "groupInterval": { - "description": "How long to wait before sending an updated notification.\nMust match the regular expression`^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$`\nExample: \"5m\"", - "type": "string" - }, - "groupWait": { - "description": "How long to wait before sending the initial notification.\nMust match the regular expression`^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$`\nExample: \"30s\"", - "type": "string" - }, - "matchers": { - "description": "List of matchers that the alert's labels should match. For the first\nlevel route, the operator removes any existing equality and regexp\nmatcher on the `namespace` label and adds a `namespace: ` matcher.", - "items": { - "description": "Matcher defines how to match on alert's labels.", - "properties": { - "matchType": { - "description": "Match operation available with AlertManager >= v0.22.0 and\ntakes precedence over Regex (deprecated) if non-empty.", - "enum": [ - "!=", - "=", - "=~", - "!~" - ], - "type": "string" - }, - "name": { - "description": "Label to match.", - "minLength": 1, - "type": "string" - }, - "regex": { - "description": "Whether to match on equality (false) or regular-expression (true).\nDeprecated: for AlertManager >= v0.22.0, `matchType` should be used instead.", - "type": "boolean" - }, - "value": { - "description": "Label value to match.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "muteTimeIntervals": { - "description": "Note: this comment applies to the field definition above but appears\nbelow otherwise it gets included in the generated manifest.\nCRD schema doesn't support self-referential types for now (see\nhttps://github.com/kubernetes/kubernetes/issues/62872). We have to use\nan alternative type to circumvent the limitation. The downside is that\nthe Kube API can't validate the data beyond the fact that it is a valid\nJSON representation.\nMuteTimeIntervals is a list of MuteTimeInterval names that will mute this route when matched,", - "items": { - "type": "string" - }, - "type": "array" - }, - "receiver": { - "description": "Name of the receiver for this route. If not empty, it should be listed in\nthe `receivers` field.", - "type": "string" - }, - "repeatInterval": { - "description": "How long to wait before repeating the last notification.\nMust match the regular expression`^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$`\nExample: \"4h\"", - "type": "string" - }, - "routes": { - "description": "Child routes.", - "items": { - "x-kubernetes-preserve-unknown-fields": true - }, - "type": "array" - } - }, - "type": "object" - } - }, - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "served": true, - "storage": true - } - ] - } -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/alertmanagerconfigs-v1beta1-crd.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/alertmanagerconfigs-v1beta1-crd.libsonnet deleted file mode 100644 index 84c6f3c03..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/alertmanagerconfigs-v1beta1-crd.libsonnet +++ /dev/null @@ -1,8726 +0,0 @@ -// Code generated using 'make generate-crds'. DO NOT EDIT. -{ spec+: { versions+: [ - { - name: 'v1beta1', - schema: { - openAPIV3Schema: { - description: 'The `AlertmanagerConfig` custom resource definition (CRD) defines how `Alertmanager` objects process Prometheus alerts. It allows to specify alert grouping and routing, notification receivers and inhibition rules.\n\n`Alertmanager` objects select `AlertmanagerConfig` objects using label and namespace selectors.', - properties: { - apiVersion: { - description: 'APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources', - type: 'string', - }, - kind: { - description: 'Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds', - type: 'string', - }, - metadata: { - type: 'object', - }, - spec: { - description: 'AlertmanagerConfigSpec is a specification of the desired behavior of the Alertmanager configuration.\nBy definition, the Alertmanager configuration only applies to alerts for which\nthe `namespace` label is equal to the namespace of the AlertmanagerConfig resource.', - properties: { - inhibitRules: { - description: "List of inhibition rules. The rules will only apply to alerts matching\nthe resource's namespace.", - items: { - description: 'InhibitRule defines an inhibition rule that allows to mute alerts when other\nalerts are already firing.\nSee https://prometheus.io/docs/alerting/latest/configuration/#inhibit_rule', - properties: { - equal: { - description: 'Labels that must have an equal value in the source and target alert for\nthe inhibition to take effect.', - items: { - type: 'string', - }, - type: 'array', - }, - sourceMatch: { - description: "Matchers for which one or more alerts have to exist for the inhibition\nto take effect. The operator enforces that the alert matches the\nresource's namespace.", - items: { - description: "Matcher defines how to match on alert's labels.", - properties: { - matchType: { - description: 'Match operator, one of `=` (equal to), `!=` (not equal to), `=~` (regex\nmatch) or `!~` (not regex match).\nNegative operators (`!=` and `!~`) require Alertmanager >= v0.22.0.', - enum: [ - '!=', - '=', - '=~', - '!~', - ], - type: 'string', - }, - name: { - description: 'Label to match.', - minLength: 1, - type: 'string', - }, - value: { - description: 'Label value to match.', - type: 'string', - }, - }, - required: [ - 'name', - ], - type: 'object', - }, - type: 'array', - }, - targetMatch: { - description: "Matchers that have to be fulfilled in the alerts to be muted. The\noperator enforces that the alert matches the resource's namespace.", - items: { - description: "Matcher defines how to match on alert's labels.", - properties: { - matchType: { - description: 'Match operator, one of `=` (equal to), `!=` (not equal to), `=~` (regex\nmatch) or `!~` (not regex match).\nNegative operators (`!=` and `!~`) require Alertmanager >= v0.22.0.', - enum: [ - '!=', - '=', - '=~', - '!~', - ], - type: 'string', - }, - name: { - description: 'Label to match.', - minLength: 1, - type: 'string', - }, - value: { - description: 'Label value to match.', - type: 'string', - }, - }, - required: [ - 'name', - ], - type: 'object', - }, - type: 'array', - }, - }, - type: 'object', - }, - type: 'array', - }, - receivers: { - description: 'List of receivers.', - items: { - description: 'Receiver defines one or more notification integrations.', - properties: { - discordConfigs: { - description: 'List of Slack configurations.', - items: { - description: 'DiscordConfig configures notifications via Discord.\nSee https://prometheus.io/docs/alerting/latest/configuration/#discord_config', - properties: { - apiURL: { - description: "The secret's key that contains the Discord webhook URL.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - httpConfig: { - description: 'HTTP client configuration.', - properties: { - authorization: { - description: 'Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.', - properties: { - credentials: { - description: 'Selects a key of a Secret in the namespace that contains the credentials for authentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: { - description: 'Defines the authentication type. The value is case-insensitive.\n\n"Basic" is not a supported value.\n\nDefault: "Bearer"', - type: 'string', - }, - }, - type: 'object', - }, - basicAuth: { - description: 'BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.', - properties: { - password: { - description: '`password` specifies a key of a Secret containing the password for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - username: { - description: '`username` specifies a key of a Secret containing the username for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - bearerTokenSecret: { - description: "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - followRedirects: { - description: 'FollowRedirects specifies whether the client should follow HTTP 3xx redirects.', - type: 'boolean', - }, - oauth2: { - description: 'OAuth2 client credentials used to fetch a token for the targets.', - properties: { - clientId: { - description: "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - clientSecret: { - description: "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - endpointParams: { - additionalProperties: { - type: 'string', - }, - description: '`endpointParams` configures the HTTP parameters to append to the token\nURL.', - type: 'object', - }, - noProxy: { - description: '`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.', - type: 'string', - }, - proxyConnectHeader: { - additionalProperties: { - items: { - description: 'SecretKeySelector selects a key of a Secret.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: 'array', - }, - description: 'ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.', - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - proxyFromEnvironment: { - description: 'Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.', - type: 'boolean', - }, - proxyUrl: { - description: '`proxyURL` defines the HTTP proxy server to use.', - pattern: '^http(s)?://.+$', - type: 'string', - }, - scopes: { - description: '`scopes` defines the OAuth2 scopes used for the token request.', - items: { - type: 'string', - }, - type: 'array', - }, - tlsConfig: { - description: 'TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - tokenUrl: { - description: '`tokenURL` configures the URL to fetch the token from.', - minLength: 1, - type: 'string', - }, - }, - required: [ - 'clientId', - 'clientSecret', - 'tokenUrl', - ], - type: 'object', - }, - proxyURL: { - description: 'Optional proxy URL.', - type: 'string', - }, - tlsConfig: { - description: 'TLS configuration for the client.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - }, - type: 'object', - }, - message: { - description: "The template of the message's body.", - type: 'string', - }, - sendResolved: { - description: 'Whether or not to notify about resolved alerts.', - type: 'boolean', - }, - title: { - description: "The template of the message's title.", - type: 'string', - }, - }, - required: [ - 'apiURL', - ], - type: 'object', - }, - type: 'array', - }, - emailConfigs: { - description: 'List of Email configurations.', - items: { - description: 'EmailConfig configures notifications via Email.', - properties: { - authIdentity: { - description: 'The identity to use for authentication.', - type: 'string', - }, - authPassword: { - description: "The secret's key that contains the password to use for authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - authSecret: { - description: "The secret's key that contains the CRAM-MD5 secret.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - authUsername: { - description: 'The username to use for authentication.', - type: 'string', - }, - from: { - description: 'The sender address.', - type: 'string', - }, - headers: { - description: 'Further headers email header key/value pairs. Overrides any headers\npreviously set by the notification implementation.', - items: { - description: 'KeyValue defines a (key, value) tuple.', - properties: { - key: { - description: 'Key of the tuple.', - minLength: 1, - type: 'string', - }, - value: { - description: 'Value of the tuple.', - type: 'string', - }, - }, - required: [ - 'key', - 'value', - ], - type: 'object', - }, - type: 'array', - }, - hello: { - description: 'The hostname to identify to the SMTP server.', - type: 'string', - }, - html: { - description: 'The HTML body of the email notification.', - type: 'string', - }, - requireTLS: { - description: 'The SMTP TLS requirement.\nNote that Go does not support unencrypted connections to remote SMTP endpoints.', - type: 'boolean', - }, - sendResolved: { - description: 'Whether or not to notify about resolved alerts.', - type: 'boolean', - }, - smarthost: { - description: 'The SMTP host and port through which emails are sent. E.g. example.com:25', - type: 'string', - }, - text: { - description: 'The text body of the email notification.', - type: 'string', - }, - tlsConfig: { - description: 'TLS configuration', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - to: { - description: 'The email address to send notifications to.', - type: 'string', - }, - }, - type: 'object', - }, - type: 'array', - }, - msteamsConfigs: { - description: 'List of MSTeams configurations.\nIt requires Alertmanager >= 0.26.0.', - items: { - description: 'MSTeamsConfig configures notifications via Microsoft Teams.\nIt requires Alertmanager >= 0.26.0.', - properties: { - httpConfig: { - description: 'HTTP client configuration.', - properties: { - authorization: { - description: 'Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.', - properties: { - credentials: { - description: 'Selects a key of a Secret in the namespace that contains the credentials for authentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: { - description: 'Defines the authentication type. The value is case-insensitive.\n\n"Basic" is not a supported value.\n\nDefault: "Bearer"', - type: 'string', - }, - }, - type: 'object', - }, - basicAuth: { - description: 'BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.', - properties: { - password: { - description: '`password` specifies a key of a Secret containing the password for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - username: { - description: '`username` specifies a key of a Secret containing the username for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - bearerTokenSecret: { - description: "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - followRedirects: { - description: 'FollowRedirects specifies whether the client should follow HTTP 3xx redirects.', - type: 'boolean', - }, - oauth2: { - description: 'OAuth2 client credentials used to fetch a token for the targets.', - properties: { - clientId: { - description: "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - clientSecret: { - description: "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - endpointParams: { - additionalProperties: { - type: 'string', - }, - description: '`endpointParams` configures the HTTP parameters to append to the token\nURL.', - type: 'object', - }, - noProxy: { - description: '`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.', - type: 'string', - }, - proxyConnectHeader: { - additionalProperties: { - items: { - description: 'SecretKeySelector selects a key of a Secret.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: 'array', - }, - description: 'ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.', - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - proxyFromEnvironment: { - description: 'Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.', - type: 'boolean', - }, - proxyUrl: { - description: '`proxyURL` defines the HTTP proxy server to use.', - pattern: '^http(s)?://.+$', - type: 'string', - }, - scopes: { - description: '`scopes` defines the OAuth2 scopes used for the token request.', - items: { - type: 'string', - }, - type: 'array', - }, - tlsConfig: { - description: 'TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - tokenUrl: { - description: '`tokenURL` configures the URL to fetch the token from.', - minLength: 1, - type: 'string', - }, - }, - required: [ - 'clientId', - 'clientSecret', - 'tokenUrl', - ], - type: 'object', - }, - proxyURL: { - description: 'Optional proxy URL.', - type: 'string', - }, - tlsConfig: { - description: 'TLS configuration for the client.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - }, - type: 'object', - }, - sendResolved: { - description: 'Whether to notify about resolved alerts.', - type: 'boolean', - }, - summary: { - description: 'Message summary template.\nIt requires Alertmanager >= 0.27.0.', - type: 'string', - }, - text: { - description: 'Message body template.', - type: 'string', - }, - title: { - description: 'Message title template.', - type: 'string', - }, - webhookUrl: { - description: 'MSTeams webhook URL.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - required: [ - 'webhookUrl', - ], - type: 'object', - }, - type: 'array', - }, - name: { - description: 'Name of the receiver. Must be unique across all items from the list.', - minLength: 1, - type: 'string', - }, - opsgenieConfigs: { - description: 'List of OpsGenie configurations.', - items: { - description: 'OpsGenieConfig configures notifications via OpsGenie.\nSee https://prometheus.io/docs/alerting/latest/configuration/#opsgenie_config', - properties: { - actions: { - description: 'Comma separated list of actions that will be available for the alert.', - type: 'string', - }, - apiKey: { - description: "The secret's key that contains the OpsGenie API key.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - apiURL: { - description: 'The URL to send OpsGenie API requests to.', - type: 'string', - }, - description: { - description: 'Description of the incident.', - type: 'string', - }, - details: { - description: 'A set of arbitrary key/value pairs that provide further detail about the incident.', - items: { - description: 'KeyValue defines a (key, value) tuple.', - properties: { - key: { - description: 'Key of the tuple.', - minLength: 1, - type: 'string', - }, - value: { - description: 'Value of the tuple.', - type: 'string', - }, - }, - required: [ - 'key', - 'value', - ], - type: 'object', - }, - type: 'array', - }, - entity: { - description: 'Optional field that can be used to specify which domain alert is related to.', - type: 'string', - }, - httpConfig: { - description: 'HTTP client configuration.', - properties: { - authorization: { - description: 'Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.', - properties: { - credentials: { - description: 'Selects a key of a Secret in the namespace that contains the credentials for authentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: { - description: 'Defines the authentication type. The value is case-insensitive.\n\n"Basic" is not a supported value.\n\nDefault: "Bearer"', - type: 'string', - }, - }, - type: 'object', - }, - basicAuth: { - description: 'BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.', - properties: { - password: { - description: '`password` specifies a key of a Secret containing the password for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - username: { - description: '`username` specifies a key of a Secret containing the username for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - bearerTokenSecret: { - description: "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - followRedirects: { - description: 'FollowRedirects specifies whether the client should follow HTTP 3xx redirects.', - type: 'boolean', - }, - oauth2: { - description: 'OAuth2 client credentials used to fetch a token for the targets.', - properties: { - clientId: { - description: "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - clientSecret: { - description: "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - endpointParams: { - additionalProperties: { - type: 'string', - }, - description: '`endpointParams` configures the HTTP parameters to append to the token\nURL.', - type: 'object', - }, - noProxy: { - description: '`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.', - type: 'string', - }, - proxyConnectHeader: { - additionalProperties: { - items: { - description: 'SecretKeySelector selects a key of a Secret.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: 'array', - }, - description: 'ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.', - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - proxyFromEnvironment: { - description: 'Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.', - type: 'boolean', - }, - proxyUrl: { - description: '`proxyURL` defines the HTTP proxy server to use.', - pattern: '^http(s)?://.+$', - type: 'string', - }, - scopes: { - description: '`scopes` defines the OAuth2 scopes used for the token request.', - items: { - type: 'string', - }, - type: 'array', - }, - tlsConfig: { - description: 'TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - tokenUrl: { - description: '`tokenURL` configures the URL to fetch the token from.', - minLength: 1, - type: 'string', - }, - }, - required: [ - 'clientId', - 'clientSecret', - 'tokenUrl', - ], - type: 'object', - }, - proxyURL: { - description: 'Optional proxy URL.', - type: 'string', - }, - tlsConfig: { - description: 'TLS configuration for the client.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - }, - type: 'object', - }, - message: { - description: 'Alert text limited to 130 characters.', - type: 'string', - }, - note: { - description: 'Additional alert note.', - type: 'string', - }, - priority: { - description: 'Priority level of alert. Possible values are P1, P2, P3, P4, and P5.', - type: 'string', - }, - responders: { - description: 'List of responders responsible for notifications.', - items: { - description: 'OpsGenieConfigResponder defines a responder to an incident.\nOne of `id`, `name` or `username` has to be defined.', - properties: { - id: { - description: 'ID of the responder.', - type: 'string', - }, - name: { - description: 'Name of the responder.', - type: 'string', - }, - type: { - description: 'Type of responder.', - enum: [ - 'team', - 'teams', - 'user', - 'escalation', - 'schedule', - ], - minLength: 1, - type: 'string', - }, - username: { - description: 'Username of the responder.', - type: 'string', - }, - }, - required: [ - 'type', - ], - type: 'object', - }, - type: 'array', - }, - sendResolved: { - description: 'Whether or not to notify about resolved alerts.', - type: 'boolean', - }, - source: { - description: 'Backlink to the sender of the notification.', - type: 'string', - }, - tags: { - description: 'Comma separated list of tags attached to the notifications.', - type: 'string', - }, - }, - type: 'object', - }, - type: 'array', - }, - pagerdutyConfigs: { - description: 'List of PagerDuty configurations.', - items: { - description: 'PagerDutyConfig configures notifications via PagerDuty.\nSee https://prometheus.io/docs/alerting/latest/configuration/#pagerduty_config', - properties: { - class: { - description: 'The class/type of the event.', - type: 'string', - }, - client: { - description: 'Client identification.', - type: 'string', - }, - clientURL: { - description: 'Backlink to the sender of notification.', - type: 'string', - }, - component: { - description: 'The part or component of the affected system that is broken.', - type: 'string', - }, - description: { - description: 'Description of the incident.', - type: 'string', - }, - details: { - description: 'Arbitrary key/value pairs that provide further detail about the incident.', - items: { - description: 'KeyValue defines a (key, value) tuple.', - properties: { - key: { - description: 'Key of the tuple.', - minLength: 1, - type: 'string', - }, - value: { - description: 'Value of the tuple.', - type: 'string', - }, - }, - required: [ - 'key', - 'value', - ], - type: 'object', - }, - type: 'array', - }, - group: { - description: 'A cluster or grouping of sources.', - type: 'string', - }, - httpConfig: { - description: 'HTTP client configuration.', - properties: { - authorization: { - description: 'Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.', - properties: { - credentials: { - description: 'Selects a key of a Secret in the namespace that contains the credentials for authentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: { - description: 'Defines the authentication type. The value is case-insensitive.\n\n"Basic" is not a supported value.\n\nDefault: "Bearer"', - type: 'string', - }, - }, - type: 'object', - }, - basicAuth: { - description: 'BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.', - properties: { - password: { - description: '`password` specifies a key of a Secret containing the password for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - username: { - description: '`username` specifies a key of a Secret containing the username for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - bearerTokenSecret: { - description: "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - followRedirects: { - description: 'FollowRedirects specifies whether the client should follow HTTP 3xx redirects.', - type: 'boolean', - }, - oauth2: { - description: 'OAuth2 client credentials used to fetch a token for the targets.', - properties: { - clientId: { - description: "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - clientSecret: { - description: "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - endpointParams: { - additionalProperties: { - type: 'string', - }, - description: '`endpointParams` configures the HTTP parameters to append to the token\nURL.', - type: 'object', - }, - noProxy: { - description: '`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.', - type: 'string', - }, - proxyConnectHeader: { - additionalProperties: { - items: { - description: 'SecretKeySelector selects a key of a Secret.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: 'array', - }, - description: 'ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.', - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - proxyFromEnvironment: { - description: 'Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.', - type: 'boolean', - }, - proxyUrl: { - description: '`proxyURL` defines the HTTP proxy server to use.', - pattern: '^http(s)?://.+$', - type: 'string', - }, - scopes: { - description: '`scopes` defines the OAuth2 scopes used for the token request.', - items: { - type: 'string', - }, - type: 'array', - }, - tlsConfig: { - description: 'TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - tokenUrl: { - description: '`tokenURL` configures the URL to fetch the token from.', - minLength: 1, - type: 'string', - }, - }, - required: [ - 'clientId', - 'clientSecret', - 'tokenUrl', - ], - type: 'object', - }, - proxyURL: { - description: 'Optional proxy URL.', - type: 'string', - }, - tlsConfig: { - description: 'TLS configuration for the client.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - }, - type: 'object', - }, - pagerDutyImageConfigs: { - description: 'A list of image details to attach that provide further detail about an incident.', - items: { - description: 'PagerDutyImageConfig attaches images to an incident', - properties: { - alt: { - description: 'Alt is the optional alternative text for the image.', - type: 'string', - }, - href: { - description: 'Optional URL; makes the image a clickable link.', - type: 'string', - }, - src: { - description: 'Src of the image being attached to the incident', - type: 'string', - }, - }, - type: 'object', - }, - type: 'array', - }, - pagerDutyLinkConfigs: { - description: 'A list of link details to attach that provide further detail about an incident.', - items: { - description: 'PagerDutyLinkConfig attaches text links to an incident', - properties: { - alt: { - description: "Text that describes the purpose of the link, and can be used as the link's text.", - type: 'string', - }, - href: { - description: 'Href is the URL of the link to be attached', - type: 'string', - }, - }, - type: 'object', - }, - type: 'array', - }, - routingKey: { - description: "The secret's key that contains the PagerDuty integration key (when using\nEvents API v2). Either this field or `serviceKey` needs to be defined.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - sendResolved: { - description: 'Whether or not to notify about resolved alerts.', - type: 'boolean', - }, - serviceKey: { - description: "The secret's key that contains the PagerDuty service key (when using\nintegration type \"Prometheus\"). Either this field or `routingKey` needs to\nbe defined.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - severity: { - description: 'Severity of the incident.', - type: 'string', - }, - source: { - description: 'Unique location of the affected system.', - type: 'string', - }, - url: { - description: 'The URL to send requests to.', - type: 'string', - }, - }, - type: 'object', - }, - type: 'array', - }, - pushoverConfigs: { - description: 'List of Pushover configurations.', - items: { - description: 'PushoverConfig configures notifications via Pushover.\nSee https://prometheus.io/docs/alerting/latest/configuration/#pushover_config', - properties: { - device: { - description: 'The name of a device to send the notification to', - type: 'string', - }, - expire: { - description: 'How long your notification will continue to be retried for, unless the user\nacknowledges the notification.', - pattern: '^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$', - type: 'string', - }, - html: { - description: 'Whether notification message is HTML or plain text.', - type: 'boolean', - }, - httpConfig: { - description: 'HTTP client configuration.', - properties: { - authorization: { - description: 'Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.', - properties: { - credentials: { - description: 'Selects a key of a Secret in the namespace that contains the credentials for authentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: { - description: 'Defines the authentication type. The value is case-insensitive.\n\n"Basic" is not a supported value.\n\nDefault: "Bearer"', - type: 'string', - }, - }, - type: 'object', - }, - basicAuth: { - description: 'BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.', - properties: { - password: { - description: '`password` specifies a key of a Secret containing the password for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - username: { - description: '`username` specifies a key of a Secret containing the username for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - bearerTokenSecret: { - description: "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - followRedirects: { - description: 'FollowRedirects specifies whether the client should follow HTTP 3xx redirects.', - type: 'boolean', - }, - oauth2: { - description: 'OAuth2 client credentials used to fetch a token for the targets.', - properties: { - clientId: { - description: "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - clientSecret: { - description: "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - endpointParams: { - additionalProperties: { - type: 'string', - }, - description: '`endpointParams` configures the HTTP parameters to append to the token\nURL.', - type: 'object', - }, - noProxy: { - description: '`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.', - type: 'string', - }, - proxyConnectHeader: { - additionalProperties: { - items: { - description: 'SecretKeySelector selects a key of a Secret.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: 'array', - }, - description: 'ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.', - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - proxyFromEnvironment: { - description: 'Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.', - type: 'boolean', - }, - proxyUrl: { - description: '`proxyURL` defines the HTTP proxy server to use.', - pattern: '^http(s)?://.+$', - type: 'string', - }, - scopes: { - description: '`scopes` defines the OAuth2 scopes used for the token request.', - items: { - type: 'string', - }, - type: 'array', - }, - tlsConfig: { - description: 'TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - tokenUrl: { - description: '`tokenURL` configures the URL to fetch the token from.', - minLength: 1, - type: 'string', - }, - }, - required: [ - 'clientId', - 'clientSecret', - 'tokenUrl', - ], - type: 'object', - }, - proxyURL: { - description: 'Optional proxy URL.', - type: 'string', - }, - tlsConfig: { - description: 'TLS configuration for the client.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - }, - type: 'object', - }, - message: { - description: 'Notification message.', - type: 'string', - }, - priority: { - description: 'Priority, see https://pushover.net/api#priority', - type: 'string', - }, - retry: { - description: 'How often the Pushover servers will send the same notification to the user.\nMust be at least 30 seconds.', - pattern: '^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$', - type: 'string', - }, - sendResolved: { - description: 'Whether or not to notify about resolved alerts.', - type: 'boolean', - }, - sound: { - description: "The name of one of the sounds supported by device clients to override the user's default sound choice", - type: 'string', - }, - title: { - description: 'Notification title.', - type: 'string', - }, - token: { - description: "The secret's key that contains the registered application's API token, see https://pushover.net/apps.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.\nEither `token` or `tokenFile` is required.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - tokenFile: { - description: "The token file that contains the registered application's API token, see https://pushover.net/apps.\nEither `token` or `tokenFile` is required.\nIt requires Alertmanager >= v0.26.0.", - type: 'string', - }, - ttl: { - description: 'The time to live definition for the alert notification', - pattern: '^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$', - type: 'string', - }, - url: { - description: 'A supplementary URL shown alongside the message.', - type: 'string', - }, - urlTitle: { - description: 'A title for supplementary URL, otherwise just the URL is shown', - type: 'string', - }, - userKey: { - description: "The secret's key that contains the recipient user's user key.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.\nEither `userKey` or `userKeyFile` is required.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - userKeyFile: { - description: "The user key file that contains the recipient user's user key.\nEither `userKey` or `userKeyFile` is required.\nIt requires Alertmanager >= v0.26.0.", - type: 'string', - }, - }, - type: 'object', - }, - type: 'array', - }, - slackConfigs: { - description: 'List of Slack configurations.', - items: { - description: 'SlackConfig configures notifications via Slack.\nSee https://prometheus.io/docs/alerting/latest/configuration/#slack_config', - properties: { - actions: { - description: 'A list of Slack actions that are sent with each notification.', - items: { - description: 'SlackAction configures a single Slack action that is sent with each\nnotification.\nSee https://api.slack.com/docs/message-attachments#action_fields and\nhttps://api.slack.com/docs/message-buttons for more information.', - properties: { - confirm: { - description: 'SlackConfirmationField protect users from destructive actions or\nparticularly distinguished decisions by asking them to confirm their button\nclick one more time.\nSee https://api.slack.com/docs/interactive-message-field-guide#confirmation_fields\nfor more information.', - properties: { - dismissText: { - type: 'string', - }, - okText: { - type: 'string', - }, - text: { - minLength: 1, - type: 'string', - }, - title: { - type: 'string', - }, - }, - required: [ - 'text', - ], - type: 'object', - }, - name: { - type: 'string', - }, - style: { - type: 'string', - }, - text: { - minLength: 1, - type: 'string', - }, - type: { - minLength: 1, - type: 'string', - }, - url: { - type: 'string', - }, - value: { - type: 'string', - }, - }, - required: [ - 'text', - 'type', - ], - type: 'object', - }, - type: 'array', - }, - apiURL: { - description: "The secret's key that contains the Slack webhook URL.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - callbackId: { - type: 'string', - }, - channel: { - description: 'The channel or user to send notifications to.', - type: 'string', - }, - color: { - type: 'string', - }, - fallback: { - type: 'string', - }, - fields: { - description: 'A list of Slack fields that are sent with each notification.', - items: { - description: 'SlackField configures a single Slack field that is sent with each notification.\nEach field must contain a title, value, and optionally, a boolean value to indicate if the field\nis short enough to be displayed next to other fields designated as short.\nSee https://api.slack.com/docs/message-attachments#fields for more information.', - properties: { - short: { - type: 'boolean', - }, - title: { - minLength: 1, - type: 'string', - }, - value: { - minLength: 1, - type: 'string', - }, - }, - required: [ - 'title', - 'value', - ], - type: 'object', - }, - type: 'array', - }, - footer: { - type: 'string', - }, - httpConfig: { - description: 'HTTP client configuration.', - properties: { - authorization: { - description: 'Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.', - properties: { - credentials: { - description: 'Selects a key of a Secret in the namespace that contains the credentials for authentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: { - description: 'Defines the authentication type. The value is case-insensitive.\n\n"Basic" is not a supported value.\n\nDefault: "Bearer"', - type: 'string', - }, - }, - type: 'object', - }, - basicAuth: { - description: 'BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.', - properties: { - password: { - description: '`password` specifies a key of a Secret containing the password for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - username: { - description: '`username` specifies a key of a Secret containing the username for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - bearerTokenSecret: { - description: "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - followRedirects: { - description: 'FollowRedirects specifies whether the client should follow HTTP 3xx redirects.', - type: 'boolean', - }, - oauth2: { - description: 'OAuth2 client credentials used to fetch a token for the targets.', - properties: { - clientId: { - description: "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - clientSecret: { - description: "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - endpointParams: { - additionalProperties: { - type: 'string', - }, - description: '`endpointParams` configures the HTTP parameters to append to the token\nURL.', - type: 'object', - }, - noProxy: { - description: '`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.', - type: 'string', - }, - proxyConnectHeader: { - additionalProperties: { - items: { - description: 'SecretKeySelector selects a key of a Secret.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: 'array', - }, - description: 'ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.', - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - proxyFromEnvironment: { - description: 'Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.', - type: 'boolean', - }, - proxyUrl: { - description: '`proxyURL` defines the HTTP proxy server to use.', - pattern: '^http(s)?://.+$', - type: 'string', - }, - scopes: { - description: '`scopes` defines the OAuth2 scopes used for the token request.', - items: { - type: 'string', - }, - type: 'array', - }, - tlsConfig: { - description: 'TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - tokenUrl: { - description: '`tokenURL` configures the URL to fetch the token from.', - minLength: 1, - type: 'string', - }, - }, - required: [ - 'clientId', - 'clientSecret', - 'tokenUrl', - ], - type: 'object', - }, - proxyURL: { - description: 'Optional proxy URL.', - type: 'string', - }, - tlsConfig: { - description: 'TLS configuration for the client.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - }, - type: 'object', - }, - iconEmoji: { - type: 'string', - }, - iconURL: { - type: 'string', - }, - imageURL: { - type: 'string', - }, - linkNames: { - type: 'boolean', - }, - mrkdwnIn: { - items: { - type: 'string', - }, - type: 'array', - }, - pretext: { - type: 'string', - }, - sendResolved: { - description: 'Whether or not to notify about resolved alerts.', - type: 'boolean', - }, - shortFields: { - type: 'boolean', - }, - text: { - type: 'string', - }, - thumbURL: { - type: 'string', - }, - title: { - type: 'string', - }, - titleLink: { - type: 'string', - }, - username: { - type: 'string', - }, - }, - type: 'object', - }, - type: 'array', - }, - snsConfigs: { - description: 'List of SNS configurations', - items: { - description: 'SNSConfig configures notifications via AWS SNS.\nSee https://prometheus.io/docs/alerting/latest/configuration/#sns_configs', - properties: { - apiURL: { - description: 'The SNS API URL i.e. https://sns.us-east-2.amazonaws.com.\nIf not specified, the SNS API URL from the SNS SDK will be used.', - type: 'string', - }, - attributes: { - additionalProperties: { - type: 'string', - }, - description: 'SNS message attributes.', - type: 'object', - }, - httpConfig: { - description: 'HTTP client configuration.', - properties: { - authorization: { - description: 'Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.', - properties: { - credentials: { - description: 'Selects a key of a Secret in the namespace that contains the credentials for authentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: { - description: 'Defines the authentication type. The value is case-insensitive.\n\n"Basic" is not a supported value.\n\nDefault: "Bearer"', - type: 'string', - }, - }, - type: 'object', - }, - basicAuth: { - description: 'BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.', - properties: { - password: { - description: '`password` specifies a key of a Secret containing the password for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - username: { - description: '`username` specifies a key of a Secret containing the username for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - bearerTokenSecret: { - description: "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - followRedirects: { - description: 'FollowRedirects specifies whether the client should follow HTTP 3xx redirects.', - type: 'boolean', - }, - oauth2: { - description: 'OAuth2 client credentials used to fetch a token for the targets.', - properties: { - clientId: { - description: "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - clientSecret: { - description: "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - endpointParams: { - additionalProperties: { - type: 'string', - }, - description: '`endpointParams` configures the HTTP parameters to append to the token\nURL.', - type: 'object', - }, - noProxy: { - description: '`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.', - type: 'string', - }, - proxyConnectHeader: { - additionalProperties: { - items: { - description: 'SecretKeySelector selects a key of a Secret.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: 'array', - }, - description: 'ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.', - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - proxyFromEnvironment: { - description: 'Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.', - type: 'boolean', - }, - proxyUrl: { - description: '`proxyURL` defines the HTTP proxy server to use.', - pattern: '^http(s)?://.+$', - type: 'string', - }, - scopes: { - description: '`scopes` defines the OAuth2 scopes used for the token request.', - items: { - type: 'string', - }, - type: 'array', - }, - tlsConfig: { - description: 'TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - tokenUrl: { - description: '`tokenURL` configures the URL to fetch the token from.', - minLength: 1, - type: 'string', - }, - }, - required: [ - 'clientId', - 'clientSecret', - 'tokenUrl', - ], - type: 'object', - }, - proxyURL: { - description: 'Optional proxy URL.', - type: 'string', - }, - tlsConfig: { - description: 'TLS configuration for the client.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - }, - type: 'object', - }, - message: { - description: 'The message content of the SNS notification.', - type: 'string', - }, - phoneNumber: { - description: "Phone number if message is delivered via SMS in E.164 format.\nIf you don't specify this value, you must specify a value for the TopicARN or TargetARN.", - type: 'string', - }, - sendResolved: { - description: 'Whether or not to notify about resolved alerts.', - type: 'boolean', - }, - sigv4: { - description: "Configures AWS's Signature Verification 4 signing process to sign requests.", - properties: { - accessKey: { - description: 'AccessKey is the AWS API key. If not specified, the environment variable\n`AWS_ACCESS_KEY_ID` is used.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - profile: { - description: 'Profile is the named AWS profile used to authenticate.', - type: 'string', - }, - region: { - description: 'Region is the AWS region. If blank, the region from the default credentials chain used.', - type: 'string', - }, - roleArn: { - description: 'RoleArn is the named AWS profile used to authenticate.', - type: 'string', - }, - secretKey: { - description: 'SecretKey is the AWS API secret. If not specified, the environment\nvariable `AWS_SECRET_ACCESS_KEY` is used.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - subject: { - description: 'Subject line when the message is delivered to email endpoints.', - type: 'string', - }, - targetARN: { - description: "The mobile platform endpoint ARN if message is delivered via mobile notifications.\nIf you don't specify this value, you must specify a value for the topic_arn or PhoneNumber.", - type: 'string', - }, - topicARN: { - description: "SNS topic ARN, i.e. arn:aws:sns:us-east-2:698519295917:My-Topic\nIf you don't specify this value, you must specify a value for the PhoneNumber or TargetARN.", - type: 'string', - }, - }, - type: 'object', - }, - type: 'array', - }, - telegramConfigs: { - description: 'List of Telegram configurations.', - items: { - description: 'TelegramConfig configures notifications via Telegram.\nSee https://prometheus.io/docs/alerting/latest/configuration/#telegram_config', - properties: { - apiURL: { - description: 'The Telegram API URL i.e. https://api.telegram.org.\nIf not specified, default API URL will be used.', - type: 'string', - }, - botToken: { - description: 'Telegram bot token. It is mutually exclusive with `botTokenFile`.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.\n\nEither `botToken` or `botTokenFile` is required.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - botTokenFile: { - description: 'File to read the Telegram bot token from. It is mutually exclusive with `botToken`.\nEither `botToken` or `botTokenFile` is required.\n\nIt requires Alertmanager >= v0.26.0.', - type: 'string', - }, - chatID: { - description: 'The Telegram chat ID.', - format: 'int64', - type: 'integer', - }, - disableNotifications: { - description: 'Disable telegram notifications', - type: 'boolean', - }, - httpConfig: { - description: 'HTTP client configuration.', - properties: { - authorization: { - description: 'Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.', - properties: { - credentials: { - description: 'Selects a key of a Secret in the namespace that contains the credentials for authentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: { - description: 'Defines the authentication type. The value is case-insensitive.\n\n"Basic" is not a supported value.\n\nDefault: "Bearer"', - type: 'string', - }, - }, - type: 'object', - }, - basicAuth: { - description: 'BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.', - properties: { - password: { - description: '`password` specifies a key of a Secret containing the password for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - username: { - description: '`username` specifies a key of a Secret containing the username for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - bearerTokenSecret: { - description: "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - followRedirects: { - description: 'FollowRedirects specifies whether the client should follow HTTP 3xx redirects.', - type: 'boolean', - }, - oauth2: { - description: 'OAuth2 client credentials used to fetch a token for the targets.', - properties: { - clientId: { - description: "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - clientSecret: { - description: "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - endpointParams: { - additionalProperties: { - type: 'string', - }, - description: '`endpointParams` configures the HTTP parameters to append to the token\nURL.', - type: 'object', - }, - noProxy: { - description: '`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.', - type: 'string', - }, - proxyConnectHeader: { - additionalProperties: { - items: { - description: 'SecretKeySelector selects a key of a Secret.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: 'array', - }, - description: 'ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.', - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - proxyFromEnvironment: { - description: 'Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.', - type: 'boolean', - }, - proxyUrl: { - description: '`proxyURL` defines the HTTP proxy server to use.', - pattern: '^http(s)?://.+$', - type: 'string', - }, - scopes: { - description: '`scopes` defines the OAuth2 scopes used for the token request.', - items: { - type: 'string', - }, - type: 'array', - }, - tlsConfig: { - description: 'TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - tokenUrl: { - description: '`tokenURL` configures the URL to fetch the token from.', - minLength: 1, - type: 'string', - }, - }, - required: [ - 'clientId', - 'clientSecret', - 'tokenUrl', - ], - type: 'object', - }, - proxyURL: { - description: 'Optional proxy URL.', - type: 'string', - }, - tlsConfig: { - description: 'TLS configuration for the client.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - }, - type: 'object', - }, - message: { - description: 'Message template', - type: 'string', - }, - parseMode: { - description: 'Parse mode for telegram message', - enum: [ - 'MarkdownV2', - 'Markdown', - 'HTML', - ], - type: 'string', - }, - sendResolved: { - description: 'Whether to notify about resolved alerts.', - type: 'boolean', - }, - }, - required: [ - 'chatID', - ], - type: 'object', - }, - type: 'array', - }, - victoropsConfigs: { - description: 'List of VictorOps configurations.', - items: { - description: 'VictorOpsConfig configures notifications via VictorOps.\nSee https://prometheus.io/docs/alerting/latest/configuration/#victorops_config', - properties: { - apiKey: { - description: "The secret's key that contains the API key to use when talking to the VictorOps API.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - apiUrl: { - description: 'The VictorOps API URL.', - type: 'string', - }, - customFields: { - description: 'Additional custom fields for notification.', - items: { - description: 'KeyValue defines a (key, value) tuple.', - properties: { - key: { - description: 'Key of the tuple.', - minLength: 1, - type: 'string', - }, - value: { - description: 'Value of the tuple.', - type: 'string', - }, - }, - required: [ - 'key', - 'value', - ], - type: 'object', - }, - type: 'array', - }, - entityDisplayName: { - description: 'Contains summary of the alerted problem.', - type: 'string', - }, - httpConfig: { - description: "The HTTP client's configuration.", - properties: { - authorization: { - description: 'Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.', - properties: { - credentials: { - description: 'Selects a key of a Secret in the namespace that contains the credentials for authentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: { - description: 'Defines the authentication type. The value is case-insensitive.\n\n"Basic" is not a supported value.\n\nDefault: "Bearer"', - type: 'string', - }, - }, - type: 'object', - }, - basicAuth: { - description: 'BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.', - properties: { - password: { - description: '`password` specifies a key of a Secret containing the password for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - username: { - description: '`username` specifies a key of a Secret containing the username for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - bearerTokenSecret: { - description: "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - followRedirects: { - description: 'FollowRedirects specifies whether the client should follow HTTP 3xx redirects.', - type: 'boolean', - }, - oauth2: { - description: 'OAuth2 client credentials used to fetch a token for the targets.', - properties: { - clientId: { - description: "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - clientSecret: { - description: "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - endpointParams: { - additionalProperties: { - type: 'string', - }, - description: '`endpointParams` configures the HTTP parameters to append to the token\nURL.', - type: 'object', - }, - noProxy: { - description: '`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.', - type: 'string', - }, - proxyConnectHeader: { - additionalProperties: { - items: { - description: 'SecretKeySelector selects a key of a Secret.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: 'array', - }, - description: 'ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.', - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - proxyFromEnvironment: { - description: 'Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.', - type: 'boolean', - }, - proxyUrl: { - description: '`proxyURL` defines the HTTP proxy server to use.', - pattern: '^http(s)?://.+$', - type: 'string', - }, - scopes: { - description: '`scopes` defines the OAuth2 scopes used for the token request.', - items: { - type: 'string', - }, - type: 'array', - }, - tlsConfig: { - description: 'TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - tokenUrl: { - description: '`tokenURL` configures the URL to fetch the token from.', - minLength: 1, - type: 'string', - }, - }, - required: [ - 'clientId', - 'clientSecret', - 'tokenUrl', - ], - type: 'object', - }, - proxyURL: { - description: 'Optional proxy URL.', - type: 'string', - }, - tlsConfig: { - description: 'TLS configuration for the client.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - }, - type: 'object', - }, - messageType: { - description: 'Describes the behavior of the alert (CRITICAL, WARNING, INFO).', - type: 'string', - }, - monitoringTool: { - description: 'The monitoring tool the state message is from.', - type: 'string', - }, - routingKey: { - description: 'A key used to map the alert to a team.', - type: 'string', - }, - sendResolved: { - description: 'Whether or not to notify about resolved alerts.', - type: 'boolean', - }, - stateMessage: { - description: 'Contains long explanation of the alerted problem.', - type: 'string', - }, - }, - type: 'object', - }, - type: 'array', - }, - webexConfigs: { - description: 'List of Webex configurations.', - items: { - description: 'WebexConfig configures notification via Cisco Webex\nSee https://prometheus.io/docs/alerting/latest/configuration/#webex_config', - properties: { - apiURL: { - description: 'The Webex Teams API URL i.e. https://webexapis.com/v1/messages', - pattern: '^https?://.+$', - type: 'string', - }, - httpConfig: { - description: "The HTTP client's configuration.\nYou must use this configuration to supply the bot token as part of the HTTP `Authorization` header.", - properties: { - authorization: { - description: 'Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.', - properties: { - credentials: { - description: 'Selects a key of a Secret in the namespace that contains the credentials for authentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: { - description: 'Defines the authentication type. The value is case-insensitive.\n\n"Basic" is not a supported value.\n\nDefault: "Bearer"', - type: 'string', - }, - }, - type: 'object', - }, - basicAuth: { - description: 'BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.', - properties: { - password: { - description: '`password` specifies a key of a Secret containing the password for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - username: { - description: '`username` specifies a key of a Secret containing the username for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - bearerTokenSecret: { - description: "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - followRedirects: { - description: 'FollowRedirects specifies whether the client should follow HTTP 3xx redirects.', - type: 'boolean', - }, - oauth2: { - description: 'OAuth2 client credentials used to fetch a token for the targets.', - properties: { - clientId: { - description: "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - clientSecret: { - description: "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - endpointParams: { - additionalProperties: { - type: 'string', - }, - description: '`endpointParams` configures the HTTP parameters to append to the token\nURL.', - type: 'object', - }, - noProxy: { - description: '`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.', - type: 'string', - }, - proxyConnectHeader: { - additionalProperties: { - items: { - description: 'SecretKeySelector selects a key of a Secret.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: 'array', - }, - description: 'ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.', - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - proxyFromEnvironment: { - description: 'Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.', - type: 'boolean', - }, - proxyUrl: { - description: '`proxyURL` defines the HTTP proxy server to use.', - pattern: '^http(s)?://.+$', - type: 'string', - }, - scopes: { - description: '`scopes` defines the OAuth2 scopes used for the token request.', - items: { - type: 'string', - }, - type: 'array', - }, - tlsConfig: { - description: 'TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - tokenUrl: { - description: '`tokenURL` configures the URL to fetch the token from.', - minLength: 1, - type: 'string', - }, - }, - required: [ - 'clientId', - 'clientSecret', - 'tokenUrl', - ], - type: 'object', - }, - proxyURL: { - description: 'Optional proxy URL.', - type: 'string', - }, - tlsConfig: { - description: 'TLS configuration for the client.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - }, - type: 'object', - }, - message: { - description: 'Message template', - type: 'string', - }, - roomID: { - description: 'ID of the Webex Teams room where to send the messages.', - minLength: 1, - type: 'string', - }, - sendResolved: { - description: 'Whether to notify about resolved alerts.', - type: 'boolean', - }, - }, - required: [ - 'roomID', - ], - type: 'object', - }, - type: 'array', - }, - webhookConfigs: { - description: 'List of webhook configurations.', - items: { - description: 'WebhookConfig configures notifications via a generic receiver supporting the webhook payload.\nSee https://prometheus.io/docs/alerting/latest/configuration/#webhook_config', - properties: { - httpConfig: { - description: 'HTTP client configuration.', - properties: { - authorization: { - description: 'Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.', - properties: { - credentials: { - description: 'Selects a key of a Secret in the namespace that contains the credentials for authentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: { - description: 'Defines the authentication type. The value is case-insensitive.\n\n"Basic" is not a supported value.\n\nDefault: "Bearer"', - type: 'string', - }, - }, - type: 'object', - }, - basicAuth: { - description: 'BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.', - properties: { - password: { - description: '`password` specifies a key of a Secret containing the password for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - username: { - description: '`username` specifies a key of a Secret containing the username for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - bearerTokenSecret: { - description: "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - followRedirects: { - description: 'FollowRedirects specifies whether the client should follow HTTP 3xx redirects.', - type: 'boolean', - }, - oauth2: { - description: 'OAuth2 client credentials used to fetch a token for the targets.', - properties: { - clientId: { - description: "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - clientSecret: { - description: "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - endpointParams: { - additionalProperties: { - type: 'string', - }, - description: '`endpointParams` configures the HTTP parameters to append to the token\nURL.', - type: 'object', - }, - noProxy: { - description: '`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.', - type: 'string', - }, - proxyConnectHeader: { - additionalProperties: { - items: { - description: 'SecretKeySelector selects a key of a Secret.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: 'array', - }, - description: 'ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.', - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - proxyFromEnvironment: { - description: 'Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.', - type: 'boolean', - }, - proxyUrl: { - description: '`proxyURL` defines the HTTP proxy server to use.', - pattern: '^http(s)?://.+$', - type: 'string', - }, - scopes: { - description: '`scopes` defines the OAuth2 scopes used for the token request.', - items: { - type: 'string', - }, - type: 'array', - }, - tlsConfig: { - description: 'TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - tokenUrl: { - description: '`tokenURL` configures the URL to fetch the token from.', - minLength: 1, - type: 'string', - }, - }, - required: [ - 'clientId', - 'clientSecret', - 'tokenUrl', - ], - type: 'object', - }, - proxyURL: { - description: 'Optional proxy URL.', - type: 'string', - }, - tlsConfig: { - description: 'TLS configuration for the client.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - }, - type: 'object', - }, - maxAlerts: { - description: 'Maximum number of alerts to be sent per webhook message. When 0, all alerts are included.', - format: 'int32', - minimum: 0, - type: 'integer', - }, - sendResolved: { - description: 'Whether or not to notify about resolved alerts.', - type: 'boolean', - }, - url: { - description: 'The URL to send HTTP POST requests to. `urlSecret` takes precedence over\n`url`. One of `urlSecret` and `url` should be defined.', - type: 'string', - }, - urlSecret: { - description: "The secret's key that contains the webhook URL to send HTTP requests to.\n`urlSecret` takes precedence over `url`. One of `urlSecret` and `url`\nshould be defined.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - }, - type: 'object', - }, - type: 'array', - }, - wechatConfigs: { - description: 'List of WeChat configurations.', - items: { - description: 'WeChatConfig configures notifications via WeChat.\nSee https://prometheus.io/docs/alerting/latest/configuration/#wechat_config', - properties: { - agentID: { - type: 'string', - }, - apiSecret: { - description: "The secret's key that contains the WeChat API key.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - apiURL: { - description: 'The WeChat API URL.', - type: 'string', - }, - corpID: { - description: 'The corp id for authentication.', - type: 'string', - }, - httpConfig: { - description: 'HTTP client configuration.', - properties: { - authorization: { - description: 'Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.', - properties: { - credentials: { - description: 'Selects a key of a Secret in the namespace that contains the credentials for authentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: { - description: 'Defines the authentication type. The value is case-insensitive.\n\n"Basic" is not a supported value.\n\nDefault: "Bearer"', - type: 'string', - }, - }, - type: 'object', - }, - basicAuth: { - description: 'BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.', - properties: { - password: { - description: '`password` specifies a key of a Secret containing the password for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - username: { - description: '`username` specifies a key of a Secret containing the username for\nauthentication.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - bearerTokenSecret: { - description: "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the AlertmanagerConfig\nobject and accessible by the Prometheus Operator.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - minLength: 1, - type: 'string', - }, - name: { - description: "The name of the secret in the object's namespace to select from.", - minLength: 1, - type: 'string', - }, - }, - required: [ - 'key', - 'name', - ], - type: 'object', - }, - followRedirects: { - description: 'FollowRedirects specifies whether the client should follow HTTP 3xx redirects.', - type: 'boolean', - }, - oauth2: { - description: 'OAuth2 client credentials used to fetch a token for the targets.', - properties: { - clientId: { - description: "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - clientSecret: { - description: "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - endpointParams: { - additionalProperties: { - type: 'string', - }, - description: '`endpointParams` configures the HTTP parameters to append to the token\nURL.', - type: 'object', - }, - noProxy: { - description: '`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.', - type: 'string', - }, - proxyConnectHeader: { - additionalProperties: { - items: { - description: 'SecretKeySelector selects a key of a Secret.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - type: 'array', - }, - description: 'ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.', - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - proxyFromEnvironment: { - description: 'Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.', - type: 'boolean', - }, - proxyUrl: { - description: '`proxyURL` defines the HTTP proxy server to use.', - pattern: '^http(s)?://.+$', - type: 'string', - }, - scopes: { - description: '`scopes` defines the OAuth2 scopes used for the token request.', - items: { - type: 'string', - }, - type: 'array', - }, - tlsConfig: { - description: 'TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - tokenUrl: { - description: '`tokenURL` configures the URL to fetch the token from.', - minLength: 1, - type: 'string', - }, - }, - required: [ - 'clientId', - 'clientSecret', - 'tokenUrl', - ], - type: 'object', - }, - proxyURL: { - description: 'Optional proxy URL.', - type: 'string', - }, - tlsConfig: { - description: 'TLS configuration for the client.', - properties: { - ca: { - description: 'Certificate authority used when verifying server certificates.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - cert: { - description: 'Client certificate to present when doing client-authentication.', - properties: { - configMap: { - description: 'ConfigMap containing data to use for the targets.', - properties: { - key: { - description: 'The key to select.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the ConfigMap or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - secret: { - description: 'Secret containing data to use for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - }, - type: 'object', - }, - insecureSkipVerify: { - description: 'Disable target certificate validation.', - type: 'boolean', - }, - keySecret: { - description: 'Secret containing the client key file for the targets.', - properties: { - key: { - description: 'The key of the secret to select from. Must be a valid secret key.', - type: 'string', - }, - name: { - default: '', - description: 'Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names', - type: 'string', - }, - optional: { - description: 'Specify whether the Secret or its key must be defined', - type: 'boolean', - }, - }, - required: [ - 'key', - ], - type: 'object', - 'x-kubernetes-map-type': 'atomic', - }, - maxVersion: { - description: 'Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - minVersion: { - description: 'Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.', - enum: [ - 'TLS10', - 'TLS11', - 'TLS12', - 'TLS13', - ], - type: 'string', - }, - serverName: { - description: 'Used to verify the hostname for the targets.', - type: 'string', - }, - }, - type: 'object', - }, - }, - type: 'object', - }, - message: { - description: 'API request data as defined by the WeChat API.', - type: 'string', - }, - messageType: { - type: 'string', - }, - sendResolved: { - description: 'Whether or not to notify about resolved alerts.', - type: 'boolean', - }, - toParty: { - type: 'string', - }, - toTag: { - type: 'string', - }, - toUser: { - type: 'string', - }, - }, - type: 'object', - }, - type: 'array', - }, - }, - required: [ - 'name', - ], - type: 'object', - }, - type: 'array', - }, - route: { - description: "The Alertmanager route definition for alerts matching the resource's\nnamespace. If present, it will be added to the generated Alertmanager\nconfiguration as a first-level route.", - properties: { - activeTimeIntervals: { - description: 'ActiveTimeIntervals is a list of TimeInterval names when this route should be active.', - items: { - type: 'string', - }, - type: 'array', - }, - continue: { - description: 'Boolean indicating whether an alert should continue matching subsequent\nsibling nodes. It will always be overridden to true for the first-level\nroute by the Prometheus operator.', - type: 'boolean', - }, - groupBy: { - description: 'List of labels to group by.\nLabels must not be repeated (unique list).\nSpecial label "..." (aggregate by all possible labels), if provided, must be the only element in the list.', - items: { - type: 'string', - }, - type: 'array', - }, - groupInterval: { - description: 'How long to wait before sending an updated notification.\nMust match the regular expression`^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$`\nExample: "5m"', - type: 'string', - }, - groupWait: { - description: 'How long to wait before sending the initial notification.\nMust match the regular expression`^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$`\nExample: "30s"', - type: 'string', - }, - matchers: { - description: "List of matchers that the alert's labels should match. For the first\nlevel route, the operator removes any existing equality and regexp\nmatcher on the `namespace` label and adds a `namespace: ` matcher.", - items: { - description: "Matcher defines how to match on alert's labels.", - properties: { - matchType: { - description: 'Match operator, one of `=` (equal to), `!=` (not equal to), `=~` (regex\nmatch) or `!~` (not regex match).\nNegative operators (`!=` and `!~`) require Alertmanager >= v0.22.0.', - enum: [ - '!=', - '=', - '=~', - '!~', - ], - type: 'string', - }, - name: { - description: 'Label to match.', - minLength: 1, - type: 'string', - }, - value: { - description: 'Label value to match.', - type: 'string', - }, - }, - required: [ - 'name', - ], - type: 'object', - }, - type: 'array', - }, - muteTimeIntervals: { - description: "Note: this comment applies to the field definition above but appears\nbelow otherwise it gets included in the generated manifest.\nCRD schema doesn't support self-referential types for now (see\nhttps://github.com/kubernetes/kubernetes/issues/62872). We have to use\nan alternative type to circumvent the limitation. The downside is that\nthe Kube API can't validate the data beyond the fact that it is a valid\nJSON representation.\nMuteTimeIntervals is a list of TimeInterval names that will mute this route when matched.", - items: { - type: 'string', - }, - type: 'array', - }, - receiver: { - description: 'Name of the receiver for this route. If not empty, it should be listed in\nthe `receivers` field.', - type: 'string', - }, - repeatInterval: { - description: 'How long to wait before repeating the last notification.\nMust match the regular expression`^(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?$`\nExample: "4h"', - type: 'string', - }, - routes: { - description: 'Child routes.', - items: { - 'x-kubernetes-preserve-unknown-fields': true, - }, - type: 'array', - }, - }, - type: 'object', - }, - timeIntervals: { - description: 'List of TimeInterval specifying when the routes should be muted or active.', - items: { - description: 'TimeInterval specifies the periods in time when notifications will be muted or active.', - properties: { - name: { - description: 'Name of the time interval.', - type: 'string', - }, - timeIntervals: { - description: 'TimeIntervals is a list of TimePeriod.', - items: { - description: 'TimePeriod describes periods of time.', - properties: { - daysOfMonth: { - description: 'DaysOfMonth is a list of DayOfMonthRange', - items: { - description: 'DayOfMonthRange is an inclusive range of days of the month beginning at 1', - properties: { - end: { - description: 'End of the inclusive range', - maximum: 31, - minimum: -31, - type: 'integer', - }, - start: { - description: 'Start of the inclusive range', - maximum: 31, - minimum: -31, - type: 'integer', - }, - }, - type: 'object', - }, - type: 'array', - }, - months: { - description: 'Months is a list of MonthRange', - items: { - description: "MonthRange is an inclusive range of months of the year beginning in January\nMonths can be specified by name (e.g 'January') by numerical month (e.g '1') or as an inclusive range (e.g 'January:March', '1:3', '1:March')", - pattern: '^((?i)january|february|march|april|may|june|july|august|september|october|november|december|1[0-2]|[1-9])(?:((:((?i)january|february|march|april|may|june|july|august|september|october|november|december|1[0-2]|[1-9]))$)|$)', - type: 'string', - }, - type: 'array', - }, - times: { - description: 'Times is a list of TimeRange', - items: { - description: 'TimeRange defines a start and end time in 24hr format', - properties: { - endTime: { - description: 'EndTime is the end time in 24hr format.', - pattern: '^((([01][0-9])|(2[0-3])):[0-5][0-9])$|(^24:00$)', - type: 'string', - }, - startTime: { - description: 'StartTime is the start time in 24hr format.', - pattern: '^((([01][0-9])|(2[0-3])):[0-5][0-9])$|(^24:00$)', - type: 'string', - }, - }, - type: 'object', - }, - type: 'array', - }, - weekdays: { - description: 'Weekdays is a list of WeekdayRange', - items: { - description: "WeekdayRange is an inclusive range of days of the week beginning on Sunday\nDays can be specified by name (e.g 'Sunday') or as an inclusive range (e.g 'Monday:Friday')", - pattern: '^((?i)sun|mon|tues|wednes|thurs|fri|satur)day(?:((:(sun|mon|tues|wednes|thurs|fri|satur)day)$)|$)', - type: 'string', - }, - type: 'array', - }, - years: { - description: 'Years is a list of YearRange', - items: { - description: 'YearRange is an inclusive range of years', - pattern: '^2\\d{3}(?::2\\d{3}|$)', - type: 'string', - }, - type: 'array', - }, - }, - type: 'object', - }, - type: 'array', - }, - }, - required: [ - 'name', - ], - type: 'object', - }, - type: 'array', - }, - }, - type: 'object', - }, - }, - required: [ - 'spec', - ], - type: 'object', - }, - }, - served: true, - storage: false, - }, -] } } diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/alertmanagers-crd.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/alertmanagers-crd.json deleted file mode 100644 index 629413336..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/alertmanagers-crd.json +++ /dev/null @@ -1,7224 +0,0 @@ -{ - "apiVersion": "apiextensions.k8s.io/v1", - "kind": "CustomResourceDefinition", - "metadata": { - "annotations": { - "controller-gen.kubebuilder.io/version": "v0.16.1", - "operator.prometheus.io/version": "0.76.0" - }, - "name": "alertmanagers.monitoring.coreos.com" - }, - "spec": { - "group": "monitoring.coreos.com", - "names": { - "categories": [ - "prometheus-operator" - ], - "kind": "Alertmanager", - "listKind": "AlertmanagerList", - "plural": "alertmanagers", - "shortNames": [ - "am" - ], - "singular": "alertmanager" - }, - "scope": "Namespaced", - "versions": [ - { - "additionalPrinterColumns": [ - { - "description": "The version of Alertmanager", - "jsonPath": ".spec.version", - "name": "Version", - "type": "string" - }, - { - "description": "The number of desired replicas", - "jsonPath": ".spec.replicas", - "name": "Replicas", - "type": "integer" - }, - { - "description": "The number of ready replicas", - "jsonPath": ".status.availableReplicas", - "name": "Ready", - "type": "integer" - }, - { - "jsonPath": ".status.conditions[?(@.type == 'Reconciled')].status", - "name": "Reconciled", - "type": "string" - }, - { - "jsonPath": ".status.conditions[?(@.type == 'Available')].status", - "name": "Available", - "type": "string" - }, - { - "jsonPath": ".metadata.creationTimestamp", - "name": "Age", - "type": "date" - }, - { - "description": "Whether the resource reconciliation is paused or not", - "jsonPath": ".status.paused", - "name": "Paused", - "priority": 1, - "type": "boolean" - } - ], - "name": "v1", - "schema": { - "openAPIV3Schema": { - "description": "The `Alertmanager` custom resource definition (CRD) defines a desired [Alertmanager](https://prometheus.io/docs/alerting) setup to run in a Kubernetes cluster. It allows to specify many options such as the number of replicas, persistent storage and many more.\n\nFor each `Alertmanager` resource, the Operator deploys a `StatefulSet` in the same namespace. When there are two or more configured replicas, the Operator runs the Alertmanager instances in high-availability mode.\n\nThe resource defines via label and namespace selectors which `AlertmanagerConfig` objects should be associated to the deployed Alertmanager instances.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "type": "object" - }, - "spec": { - "description": "Specification of the desired behavior of the Alertmanager cluster. More info:\nhttps://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "properties": { - "additionalPeers": { - "description": "AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster.", - "items": { - "type": "string" - }, - "type": "array" - }, - "affinity": { - "description": "If specified, the pod's scheduling constraints.", - "properties": { - "nodeAffinity": { - "description": "Describes node affinity scheduling rules for the pod.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node matches the corresponding matchExpressions; the\nnode(s) with the highest sum are the most preferred.", - "items": { - "description": "An empty preferred scheduling term matches all objects with implicit weight 0\n(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", - "properties": { - "preference": { - "description": "A node selector term, associated with the corresponding weight.", - "properties": { - "matchExpressions": { - "description": "A list of node selector requirements by node's labels.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchFields": { - "description": "A list of node selector requirements by node's fields.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "weight": { - "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "preference", - "weight" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to an update), the system\nmay or may not try to eventually evict the pod from its node.", - "properties": { - "nodeSelectorTerms": { - "description": "Required. A list of node selector terms. The terms are ORed.", - "items": { - "description": "A null or empty node selector term matches no objects. The requirements of\nthem are ANDed.\nThe TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", - "properties": { - "matchExpressions": { - "description": "A list of node selector requirements by node's labels.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchFields": { - "description": "A list of node selector requirements by node's fields.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "nodeSelectorTerms" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "podAffinity": { - "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", - "items": { - "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "properties": { - "podAffinityTerm": { - "description": "Required. A pod affinity term, associated with the corresponding weight.", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "podAffinityTerm", - "weight" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", - "items": { - "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "podAntiAffinity": { - "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe anti-affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling anti-affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", - "items": { - "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "properties": { - "podAffinityTerm": { - "description": "Required. A pod affinity term, associated with the corresponding weight.", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "podAffinityTerm", - "weight" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the anti-affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the anti-affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", - "items": { - "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "alertmanagerConfigMatcherStrategy": { - "description": "AlertmanagerConfigMatcherStrategy defines how AlertmanagerConfig objects\nprocess incoming alerts.", - "properties": { - "type": { - "default": "OnNamespace", - "description": "AlertmanagerConfigMatcherStrategyType defines the strategy used by\nAlertmanagerConfig objects to match alerts in the routes and inhibition\nrules.\n\nThe default value is `OnNamespace`.", - "enum": [ - "OnNamespace", - "None" - ], - "type": "string" - } - }, - "type": "object" - }, - "alertmanagerConfigNamespaceSelector": { - "description": "Namespaces to be selected for AlertmanagerConfig discovery. If nil, only\ncheck own namespace.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "alertmanagerConfigSelector": { - "description": "AlertmanagerConfigs to be selected for to merge and configure Alertmanager with.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "alertmanagerConfiguration": { - "description": "alertmanagerConfiguration specifies the configuration of Alertmanager.\n\nIf defined, it takes precedence over the `configSecret` field.\n\nThis is an *experimental feature*, it may change in any upcoming release\nin a breaking way.", - "properties": { - "global": { - "description": "Defines the global parameters of the Alertmanager configuration.", - "properties": { - "httpConfig": { - "description": "HTTP client configuration.", - "properties": { - "authorization": { - "description": "Authorization header configuration for the client.\nThis is mutually exclusive with BasicAuth and is only available starting from Alertmanager v0.22+.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth for the client.\nThis is mutually exclusive with Authorization. If both are defined, BasicAuth takes precedence.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "The secret's key that contains the bearer token to be used by the client\nfor authentication.\nThe secret needs to be in the same namespace as the Alertmanager\nobject and accessible by the Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "followRedirects": { - "description": "FollowRedirects specifies whether the client should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "oauth2": { - "description": "OAuth2 client credentials used to fetch a token for the targets.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyURL": { - "description": "Optional proxy URL.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration for the client.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "opsGenieApiKey": { - "description": "The default OpsGenie API Key.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "opsGenieApiUrl": { - "description": "The default OpsGenie API URL.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "pagerdutyUrl": { - "description": "The default Pagerduty URL.", - "type": "string" - }, - "resolveTimeout": { - "description": "ResolveTimeout is the default value used by alertmanager if the alert does\nnot include EndsAt, after this time passes it can declare the alert as resolved if it has not been updated.\nThis has no impact on alerts from Prometheus, as they always include EndsAt.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "slackApiUrl": { - "description": "The default Slack API URL.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "smtp": { - "description": "Configures global SMTP parameters.", - "properties": { - "authIdentity": { - "description": "SMTP Auth using PLAIN", - "type": "string" - }, - "authPassword": { - "description": "SMTP Auth using LOGIN and PLAIN.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "authSecret": { - "description": "SMTP Auth using CRAM-MD5.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "authUsername": { - "description": "SMTP Auth using CRAM-MD5, LOGIN and PLAIN. If empty, Alertmanager doesn't authenticate to the SMTP server.", - "type": "string" - }, - "from": { - "description": "The default SMTP From header field.", - "type": "string" - }, - "hello": { - "description": "The default hostname to identify to the SMTP server.", - "type": "string" - }, - "requireTLS": { - "description": "The default SMTP TLS requirement.\nNote that Go does not support unencrypted connections to remote SMTP endpoints.", - "type": "boolean" - }, - "smartHost": { - "description": "The default SMTP smarthost used for sending emails.", - "properties": { - "host": { - "description": "Defines the host's address, it can be a DNS name or a literal IP address.", - "minLength": 1, - "type": "string" - }, - "port": { - "description": "Defines the host's port, it can be a literal port number or a port name.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "host", - "port" - ], - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "name": { - "description": "The name of the AlertmanagerConfig resource which is used to generate the Alertmanager configuration.\nIt must be defined in the same namespace as the Alertmanager object.\nThe operator will not enforce a `namespace` label for routes and inhibition rules.", - "minLength": 1, - "type": "string" - }, - "templates": { - "description": "Custom notification templates.", - "items": { - "description": "SecretOrConfigMap allows to specify data as a Secret or ConfigMap. Fields are mutually exclusive.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "type": "array" - } - }, - "type": "object" - }, - "automountServiceAccountToken": { - "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in the pod.\nIf the service account has `automountServiceAccountToken: true`, set the field to `false` to opt out of automounting API credentials.", - "type": "boolean" - }, - "baseImage": { - "description": "Base image that is used to deploy pods, without tag.\nDeprecated: use 'image' instead.", - "type": "string" - }, - "clusterAdvertiseAddress": { - "description": "ClusterAdvertiseAddress is the explicit address to advertise in cluster.\nNeeds to be provided for non RFC1918 [1] (public) addresses.\n[1] RFC1918: https://tools.ietf.org/html/rfc1918", - "type": "string" - }, - "clusterGossipInterval": { - "description": "Interval between gossip attempts.", - "pattern": "^(0|(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "clusterLabel": { - "description": "Defines the identifier that uniquely identifies the Alertmanager cluster.\nYou should only set it when the Alertmanager cluster includes Alertmanager instances which are external to this Alertmanager resource. In practice, the addresses of the external instances are provided via the `.spec.additionalPeers` field.", - "type": "string" - }, - "clusterPeerTimeout": { - "description": "Timeout for cluster peering.", - "pattern": "^(0|(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "clusterPushpullInterval": { - "description": "Interval between pushpull attempts.", - "pattern": "^(0|(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "configMaps": { - "description": "ConfigMaps is a list of ConfigMaps in the same namespace as the Alertmanager\nobject, which shall be mounted into the Alertmanager Pods.\nEach ConfigMap is added to the StatefulSet definition as a volume named `configmap-`.\nThe ConfigMaps are mounted into `/etc/alertmanager/configmaps/` in the 'alertmanager' container.", - "items": { - "type": "string" - }, - "type": "array" - }, - "configSecret": { - "description": "ConfigSecret is the name of a Kubernetes Secret in the same namespace as the\nAlertmanager object, which contains the configuration for this Alertmanager\ninstance. If empty, it defaults to `alertmanager-`.\n\nThe Alertmanager configuration should be available under the\n`alertmanager.yaml` key. Additional keys from the original secret are\ncopied to the generated secret and mounted into the\n`/etc/alertmanager/config` directory in the `alertmanager` container.\n\nIf either the secret or the `alertmanager.yaml` key is missing, the\noperator provisions a minimal Alertmanager configuration with one empty\nreceiver (effectively dropping alert notifications).", - "type": "string" - }, - "containers": { - "description": "Containers allows injecting additional containers. This is meant to\nallow adding an authentication proxy to an Alertmanager pod.\nContainers described here modify an operator generated container if they\nshare the same name and modifications are done via a strategic merge\npatch. The current container names are: `alertmanager` and\n`config-reloader`. Overriding containers is entirely outside the scope\nof what the maintainers will support and by doing so, you accept that\nthis behaviour may break at any time without notice.", - "items": { - "description": "A single application container that you want to run within a pod.", - "properties": { - "args": { - "description": "Arguments to the entrypoint.\nThe container image's CMD is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell.\nThe container image's ENTRYPOINT is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "env": { - "description": "List of environment variables to set in the container.\nCannot be updated.", - "items": { - "description": "EnvVar represents an environment variable present in a Container.", - "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", - "type": "string" - }, - "value": { - "description": "Variable references $(VAR_NAME) are expanded\nusing the previously defined environment variables in the container and\nany service environment variables. If a variable cannot be resolved,\nthe reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n\"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\nEscaped references will never be expanded, regardless of whether the variable\nexists or not.\nDefaults to \"\".", - "type": "string" - }, - "valueFrom": { - "description": "Source for the environment variable's value. Cannot be used if value is not empty.", - "properties": { - "configMapKeyRef": { - "description": "Selects a key of a ConfigMap.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "fieldRef": { - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`,\nspec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secretKeyRef": { - "description": "Selects a key of a secret in the pod's namespace", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container.\nThe keys defined within a source must be a C_IDENTIFIER. All invalid keys\nwill be reported as an event when the container is starting. When a key exists in multiple\nsources, the value associated with the last source will take precedence.\nValues defined by an Env with a duplicate key will take precedence.\nCannot be updated.", - "items": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", - "properties": { - "configMapRef": { - "description": "The ConfigMap to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", - "type": "string" - }, - "secretRef": { - "description": "The Secret to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "image": { - "description": "Container image name.\nMore info: https://kubernetes.io/docs/concepts/containers/images\nThis field is optional to allow higher level config management to default or override\ncontainer images in workload controllers like Deployments and StatefulSets.", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy.\nOne of Always, Never, IfNotPresent.\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/containers/images#updating-images", - "type": "string" - }, - "lifecycle": { - "description": "Actions that the management system should take in response to container lifecycle events.\nCannot be updated.", - "properties": { - "postStart": { - "description": "PostStart is called immediately after a container is created. If the handler fails,\nthe container is terminated and restarted according to its restart policy.\nOther management of the container blocks until the hook completes.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - }, - "preStop": { - "description": "PreStop is called immediately before a container is terminated due to an\nAPI request or management event such as liveness/startup probe failure,\npreemption, resource contention, etc. The handler is not called if the\ncontainer crashes or exits. The Pod's termination grace period countdown begins before the\nPreStop hook is executed. Regardless of the outcome of the handler, the\ncontainer will eventually terminate within the Pod's termination grace\nperiod (unless delayed by finalizers). Other management of the container blocks until the hook completes\nor until the termination grace period is reached.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "livenessProbe": { - "description": "Periodic probe of container liveness.\nContainer will be restarted if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL.\nEach container in a pod must have a unique name (DNS_LABEL).\nCannot be updated.", - "type": "string" - }, - "ports": { - "description": "List of ports to expose from the container. Not specifying a port here\nDOES NOT prevent that port from being exposed. Any port which is\nlistening on the default \"0.0.0.0\" address inside a container will be\naccessible from the network.\nModifying this array with strategic merge patch may corrupt the data.\nFor more information See https://github.com/kubernetes/kubernetes/issues/108255.\nCannot be updated.", - "items": { - "description": "ContainerPort represents a network port in a single container.", - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 < x < 65536.", - "format": "int32", - "type": "integer" - }, - "hostIP": { - "description": "What host IP to bind the external port to.", - "type": "string" - }, - "hostPort": { - "description": "Number of port to expose on the host.\nIf specified, this must be a valid port number, 0 < x < 65536.\nIf HostNetwork is specified, this must match ContainerPort.\nMost containers do not need this.", - "format": "int32", - "type": "integer" - }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each\nnamed port in a pod must have a unique name. Name for the port that can be\nreferred to by services.", - "type": "string" - }, - "protocol": { - "default": "TCP", - "description": "Protocol for port. Must be UDP, TCP, or SCTP.\nDefaults to \"TCP\".", - "type": "string" - } - }, - "required": [ - "containerPort" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "containerPort", - "protocol" - ], - "x-kubernetes-list-type": "map" - }, - "readinessProbe": { - "description": "Periodic probe of container service readiness.\nContainer will be removed from service endpoints if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "resizePolicy": { - "description": "Resources resize policy for the container.", - "items": { - "description": "ContainerResizePolicy represents resource resize policy for the container.", - "properties": { - "resourceName": { - "description": "Name of the resource to which this resource resize policy applies.\nSupported values: cpu, memory.", - "type": "string" - }, - "restartPolicy": { - "description": "Restart policy to apply when specified resource is resized.\nIf not specified, it defaults to NotRequired.", - "type": "string" - } - }, - "required": [ - "resourceName", - "restartPolicy" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "resources": { - "description": "Compute Resources required by this container.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - "items": { - "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string" - }, - "request": { - "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "restartPolicy": { - "description": "RestartPolicy defines the restart behavior of individual containers in a pod.\nThis field may only be set for init containers, and the only allowed value is \"Always\".\nFor non-init containers or when this field is not specified,\nthe restart behavior is defined by the Pod's restart policy and the container type.\nSetting the RestartPolicy as \"Always\" for the init container will have the following effect:\nthis init container will be continually restarted on\nexit until all regular containers have terminated. Once all regular\ncontainers have completed, all init containers with restartPolicy \"Always\"\nwill be shut down. This lifecycle differs from normal init containers and\nis often referred to as a \"sidecar\" container. Although this init\ncontainer still starts in the init container sequence, it does not wait\nfor the container to complete before proceeding to the next init\ncontainer. Instead, the next init container starts immediately after this\ninit container is started, or after any startupProbe has successfully\ncompleted.", - "type": "string" - }, - "securityContext": { - "description": "SecurityContext defines the security options the container should be run with.\nIf set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.\nMore info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", - "properties": { - "allowPrivilegeEscalation": { - "description": "AllowPrivilegeEscalation controls whether a process can gain more\nprivileges than its parent process. This bool directly controls if\nthe no_new_privs flag will be set on the container process.\nAllowPrivilegeEscalation is true always when the container is:\n1) run as Privileged\n2) has CAP_SYS_ADMIN\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "appArmorProfile": { - "description": "appArmorProfile is the AppArmor options to use by this container. If set, this profile\noverrides the pod's appArmorProfile.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile loaded on the node that should be used.\nThe profile must be preconfigured on the node to work.\nMust match the loaded name of the profile.\nMust be set if and only if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of AppArmor profile will be applied.\nValid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "capabilities": { - "description": "The capabilities to add/drop when running containers.\nDefaults to the default set of capabilities granted by the container runtime.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "add": { - "description": "Added capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "drop": { - "description": "Removed capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "privileged": { - "description": "Run container in privileged mode.\nProcesses in privileged containers are essentially equivalent to root on the host.\nDefaults to false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "procMount": { - "description": "procMount denotes the type of proc mount to use for the containers.\nThe default value is Default which uses the container runtime defaults for\nreadonly paths and masked paths.\nThis requires the ProcMountType feature flag to be enabled.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem.\nDefault is false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to the container.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - }, - "type": "object" - }, - "seccompProfile": { - "description": "The seccomp options to use by this container. If seccomp options are\nprovided at both the pod & container level, the container options\noverride the pod options.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "windowsOptions": { - "description": "The Windows specific settings applied to all containers.\nIf unspecified, the options from the PodSecurityContext will be used.\nIf set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is linux.", - "properties": { - "gmsaCredentialSpec": { - "description": "GMSACredentialSpec is where the GMSA admission webhook\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\nGMSA credential spec named by the GMSACredentialSpecName field.", - "type": "string" - }, - "gmsaCredentialSpecName": { - "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", - "type": "string" - }, - "hostProcess": { - "description": "HostProcess determines if a container should be run as a 'Host Process' container.\nAll of a Pod's containers must have the same effective HostProcess value\n(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\nIn addition, if HostProcess is true then HostNetwork must also be set to true.", - "type": "boolean" - }, - "runAsUserName": { - "description": "The UserName in Windows to run the entrypoint of the container process.\nDefaults to the user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "startupProbe": { - "description": "StartupProbe indicates that the Pod has successfully initialized.\nIf specified, no other probes are executed until this completes successfully.\nIf this probe fails, the Pod will be restarted, just as if the livenessProbe failed.\nThis can be used to provide different probe parameters at the beginning of a Pod's lifecycle,\nwhen it might take a long time to load data or warm a cache, than during steady-state operation.\nThis cannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this\nis not set, reads from stdin in the container will always result in EOF.\nDefault is false.", - "type": "boolean" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by\na single attach. When stdin is true the stdin stream will remain open across multiple attach\nsessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\nfirst client attaches to stdin, and then remains open and accepts data until the client disconnects,\nat which time stdin is closed and remains closed until the container is restarted. If this\nflag is false, a container processes that reads from stdin will never receive an EOF.\nDefault is false", - "type": "boolean" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message\nwill be written is mounted into the container's filesystem.\nMessage written is intended to be brief final status, such as an assertion failure message.\nWill be truncated by the node if greater than 4096 bytes. The total message length across\nall containers will be limited to 12kb.\nDefaults to /dev/termination-log.\nCannot be updated.", - "type": "string" - }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of\nterminationMessagePath to populate the container status message on both success and failure.\nFallbackToLogsOnError will use the last chunk of container log output if the termination\nmessage file is empty and the container exited with an error.\nThe log output is limited to 2048 bytes or 80 lines, whichever is smaller.\nDefaults to File.\nCannot be updated.", - "type": "string" - }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\nDefault is false.", - "type": "boolean" - }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", - "items": { - "description": "volumeDevice describes a mapping of a raw block device within a container.", - "properties": { - "devicePath": { - "description": "devicePath is the path inside of the container that the device will be mapped to.", - "type": "string" - }, - "name": { - "description": "name must match the name of a persistentVolumeClaim in the pod", - "type": "string" - } - }, - "required": [ - "devicePath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "devicePath" - ], - "x-kubernetes-list-type": "map" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem.\nCannot be updated.", - "items": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None).", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.", - "type": "boolean" - }, - "recursiveReadOnly": { - "description": "RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - "type": "string" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).", - "type": "string" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.", - "type": "string" - } - }, - "required": [ - "mountPath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "mountPath" - ], - "x-kubernetes-list-type": "map" - }, - "workingDir": { - "description": "Container's working directory.\nIf not specified, the container runtime's default will be used, which\nmight be configured in the container image.\nCannot be updated.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "enableFeatures": { - "description": "Enable access to Alertmanager feature flags. By default, no features are enabled.\nEnabling features which are disabled by default is entirely outside the\nscope of what the maintainers will support and by doing so, you accept\nthat this behaviour may break at any time without notice.\n\nIt requires Alertmanager >= 0.27.0.", - "items": { - "type": "string" - }, - "type": "array" - }, - "externalUrl": { - "description": "The external URL the Alertmanager instances will be available under. This is\nnecessary to generate correct URLs. This is necessary if Alertmanager is not\nserved from root of a DNS name.", - "type": "string" - }, - "forceEnableClusterMode": { - "description": "ForceEnableClusterMode ensures Alertmanager does not deactivate the cluster mode when running with a single replica.\nUse case is e.g. spanning an Alertmanager cluster across Kubernetes clusters with a single replica in each.", - "type": "boolean" - }, - "hostAliases": { - "description": "Pods' hostAliases configuration", - "items": { - "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the\npod's hosts file.", - "properties": { - "hostnames": { - "description": "Hostnames for the above IP address.", - "items": { - "type": "string" - }, - "type": "array" - }, - "ip": { - "description": "IP address of the host file entry.", - "type": "string" - } - }, - "required": [ - "hostnames", - "ip" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "ip" - ], - "x-kubernetes-list-type": "map" - }, - "image": { - "description": "Image if specified has precedence over baseImage, tag and sha\ncombinations. Specifying the version is still necessary to ensure the\nPrometheus Operator knows what version of Alertmanager is being\nconfigured.", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy for the 'alertmanager', 'init-config-reloader' and 'config-reloader' containers.\nSee https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy for more details.", - "enum": [ - "", - "Always", - "Never", - "IfNotPresent" - ], - "type": "string" - }, - "imagePullSecrets": { - "description": "An optional list of references to secrets in the same namespace\nto use for pulling prometheus and alertmanager images from registries\nsee http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod", - "items": { - "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "initContainers": { - "description": "InitContainers allows adding initContainers to the pod definition. Those can be used to e.g.\nfetch secrets for injection into the Alertmanager configuration from external sources. Any\nerrors during the execution of an initContainer will lead to a restart of the Pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/\nInitContainers described here modify an operator\ngenerated init containers if they share the same name and modifications are\ndone via a strategic merge patch. The current init container name is:\n`init-config-reloader`. Overriding init containers is entirely outside the\nscope of what the maintainers will support and by doing so, you accept that\nthis behaviour may break at any time without notice.", - "items": { - "description": "A single application container that you want to run within a pod.", - "properties": { - "args": { - "description": "Arguments to the entrypoint.\nThe container image's CMD is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell.\nThe container image's ENTRYPOINT is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "env": { - "description": "List of environment variables to set in the container.\nCannot be updated.", - "items": { - "description": "EnvVar represents an environment variable present in a Container.", - "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", - "type": "string" - }, - "value": { - "description": "Variable references $(VAR_NAME) are expanded\nusing the previously defined environment variables in the container and\nany service environment variables. If a variable cannot be resolved,\nthe reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n\"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\nEscaped references will never be expanded, regardless of whether the variable\nexists or not.\nDefaults to \"\".", - "type": "string" - }, - "valueFrom": { - "description": "Source for the environment variable's value. Cannot be used if value is not empty.", - "properties": { - "configMapKeyRef": { - "description": "Selects a key of a ConfigMap.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "fieldRef": { - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`,\nspec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secretKeyRef": { - "description": "Selects a key of a secret in the pod's namespace", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container.\nThe keys defined within a source must be a C_IDENTIFIER. All invalid keys\nwill be reported as an event when the container is starting. When a key exists in multiple\nsources, the value associated with the last source will take precedence.\nValues defined by an Env with a duplicate key will take precedence.\nCannot be updated.", - "items": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", - "properties": { - "configMapRef": { - "description": "The ConfigMap to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", - "type": "string" - }, - "secretRef": { - "description": "The Secret to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "image": { - "description": "Container image name.\nMore info: https://kubernetes.io/docs/concepts/containers/images\nThis field is optional to allow higher level config management to default or override\ncontainer images in workload controllers like Deployments and StatefulSets.", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy.\nOne of Always, Never, IfNotPresent.\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/containers/images#updating-images", - "type": "string" - }, - "lifecycle": { - "description": "Actions that the management system should take in response to container lifecycle events.\nCannot be updated.", - "properties": { - "postStart": { - "description": "PostStart is called immediately after a container is created. If the handler fails,\nthe container is terminated and restarted according to its restart policy.\nOther management of the container blocks until the hook completes.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - }, - "preStop": { - "description": "PreStop is called immediately before a container is terminated due to an\nAPI request or management event such as liveness/startup probe failure,\npreemption, resource contention, etc. The handler is not called if the\ncontainer crashes or exits. The Pod's termination grace period countdown begins before the\nPreStop hook is executed. Regardless of the outcome of the handler, the\ncontainer will eventually terminate within the Pod's termination grace\nperiod (unless delayed by finalizers). Other management of the container blocks until the hook completes\nor until the termination grace period is reached.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "livenessProbe": { - "description": "Periodic probe of container liveness.\nContainer will be restarted if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL.\nEach container in a pod must have a unique name (DNS_LABEL).\nCannot be updated.", - "type": "string" - }, - "ports": { - "description": "List of ports to expose from the container. Not specifying a port here\nDOES NOT prevent that port from being exposed. Any port which is\nlistening on the default \"0.0.0.0\" address inside a container will be\naccessible from the network.\nModifying this array with strategic merge patch may corrupt the data.\nFor more information See https://github.com/kubernetes/kubernetes/issues/108255.\nCannot be updated.", - "items": { - "description": "ContainerPort represents a network port in a single container.", - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 < x < 65536.", - "format": "int32", - "type": "integer" - }, - "hostIP": { - "description": "What host IP to bind the external port to.", - "type": "string" - }, - "hostPort": { - "description": "Number of port to expose on the host.\nIf specified, this must be a valid port number, 0 < x < 65536.\nIf HostNetwork is specified, this must match ContainerPort.\nMost containers do not need this.", - "format": "int32", - "type": "integer" - }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each\nnamed port in a pod must have a unique name. Name for the port that can be\nreferred to by services.", - "type": "string" - }, - "protocol": { - "default": "TCP", - "description": "Protocol for port. Must be UDP, TCP, or SCTP.\nDefaults to \"TCP\".", - "type": "string" - } - }, - "required": [ - "containerPort" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "containerPort", - "protocol" - ], - "x-kubernetes-list-type": "map" - }, - "readinessProbe": { - "description": "Periodic probe of container service readiness.\nContainer will be removed from service endpoints if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "resizePolicy": { - "description": "Resources resize policy for the container.", - "items": { - "description": "ContainerResizePolicy represents resource resize policy for the container.", - "properties": { - "resourceName": { - "description": "Name of the resource to which this resource resize policy applies.\nSupported values: cpu, memory.", - "type": "string" - }, - "restartPolicy": { - "description": "Restart policy to apply when specified resource is resized.\nIf not specified, it defaults to NotRequired.", - "type": "string" - } - }, - "required": [ - "resourceName", - "restartPolicy" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "resources": { - "description": "Compute Resources required by this container.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - "items": { - "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string" - }, - "request": { - "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "restartPolicy": { - "description": "RestartPolicy defines the restart behavior of individual containers in a pod.\nThis field may only be set for init containers, and the only allowed value is \"Always\".\nFor non-init containers or when this field is not specified,\nthe restart behavior is defined by the Pod's restart policy and the container type.\nSetting the RestartPolicy as \"Always\" for the init container will have the following effect:\nthis init container will be continually restarted on\nexit until all regular containers have terminated. Once all regular\ncontainers have completed, all init containers with restartPolicy \"Always\"\nwill be shut down. This lifecycle differs from normal init containers and\nis often referred to as a \"sidecar\" container. Although this init\ncontainer still starts in the init container sequence, it does not wait\nfor the container to complete before proceeding to the next init\ncontainer. Instead, the next init container starts immediately after this\ninit container is started, or after any startupProbe has successfully\ncompleted.", - "type": "string" - }, - "securityContext": { - "description": "SecurityContext defines the security options the container should be run with.\nIf set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.\nMore info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", - "properties": { - "allowPrivilegeEscalation": { - "description": "AllowPrivilegeEscalation controls whether a process can gain more\nprivileges than its parent process. This bool directly controls if\nthe no_new_privs flag will be set on the container process.\nAllowPrivilegeEscalation is true always when the container is:\n1) run as Privileged\n2) has CAP_SYS_ADMIN\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "appArmorProfile": { - "description": "appArmorProfile is the AppArmor options to use by this container. If set, this profile\noverrides the pod's appArmorProfile.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile loaded on the node that should be used.\nThe profile must be preconfigured on the node to work.\nMust match the loaded name of the profile.\nMust be set if and only if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of AppArmor profile will be applied.\nValid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "capabilities": { - "description": "The capabilities to add/drop when running containers.\nDefaults to the default set of capabilities granted by the container runtime.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "add": { - "description": "Added capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "drop": { - "description": "Removed capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "privileged": { - "description": "Run container in privileged mode.\nProcesses in privileged containers are essentially equivalent to root on the host.\nDefaults to false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "procMount": { - "description": "procMount denotes the type of proc mount to use for the containers.\nThe default value is Default which uses the container runtime defaults for\nreadonly paths and masked paths.\nThis requires the ProcMountType feature flag to be enabled.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem.\nDefault is false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to the container.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - }, - "type": "object" - }, - "seccompProfile": { - "description": "The seccomp options to use by this container. If seccomp options are\nprovided at both the pod & container level, the container options\noverride the pod options.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "windowsOptions": { - "description": "The Windows specific settings applied to all containers.\nIf unspecified, the options from the PodSecurityContext will be used.\nIf set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is linux.", - "properties": { - "gmsaCredentialSpec": { - "description": "GMSACredentialSpec is where the GMSA admission webhook\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\nGMSA credential spec named by the GMSACredentialSpecName field.", - "type": "string" - }, - "gmsaCredentialSpecName": { - "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", - "type": "string" - }, - "hostProcess": { - "description": "HostProcess determines if a container should be run as a 'Host Process' container.\nAll of a Pod's containers must have the same effective HostProcess value\n(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\nIn addition, if HostProcess is true then HostNetwork must also be set to true.", - "type": "boolean" - }, - "runAsUserName": { - "description": "The UserName in Windows to run the entrypoint of the container process.\nDefaults to the user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "startupProbe": { - "description": "StartupProbe indicates that the Pod has successfully initialized.\nIf specified, no other probes are executed until this completes successfully.\nIf this probe fails, the Pod will be restarted, just as if the livenessProbe failed.\nThis can be used to provide different probe parameters at the beginning of a Pod's lifecycle,\nwhen it might take a long time to load data or warm a cache, than during steady-state operation.\nThis cannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this\nis not set, reads from stdin in the container will always result in EOF.\nDefault is false.", - "type": "boolean" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by\na single attach. When stdin is true the stdin stream will remain open across multiple attach\nsessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\nfirst client attaches to stdin, and then remains open and accepts data until the client disconnects,\nat which time stdin is closed and remains closed until the container is restarted. If this\nflag is false, a container processes that reads from stdin will never receive an EOF.\nDefault is false", - "type": "boolean" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message\nwill be written is mounted into the container's filesystem.\nMessage written is intended to be brief final status, such as an assertion failure message.\nWill be truncated by the node if greater than 4096 bytes. The total message length across\nall containers will be limited to 12kb.\nDefaults to /dev/termination-log.\nCannot be updated.", - "type": "string" - }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of\nterminationMessagePath to populate the container status message on both success and failure.\nFallbackToLogsOnError will use the last chunk of container log output if the termination\nmessage file is empty and the container exited with an error.\nThe log output is limited to 2048 bytes or 80 lines, whichever is smaller.\nDefaults to File.\nCannot be updated.", - "type": "string" - }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\nDefault is false.", - "type": "boolean" - }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", - "items": { - "description": "volumeDevice describes a mapping of a raw block device within a container.", - "properties": { - "devicePath": { - "description": "devicePath is the path inside of the container that the device will be mapped to.", - "type": "string" - }, - "name": { - "description": "name must match the name of a persistentVolumeClaim in the pod", - "type": "string" - } - }, - "required": [ - "devicePath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "devicePath" - ], - "x-kubernetes-list-type": "map" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem.\nCannot be updated.", - "items": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None).", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.", - "type": "boolean" - }, - "recursiveReadOnly": { - "description": "RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - "type": "string" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).", - "type": "string" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.", - "type": "string" - } - }, - "required": [ - "mountPath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "mountPath" - ], - "x-kubernetes-list-type": "map" - }, - "workingDir": { - "description": "Container's working directory.\nIf not specified, the container runtime's default will be used, which\nmight be configured in the container image.\nCannot be updated.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "listenLocal": { - "description": "ListenLocal makes the Alertmanager server listen on loopback, so that it\ndoes not bind against the Pod IP. Note this is only for the Alertmanager\nUI, not the gossip communication.", - "type": "boolean" - }, - "logFormat": { - "description": "Log format for Alertmanager to be configured with.", - "enum": [ - "", - "logfmt", - "json" - ], - "type": "string" - }, - "logLevel": { - "description": "Log level for Alertmanager to be configured with.", - "enum": [ - "", - "debug", - "info", - "warn", - "error" - ], - "type": "string" - }, - "minReadySeconds": { - "description": "Minimum number of seconds for which a newly created pod should be ready\nwithout any of its container crashing for it to be considered available.\nDefaults to 0 (pod will be considered available as soon as it is ready)\nThis is an alpha field from kubernetes 1.22 until 1.24 which requires enabling the StatefulSetMinReadySeconds feature gate.", - "format": "int32", - "type": "integer" - }, - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "Define which Nodes the Pods are scheduled on.", - "type": "object" - }, - "paused": { - "description": "If set to true all actions on the underlying managed objects are not\ngoint to be performed, except for delete actions.", - "type": "boolean" - }, - "podMetadata": { - "description": "PodMetadata configures labels and annotations which are propagated to the Alertmanager pods.\n\nThe following items are reserved and cannot be overridden:\n* \"alertmanager\" label, set to the name of the Alertmanager instance.\n* \"app.kubernetes.io/instance\" label, set to the name of the Alertmanager instance.\n* \"app.kubernetes.io/managed-by\" label, set to \"prometheus-operator\".\n* \"app.kubernetes.io/name\" label, set to \"alertmanager\".\n* \"app.kubernetes.io/version\" label, set to the Alertmanager version.\n* \"kubectl.kubernetes.io/default-container\" annotation, set to \"alertmanager\".", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "type": "object" - }, - "portName": { - "default": "web", - "description": "Port name used for the pods and governing service.\nDefaults to `web`.", - "type": "string" - }, - "priorityClassName": { - "description": "Priority class assigned to the Pods", - "type": "string" - }, - "replicas": { - "description": "Size is the expected size of the alertmanager cluster. The controller will\neventually make the size of the running cluster equal to the expected\nsize.", - "format": "int32", - "type": "integer" - }, - "resources": { - "description": "Define resources requests and limits for single Pods.", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - "items": { - "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string" - }, - "request": { - "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "retention": { - "default": "120h", - "description": "Time duration Alertmanager shall retain data for. Default is '120h',\nand must match the regular expression `[0-9]+(ms|s|m|h)` (milliseconds seconds minutes hours).", - "pattern": "^(0|(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "routePrefix": { - "description": "The route prefix Alertmanager registers HTTP handlers for. This is useful,\nif using ExternalURL and a proxy is rewriting HTTP routes of a request,\nand the actual ExternalURL is still true, but the server serves requests\nunder a different route prefix. For example for use with `kubectl proxy`.", - "type": "string" - }, - "secrets": { - "description": "Secrets is a list of Secrets in the same namespace as the Alertmanager\nobject, which shall be mounted into the Alertmanager Pods.\nEach Secret is added to the StatefulSet definition as a volume named `secret-`.\nThe Secrets are mounted into `/etc/alertmanager/secrets/` in the 'alertmanager' container.", - "items": { - "type": "string" - }, - "type": "array" - }, - "securityContext": { - "description": "SecurityContext holds pod-level security attributes and common container settings.\nThis defaults to the default PodSecurityContext.", - "properties": { - "appArmorProfile": { - "description": "appArmorProfile is the AppArmor options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile loaded on the node that should be used.\nThe profile must be preconfigured on the node to work.\nMust match the loaded name of the profile.\nMust be set if and only if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of AppArmor profile will be applied.\nValid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "fsGroup": { - "description": "A special supplemental group that applies to all containers in a pod.\nSome volume types allow the Kubelet to change the ownership of that volume\nto be owned by the pod:\n\n1. The owning GID will be the FSGroup\n2. The setgid bit is set (new files created in the volume will be owned by FSGroup)\n3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume\nbefore being exposed inside Pod. This field will only apply to\nvolume types which support fsGroup based ownership(and permissions).\nIt will have no effect on ephemeral volume types such as: secret, configmaps\nand emptydir.\nValid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to all containers.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in SecurityContext. If set in\nboth SecurityContext and PodSecurityContext, the value specified in SecurityContext\ntakes precedence for that container.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - }, - "type": "object" - }, - "seccompProfile": { - "description": "The seccomp options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "supplementalGroups": { - "description": "A list of groups applied to the first process run in each container, in\naddition to the container's primary GID and fsGroup (if specified). If\nthe SupplementalGroupsPolicy feature is enabled, the\nsupplementalGroupsPolicy field determines whether these are in addition\nto or instead of any group memberships defined in the container image.\nIf unspecified, no additional groups are added, though group memberships\ndefined in the container image may still be used, depending on the\nsupplementalGroupsPolicy field.\nNote that this field cannot be set when spec.os.name is windows.", - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "supplementalGroupsPolicy": { - "description": "Defines how supplemental groups of the first container processes are calculated.\nValid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used.\n(Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled\nand the container runtime must implement support for this feature.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "sysctls": { - "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\nsysctls (by the container runtime) might fail to launch.\nNote that this field cannot be set when spec.os.name is windows.", - "items": { - "description": "Sysctl defines a kernel parameter to be set", - "properties": { - "name": { - "description": "Name of a property to set", - "type": "string" - }, - "value": { - "description": "Value of a property to set", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "windowsOptions": { - "description": "The Windows specific settings applied to all containers.\nIf unspecified, the options within a container's SecurityContext will be used.\nIf set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is linux.", - "properties": { - "gmsaCredentialSpec": { - "description": "GMSACredentialSpec is where the GMSA admission webhook\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\nGMSA credential spec named by the GMSACredentialSpecName field.", - "type": "string" - }, - "gmsaCredentialSpecName": { - "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", - "type": "string" - }, - "hostProcess": { - "description": "HostProcess determines if a container should be run as a 'Host Process' container.\nAll of a Pod's containers must have the same effective HostProcess value\n(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\nIn addition, if HostProcess is true then HostNetwork must also be set to true.", - "type": "boolean" - }, - "runAsUserName": { - "description": "The UserName in Windows to run the entrypoint of the container process.\nDefaults to the user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "serviceAccountName": { - "description": "ServiceAccountName is the name of the ServiceAccount to use to run the\nPrometheus Pods.", - "type": "string" - }, - "sha": { - "description": "SHA of Alertmanager container image to be deployed. Defaults to the value of `version`.\nSimilar to a tag, but the SHA explicitly deploys an immutable container image.\nVersion and Tag are ignored if SHA is set.\nDeprecated: use 'image' instead. The image digest can be specified as part of the image URL.", - "type": "string" - }, - "storage": { - "description": "Storage is the definition of how storage will be used by the Alertmanager\ninstances.", - "properties": { - "disableMountSubPath": { - "description": "Deprecated: subPath usage will be removed in a future release.", - "type": "boolean" - }, - "emptyDir": { - "description": "EmptyDirVolumeSource to be used by the StatefulSet.\nIf specified, it takes precedence over `ephemeral` and `volumeClaimTemplate`.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir", - "properties": { - "medium": { - "description": "medium represents what type of storage medium should back this directory.\nThe default is \"\" which means to use the node's default medium.\nMust be an empty string (default) or Memory.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "type": "string" - }, - "sizeLimit": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume.\nThe size limit is also applicable for memory medium.\nThe maximum usage on memory medium EmptyDir would be the minimum value between\nthe SizeLimit specified here and the sum of memory limits of all containers in a pod.\nThe default is nil which means that the limit is undefined.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - } - }, - "type": "object" - }, - "ephemeral": { - "description": "EphemeralVolumeSource to be used by the StatefulSet.\nThis is a beta field in k8s 1.21 and GA in 1.15.\nFor lower versions, starting with k8s 1.19, it requires enabling the GenericEphemeralVolume feature gate.\nMore info: https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes", - "properties": { - "volumeClaimTemplate": { - "description": "Will be used to create a stand-alone PVC to provision the volume.\nThe pod in which this EphemeralVolumeSource is embedded will be the\nowner of the PVC, i.e. the PVC will be deleted together with the\npod. The name of the PVC will be `-` where\n`` is the name from the `PodSpec.Volumes` array\nentry. Pod validation will reject the pod if the concatenated name\nis not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod\nwill *not* be used for the pod to avoid using an unrelated\nvolume by mistake. Starting the pod is then blocked until\nthe unrelated PVC is removed. If such a pre-created PVC is\nmeant to be used by the pod, the PVC has to updated with an\nowner reference to the pod once the pod exists. Normally\nthis should not be necessary, but it may be useful when\nmanually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes\nto the PVC after it has been created.\n\nRequired, must not be nil.", - "properties": { - "metadata": { - "description": "May contain labels and annotations that will be copied into the PVC\nwhen creating it. No other fields are allowed and will be rejected during\nvalidation.", - "type": "object" - }, - "spec": { - "description": "The specification for the PersistentVolumeClaim. The entire content is\ncopied unchanged into the PVC that gets created from this\ntemplate. The same fields as in a PersistentVolumeClaim\nare also valid here.", - "properties": { - "accessModes": { - "description": "accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "dataSource": { - "description": "dataSource field can be used to specify either:\n* An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n* An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "dataSourceRef": { - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n* While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "resources": { - "description": "resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "selector": { - "description": "selector is a label query over volumes to consider for binding.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "storageClassName": { - "description": "storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeAttributesClassName": { - "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "type": "object" - }, - "volumeClaimTemplate": { - "description": "Defines the PVC spec to be used by the Prometheus StatefulSets.\nThe easiest way to use a volume that cannot be automatically provisioned\nis to use a label selector alongside manually created PersistentVolumes.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "EmbeddedMetadata contains metadata relevant to an EmbeddedResource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "type": "object" - }, - "spec": { - "description": "Defines the desired characteristics of a volume requested by a pod author.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "properties": { - "accessModes": { - "description": "accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "dataSource": { - "description": "dataSource field can be used to specify either:\n* An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n* An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "dataSourceRef": { - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n* While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "resources": { - "description": "resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "selector": { - "description": "selector is a label query over volumes to consider for binding.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "storageClassName": { - "description": "storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeAttributesClassName": { - "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - }, - "type": "object" - }, - "status": { - "description": "Deprecated: this field is never set.", - "properties": { - "accessModes": { - "description": "accessModes contains the actual access modes the volume backing the PVC has.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "allocatedResourceStatuses": { - "additionalProperties": { - "description": "When a controller receives persistentvolume claim update with ClaimResourceStatus for a resource\nthat it does not recognizes, then it should ignore that update and let other controllers\nhandle it.", - "type": "string" - }, - "description": "allocatedResourceStatuses stores status of resource being resized for the given PVC.\nKey names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered\nreserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus\nshould ignore the update for the purpose it was designed. For example - a controller that\nonly is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid\nresources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", - "type": "object", - "x-kubernetes-map-type": "granular" - }, - "allocatedResources": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "allocatedResources tracks the resources allocated to a PVC including its capacity.\nKey names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered\nreserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation\nis requested.\nFor storage quota, the larger value from allocatedResources and PVC.spec.resources is used.\nIf allocatedResources is not set, PVC.spec.resources alone is used for quota calculation.\nIf a volume expansion capacity request is lowered, allocatedResources is only\nlowered if there are no expansion operations in progress and if the actual volume capacity\nis equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName\nshould ignore the update for the purpose it was designed. For example - a controller that\nonly is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid\nresources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", - "type": "object" - }, - "capacity": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "capacity represents the actual resources of the underlying volume.", - "type": "object" - }, - "conditions": { - "description": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being\nresized then the Condition will be set to 'Resizing'.", - "items": { - "description": "PersistentVolumeClaimCondition contains details about state of pvc", - "properties": { - "lastProbeTime": { - "description": "lastProbeTime is the time we probed the condition.", - "format": "date-time", - "type": "string" - }, - "lastTransitionTime": { - "description": "lastTransitionTime is the time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "message is the human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "reason is a unique, this should be a short, machine understandable string that gives the reason\nfor condition's last transition. If it reports \"Resizing\" that means the underlying\npersistent volume is being resized.", - "type": "string" - }, - "status": { - "type": "string" - }, - "type": { - "description": "PersistentVolumeClaimConditionType defines the condition of PV claim.\nValid values are:\n - \"Resizing\", \"FileSystemResizePending\"\n\nIf RecoverVolumeExpansionFailure feature gate is enabled, then following additional values can be expected:\n - \"ControllerResizeError\", \"NodeResizeError\"\n\nIf VolumeAttributesClass feature gate is enabled, then following additional values can be expected:\n - \"ModifyVolumeError\", \"ModifyingVolume\"", - "type": "string" - } - }, - "required": [ - "status", - "type" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - }, - "currentVolumeAttributesClassName": { - "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.\nWhen unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim\nThis is a beta field and requires enabling VolumeAttributesClass feature (off by default).", - "type": "string" - }, - "modifyVolumeStatus": { - "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.\nWhen this is unset, there is no ModifyVolume operation being attempted.\nThis is a beta field and requires enabling VolumeAttributesClass feature (off by default).", - "properties": { - "status": { - "description": "status is the status of the ControllerModifyVolume operation. It can be in any of following states:\n - Pending\n Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n InProgress indicates that the volume is being modified.\n - Infeasible\n Infeasible indicates that the request has been rejected as invalid by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass needs to be specified.\nNote: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.", - "type": "string" - }, - "targetVolumeAttributesClassName": { - "description": "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled", - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "phase": { - "description": "phase represents the current phase of PersistentVolumeClaim.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "tag": { - "description": "Tag of Alertmanager container image to be deployed. Defaults to the value of `version`.\nVersion is ignored if Tag is set.\nDeprecated: use 'image' instead. The image tag can be specified as part of the image URL.", - "type": "string" - }, - "tolerations": { - "description": "If specified, the pod's tolerations.", - "items": { - "description": "The pod this Toleration is attached to tolerates any taint that matches\nthe triple using the matching operator .", - "properties": { - "effect": { - "description": "Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", - "type": "string" - }, - "key": { - "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.", - "type": "string" - }, - "operator": { - "description": "Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category.", - "type": "string" - }, - "tolerationSeconds": { - "description": "TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system.", - "format": "int64", - "type": "integer" - }, - "value": { - "description": "Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "topologySpreadConstraints": { - "description": "If specified, the pod's topology spread constraints.", - "items": { - "description": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", - "properties": { - "labelSelector": { - "description": "LabelSelector is used to find matching pods.\nPods that match this label selector are counted to determine the number of pods\nin their corresponding topology domain.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select the pods over which\nspreading will be calculated. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are ANDed with labelSelector\nto select the group of existing pods over which spreading will be calculated\nfor the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.\nMatchLabelKeys cannot be set when LabelSelector isn't set.\nKeys that don't exist in the incoming pod labels will\nbe ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "maxSkew": { - "description": "MaxSkew describes the degree to which pods may be unevenly distributed.\nWhen `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference\nbetween the number of matching pods in the target topology and the global minimum.\nThe global minimum is the minimum number of matching pods in an eligible domain\nor zero if the number of eligible domains is less than MinDomains.\nFor example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\nlabelSelector spread as 2/2/1:\nIn this case, the global minimum is 1.\n| zone1 | zone2 | zone3 |\n| P P | P P | P |\n- if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;\nscheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)\nviolate MaxSkew(1).\n- if MaxSkew is 2, incoming pod can be scheduled onto any zone.\nWhen `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence\nto topologies that satisfy it.\nIt's a required field. Default value is 1 and 0 is not allowed.", - "format": "int32", - "type": "integer" - }, - "minDomains": { - "description": "MinDomains indicates a minimum number of eligible domains.\nWhen the number of eligible domains with matching topology keys is less than minDomains,\nPod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed.\nAnd when the number of eligible domains with matching topology keys equals or greater than minDomains,\nthis value has no effect on scheduling.\nAs a result, when the number of eligible domains is less than minDomains,\nscheduler won't schedule more than maxSkew Pods to those domains.\nIf value is nil, the constraint behaves as if MinDomains is equal to 1.\nValid values are integers greater than 0.\nWhen value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same\nlabelSelector spread as 2/2/2:\n| zone1 | zone2 | zone3 |\n| P P | P P | P P |\nThe number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0.\nIn this situation, new pod with the same labelSelector cannot be scheduled,\nbecause computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,\nit will violate MaxSkew.", - "format": "int32", - "type": "integer" - }, - "nodeAffinityPolicy": { - "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector\nwhen calculating pod topology spread skew. Options are:\n- Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.\n- Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy.\nThis is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", - "type": "string" - }, - "nodeTaintsPolicy": { - "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating\npod topology spread skew. Options are:\n- Honor: nodes without taints, along with tainted nodes for which the incoming pod\nhas a toleration, are included.\n- Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy.\nThis is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", - "type": "string" - }, - "topologyKey": { - "description": "TopologyKey is the key of node labels. Nodes that have a label with this key\nand identical values are considered to be in the same topology.\nWe consider each as a \"bucket\", and try to put balanced number\nof pods into each bucket.\nWe define a domain as a particular instance of a topology.\nAlso, we define an eligible domain as a domain whose nodes meet the requirements of\nnodeAffinityPolicy and nodeTaintsPolicy.\ne.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology.\nAnd, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology.\nIt's a required field.", - "type": "string" - }, - "whenUnsatisfiable": { - "description": "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy\nthe spread constraint.\n- DoNotSchedule (default) tells the scheduler not to schedule it.\n- ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod\nif and only if every possible node assignment for that pod would violate\n\"MaxSkew\" on some topology.\nFor example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\nlabelSelector spread as 3/1/1:\n| zone1 | zone2 | zone3 |\n| P P P | P | P |\nIf WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled\nto zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies\nMaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler\nwon't make it *more* imbalanced.\nIt's a required field.", - "type": "string" - } - }, - "required": [ - "maxSkew", - "topologyKey", - "whenUnsatisfiable" - ], - "type": "object" - }, - "type": "array" - }, - "version": { - "description": "Version the cluster should be on.", - "type": "string" - }, - "volumeMounts": { - "description": "VolumeMounts allows configuration of additional VolumeMounts on the output StatefulSet definition.\nVolumeMounts specified will be appended to other VolumeMounts in the alertmanager container,\nthat are generated as a result of StorageSpec objects.", - "items": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None).", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.", - "type": "boolean" - }, - "recursiveReadOnly": { - "description": "RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - "type": "string" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).", - "type": "string" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.", - "type": "string" - } - }, - "required": [ - "mountPath", - "name" - ], - "type": "object" - }, - "type": "array" - }, - "volumes": { - "description": "Volumes allows configuration of additional volumes on the output StatefulSet definition.\nVolumes specified will be appended to other volumes that are generated as a result of\nStorageSpec objects.", - "items": { - "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", - "properties": { - "awsElasticBlockStore": { - "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "properties": { - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "string" - }, - "partition": { - "description": "partition is the partition in the volume that you want to mount.\nIf omitted, the default is to mount by volume name.\nExamples: For volume /dev/sda1, you specify the partition as \"1\".\nSimilarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "readOnly value true will force the readOnly setting in VolumeMounts.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "boolean" - }, - "volumeID": { - "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "azureDisk": { - "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "properties": { - "cachingMode": { - "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", - "type": "string" - }, - "diskName": { - "description": "diskName is the Name of the data disk in the blob storage", - "type": "string" - }, - "diskURI": { - "description": "diskURI is the URI of data disk in the blob storage", - "type": "string" - }, - "fsType": { - "default": "ext4", - "description": "fsType is Filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "kind": { - "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", - "type": "string" - }, - "readOnly": { - "default": false, - "description": "readOnly Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - } - }, - "required": [ - "diskName", - "diskURI" - ], - "type": "object" - }, - "azureFile": { - "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "properties": { - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretName": { - "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", - "type": "string" - }, - "shareName": { - "description": "shareName is the azure share Name", - "type": "string" - } - }, - "required": [ - "secretName", - "shareName" - ], - "type": "object" - }, - "cephfs": { - "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "properties": { - "monitors": { - "description": "monitors is Required: Monitors is a collection of Ceph monitors\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "type": "string" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "boolean" - }, - "secretFile": { - "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "user": { - "description": "user is optional: User is the rados user name, default is admin\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - } - }, - "required": [ - "monitors" - ], - "type": "object" - }, - "cinder": { - "description": "cinder represents a cinder volume attached and mounted on kubelets host machine.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is optional: points to a secret object containing parameters used to connect\nto OpenStack.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "volumeID": { - "description": "volumeID used to identify the volume in cinder.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "configMap": { - "description": "configMap represents a configMap that should populate this volume", - "properties": { - "defaultMode": { - "description": "defaultMode is optional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDefaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "csi": { - "description": "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", - "properties": { - "driver": { - "description": "driver is the name of the CSI driver that handles this volume.\nConsult with your admin for the correct name as registered in the cluster.", - "type": "string" - }, - "fsType": { - "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\".\nIf not provided, the empty value is passed to the associated CSI driver\nwhich will determine the default filesystem to apply.", - "type": "string" - }, - "nodePublishSecretRef": { - "description": "nodePublishSecretRef is a reference to the secret object containing\nsensitive information to pass to the CSI driver to complete the CSI\nNodePublishVolume and NodeUnpublishVolume calls.\nThis field is optional, and may be empty if no secret is required. If the\nsecret object contains more than one secret, all secret references are passed.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "readOnly": { - "description": "readOnly specifies a read-only configuration for the volume.\nDefaults to false (read/write).", - "type": "boolean" - }, - "volumeAttributes": { - "additionalProperties": { - "type": "string" - }, - "description": "volumeAttributes stores driver-specific properties that are passed to the CSI\ndriver. Consult your driver's documentation for supported values.", - "type": "object" - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "downwardAPI": { - "description": "downwardAPI represents downward API about the pod that should populate this volume", - "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a\nOptional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDefaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "Items is a list of downward API volume file", - "items": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "properties": { - "fieldRef": { - "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file, must be an octal value\nbetween 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", - "type": "string" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "emptyDir": { - "description": "emptyDir represents a temporary directory that shares a pod's lifetime.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "properties": { - "medium": { - "description": "medium represents what type of storage medium should back this directory.\nThe default is \"\" which means to use the node's default medium.\nMust be an empty string (default) or Memory.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "type": "string" - }, - "sizeLimit": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume.\nThe size limit is also applicable for memory medium.\nThe maximum usage on memory medium EmptyDir would be the minimum value between\nthe SizeLimit specified here and the sum of memory limits of all containers in a pod.\nThe default is nil which means that the limit is undefined.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - } - }, - "type": "object" - }, - "ephemeral": { - "description": "ephemeral represents a volume that is handled by a cluster storage driver.\nThe volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,\nand deleted when the pod is removed.\n\nUse this if:\na) the volume is only needed while the pod runs,\nb) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and\nd) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific\nAPIs for volumes that persist for longer than the lifecycle\nof an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to\nbe used that way - see the documentation of the driver for\nmore information.\n\nA pod can use both types of ephemeral volumes and\npersistent volumes at the same time.", - "properties": { - "volumeClaimTemplate": { - "description": "Will be used to create a stand-alone PVC to provision the volume.\nThe pod in which this EphemeralVolumeSource is embedded will be the\nowner of the PVC, i.e. the PVC will be deleted together with the\npod. The name of the PVC will be `-` where\n`` is the name from the `PodSpec.Volumes` array\nentry. Pod validation will reject the pod if the concatenated name\nis not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod\nwill *not* be used for the pod to avoid using an unrelated\nvolume by mistake. Starting the pod is then blocked until\nthe unrelated PVC is removed. If such a pre-created PVC is\nmeant to be used by the pod, the PVC has to updated with an\nowner reference to the pod once the pod exists. Normally\nthis should not be necessary, but it may be useful when\nmanually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes\nto the PVC after it has been created.\n\nRequired, must not be nil.", - "properties": { - "metadata": { - "description": "May contain labels and annotations that will be copied into the PVC\nwhen creating it. No other fields are allowed and will be rejected during\nvalidation.", - "type": "object" - }, - "spec": { - "description": "The specification for the PersistentVolumeClaim. The entire content is\ncopied unchanged into the PVC that gets created from this\ntemplate. The same fields as in a PersistentVolumeClaim\nare also valid here.", - "properties": { - "accessModes": { - "description": "accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "dataSource": { - "description": "dataSource field can be used to specify either:\n* An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n* An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "dataSourceRef": { - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n* While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "resources": { - "description": "resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "selector": { - "description": "selector is a label query over volumes to consider for binding.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "storageClassName": { - "description": "storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeAttributesClassName": { - "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "type": "object" - }, - "fc": { - "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "lun": { - "description": "lun is Optional: FC target lun number", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "targetWWNs": { - "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "wwids": { - "description": "wwids Optional: FC volume world wide identifiers (wwids)\nEither wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "flexVolume": { - "description": "flexVolume represents a generic volume resource that is\nprovisioned/attached using an exec based plugin.", - "properties": { - "driver": { - "description": "driver is the name of the driver to use for this volume.", - "type": "string" - }, - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", - "type": "string" - }, - "options": { - "additionalProperties": { - "type": "string" - }, - "description": "options is Optional: this field holds extra command options if any.", - "type": "object" - }, - "readOnly": { - "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is Optional: secretRef is reference to the secret object containing\nsensitive information to pass to the plugin scripts. This may be\nempty if no secret object is specified. If the secret object\ncontains more than one secret, all secrets are passed to the plugin\nscripts.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "flocker": { - "description": "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", - "properties": { - "datasetName": { - "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker\nshould be considered as deprecated", - "type": "string" - }, - "datasetUUID": { - "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", - "type": "string" - } - }, - "type": "object" - }, - "gcePersistentDisk": { - "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "properties": { - "fsType": { - "description": "fsType is filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string" - }, - "partition": { - "description": "partition is the partition in the volume that you want to mount.\nIf omitted, the default is to mount by volume name.\nExamples: For volume /dev/sda1, you specify the partition as \"1\".\nSimilarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "format": "int32", - "type": "integer" - }, - "pdName": { - "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "boolean" - } - }, - "required": [ - "pdName" - ], - "type": "object" - }, - "gitRepo": { - "description": "gitRepo represents a git repository at a particular revision.\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an\nEmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir\ninto the Pod's container.", - "properties": { - "directory": { - "description": "directory is the target directory name.\nMust not contain or start with '..'. If '.' is supplied, the volume directory will be the\ngit repository. Otherwise, if specified, the volume will contain the git repository in\nthe subdirectory with the given name.", - "type": "string" - }, - "repository": { - "description": "repository is the URL", - "type": "string" - }, - "revision": { - "description": "revision is the commit hash for the specified revision.", - "type": "string" - } - }, - "required": [ - "repository" - ], - "type": "object" - }, - "glusterfs": { - "description": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md", - "properties": { - "endpoints": { - "description": "endpoints is the endpoint name that details Glusterfs topology.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "path": { - "description": "path is the Glusterfs volume path.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions.\nDefaults to false.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" - } - }, - "required": [ - "endpoints", - "path" - ], - "type": "object" - }, - "hostPath": { - "description": "hostPath represents a pre-existing file or directory on the host\nmachine that is directly exposed to the container. This is generally\nused for system agents or other privileged things that are allowed\nto see the host machine. Most containers will NOT need this.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "properties": { - "path": { - "description": "path of the directory on the host.\nIf the path is a symlink, it will follow the link to the real path.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "type": "string" - }, - "type": { - "description": "type for HostPath Volume\nDefaults to \"\"\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "image": { - "description": "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.\nThe volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.\n- Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.\n- IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation.\nA failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message.\nThe types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field.\nThe OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images.\nThe volume will be mounted read-only (ro) and non-executable files (noexec).\nSub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath).\nThe field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", - "properties": { - "pullPolicy": { - "description": "Policy for pulling OCI objects. Possible values are:\nAlways: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.\nNever: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.\nIfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.", - "type": "string" - }, - "reference": { - "description": "Required: Image or artifact reference to be used.\nBehaves in the same way as pod.spec.containers[*].image.\nPull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.\nMore info: https://kubernetes.io/docs/concepts/containers/images\nThis field is optional to allow higher level config management to default or override\ncontainer images in workload controllers like Deployments and StatefulSets.", - "type": "string" - } - }, - "type": "object" - }, - "iscsi": { - "description": "iscsi represents an ISCSI Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://examples.k8s.io/volumes/iscsi/README.md", - "properties": { - "chapAuthDiscovery": { - "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", - "type": "boolean" - }, - "chapAuthSession": { - "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", - "type": "boolean" - }, - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", - "type": "string" - }, - "initiatorName": { - "description": "initiatorName is the custom iSCSI Initiator Name.\nIf initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface\n: will be created for the connection.", - "type": "string" - }, - "iqn": { - "description": "iqn is the target iSCSI Qualified Name.", - "type": "string" - }, - "iscsiInterface": { - "default": "default", - "description": "iscsiInterface is the interface Name that uses an iSCSI transport.\nDefaults to 'default' (tcp).", - "type": "string" - }, - "lun": { - "description": "lun represents iSCSI Target Lun number.", - "format": "int32", - "type": "integer" - }, - "portals": { - "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port\nis other than default (typically TCP ports 860 and 3260).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "targetPortal": { - "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port\nis other than default (typically TCP ports 860 and 3260).", - "type": "string" - } - }, - "required": [ - "iqn", - "lun", - "targetPortal" - ], - "type": "object" - }, - "name": { - "description": "name of the volume.\nMust be a DNS_LABEL and unique within the pod.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "nfs": { - "description": "nfs represents an NFS mount on the host that shares a pod's lifetime\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "properties": { - "path": { - "description": "path that is exported by the NFS server.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the NFS export to be mounted with read-only permissions.\nDefaults to false.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "boolean" - }, - "server": { - "description": "server is the hostname or IP address of the NFS server.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - } - }, - "required": [ - "path", - "server" - ], - "type": "object" - }, - "persistentVolumeClaim": { - "description": "persistentVolumeClaimVolumeSource represents a reference to a\nPersistentVolumeClaim in the same namespace.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "properties": { - "claimName": { - "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "type": "string" - }, - "readOnly": { - "description": "readOnly Will force the ReadOnly setting in VolumeMounts.\nDefault false.", - "type": "boolean" - } - }, - "required": [ - "claimName" - ], - "type": "object" - }, - "photonPersistentDisk": { - "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "pdID": { - "description": "pdID is the ID that identifies Photon Controller persistent disk", - "type": "string" - } - }, - "required": [ - "pdID" - ], - "type": "object" - }, - "portworxVolume": { - "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "properties": { - "fsType": { - "description": "fSType represents the filesystem type to mount\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "volumeID": { - "description": "volumeID uniquely identifies a Portworx volume", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "projected": { - "description": "projected items for all in one resources secrets, configmaps, and downward API", - "properties": { - "defaultMode": { - "description": "defaultMode are the mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "sources": { - "description": "sources is the list of volume projections. Each entry in this list\nhandles one source.", - "items": { - "description": "Projection that may be projected along with other supported volume types.\nExactly one of these fields must be set.", - "properties": { - "clusterTrustBundle": { - "description": "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field\nof ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the\ncombination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written\ninto the pod filesystem. Esoteric PEM features such as inter-block\ncomments and block headers are stripped. Certificates are deduplicated.\nThe ordering of certificates within the file is arbitrary, and Kubelet\nmay change the order over time.", - "properties": { - "labelSelector": { - "description": "Select all ClusterTrustBundles that match this label selector. Only has\neffect if signerName is set. Mutually-exclusive with name. If unset,\ninterpreted as \"match nothing\". If set but empty, interpreted as \"match\neverything\".", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "name": { - "description": "Select a single ClusterTrustBundle by object name. Mutually-exclusive\nwith signerName and labelSelector.", - "type": "string" - }, - "optional": { - "description": "If true, don't block pod startup if the referenced ClusterTrustBundle(s)\naren't available. If using name, then the named ClusterTrustBundle is\nallowed not to exist. If using signerName, then the combination of\nsignerName and labelSelector is allowed to match zero\nClusterTrustBundles.", - "type": "boolean" - }, - "path": { - "description": "Relative path from the volume root to write the bundle.", - "type": "string" - }, - "signerName": { - "description": "Select all ClusterTrustBundles that match this signer name.\nMutually-exclusive with name. The contents of all selected\nClusterTrustBundles will be unified and deduplicated.", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "configMap": { - "description": "configMap information about the configMap data to project", - "properties": { - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "downwardAPI": { - "description": "downwardAPI information about the downwardAPI data to project", - "properties": { - "items": { - "description": "Items is a list of DownwardAPIVolume file", - "items": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "properties": { - "fieldRef": { - "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file, must be an octal value\nbetween 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", - "type": "string" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "secret": { - "description": "secret information about the secret data to project", - "properties": { - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "optional field specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "serviceAccountToken": { - "description": "serviceAccountToken is information about the serviceAccountToken data to project", - "properties": { - "audience": { - "description": "audience is the intended audience of the token. A recipient of a token\nmust identify itself with an identifier specified in the audience of the\ntoken, and otherwise should reject the token. The audience defaults to the\nidentifier of the apiserver.", - "type": "string" - }, - "expirationSeconds": { - "description": "expirationSeconds is the requested duration of validity of the service\naccount token. As the token approaches expiration, the kubelet volume\nplugin will proactively rotate the service account token. The kubelet will\nstart trying to rotate the token if the token is older than 80 percent of\nits time to live or if the token is older than 24 hours.Defaults to 1 hour\nand must be at least 10 minutes.", - "format": "int64", - "type": "integer" - }, - "path": { - "description": "path is the path relative to the mount point of the file to project the\ntoken into.", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - } - }, - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "quobyte": { - "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "properties": { - "group": { - "description": "group to map volume access to\nDefault is no group", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the Quobyte volume to be mounted with read-only permissions.\nDefaults to false.", - "type": "boolean" - }, - "registry": { - "description": "registry represents a single or multiple Quobyte Registry services\nspecified as a string as host:port pair (multiple entries are separated with commas)\nwhich acts as the central registry for volumes", - "type": "string" - }, - "tenant": { - "description": "tenant owning the given Quobyte volume in the Backend\nUsed with dynamically provisioned Quobyte volumes, value is set by the plugin", - "type": "string" - }, - "user": { - "description": "user to map volume access to\nDefaults to serivceaccount user", - "type": "string" - }, - "volume": { - "description": "volume is a string that references an already created Quobyte volume by name.", - "type": "string" - } - }, - "required": [ - "registry", - "volume" - ], - "type": "object" - }, - "rbd": { - "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.\nMore info: https://examples.k8s.io/volumes/rbd/README.md", - "properties": { - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", - "type": "string" - }, - "image": { - "description": "image is the rados image name.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "keyring": { - "default": "/etc/ceph/keyring", - "description": "keyring is the path to key ring for RBDUser.\nDefault is /etc/ceph/keyring.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "monitors": { - "description": "monitors is a collection of Ceph monitors.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "pool": { - "default": "rbd", - "description": "pool is the rados pool name.\nDefault is rbd.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is name of the authentication secret for RBDUser. If provided\noverrides keyring.\nDefault is nil.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "user": { - "default": "admin", - "description": "user is the rados user name.\nDefault is admin.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - } - }, - "required": [ - "image", - "monitors" - ], - "type": "object" - }, - "scaleIO": { - "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "properties": { - "fsType": { - "default": "xfs", - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\".\nDefault is \"xfs\".", - "type": "string" - }, - "gateway": { - "description": "gateway is the host address of the ScaleIO API Gateway.", - "type": "string" - }, - "protectionDomain": { - "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", - "type": "string" - }, - "readOnly": { - "description": "readOnly Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef references to the secret for ScaleIO user and other\nsensitive information. If this is not provided, Login operation will fail.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "sslEnabled": { - "description": "sslEnabled Flag enable/disable SSL communication with Gateway, default false", - "type": "boolean" - }, - "storageMode": { - "default": "ThinProvisioned", - "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.\nDefault is ThinProvisioned.", - "type": "string" - }, - "storagePool": { - "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", - "type": "string" - }, - "system": { - "description": "system is the name of the storage system as configured in ScaleIO.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the name of a volume already created in the ScaleIO system\nthat is associated with this volume source.", - "type": "string" - } - }, - "required": [ - "gateway", - "secretRef", - "system" - ], - "type": "object" - }, - "secret": { - "description": "secret represents a secret that should populate this volume.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - "properties": { - "defaultMode": { - "description": "defaultMode is Optional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values\nfor mode bits. Defaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "items If unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "optional": { - "description": "optional field specify whether the Secret or its keys must be defined", - "type": "boolean" - }, - "secretName": { - "description": "secretName is the name of the secret in the pod's namespace to use.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - "type": "string" - } - }, - "type": "object" - }, - "storageos": { - "description": "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef specifies the secret to use for obtaining the StorageOS API\ncredentials. If not specified, default values will be attempted.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "volumeName": { - "description": "volumeName is the human-readable name of the StorageOS volume. Volume\nnames are only unique within a namespace.", - "type": "string" - }, - "volumeNamespace": { - "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no\nnamespace is specified then the Pod's namespace will be used. This allows the\nKubernetes name scoping to be mirrored within StorageOS for tighter integration.\nSet VolumeName to any name to override the default behaviour.\nSet to \"default\" if you are not using namespaces within StorageOS.\nNamespaces that do not pre-exist within StorageOS will be created.", - "type": "string" - } - }, - "type": "object" - }, - "vsphereVolume": { - "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "properties": { - "fsType": { - "description": "fsType is filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "storagePolicyID": { - "description": "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", - "type": "string" - }, - "storagePolicyName": { - "description": "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", - "type": "string" - }, - "volumePath": { - "description": "volumePath is the path that identifies vSphere volume vmdk", - "type": "string" - } - }, - "required": [ - "volumePath" - ], - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "web": { - "description": "Defines the web command line flags when starting Alertmanager.", - "properties": { - "getConcurrency": { - "description": "Maximum number of GET requests processed concurrently. This corresponds to the\nAlertmanager's `--web.get-concurrency` flag.", - "format": "int32", - "type": "integer" - }, - "httpConfig": { - "description": "Defines HTTP parameters for web server.", - "properties": { - "headers": { - "description": "List of headers that can be added to HTTP responses.", - "properties": { - "contentSecurityPolicy": { - "description": "Set the Content-Security-Policy header to HTTP responses.\nUnset if blank.", - "type": "string" - }, - "strictTransportSecurity": { - "description": "Set the Strict-Transport-Security header to HTTP responses.\nUnset if blank.\nPlease make sure that you use this with care as this header might force\nbrowsers to load Prometheus and the other applications hosted on the same\ndomain and subdomains over HTTPS.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security", - "type": "string" - }, - "xContentTypeOptions": { - "description": "Set the X-Content-Type-Options header to HTTP responses.\nUnset if blank. Accepted value is nosniff.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options", - "enum": [ - "", - "NoSniff" - ], - "type": "string" - }, - "xFrameOptions": { - "description": "Set the X-Frame-Options header to HTTP responses.\nUnset if blank. Accepted values are deny and sameorigin.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options", - "enum": [ - "", - "Deny", - "SameOrigin" - ], - "type": "string" - }, - "xXSSProtection": { - "description": "Set the X-XSS-Protection header to all responses.\nUnset if blank.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection", - "type": "string" - } - }, - "type": "object" - }, - "http2": { - "description": "Enable HTTP/2 support. Note that HTTP/2 is only supported with TLS.\nWhen TLSConfig is not configured, HTTP/2 will be disabled.\nWhenever the value of the field changes, a rolling update will be triggered.", - "type": "boolean" - } - }, - "type": "object" - }, - "timeout": { - "description": "Timeout for HTTP requests. This corresponds to the Alertmanager's\n`--web.timeout` flag.", - "format": "int32", - "type": "integer" - }, - "tlsConfig": { - "description": "Defines the TLS parameters for HTTPS.", - "properties": { - "cert": { - "description": "Contains the TLS certificate for the server.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cipherSuites": { - "description": "List of supported cipher suites for TLS versions up to TLS 1.2. If empty,\nGo default cipher suites are used. Available cipher suites are documented\nin the go documentation: https://golang.org/pkg/crypto/tls/#pkg-constants", - "items": { - "type": "string" - }, - "type": "array" - }, - "clientAuthType": { - "description": "Server policy for client authentication. Maps to ClientAuth Policies.\nFor more detail on clientAuth options:\nhttps://golang.org/pkg/crypto/tls/#ClientAuthType", - "type": "string" - }, - "client_ca": { - "description": "Contains the CA certificate for client certificate authentication to the server.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "curvePreferences": { - "description": "Elliptic curves that will be used in an ECDHE handshake, in preference\norder. Available curves are documented in the go documentation:\nhttps://golang.org/pkg/crypto/tls/#CurveID", - "items": { - "type": "string" - }, - "type": "array" - }, - "keySecret": { - "description": "Secret containing the TLS key for the server.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum TLS version that is acceptable. Defaults to TLS13.", - "type": "string" - }, - "minVersion": { - "description": "Minimum TLS version that is acceptable. Defaults to TLS12.", - "type": "string" - }, - "preferServerCipherSuites": { - "description": "Controls whether the server selects the\nclient's most preferred cipher suite, or the server's most preferred\ncipher suite. If true then the server's preference, as expressed in\nthe order of elements in cipherSuites, is used.", - "type": "boolean" - } - }, - "required": [ - "cert", - "keySecret" - ], - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "status": { - "description": "Most recent observed status of the Alertmanager cluster. Read-only.\nMore info:\nhttps://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds)\ntargeted by this Alertmanager cluster.", - "format": "int32", - "type": "integer" - }, - "conditions": { - "description": "The current state of the Alertmanager object.", - "items": { - "description": "Condition represents the state of the resources associated with the\nPrometheus, Alertmanager or ThanosRuler resource.", - "properties": { - "lastTransitionTime": { - "description": "lastTransitionTime is the time of the last update to the current status property.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "Human-readable message indicating details for the condition's last transition.", - "type": "string" - }, - "observedGeneration": { - "description": "ObservedGeneration represents the .metadata.generation that the\ncondition was set based upon. For instance, if `.metadata.generation` is\ncurrently 12, but the `.status.conditions[].observedGeneration` is 9, the\ncondition is out of date with respect to the current state of the\ninstance.", - "format": "int64", - "type": "integer" - }, - "reason": { - "description": "Reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition.", - "type": "string" - }, - "type": { - "description": "Type of the condition being reported.", - "type": "string" - } - }, - "required": [ - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - }, - "paused": { - "description": "Represents whether any actions on the underlying managed objects are\nbeing performed. Only delete actions will be performed.", - "type": "boolean" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this Alertmanager\nobject (their labels match the selector).", - "format": "int32", - "type": "integer" - }, - "selector": { - "description": "The selector used to match the pods targeted by this Alertmanager object.", - "type": "string" - }, - "unavailableReplicas": { - "description": "Total number of unavailable pods targeted by this Alertmanager object.", - "format": "int32", - "type": "integer" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this Alertmanager\nobject that have the desired version spec.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "availableReplicas", - "paused", - "replicas", - "unavailableReplicas", - "updatedReplicas" - ], - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "served": true, - "storage": true, - "subresources": { - "scale": { - "labelSelectorPath": ".status.selector", - "specReplicasPath": ".spec.replicas", - "statusReplicasPath": ".status.replicas" - }, - "status": {} - } - } - ] - } -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/conversion.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/conversion.libsonnet deleted file mode 100644 index 21df1a240..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/conversion.libsonnet +++ /dev/null @@ -1,39 +0,0 @@ -local defaults = { - local defaults = self, - name: error 'must provide the name of the webhook service', - namespace: error 'must provide the namespace of the webhook service', - annotations: {}, - port: 8443, - path: '/convert', - versions: ['v1beta1', 'v1alpha1'], - caBundle: '', -}; - - -function(params) { - local c = self, - _config:: defaults + params, - - metadata+: { - annotations+: c._config.annotations, - }, - spec+: { - conversion: { - strategy: 'Webhook', - webhook: { - conversionReviewVersions: c._config.versions, - clientConfig: { - service: { - namespace: c._config.namespace, - name: c._config.name, - path: c._config.path, - port: c._config.port, - } + if c._config.caBundle != '' then - { caBundle: c._config.caBundle } - else - {}, - }, - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/jsonnetfile.json deleted file mode 100644 index 9757fe112..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/jsonnetfile.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "dependencies": [ - ] -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/podmonitors-crd.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/podmonitors-crd.json deleted file mode 100644 index 71ff85708..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/podmonitors-crd.json +++ /dev/null @@ -1,1006 +0,0 @@ -{ - "apiVersion": "apiextensions.k8s.io/v1", - "kind": "CustomResourceDefinition", - "metadata": { - "annotations": { - "controller-gen.kubebuilder.io/version": "v0.16.1", - "operator.prometheus.io/version": "0.76.0" - }, - "name": "podmonitors.monitoring.coreos.com" - }, - "spec": { - "group": "monitoring.coreos.com", - "names": { - "categories": [ - "prometheus-operator" - ], - "kind": "PodMonitor", - "listKind": "PodMonitorList", - "plural": "podmonitors", - "shortNames": [ - "pmon" - ], - "singular": "podmonitor" - }, - "scope": "Namespaced", - "versions": [ - { - "name": "v1", - "schema": { - "openAPIV3Schema": { - "description": "The `PodMonitor` custom resource definition (CRD) defines how `Prometheus` and `PrometheusAgent` can scrape metrics from a group of pods.\nAmong other things, it allows to specify:\n* The pods to scrape via label selectors.\n* The container ports to scrape.\n* Authentication credentials to use.\n* Target and metric relabeling.\n\n`Prometheus` and `PrometheusAgent` objects select `PodMonitor` objects using label and namespace selectors.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "type": "object" - }, - "spec": { - "description": "Specification of desired Pod selection for target discovery by Prometheus.", - "properties": { - "attachMetadata": { - "description": "`attachMetadata` defines additional metadata which is added to the\ndiscovered targets.\n\nIt requires Prometheus >= v2.35.0.", - "properties": { - "node": { - "description": "When set to true, Prometheus attaches node metadata to the discovered\ntargets.\n\nThe Prometheus service account must have the `list` and `watch`\npermissions on the `Nodes` objects.", - "type": "boolean" - } - }, - "type": "object" - }, - "bodySizeLimit": { - "description": "When defined, bodySizeLimit specifies a job level limit on the size\nof uncompressed response body that will be accepted by Prometheus.\n\nIt requires Prometheus >= v2.28.0.", - "pattern": "(^0|([0-9]*[.])?[0-9]+((K|M|G|T|E|P)i?)?B)$", - "type": "string" - }, - "jobLabel": { - "description": "The label to use to retrieve the job name from.\n`jobLabel` selects the label from the associated Kubernetes `Pod`\nobject which will be used as the `job` label for all metrics.\n\nFor example if `jobLabel` is set to `foo` and the Kubernetes `Pod`\nobject is labeled with `foo: bar`, then Prometheus adds the `job=\"bar\"`\nlabel to all ingested metrics.\n\nIf the value of this field is empty, the `job` label of the metrics\ndefaults to the namespace and name of the PodMonitor object (e.g. `/`).", - "type": "string" - }, - "keepDroppedTargets": { - "description": "Per-scrape limit on the number of targets dropped by relabeling\nthat will be kept in memory. 0 means no limit.\n\nIt requires Prometheus >= v2.47.0.", - "format": "int64", - "type": "integer" - }, - "labelLimit": { - "description": "Per-scrape limit on number of labels that will be accepted for a sample.\n\nIt requires Prometheus >= v2.27.0.", - "format": "int64", - "type": "integer" - }, - "labelNameLengthLimit": { - "description": "Per-scrape limit on length of labels name that will be accepted for a sample.\n\nIt requires Prometheus >= v2.27.0.", - "format": "int64", - "type": "integer" - }, - "labelValueLengthLimit": { - "description": "Per-scrape limit on length of labels value that will be accepted for a sample.\n\nIt requires Prometheus >= v2.27.0.", - "format": "int64", - "type": "integer" - }, - "namespaceSelector": { - "description": "`namespaceSelector` defines in which namespace(s) Prometheus should discover the pods.\nBy default, the pods are discovered in the same namespace as the `PodMonitor` object but it is possible to select pods across different/all namespaces.", - "properties": { - "any": { - "description": "Boolean describing whether all namespaces are selected in contrast to a\nlist restricting them.", - "type": "boolean" - }, - "matchNames": { - "description": "List of namespace names to select from.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "podMetricsEndpoints": { - "description": "Defines how to scrape metrics from the selected pods.", - "items": { - "description": "PodMetricsEndpoint defines an endpoint serving Prometheus metrics to be scraped by\nPrometheus.", - "properties": { - "authorization": { - "description": "`authorization` configures the Authorization header credentials to use when\nscraping the target.\n\nCannot be set at the same time as `basicAuth`, or `oauth2`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "`basicAuth` configures the Basic Authentication credentials to use when\nscraping the target.\n\nCannot be set at the same time as `authorization`, or `oauth2`.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "`bearerTokenSecret` specifies a key of a Secret containing the bearer\ntoken for scraping targets. The secret needs to be in the same namespace\nas the PodMonitor object and readable by the Prometheus Operator.\n\nDeprecated: use `authorization` instead.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "enableHttp2": { - "description": "`enableHttp2` can be used to disable HTTP2 when scraping the target.", - "type": "boolean" - }, - "filterRunning": { - "description": "When true, the pods which are not running (e.g. either in Failed or\nSucceeded state) are dropped during the target discovery.\n\nIf unset, the filtering is enabled.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase", - "type": "boolean" - }, - "followRedirects": { - "description": "`followRedirects` defines whether the scrape requests should follow HTTP\n3xx redirects.", - "type": "boolean" - }, - "honorLabels": { - "description": "When true, `honorLabels` preserves the metric's labels when they collide\nwith the target's labels.", - "type": "boolean" - }, - "honorTimestamps": { - "description": "`honorTimestamps` controls whether Prometheus preserves the timestamps\nwhen exposed by the target.", - "type": "boolean" - }, - "interval": { - "description": "Interval at which Prometheus scrapes the metrics from the target.\n\nIf empty, Prometheus uses the global scrape interval.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "metricRelabelings": { - "description": "`metricRelabelings` configures the relabeling rules to apply to the\nsamples before ingestion.", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "oauth2": { - "description": "`oauth2` configures the OAuth2 settings to use when scraping the target.\n\nIt requires Prometheus >= 2.27.0.\n\nCannot be set at the same time as `authorization`, or `basicAuth`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "params": { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "description": "`params` define optional HTTP URL parameters.", - "type": "object" - }, - "path": { - "description": "HTTP path from which to scrape for metrics.\n\nIf empty, Prometheus uses the default value (e.g. `/metrics`).", - "type": "string" - }, - "port": { - "description": "Name of the Pod port which this endpoint refers to.\n\nIt takes precedence over `targetPort`.", - "type": "string" - }, - "proxyUrl": { - "description": "`proxyURL` configures the HTTP Proxy URL (e.g.\n\"http://proxyserver:2195\") to go through when scraping the target.", - "type": "string" - }, - "relabelings": { - "description": "`relabelings` configures the relabeling rules to apply the target's\nmetadata labels.\n\nThe Operator automatically adds relabelings for a few standard Kubernetes fields.\n\nThe original scrape job's name is available via the `__tmp_prometheus_job_name` label.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "scheme": { - "description": "HTTP scheme to use for scraping.\n\n`http` and `https` are the expected values unless you rewrite the\n`__scheme__` label via relabeling.\n\nIf empty, Prometheus uses the default value `http`.", - "enum": [ - "http", - "https" - ], - "type": "string" - }, - "scrapeTimeout": { - "description": "Timeout after which Prometheus considers the scrape to be failed.\n\nIf empty, Prometheus uses the global scrape timeout unless it is less\nthan the target's scrape interval value in which the latter is used.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "targetPort": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the target port of the `Pod` object behind the Service, the\nport must be specified with container port property.\n\nDeprecated: use 'port' instead.", - "x-kubernetes-int-or-string": true - }, - "tlsConfig": { - "description": "TLS configuration to use when scraping the target.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "trackTimestampsStaleness": { - "description": "`trackTimestampsStaleness` defines whether Prometheus tracks staleness of\nthe metrics that have an explicit timestamp present in scraped data.\nHas no effect if `honorTimestamps` is false.\n\nIt requires Prometheus >= v2.48.0.", - "type": "boolean" - } - }, - "type": "object" - }, - "type": "array" - }, - "podTargetLabels": { - "description": "`podTargetLabels` defines the labels which are transferred from the\nassociated Kubernetes `Pod` object onto the ingested metrics.", - "items": { - "type": "string" - }, - "type": "array" - }, - "sampleLimit": { - "description": "`sampleLimit` defines a per-scrape limit on the number of scraped samples\nthat will be accepted.", - "format": "int64", - "type": "integer" - }, - "scrapeClass": { - "description": "The scrape class to apply.", - "minLength": 1, - "type": "string" - }, - "scrapeProtocols": { - "description": "`scrapeProtocols` defines the protocols to negotiate during a scrape. It tells clients the\nprotocols supported by Prometheus in order of preference (from most to least preferred).\n\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.49.0.", - "items": { - "description": "ScrapeProtocol represents a protocol used by Prometheus for scraping metrics.\nSupported values are:\n* `OpenMetricsText0.0.1`\n* `OpenMetricsText1.0.0`\n* `PrometheusProto`\n* `PrometheusText0.0.4`", - "enum": [ - "PrometheusProto", - "OpenMetricsText0.0.1", - "OpenMetricsText1.0.0", - "PrometheusText0.0.4" - ], - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "selector": { - "description": "Label selector to select the Kubernetes `Pod` objects to scrape metrics from.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "targetLimit": { - "description": "`targetLimit` defines a limit on the number of scraped targets that will\nbe accepted.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "selector" - ], - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "served": true, - "storage": true - } - ] - } -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/probes-crd.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/probes-crd.json deleted file mode 100644 index e143cf329..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/probes-crd.json +++ /dev/null @@ -1,1040 +0,0 @@ -{ - "apiVersion": "apiextensions.k8s.io/v1", - "kind": "CustomResourceDefinition", - "metadata": { - "annotations": { - "controller-gen.kubebuilder.io/version": "v0.16.1", - "operator.prometheus.io/version": "0.76.0" - }, - "name": "probes.monitoring.coreos.com" - }, - "spec": { - "group": "monitoring.coreos.com", - "names": { - "categories": [ - "prometheus-operator" - ], - "kind": "Probe", - "listKind": "ProbeList", - "plural": "probes", - "shortNames": [ - "prb" - ], - "singular": "probe" - }, - "scope": "Namespaced", - "versions": [ - { - "name": "v1", - "schema": { - "openAPIV3Schema": { - "description": "The `Probe` custom resource definition (CRD) defines how to scrape metrics from prober exporters such as the [blackbox exporter](https://github.com/prometheus/blackbox_exporter).\n\nThe `Probe` resource needs 2 pieces of information:\n* The list of probed addresses which can be defined statically or by discovering Kubernetes Ingress objects.\n* The prober which exposes the availability of probed endpoints (over various protocols such HTTP, TCP, ICMP, ...) as Prometheus metrics.\n\n`Prometheus` and `PrometheusAgent` objects select `Probe` objects using label and namespace selectors.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "type": "object" - }, - "spec": { - "description": "Specification of desired Ingress selection for target discovery by Prometheus.", - "properties": { - "authorization": { - "description": "Authorization section for this endpoint", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth allow an endpoint to authenticate over basic authentication.\nMore info: https://prometheus.io/docs/operating/configuration/#endpoint", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenSecret": { - "description": "Secret to mount to read bearer token for scraping targets. The secret\nneeds to be in the same namespace as the probe and accessible by\nthe Prometheus Operator.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "interval": { - "description": "Interval at which targets are probed using the configured prober.\nIf not specified Prometheus' global scrape interval is used.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "jobName": { - "description": "The job name assigned to scraped metrics by default.", - "type": "string" - }, - "keepDroppedTargets": { - "description": "Per-scrape limit on the number of targets dropped by relabeling\nthat will be kept in memory. 0 means no limit.\n\nIt requires Prometheus >= v2.47.0.", - "format": "int64", - "type": "integer" - }, - "labelLimit": { - "description": "Per-scrape limit on number of labels that will be accepted for a sample.\nOnly valid in Prometheus versions 2.27.0 and newer.", - "format": "int64", - "type": "integer" - }, - "labelNameLengthLimit": { - "description": "Per-scrape limit on length of labels name that will be accepted for a sample.\nOnly valid in Prometheus versions 2.27.0 and newer.", - "format": "int64", - "type": "integer" - }, - "labelValueLengthLimit": { - "description": "Per-scrape limit on length of labels value that will be accepted for a sample.\nOnly valid in Prometheus versions 2.27.0 and newer.", - "format": "int64", - "type": "integer" - }, - "metricRelabelings": { - "description": "MetricRelabelConfigs to apply to samples before ingestion.", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "module": { - "description": "The module to use for probing specifying how to probe the target.\nExample module configuring in the blackbox exporter:\nhttps://github.com/prometheus/blackbox_exporter/blob/master/example.yml", - "type": "string" - }, - "oauth2": { - "description": "OAuth2 for the URL. Only valid in Prometheus versions 2.27.0 and newer.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "prober": { - "description": "Specification for the prober to use for probing targets.\nThe prober.URL parameter is required. Targets cannot be probed if left empty.", - "properties": { - "path": { - "default": "/probe", - "description": "Path to collect metrics from.\nDefaults to `/probe`.", - "type": "string" - }, - "proxyUrl": { - "description": "Optional ProxyURL.", - "type": "string" - }, - "scheme": { - "description": "HTTP scheme to use for scraping.\n`http` and `https` are the expected values unless you rewrite the `__scheme__` label via relabeling.\nIf empty, Prometheus uses the default value `http`.", - "enum": [ - "http", - "https" - ], - "type": "string" - }, - "url": { - "description": "Mandatory URL of the prober.", - "type": "string" - } - }, - "required": [ - "url" - ], - "type": "object" - }, - "sampleLimit": { - "description": "SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.", - "format": "int64", - "type": "integer" - }, - "scrapeClass": { - "description": "The scrape class to apply.", - "minLength": 1, - "type": "string" - }, - "scrapeProtocols": { - "description": "`scrapeProtocols` defines the protocols to negotiate during a scrape. It tells clients the\nprotocols supported by Prometheus in order of preference (from most to least preferred).\n\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.49.0.", - "items": { - "description": "ScrapeProtocol represents a protocol used by Prometheus for scraping metrics.\nSupported values are:\n* `OpenMetricsText0.0.1`\n* `OpenMetricsText1.0.0`\n* `PrometheusProto`\n* `PrometheusText0.0.4`", - "enum": [ - "PrometheusProto", - "OpenMetricsText0.0.1", - "OpenMetricsText1.0.0", - "PrometheusText0.0.4" - ], - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "scrapeTimeout": { - "description": "Timeout for scraping metrics from the Prometheus exporter.\nIf not specified, the Prometheus global scrape timeout is used.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "targetLimit": { - "description": "TargetLimit defines a limit on the number of scraped targets that will be accepted.", - "format": "int64", - "type": "integer" - }, - "targets": { - "description": "Targets defines a set of static or dynamically discovered targets to probe.", - "properties": { - "ingress": { - "description": "ingress defines the Ingress objects to probe and the relabeling\nconfiguration.\nIf `staticConfig` is also defined, `staticConfig` takes precedence.", - "properties": { - "namespaceSelector": { - "description": "From which namespaces to select Ingress objects.", - "properties": { - "any": { - "description": "Boolean describing whether all namespaces are selected in contrast to a\nlist restricting them.", - "type": "boolean" - }, - "matchNames": { - "description": "List of namespace names to select from.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "relabelingConfigs": { - "description": "RelabelConfigs to apply to the label set of the target before it gets\nscraped.\nThe original ingress address is available via the\n`__tmp_prometheus_ingress_address` label. It can be used to customize the\nprobed URL.\nThe original scrape job's name is available via the `__tmp_prometheus_job_name` label.\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "selector": { - "description": "Selector to select the Ingress objects.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "staticConfig": { - "description": "staticConfig defines the static list of targets to probe and the\nrelabeling configuration.\nIf `ingress` is also defined, `staticConfig` takes precedence.\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#static_config.", - "properties": { - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels assigned to all metrics scraped from the targets.", - "type": "object" - }, - "relabelingConfigs": { - "description": "RelabelConfigs to apply to the label set of the targets before it gets\nscraped.\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "static": { - "description": "The list of hosts to probe.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "tlsConfig": { - "description": "TLS configuration to use when scraping the endpoint.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "served": true, - "storage": true - } - ] - } -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheus-operator.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheus-operator.libsonnet deleted file mode 100644 index d342d9c11..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheus-operator.libsonnet +++ /dev/null @@ -1,268 +0,0 @@ -local defaults = { - local defaults = self, - name: 'prometheus-operator', - namespace: error 'must provide namespace', - version: error 'must provide version', - image: error 'must provide image', - configReloaderImage: error 'must provide configReloaderImage', - configReloaderResources: { - limits: { cpu: '', memory: '' }, - requests: { cpu: '', memory: '' }, - }, - enableReloaderProbes: false, - goGC: '30', - port: 8080, - resources: { - limits: { cpu: '200m', memory: '200Mi' }, - requests: { cpu: '100m', memory: '100Mi' }, - }, - commonLabels:: { - 'app.kubernetes.io/name': 'prometheus-operator', - 'app.kubernetes.io/version': defaults.version, - 'app.kubernetes.io/component': 'controller', - }, - selectorLabels:: { - [labelName]: defaults.commonLabels[labelName] - for labelName in std.objectFields(defaults.commonLabels) - if !std.setMember(labelName, ['app.kubernetes.io/version']) - }, - enableAlertmanagerConfigV1beta1: false, -}; - -function(params) { - local po = self, - config:: defaults + params, - - // Prefixing with 0 to ensure these manifests are listed and therefore created first. - '0alertmanagerCustomResourceDefinition': import 'alertmanagers-crd.json', - '0alertmanagerConfigCustomResourceDefinition': (import 'alertmanagerconfigs-crd.json') + - if po.config.enableAlertmanagerConfigV1beta1 then - (import 'alertmanagerconfigs-v1beta1-crd.libsonnet') - else {}, - '0prometheusagentCustomResourceDefinition': import 'prometheusagents-crd.json', - '0prometheusCustomResourceDefinition': import 'prometheuses-crd.json', - '0servicemonitorCustomResourceDefinition': import 'servicemonitors-crd.json', - '0podmonitorCustomResourceDefinition': import 'podmonitors-crd.json', - '0probeCustomResourceDefinition': import 'probes-crd.json', - '0prometheusruleCustomResourceDefinition': import 'prometheusrules-crd.json', - '0thanosrulerCustomResourceDefinition': import 'thanosrulers-crd.json', - '0scrapeconfigCustomResourceDefinition': import 'scrapeconfigs-crd.json', - - clusterRoleBinding: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRoleBinding', - metadata: { - name: po.config.name, - labels: po.config.commonLabels, - }, - roleRef: { - apiGroup: 'rbac.authorization.k8s.io', - kind: 'ClusterRole', - name: po.config.name, - }, - subjects: [{ - kind: 'ServiceAccount', - name: po.config.name, - namespace: po.config.namespace, - }], - }, - - clusterRole: { - apiVersion: 'rbac.authorization.k8s.io/v1', - kind: 'ClusterRole', - metadata: { - name: po.config.name, - labels: po.config.commonLabels, - }, - rules: [ - { - apiGroups: ['monitoring.coreos.com'], - resources: [ - 'alertmanagers', - 'alertmanagers/finalizers', - 'alertmanagers/status', - 'alertmanagerconfigs', - 'prometheuses', - 'prometheuses/finalizers', - 'prometheuses/status', - 'prometheusagents', - 'prometheusagents/finalizers', - 'prometheusagents/status', - 'thanosrulers', - 'thanosrulers/finalizers', - 'thanosrulers/status', - 'scrapeconfigs', - 'servicemonitors', - 'podmonitors', - 'probes', - 'prometheusrules', - ], - verbs: ['*'], - }, - { - apiGroups: ['apps'], - resources: ['statefulsets'], - verbs: ['*'], - }, - { - apiGroups: [''], - resources: ['configmaps', 'secrets'], - verbs: ['*'], - }, - { - apiGroups: [''], - resources: ['pods'], - verbs: ['list', 'delete'], - }, - { - apiGroups: [''], - resources: [ - 'services', - 'services/finalizers', - 'endpoints', - ], - verbs: ['get', 'create', 'update', 'delete'], - }, - { - apiGroups: [''], - resources: ['nodes'], - verbs: ['list', 'watch'], - }, - { - apiGroups: [''], - resources: ['namespaces'], - verbs: ['get', 'list', 'watch'], - }, - { - apiGroups: [''], - resources: ['events'], - verbs: ['patch', 'create'], - }, - { - apiGroups: ['networking.k8s.io'], - resources: ['ingresses'], - verbs: ['get', 'list', 'watch'], - }, - { - apiGroups: ['storage.k8s.io'], - resources: ['storageclasses'], - verbs: ['get'], - }, - ], - }, - - deployment: - local reloaderResourceArg(arg, value) = - if value != '' then [arg + '=' + value] else []; - local enableReloaderProbesArg(value) = - if value == true then ['--enable-config-reloader-probes=true'] else []; - - local container = { - name: po.config.name, - image: po.config.image, - args: [ - '--kubelet-service=kube-system/kubelet', - '--prometheus-config-reloader=' + po.config.configReloaderImage, - ] + - reloaderResourceArg('--config-reloader-cpu-limit', po.config.configReloaderResources.limits.cpu) + - reloaderResourceArg('--config-reloader-memory-limit', po.config.configReloaderResources.limits.memory) + - reloaderResourceArg('--config-reloader-cpu-request', po.config.configReloaderResources.requests.cpu) + - reloaderResourceArg('--config-reloader-memory-request', po.config.configReloaderResources.requests.memory) + - enableReloaderProbesArg(po.config.enableReloaderProbes), - ports: [{ - containerPort: po.config.port, - name: 'http', - }], - resources: po.config.resources, - env: [{ name: 'GOGC', value: po.config.goGC }], - securityContext: { - allowPrivilegeEscalation: false, - readOnlyRootFilesystem: true, - capabilities: { drop: ['ALL'] }, - }, - }; - { - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: { - name: po.config.name, - namespace: po.config.namespace, - labels: po.config.commonLabels, - }, - spec: { - replicas: 1, - selector: { matchLabels: po.config.selectorLabels }, - template: { - metadata: { - labels: po.config.commonLabels, - annotations: { - 'kubectl.kubernetes.io/default-container': container.name, - }, - }, - spec: { - containers: [container], - nodeSelector: { - 'kubernetes.io/os': 'linux', - }, - - securityContext: { - runAsNonRoot: true, - runAsUser: 65534, - seccompProfile: { type: 'RuntimeDefault' }, - }, - serviceAccountName: po.config.name, - automountServiceAccountToken: true, - }, - }, - }, - }, - - serviceAccount: { - apiVersion: 'v1', - kind: 'ServiceAccount', - metadata: { - name: po.config.name, - namespace: po.config.namespace, - labels: po.config.commonLabels, - }, - automountServiceAccountToken: false, - }, - - service: { - apiVersion: 'v1', - kind: 'Service', - metadata: { - name: po.config.name, - namespace: po.config.namespace, - labels: po.config.commonLabels, - }, - spec: { - ports: [ - { name: 'http', targetPort: 'http', port: po.config.port }, - ], - selector: po.config.selectorLabels, - clusterIP: 'None', - }, - }, - - serviceMonitor: { - apiVersion: 'monitoring.coreos.com/v1', - kind: 'ServiceMonitor', - metadata: { - name: 'prometheus-operator', - namespace: po.config.namespace, - labels: po.config.commonLabels, - }, - spec: { - endpoints: [ - { - port: 'http', - honorLabels: true, - }, - ], - selector: { - matchLabels: po.config.commonLabels, - }, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheusagents-crd.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheusagents-crd.json deleted file mode 100644 index d33312872..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheusagents-crd.json +++ /dev/null @@ -1,8779 +0,0 @@ -{ - "apiVersion": "apiextensions.k8s.io/v1", - "kind": "CustomResourceDefinition", - "metadata": { - "annotations": { - "controller-gen.kubebuilder.io/version": "v0.16.1", - "operator.prometheus.io/version": "0.76.0" - }, - "name": "prometheusagents.monitoring.coreos.com" - }, - "spec": { - "group": "monitoring.coreos.com", - "names": { - "categories": [ - "prometheus-operator" - ], - "kind": "PrometheusAgent", - "listKind": "PrometheusAgentList", - "plural": "prometheusagents", - "shortNames": [ - "promagent" - ], - "singular": "prometheusagent" - }, - "scope": "Namespaced", - "versions": [ - { - "additionalPrinterColumns": [ - { - "description": "The version of Prometheus agent", - "jsonPath": ".spec.version", - "name": "Version", - "type": "string" - }, - { - "description": "The number of desired replicas", - "jsonPath": ".spec.replicas", - "name": "Desired", - "type": "integer" - }, - { - "description": "The number of ready replicas", - "jsonPath": ".status.availableReplicas", - "name": "Ready", - "type": "integer" - }, - { - "jsonPath": ".status.conditions[?(@.type == 'Reconciled')].status", - "name": "Reconciled", - "type": "string" - }, - { - "jsonPath": ".status.conditions[?(@.type == 'Available')].status", - "name": "Available", - "type": "string" - }, - { - "jsonPath": ".metadata.creationTimestamp", - "name": "Age", - "type": "date" - }, - { - "description": "Whether the resource reconciliation is paused or not", - "jsonPath": ".status.paused", - "name": "Paused", - "priority": 1, - "type": "boolean" - } - ], - "name": "v1alpha1", - "schema": { - "openAPIV3Schema": { - "description": "The `PrometheusAgent` custom resource definition (CRD) defines a desired [Prometheus Agent](https://prometheus.io/blog/2021/11/16/agent/) setup to run in a Kubernetes cluster.\n\nThe CRD is very similar to the `Prometheus` CRD except for features which aren't available in agent mode like rule evaluation, persistent storage and Thanos sidecar.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "type": "object" - }, - "spec": { - "description": "Specification of the desired behavior of the Prometheus agent. More info:\nhttps://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "properties": { - "additionalArgs": { - "description": "AdditionalArgs allows setting additional arguments for the 'prometheus' container.\n\nIt is intended for e.g. activating hidden flags which are not supported by\nthe dedicated configuration options yet. The arguments are passed as-is to the\nPrometheus container which may cause issues if they are invalid or not supported\nby the given Prometheus version.\n\nIn case of an argument conflict (e.g. an argument which is already set by the\noperator itself) or when providing an invalid argument, the reconciliation will\nfail and an error will be logged.", - "items": { - "description": "Argument as part of the AdditionalArgs list.", - "properties": { - "name": { - "description": "Name of the argument, e.g. \"scrape.discovery-reload-interval\".", - "minLength": 1, - "type": "string" - }, - "value": { - "description": "Argument value, e.g. 30s. Can be empty for name-only arguments (e.g. --storage.tsdb.no-lockfile)", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "additionalScrapeConfigs": { - "description": "AdditionalScrapeConfigs allows specifying a key of a Secret containing\nadditional Prometheus scrape configurations. Scrape configurations\nspecified are appended to the configurations generated by the Prometheus\nOperator. Job configurations specified must have the form as specified\nin the official Prometheus documentation:\nhttps://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config.\nAs scrape configs are appended, the user is responsible to make sure it\nis valid. Note that using this feature may expose the possibility to\nbreak upgrades of Prometheus. It is advised to review Prometheus release\nnotes to ensure that no incompatible scrape configs are going to break\nPrometheus after the upgrade.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "affinity": { - "description": "Defines the Pods' affinity scheduling rules if specified.", - "properties": { - "nodeAffinity": { - "description": "Describes node affinity scheduling rules for the pod.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node matches the corresponding matchExpressions; the\nnode(s) with the highest sum are the most preferred.", - "items": { - "description": "An empty preferred scheduling term matches all objects with implicit weight 0\n(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", - "properties": { - "preference": { - "description": "A node selector term, associated with the corresponding weight.", - "properties": { - "matchExpressions": { - "description": "A list of node selector requirements by node's labels.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchFields": { - "description": "A list of node selector requirements by node's fields.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "weight": { - "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "preference", - "weight" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to an update), the system\nmay or may not try to eventually evict the pod from its node.", - "properties": { - "nodeSelectorTerms": { - "description": "Required. A list of node selector terms. The terms are ORed.", - "items": { - "description": "A null or empty node selector term matches no objects. The requirements of\nthem are ANDed.\nThe TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", - "properties": { - "matchExpressions": { - "description": "A list of node selector requirements by node's labels.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchFields": { - "description": "A list of node selector requirements by node's fields.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "nodeSelectorTerms" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "podAffinity": { - "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", - "items": { - "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "properties": { - "podAffinityTerm": { - "description": "Required. A pod affinity term, associated with the corresponding weight.", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "podAffinityTerm", - "weight" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", - "items": { - "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "podAntiAffinity": { - "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe anti-affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling anti-affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", - "items": { - "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "properties": { - "podAffinityTerm": { - "description": "Required. A pod affinity term, associated with the corresponding weight.", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "podAffinityTerm", - "weight" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the anti-affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the anti-affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", - "items": { - "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "apiserverConfig": { - "description": "APIServerConfig allows specifying a host and auth methods to access the\nKuberntees API server.\nIf null, Prometheus is assumed to run inside of the cluster: it will\ndiscover the API servers automatically and use the Pod's CA certificate\nand bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/.", - "properties": { - "authorization": { - "description": "Authorization section for the API server.\n\nCannot be set at the same time as `basicAuth`, `bearerToken`, or\n`bearerTokenFile`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "credentialsFile": { - "description": "File to read a secret from, mutually exclusive with `credentials`.", - "type": "string" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth configuration for the API server.\n\nCannot be set at the same time as `authorization`, `bearerToken`, or\n`bearerTokenFile`.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerToken": { - "description": "*Warning: this field shouldn't be used because the token value appears\nin clear-text. Prefer using `authorization`.*\n\nDeprecated: this will be removed in a future release.", - "type": "string" - }, - "bearerTokenFile": { - "description": "File to read bearer token for accessing apiserver.\n\nCannot be set at the same time as `basicAuth`, `authorization`, or `bearerToken`.\n\nDeprecated: this will be removed in a future release. Prefer using `authorization`.", - "type": "string" - }, - "host": { - "description": "Kubernetes API address consisting of a hostname or IP address followed\nby an optional port number.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS Config to use for the API server.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "caFile": { - "description": "Path to the CA cert in the Prometheus container to use for the targets.", - "type": "string" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "certFile": { - "description": "Path to the client cert file in the Prometheus container for the targets.", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keyFile": { - "description": "Path to the client key file in the Prometheus container for the targets.", - "type": "string" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "host" - ], - "type": "object" - }, - "arbitraryFSAccessThroughSMs": { - "description": "When true, ServiceMonitor, PodMonitor and Probe object are forbidden to\nreference arbitrary files on the file system of the 'prometheus'\ncontainer.\nWhen a ServiceMonitor's endpoint specifies a `bearerTokenFile` value\n(e.g. '/var/run/secrets/kubernetes.io/serviceaccount/token'), a\nmalicious target can get access to the Prometheus service account's\ntoken in the Prometheus' scrape request. Setting\n`spec.arbitraryFSAccessThroughSM` to 'true' would prevent the attack.\nUsers should instead provide the credentials using the\n`spec.bearerTokenSecret` field.", - "properties": { - "deny": { - "type": "boolean" - } - }, - "type": "object" - }, - "automountServiceAccountToken": { - "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in the pod.\nIf the field isn't set, the operator mounts the service account token by default.\n\n**Warning:** be aware that by default, Prometheus requires the service account token for Kubernetes service discovery.\nIt is possible to use strategic merge patch to project the service account token into the 'prometheus' container.", - "type": "boolean" - }, - "bodySizeLimit": { - "description": "BodySizeLimit defines per-scrape on response body size.\nOnly valid in Prometheus versions 2.45.0 and newer.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedBodySizeLimit.", - "pattern": "(^0|([0-9]*[.])?[0-9]+((K|M|G|T|E|P)i?)?B)$", - "type": "string" - }, - "configMaps": { - "description": "ConfigMaps is a list of ConfigMaps in the same namespace as the Prometheus\nobject, which shall be mounted into the Prometheus Pods.\nEach ConfigMap is added to the StatefulSet definition as a volume named `configmap-`.\nThe ConfigMaps are mounted into /etc/prometheus/configmaps/ in the 'prometheus' container.", - "items": { - "type": "string" - }, - "type": "array" - }, - "containers": { - "description": "Containers allows injecting additional containers or modifying operator\ngenerated containers. This can be used to allow adding an authentication\nproxy to the Pods or to change the behavior of an operator generated\ncontainer. Containers described here modify an operator generated\ncontainer if they share the same name and modifications are done via a\nstrategic merge patch.\n\nThe names of containers managed by the operator are:\n* `prometheus`\n* `config-reloader`\n* `thanos-sidecar`\n\nOverriding containers is entirely outside the scope of what the\nmaintainers will support and by doing so, you accept that this behaviour\nmay break at any time without notice.", - "items": { - "description": "A single application container that you want to run within a pod.", - "properties": { - "args": { - "description": "Arguments to the entrypoint.\nThe container image's CMD is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell.\nThe container image's ENTRYPOINT is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "env": { - "description": "List of environment variables to set in the container.\nCannot be updated.", - "items": { - "description": "EnvVar represents an environment variable present in a Container.", - "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", - "type": "string" - }, - "value": { - "description": "Variable references $(VAR_NAME) are expanded\nusing the previously defined environment variables in the container and\nany service environment variables. If a variable cannot be resolved,\nthe reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n\"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\nEscaped references will never be expanded, regardless of whether the variable\nexists or not.\nDefaults to \"\".", - "type": "string" - }, - "valueFrom": { - "description": "Source for the environment variable's value. Cannot be used if value is not empty.", - "properties": { - "configMapKeyRef": { - "description": "Selects a key of a ConfigMap.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "fieldRef": { - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`,\nspec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secretKeyRef": { - "description": "Selects a key of a secret in the pod's namespace", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container.\nThe keys defined within a source must be a C_IDENTIFIER. All invalid keys\nwill be reported as an event when the container is starting. When a key exists in multiple\nsources, the value associated with the last source will take precedence.\nValues defined by an Env with a duplicate key will take precedence.\nCannot be updated.", - "items": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", - "properties": { - "configMapRef": { - "description": "The ConfigMap to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", - "type": "string" - }, - "secretRef": { - "description": "The Secret to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "image": { - "description": "Container image name.\nMore info: https://kubernetes.io/docs/concepts/containers/images\nThis field is optional to allow higher level config management to default or override\ncontainer images in workload controllers like Deployments and StatefulSets.", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy.\nOne of Always, Never, IfNotPresent.\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/containers/images#updating-images", - "type": "string" - }, - "lifecycle": { - "description": "Actions that the management system should take in response to container lifecycle events.\nCannot be updated.", - "properties": { - "postStart": { - "description": "PostStart is called immediately after a container is created. If the handler fails,\nthe container is terminated and restarted according to its restart policy.\nOther management of the container blocks until the hook completes.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - }, - "preStop": { - "description": "PreStop is called immediately before a container is terminated due to an\nAPI request or management event such as liveness/startup probe failure,\npreemption, resource contention, etc. The handler is not called if the\ncontainer crashes or exits. The Pod's termination grace period countdown begins before the\nPreStop hook is executed. Regardless of the outcome of the handler, the\ncontainer will eventually terminate within the Pod's termination grace\nperiod (unless delayed by finalizers). Other management of the container blocks until the hook completes\nor until the termination grace period is reached.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "livenessProbe": { - "description": "Periodic probe of container liveness.\nContainer will be restarted if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL.\nEach container in a pod must have a unique name (DNS_LABEL).\nCannot be updated.", - "type": "string" - }, - "ports": { - "description": "List of ports to expose from the container. Not specifying a port here\nDOES NOT prevent that port from being exposed. Any port which is\nlistening on the default \"0.0.0.0\" address inside a container will be\naccessible from the network.\nModifying this array with strategic merge patch may corrupt the data.\nFor more information See https://github.com/kubernetes/kubernetes/issues/108255.\nCannot be updated.", - "items": { - "description": "ContainerPort represents a network port in a single container.", - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 < x < 65536.", - "format": "int32", - "type": "integer" - }, - "hostIP": { - "description": "What host IP to bind the external port to.", - "type": "string" - }, - "hostPort": { - "description": "Number of port to expose on the host.\nIf specified, this must be a valid port number, 0 < x < 65536.\nIf HostNetwork is specified, this must match ContainerPort.\nMost containers do not need this.", - "format": "int32", - "type": "integer" - }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each\nnamed port in a pod must have a unique name. Name for the port that can be\nreferred to by services.", - "type": "string" - }, - "protocol": { - "default": "TCP", - "description": "Protocol for port. Must be UDP, TCP, or SCTP.\nDefaults to \"TCP\".", - "type": "string" - } - }, - "required": [ - "containerPort" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "containerPort", - "protocol" - ], - "x-kubernetes-list-type": "map" - }, - "readinessProbe": { - "description": "Periodic probe of container service readiness.\nContainer will be removed from service endpoints if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "resizePolicy": { - "description": "Resources resize policy for the container.", - "items": { - "description": "ContainerResizePolicy represents resource resize policy for the container.", - "properties": { - "resourceName": { - "description": "Name of the resource to which this resource resize policy applies.\nSupported values: cpu, memory.", - "type": "string" - }, - "restartPolicy": { - "description": "Restart policy to apply when specified resource is resized.\nIf not specified, it defaults to NotRequired.", - "type": "string" - } - }, - "required": [ - "resourceName", - "restartPolicy" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "resources": { - "description": "Compute Resources required by this container.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - "items": { - "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string" - }, - "request": { - "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "restartPolicy": { - "description": "RestartPolicy defines the restart behavior of individual containers in a pod.\nThis field may only be set for init containers, and the only allowed value is \"Always\".\nFor non-init containers or when this field is not specified,\nthe restart behavior is defined by the Pod's restart policy and the container type.\nSetting the RestartPolicy as \"Always\" for the init container will have the following effect:\nthis init container will be continually restarted on\nexit until all regular containers have terminated. Once all regular\ncontainers have completed, all init containers with restartPolicy \"Always\"\nwill be shut down. This lifecycle differs from normal init containers and\nis often referred to as a \"sidecar\" container. Although this init\ncontainer still starts in the init container sequence, it does not wait\nfor the container to complete before proceeding to the next init\ncontainer. Instead, the next init container starts immediately after this\ninit container is started, or after any startupProbe has successfully\ncompleted.", - "type": "string" - }, - "securityContext": { - "description": "SecurityContext defines the security options the container should be run with.\nIf set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.\nMore info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", - "properties": { - "allowPrivilegeEscalation": { - "description": "AllowPrivilegeEscalation controls whether a process can gain more\nprivileges than its parent process. This bool directly controls if\nthe no_new_privs flag will be set on the container process.\nAllowPrivilegeEscalation is true always when the container is:\n1) run as Privileged\n2) has CAP_SYS_ADMIN\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "appArmorProfile": { - "description": "appArmorProfile is the AppArmor options to use by this container. If set, this profile\noverrides the pod's appArmorProfile.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile loaded on the node that should be used.\nThe profile must be preconfigured on the node to work.\nMust match the loaded name of the profile.\nMust be set if and only if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of AppArmor profile will be applied.\nValid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "capabilities": { - "description": "The capabilities to add/drop when running containers.\nDefaults to the default set of capabilities granted by the container runtime.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "add": { - "description": "Added capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "drop": { - "description": "Removed capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "privileged": { - "description": "Run container in privileged mode.\nProcesses in privileged containers are essentially equivalent to root on the host.\nDefaults to false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "procMount": { - "description": "procMount denotes the type of proc mount to use for the containers.\nThe default value is Default which uses the container runtime defaults for\nreadonly paths and masked paths.\nThis requires the ProcMountType feature flag to be enabled.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem.\nDefault is false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to the container.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - }, - "type": "object" - }, - "seccompProfile": { - "description": "The seccomp options to use by this container. If seccomp options are\nprovided at both the pod & container level, the container options\noverride the pod options.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "windowsOptions": { - "description": "The Windows specific settings applied to all containers.\nIf unspecified, the options from the PodSecurityContext will be used.\nIf set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is linux.", - "properties": { - "gmsaCredentialSpec": { - "description": "GMSACredentialSpec is where the GMSA admission webhook\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\nGMSA credential spec named by the GMSACredentialSpecName field.", - "type": "string" - }, - "gmsaCredentialSpecName": { - "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", - "type": "string" - }, - "hostProcess": { - "description": "HostProcess determines if a container should be run as a 'Host Process' container.\nAll of a Pod's containers must have the same effective HostProcess value\n(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\nIn addition, if HostProcess is true then HostNetwork must also be set to true.", - "type": "boolean" - }, - "runAsUserName": { - "description": "The UserName in Windows to run the entrypoint of the container process.\nDefaults to the user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "startupProbe": { - "description": "StartupProbe indicates that the Pod has successfully initialized.\nIf specified, no other probes are executed until this completes successfully.\nIf this probe fails, the Pod will be restarted, just as if the livenessProbe failed.\nThis can be used to provide different probe parameters at the beginning of a Pod's lifecycle,\nwhen it might take a long time to load data or warm a cache, than during steady-state operation.\nThis cannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this\nis not set, reads from stdin in the container will always result in EOF.\nDefault is false.", - "type": "boolean" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by\na single attach. When stdin is true the stdin stream will remain open across multiple attach\nsessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\nfirst client attaches to stdin, and then remains open and accepts data until the client disconnects,\nat which time stdin is closed and remains closed until the container is restarted. If this\nflag is false, a container processes that reads from stdin will never receive an EOF.\nDefault is false", - "type": "boolean" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message\nwill be written is mounted into the container's filesystem.\nMessage written is intended to be brief final status, such as an assertion failure message.\nWill be truncated by the node if greater than 4096 bytes. The total message length across\nall containers will be limited to 12kb.\nDefaults to /dev/termination-log.\nCannot be updated.", - "type": "string" - }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of\nterminationMessagePath to populate the container status message on both success and failure.\nFallbackToLogsOnError will use the last chunk of container log output if the termination\nmessage file is empty and the container exited with an error.\nThe log output is limited to 2048 bytes or 80 lines, whichever is smaller.\nDefaults to File.\nCannot be updated.", - "type": "string" - }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\nDefault is false.", - "type": "boolean" - }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", - "items": { - "description": "volumeDevice describes a mapping of a raw block device within a container.", - "properties": { - "devicePath": { - "description": "devicePath is the path inside of the container that the device will be mapped to.", - "type": "string" - }, - "name": { - "description": "name must match the name of a persistentVolumeClaim in the pod", - "type": "string" - } - }, - "required": [ - "devicePath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "devicePath" - ], - "x-kubernetes-list-type": "map" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem.\nCannot be updated.", - "items": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None).", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.", - "type": "boolean" - }, - "recursiveReadOnly": { - "description": "RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - "type": "string" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).", - "type": "string" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.", - "type": "string" - } - }, - "required": [ - "mountPath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "mountPath" - ], - "x-kubernetes-list-type": "map" - }, - "workingDir": { - "description": "Container's working directory.\nIf not specified, the container runtime's default will be used, which\nmight be configured in the container image.\nCannot be updated.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "enableFeatures": { - "description": "Enable access to Prometheus feature flags. By default, no features are enabled.\n\nEnabling features which are disabled by default is entirely outside the\nscope of what the maintainers will support and by doing so, you accept\nthat this behaviour may break at any time without notice.\n\nFor more information see https://prometheus.io/docs/prometheus/latest/feature_flags/", - "items": { - "minLength": 1, - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "enableRemoteWriteReceiver": { - "description": "Enable Prometheus to be used as a receiver for the Prometheus remote\nwrite protocol.\n\nWARNING: This is not considered an efficient way of ingesting samples.\nUse it with caution for specific low-volume use cases.\nIt is not suitable for replacing the ingestion via scraping and turning\nPrometheus into a push-based metrics collection system.\nFor more information see https://prometheus.io/docs/prometheus/latest/querying/api/#remote-write-receiver\n\nIt requires Prometheus >= v2.33.0.", - "type": "boolean" - }, - "enforcedBodySizeLimit": { - "description": "When defined, enforcedBodySizeLimit specifies a global limit on the size\nof uncompressed response body that will be accepted by Prometheus.\nTargets responding with a body larger than this many bytes will cause\nthe scrape to fail.\n\nIt requires Prometheus >= v2.28.0.\n\nWhen both `enforcedBodySizeLimit` and `bodySizeLimit` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined bodySizeLimit value will inherit the global bodySizeLimit value (Prometheus >= 2.45.0) or the enforcedBodySizeLimit value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedBodySizeLimit` is greater than the `bodySizeLimit`, the `bodySizeLimit` will be set to `enforcedBodySizeLimit`.\n* Scrape objects with a bodySizeLimit value less than or equal to enforcedBodySizeLimit keep their specific value.\n* Scrape objects with a bodySizeLimit value greater than enforcedBodySizeLimit are set to enforcedBodySizeLimit.", - "pattern": "(^0|([0-9]*[.])?[0-9]+((K|M|G|T|E|P)i?)?B)$", - "type": "string" - }, - "enforcedKeepDroppedTargets": { - "description": "When defined, enforcedKeepDroppedTargets specifies a global limit on the number of targets\ndropped by relabeling that will be kept in memory. The value overrides\nany `spec.keepDroppedTargets` set by\nServiceMonitor, PodMonitor, Probe objects unless `spec.keepDroppedTargets` is\ngreater than zero and less than `spec.enforcedKeepDroppedTargets`.\n\nIt requires Prometheus >= v2.47.0.\n\nWhen both `enforcedKeepDroppedTargets` and `keepDroppedTargets` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined keepDroppedTargets value will inherit the global keepDroppedTargets value (Prometheus >= 2.45.0) or the enforcedKeepDroppedTargets value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedKeepDroppedTargets` is greater than the `keepDroppedTargets`, the `keepDroppedTargets` will be set to `enforcedKeepDroppedTargets`.\n* Scrape objects with a keepDroppedTargets value less than or equal to enforcedKeepDroppedTargets keep their specific value.\n* Scrape objects with a keepDroppedTargets value greater than enforcedKeepDroppedTargets are set to enforcedKeepDroppedTargets.", - "format": "int64", - "type": "integer" - }, - "enforcedLabelLimit": { - "description": "When defined, enforcedLabelLimit specifies a global limit on the number\nof labels per sample. The value overrides any `spec.labelLimit` set by\nServiceMonitor, PodMonitor, Probe objects unless `spec.labelLimit` is\ngreater than zero and less than `spec.enforcedLabelLimit`.\n\nIt requires Prometheus >= v2.27.0.\n\nWhen both `enforcedLabelLimit` and `labelLimit` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined labelLimit value will inherit the global labelLimit value (Prometheus >= 2.45.0) or the enforcedLabelLimit value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedLabelLimit` is greater than the `labelLimit`, the `labelLimit` will be set to `enforcedLabelLimit`.\n* Scrape objects with a labelLimit value less than or equal to enforcedLabelLimit keep their specific value.\n* Scrape objects with a labelLimit value greater than enforcedLabelLimit are set to enforcedLabelLimit.", - "format": "int64", - "type": "integer" - }, - "enforcedLabelNameLengthLimit": { - "description": "When defined, enforcedLabelNameLengthLimit specifies a global limit on the length\nof labels name per sample. The value overrides any `spec.labelNameLengthLimit` set by\nServiceMonitor, PodMonitor, Probe objects unless `spec.labelNameLengthLimit` is\ngreater than zero and less than `spec.enforcedLabelNameLengthLimit`.\n\nIt requires Prometheus >= v2.27.0.\n\nWhen both `enforcedLabelNameLengthLimit` and `labelNameLengthLimit` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined labelNameLengthLimit value will inherit the global labelNameLengthLimit value (Prometheus >= 2.45.0) or the enforcedLabelNameLengthLimit value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedLabelNameLengthLimit` is greater than the `labelNameLengthLimit`, the `labelNameLengthLimit` will be set to `enforcedLabelNameLengthLimit`.\n* Scrape objects with a labelNameLengthLimit value less than or equal to enforcedLabelNameLengthLimit keep their specific value.\n* Scrape objects with a labelNameLengthLimit value greater than enforcedLabelNameLengthLimit are set to enforcedLabelNameLengthLimit.", - "format": "int64", - "type": "integer" - }, - "enforcedLabelValueLengthLimit": { - "description": "When not null, enforcedLabelValueLengthLimit defines a global limit on the length\nof labels value per sample. The value overrides any `spec.labelValueLengthLimit` set by\nServiceMonitor, PodMonitor, Probe objects unless `spec.labelValueLengthLimit` is\ngreater than zero and less than `spec.enforcedLabelValueLengthLimit`.\n\nIt requires Prometheus >= v2.27.0.\n\nWhen both `enforcedLabelValueLengthLimit` and `labelValueLengthLimit` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined labelValueLengthLimit value will inherit the global labelValueLengthLimit value (Prometheus >= 2.45.0) or the enforcedLabelValueLengthLimit value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedLabelValueLengthLimit` is greater than the `labelValueLengthLimit`, the `labelValueLengthLimit` will be set to `enforcedLabelValueLengthLimit`.\n* Scrape objects with a labelValueLengthLimit value less than or equal to enforcedLabelValueLengthLimit keep their specific value.\n* Scrape objects with a labelValueLengthLimit value greater than enforcedLabelValueLengthLimit are set to enforcedLabelValueLengthLimit.", - "format": "int64", - "type": "integer" - }, - "enforcedNamespaceLabel": { - "description": "When not empty, a label will be added to:\n\n1. All metrics scraped from `ServiceMonitor`, `PodMonitor`, `Probe` and `ScrapeConfig` objects.\n2. All metrics generated from recording rules defined in `PrometheusRule` objects.\n3. All alerts generated from alerting rules defined in `PrometheusRule` objects.\n4. All vector selectors of PromQL expressions defined in `PrometheusRule` objects.\n\nThe label will not added for objects referenced in `spec.excludedFromEnforcement`.\n\nThe label's name is this field's value.\nThe label's value is the namespace of the `ServiceMonitor`,\n`PodMonitor`, `Probe`, `PrometheusRule` or `ScrapeConfig` object.", - "type": "string" - }, - "enforcedSampleLimit": { - "description": "When defined, enforcedSampleLimit specifies a global limit on the number\nof scraped samples that will be accepted. This overrides any\n`spec.sampleLimit` set by ServiceMonitor, PodMonitor, Probe objects\nunless `spec.sampleLimit` is greater than zero and less than\n`spec.enforcedSampleLimit`.\n\nIt is meant to be used by admins to keep the overall number of\nsamples/series under a desired limit.\n\nWhen both `enforcedSampleLimit` and `sampleLimit` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined sampleLimit value will inherit the global sampleLimit value (Prometheus >= 2.45.0) or the enforcedSampleLimit value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedSampleLimit` is greater than the `sampleLimit`, the `sampleLimit` will be set to `enforcedSampleLimit`.\n* Scrape objects with a sampleLimit value less than or equal to enforcedSampleLimit keep their specific value.\n* Scrape objects with a sampleLimit value greater than enforcedSampleLimit are set to enforcedSampleLimit.", - "format": "int64", - "type": "integer" - }, - "enforcedTargetLimit": { - "description": "When defined, enforcedTargetLimit specifies a global limit on the number\nof scraped targets. The value overrides any `spec.targetLimit` set by\nServiceMonitor, PodMonitor, Probe objects unless `spec.targetLimit` is\ngreater than zero and less than `spec.enforcedTargetLimit`.\n\nIt is meant to be used by admins to to keep the overall number of\ntargets under a desired limit.\n\nWhen both `enforcedTargetLimit` and `targetLimit` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined targetLimit value will inherit the global targetLimit value (Prometheus >= 2.45.0) or the enforcedTargetLimit value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedTargetLimit` is greater than the `targetLimit`, the `targetLimit` will be set to `enforcedTargetLimit`.\n* Scrape objects with a targetLimit value less than or equal to enforcedTargetLimit keep their specific value.\n* Scrape objects with a targetLimit value greater than enforcedTargetLimit are set to enforcedTargetLimit.", - "format": "int64", - "type": "integer" - }, - "excludedFromEnforcement": { - "description": "List of references to PodMonitor, ServiceMonitor, Probe and PrometheusRule objects\nto be excluded from enforcing a namespace label of origin.\n\nIt is only applicable if `spec.enforcedNamespaceLabel` set to true.", - "items": { - "description": "ObjectReference references a PodMonitor, ServiceMonitor, Probe or PrometheusRule object.", - "properties": { - "group": { - "default": "monitoring.coreos.com", - "description": "Group of the referent. When not specified, it defaults to `monitoring.coreos.com`", - "enum": [ - "monitoring.coreos.com" - ], - "type": "string" - }, - "name": { - "description": "Name of the referent. When not set, all resources in the namespace are matched.", - "type": "string" - }, - "namespace": { - "description": "Namespace of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "minLength": 1, - "type": "string" - }, - "resource": { - "description": "Resource of the referent.", - "enum": [ - "prometheusrules", - "servicemonitors", - "podmonitors", - "probes", - "scrapeconfigs" - ], - "type": "string" - } - }, - "required": [ - "namespace", - "resource" - ], - "type": "object" - }, - "type": "array" - }, - "externalLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "The labels to add to any time series or alerts when communicating with\nexternal systems (federation, remote storage, Alertmanager).\nLabels defined by `spec.replicaExternalLabelName` and\n`spec.prometheusExternalLabelName` take precedence over this list.", - "type": "object" - }, - "externalUrl": { - "description": "The external URL under which the Prometheus service is externally\navailable. This is necessary to generate correct URLs (for instance if\nPrometheus is accessible behind an Ingress resource).", - "type": "string" - }, - "hostAliases": { - "description": "Optional list of hosts and IPs that will be injected into the Pod's\nhosts file if specified.", - "items": { - "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the\npod's hosts file.", - "properties": { - "hostnames": { - "description": "Hostnames for the above IP address.", - "items": { - "type": "string" - }, - "type": "array" - }, - "ip": { - "description": "IP address of the host file entry.", - "type": "string" - } - }, - "required": [ - "hostnames", - "ip" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "ip" - ], - "x-kubernetes-list-type": "map" - }, - "hostNetwork": { - "description": "Use the host's network namespace if true.\n\nMake sure to understand the security implications if you want to enable\nit (https://kubernetes.io/docs/concepts/configuration/overview/).\n\nWhen hostNetwork is enabled, this will set the DNS policy to\n`ClusterFirstWithHostNet` automatically.", - "type": "boolean" - }, - "ignoreNamespaceSelectors": { - "description": "When true, `spec.namespaceSelector` from all PodMonitor, ServiceMonitor\nand Probe objects will be ignored. They will only discover targets\nwithin the namespace of the PodMonitor, ServiceMonitor and Probe\nobject.", - "type": "boolean" - }, - "image": { - "description": "Container image name for Prometheus. If specified, it takes precedence\nover the `spec.baseImage`, `spec.tag` and `spec.sha` fields.\n\nSpecifying `spec.version` is still necessary to ensure the Prometheus\nOperator knows which version of Prometheus is being configured.\n\nIf neither `spec.image` nor `spec.baseImage` are defined, the operator\nwill use the latest upstream version of Prometheus available at the time\nwhen the operator was released.", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy for the 'prometheus', 'init-config-reloader' and 'config-reloader' containers.\nSee https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy for more details.", - "enum": [ - "", - "Always", - "Never", - "IfNotPresent" - ], - "type": "string" - }, - "imagePullSecrets": { - "description": "An optional list of references to Secrets in the same namespace\nto use for pulling images from registries.\nSee http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod", - "items": { - "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "initContainers": { - "description": "InitContainers allows injecting initContainers to the Pod definition. Those\ncan be used to e.g. fetch secrets for injection into the Prometheus\nconfiguration from external sources. Any errors during the execution of\nan initContainer will lead to a restart of the Pod. More info:\nhttps://kubernetes.io/docs/concepts/workloads/pods/init-containers/\nInitContainers described here modify an operator generated init\ncontainers if they share the same name and modifications are done via a\nstrategic merge patch.\n\nThe names of init container name managed by the operator are:\n* `init-config-reloader`.\n\nOverriding init containers is entirely outside the scope of what the\nmaintainers will support and by doing so, you accept that this behaviour\nmay break at any time without notice.", - "items": { - "description": "A single application container that you want to run within a pod.", - "properties": { - "args": { - "description": "Arguments to the entrypoint.\nThe container image's CMD is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell.\nThe container image's ENTRYPOINT is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "env": { - "description": "List of environment variables to set in the container.\nCannot be updated.", - "items": { - "description": "EnvVar represents an environment variable present in a Container.", - "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", - "type": "string" - }, - "value": { - "description": "Variable references $(VAR_NAME) are expanded\nusing the previously defined environment variables in the container and\nany service environment variables. If a variable cannot be resolved,\nthe reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n\"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\nEscaped references will never be expanded, regardless of whether the variable\nexists or not.\nDefaults to \"\".", - "type": "string" - }, - "valueFrom": { - "description": "Source for the environment variable's value. Cannot be used if value is not empty.", - "properties": { - "configMapKeyRef": { - "description": "Selects a key of a ConfigMap.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "fieldRef": { - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`,\nspec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secretKeyRef": { - "description": "Selects a key of a secret in the pod's namespace", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container.\nThe keys defined within a source must be a C_IDENTIFIER. All invalid keys\nwill be reported as an event when the container is starting. When a key exists in multiple\nsources, the value associated with the last source will take precedence.\nValues defined by an Env with a duplicate key will take precedence.\nCannot be updated.", - "items": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", - "properties": { - "configMapRef": { - "description": "The ConfigMap to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", - "type": "string" - }, - "secretRef": { - "description": "The Secret to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "image": { - "description": "Container image name.\nMore info: https://kubernetes.io/docs/concepts/containers/images\nThis field is optional to allow higher level config management to default or override\ncontainer images in workload controllers like Deployments and StatefulSets.", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy.\nOne of Always, Never, IfNotPresent.\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/containers/images#updating-images", - "type": "string" - }, - "lifecycle": { - "description": "Actions that the management system should take in response to container lifecycle events.\nCannot be updated.", - "properties": { - "postStart": { - "description": "PostStart is called immediately after a container is created. If the handler fails,\nthe container is terminated and restarted according to its restart policy.\nOther management of the container blocks until the hook completes.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - }, - "preStop": { - "description": "PreStop is called immediately before a container is terminated due to an\nAPI request or management event such as liveness/startup probe failure,\npreemption, resource contention, etc. The handler is not called if the\ncontainer crashes or exits. The Pod's termination grace period countdown begins before the\nPreStop hook is executed. Regardless of the outcome of the handler, the\ncontainer will eventually terminate within the Pod's termination grace\nperiod (unless delayed by finalizers). Other management of the container blocks until the hook completes\nor until the termination grace period is reached.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "livenessProbe": { - "description": "Periodic probe of container liveness.\nContainer will be restarted if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL.\nEach container in a pod must have a unique name (DNS_LABEL).\nCannot be updated.", - "type": "string" - }, - "ports": { - "description": "List of ports to expose from the container. Not specifying a port here\nDOES NOT prevent that port from being exposed. Any port which is\nlistening on the default \"0.0.0.0\" address inside a container will be\naccessible from the network.\nModifying this array with strategic merge patch may corrupt the data.\nFor more information See https://github.com/kubernetes/kubernetes/issues/108255.\nCannot be updated.", - "items": { - "description": "ContainerPort represents a network port in a single container.", - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 < x < 65536.", - "format": "int32", - "type": "integer" - }, - "hostIP": { - "description": "What host IP to bind the external port to.", - "type": "string" - }, - "hostPort": { - "description": "Number of port to expose on the host.\nIf specified, this must be a valid port number, 0 < x < 65536.\nIf HostNetwork is specified, this must match ContainerPort.\nMost containers do not need this.", - "format": "int32", - "type": "integer" - }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each\nnamed port in a pod must have a unique name. Name for the port that can be\nreferred to by services.", - "type": "string" - }, - "protocol": { - "default": "TCP", - "description": "Protocol for port. Must be UDP, TCP, or SCTP.\nDefaults to \"TCP\".", - "type": "string" - } - }, - "required": [ - "containerPort" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "containerPort", - "protocol" - ], - "x-kubernetes-list-type": "map" - }, - "readinessProbe": { - "description": "Periodic probe of container service readiness.\nContainer will be removed from service endpoints if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "resizePolicy": { - "description": "Resources resize policy for the container.", - "items": { - "description": "ContainerResizePolicy represents resource resize policy for the container.", - "properties": { - "resourceName": { - "description": "Name of the resource to which this resource resize policy applies.\nSupported values: cpu, memory.", - "type": "string" - }, - "restartPolicy": { - "description": "Restart policy to apply when specified resource is resized.\nIf not specified, it defaults to NotRequired.", - "type": "string" - } - }, - "required": [ - "resourceName", - "restartPolicy" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "resources": { - "description": "Compute Resources required by this container.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - "items": { - "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string" - }, - "request": { - "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "restartPolicy": { - "description": "RestartPolicy defines the restart behavior of individual containers in a pod.\nThis field may only be set for init containers, and the only allowed value is \"Always\".\nFor non-init containers or when this field is not specified,\nthe restart behavior is defined by the Pod's restart policy and the container type.\nSetting the RestartPolicy as \"Always\" for the init container will have the following effect:\nthis init container will be continually restarted on\nexit until all regular containers have terminated. Once all regular\ncontainers have completed, all init containers with restartPolicy \"Always\"\nwill be shut down. This lifecycle differs from normal init containers and\nis often referred to as a \"sidecar\" container. Although this init\ncontainer still starts in the init container sequence, it does not wait\nfor the container to complete before proceeding to the next init\ncontainer. Instead, the next init container starts immediately after this\ninit container is started, or after any startupProbe has successfully\ncompleted.", - "type": "string" - }, - "securityContext": { - "description": "SecurityContext defines the security options the container should be run with.\nIf set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.\nMore info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", - "properties": { - "allowPrivilegeEscalation": { - "description": "AllowPrivilegeEscalation controls whether a process can gain more\nprivileges than its parent process. This bool directly controls if\nthe no_new_privs flag will be set on the container process.\nAllowPrivilegeEscalation is true always when the container is:\n1) run as Privileged\n2) has CAP_SYS_ADMIN\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "appArmorProfile": { - "description": "appArmorProfile is the AppArmor options to use by this container. If set, this profile\noverrides the pod's appArmorProfile.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile loaded on the node that should be used.\nThe profile must be preconfigured on the node to work.\nMust match the loaded name of the profile.\nMust be set if and only if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of AppArmor profile will be applied.\nValid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "capabilities": { - "description": "The capabilities to add/drop when running containers.\nDefaults to the default set of capabilities granted by the container runtime.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "add": { - "description": "Added capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "drop": { - "description": "Removed capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "privileged": { - "description": "Run container in privileged mode.\nProcesses in privileged containers are essentially equivalent to root on the host.\nDefaults to false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "procMount": { - "description": "procMount denotes the type of proc mount to use for the containers.\nThe default value is Default which uses the container runtime defaults for\nreadonly paths and masked paths.\nThis requires the ProcMountType feature flag to be enabled.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem.\nDefault is false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to the container.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - }, - "type": "object" - }, - "seccompProfile": { - "description": "The seccomp options to use by this container. If seccomp options are\nprovided at both the pod & container level, the container options\noverride the pod options.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "windowsOptions": { - "description": "The Windows specific settings applied to all containers.\nIf unspecified, the options from the PodSecurityContext will be used.\nIf set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is linux.", - "properties": { - "gmsaCredentialSpec": { - "description": "GMSACredentialSpec is where the GMSA admission webhook\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\nGMSA credential spec named by the GMSACredentialSpecName field.", - "type": "string" - }, - "gmsaCredentialSpecName": { - "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", - "type": "string" - }, - "hostProcess": { - "description": "HostProcess determines if a container should be run as a 'Host Process' container.\nAll of a Pod's containers must have the same effective HostProcess value\n(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\nIn addition, if HostProcess is true then HostNetwork must also be set to true.", - "type": "boolean" - }, - "runAsUserName": { - "description": "The UserName in Windows to run the entrypoint of the container process.\nDefaults to the user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "startupProbe": { - "description": "StartupProbe indicates that the Pod has successfully initialized.\nIf specified, no other probes are executed until this completes successfully.\nIf this probe fails, the Pod will be restarted, just as if the livenessProbe failed.\nThis can be used to provide different probe parameters at the beginning of a Pod's lifecycle,\nwhen it might take a long time to load data or warm a cache, than during steady-state operation.\nThis cannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this\nis not set, reads from stdin in the container will always result in EOF.\nDefault is false.", - "type": "boolean" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by\na single attach. When stdin is true the stdin stream will remain open across multiple attach\nsessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\nfirst client attaches to stdin, and then remains open and accepts data until the client disconnects,\nat which time stdin is closed and remains closed until the container is restarted. If this\nflag is false, a container processes that reads from stdin will never receive an EOF.\nDefault is false", - "type": "boolean" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message\nwill be written is mounted into the container's filesystem.\nMessage written is intended to be brief final status, such as an assertion failure message.\nWill be truncated by the node if greater than 4096 bytes. The total message length across\nall containers will be limited to 12kb.\nDefaults to /dev/termination-log.\nCannot be updated.", - "type": "string" - }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of\nterminationMessagePath to populate the container status message on both success and failure.\nFallbackToLogsOnError will use the last chunk of container log output if the termination\nmessage file is empty and the container exited with an error.\nThe log output is limited to 2048 bytes or 80 lines, whichever is smaller.\nDefaults to File.\nCannot be updated.", - "type": "string" - }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\nDefault is false.", - "type": "boolean" - }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", - "items": { - "description": "volumeDevice describes a mapping of a raw block device within a container.", - "properties": { - "devicePath": { - "description": "devicePath is the path inside of the container that the device will be mapped to.", - "type": "string" - }, - "name": { - "description": "name must match the name of a persistentVolumeClaim in the pod", - "type": "string" - } - }, - "required": [ - "devicePath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "devicePath" - ], - "x-kubernetes-list-type": "map" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem.\nCannot be updated.", - "items": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None).", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.", - "type": "boolean" - }, - "recursiveReadOnly": { - "description": "RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - "type": "string" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).", - "type": "string" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.", - "type": "string" - } - }, - "required": [ - "mountPath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "mountPath" - ], - "x-kubernetes-list-type": "map" - }, - "workingDir": { - "description": "Container's working directory.\nIf not specified, the container runtime's default will be used, which\nmight be configured in the container image.\nCannot be updated.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "keepDroppedTargets": { - "description": "Per-scrape limit on the number of targets dropped by relabeling\nthat will be kept in memory. 0 means no limit.\n\nIt requires Prometheus >= v2.47.0.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedKeepDroppedTargets.", - "format": "int64", - "type": "integer" - }, - "labelLimit": { - "description": "Per-scrape limit on number of labels that will be accepted for a sample.\nOnly valid in Prometheus versions 2.45.0 and newer.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedLabelLimit.", - "format": "int64", - "type": "integer" - }, - "labelNameLengthLimit": { - "description": "Per-scrape limit on length of labels name that will be accepted for a sample.\nOnly valid in Prometheus versions 2.45.0 and newer.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedLabelNameLengthLimit.", - "format": "int64", - "type": "integer" - }, - "labelValueLengthLimit": { - "description": "Per-scrape limit on length of labels value that will be accepted for a sample.\nOnly valid in Prometheus versions 2.45.0 and newer.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedLabelValueLengthLimit.", - "format": "int64", - "type": "integer" - }, - "listenLocal": { - "description": "When true, the Prometheus server listens on the loopback address\ninstead of the Pod IP's address.", - "type": "boolean" - }, - "logFormat": { - "description": "Log format for Log level for Prometheus and the config-reloader sidecar.", - "enum": [ - "", - "logfmt", - "json" - ], - "type": "string" - }, - "logLevel": { - "description": "Log level for Prometheus and the config-reloader sidecar.", - "enum": [ - "", - "debug", - "info", - "warn", - "error" - ], - "type": "string" - }, - "maximumStartupDurationSeconds": { - "description": "Defines the maximum time that the `prometheus` container's startup probe will wait before being considered failed. The startup probe will return success after the WAL replay is complete.\nIf set, the value should be greater than 60 (seconds). Otherwise it will be equal to 600 seconds (15 minutes).", - "format": "int32", - "minimum": 60, - "type": "integer" - }, - "minReadySeconds": { - "description": "Minimum number of seconds for which a newly created Pod should be ready\nwithout any of its container crashing for it to be considered available.\nDefaults to 0 (pod will be considered available as soon as it is ready)\n\nThis is an alpha field from kubernetes 1.22 until 1.24 which requires\nenabling the StatefulSetMinReadySeconds feature gate.", - "format": "int32", - "type": "integer" - }, - "mode": { - "description": "Mode defines how the Prometheus operator deploys the PrometheusAgent pod(s).\nFor now this field has no effect.\n\n(Alpha) Using this field requires the `PrometheusAgentDaemonSet` feature gate to be enabled.", - "enum": [ - "StatefulSet", - "DaemonSet" - ], - "type": "string" - }, - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "Defines on which Nodes the Pods are scheduled.", - "type": "object" - }, - "otlp": { - "description": "Settings related to the OTLP receiver feature.\nIt requires Prometheus >= v2.54.0.", - "properties": { - "promoteResourceAttributes": { - "description": "List of OpenTelemetry Attributes that should be promoted to metric labels, defaults to none.", - "items": { - "minLength": 1, - "type": "string" - }, - "minItems": 1, - "type": "array", - "x-kubernetes-list-type": "set" - } - }, - "type": "object" - }, - "overrideHonorLabels": { - "description": "When true, Prometheus resolves label conflicts by renaming the labels in the scraped data\n to “exported_” for all targets created from ServiceMonitor, PodMonitor and\nScrapeConfig objects. Otherwise the HonorLabels field of the service or pod monitor applies.\nIn practice,`overrideHonorLaels:true` enforces `honorLabels:false`\nfor all ServiceMonitor, PodMonitor and ScrapeConfig objects.", - "type": "boolean" - }, - "overrideHonorTimestamps": { - "description": "When true, Prometheus ignores the timestamps for all the targets created\nfrom service and pod monitors.\nOtherwise the HonorTimestamps field of the service or pod monitor applies.", - "type": "boolean" - }, - "paused": { - "description": "When a Prometheus deployment is paused, no actions except for deletion\nwill be performed on the underlying objects.", - "type": "boolean" - }, - "persistentVolumeClaimRetentionPolicy": { - "description": "The field controls if and how PVCs are deleted during the lifecycle of a StatefulSet.\nThe default behavior is all PVCs are retained.\nThis is an alpha field from kubernetes 1.23 until 1.26 and a beta field from 1.26.\nIt requires enabling the StatefulSetAutoDeletePVC feature gate.", - "properties": { - "whenDeleted": { - "description": "WhenDeleted specifies what happens to PVCs created from StatefulSet\nVolumeClaimTemplates when the StatefulSet is deleted. The default policy\nof `Retain` causes PVCs to not be affected by StatefulSet deletion. The\n`Delete` policy causes those PVCs to be deleted.", - "type": "string" - }, - "whenScaled": { - "description": "WhenScaled specifies what happens to PVCs created from StatefulSet\nVolumeClaimTemplates when the StatefulSet is scaled down. The default\npolicy of `Retain` causes PVCs to not be affected by a scaledown. The\n`Delete` policy causes the associated PVCs for any excess pods above\nthe replica count to be deleted.", - "type": "string" - } - }, - "type": "object" - }, - "podMetadata": { - "description": "PodMetadata configures labels and annotations which are propagated to the Prometheus pods.\n\nThe following items are reserved and cannot be overridden:\n* \"prometheus\" label, set to the name of the Prometheus object.\n* \"app.kubernetes.io/instance\" label, set to the name of the Prometheus object.\n* \"app.kubernetes.io/managed-by\" label, set to \"prometheus-operator\".\n* \"app.kubernetes.io/name\" label, set to \"prometheus\".\n* \"app.kubernetes.io/version\" label, set to the Prometheus version.\n* \"operator.prometheus.io/name\" label, set to the name of the Prometheus object.\n* \"operator.prometheus.io/shard\" label, set to the shard number of the Prometheus object.\n* \"kubectl.kubernetes.io/default-container\" annotation, set to \"prometheus\".", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "type": "object" - }, - "podMonitorNamespaceSelector": { - "description": "Namespaces to match for PodMonitors discovery. An empty label selector\nmatches all namespaces. A null label selector (default value) matches the current\nnamespace only.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "podMonitorSelector": { - "description": "PodMonitors to be selected for target discovery. An empty label selector\nmatches all objects. A null label selector matches no objects.\n\nIf `spec.serviceMonitorSelector`, `spec.podMonitorSelector`, `spec.probeSelector`\nand `spec.scrapeConfigSelector` are null, the Prometheus configuration is unmanaged.\nThe Prometheus operator will ensure that the Prometheus configuration's\nSecret exists, but it is the responsibility of the user to provide the raw\ngzipped Prometheus configuration under the `prometheus.yaml.gz` key.\nThis behavior is *deprecated* and will be removed in the next major version\nof the custom resource definition. It is recommended to use\n`spec.additionalScrapeConfigs` instead.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "podTargetLabels": { - "description": "PodTargetLabels are appended to the `spec.podTargetLabels` field of all\nPodMonitor and ServiceMonitor objects.", - "items": { - "type": "string" - }, - "type": "array" - }, - "portName": { - "default": "web", - "description": "Port name used for the pods and governing service.\nDefault: \"web\"", - "type": "string" - }, - "priorityClassName": { - "description": "Priority class assigned to the Pods.", - "type": "string" - }, - "probeNamespaceSelector": { - "description": "Namespaces to match for Probe discovery. An empty label\nselector matches all namespaces. A null label selector matches the\ncurrent namespace only.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "probeSelector": { - "description": "Probes to be selected for target discovery. An empty label selector\nmatches all objects. A null label selector matches no objects.\n\nIf `spec.serviceMonitorSelector`, `spec.podMonitorSelector`, `spec.probeSelector`\nand `spec.scrapeConfigSelector` are null, the Prometheus configuration is unmanaged.\nThe Prometheus operator will ensure that the Prometheus configuration's\nSecret exists, but it is the responsibility of the user to provide the raw\ngzipped Prometheus configuration under the `prometheus.yaml.gz` key.\nThis behavior is *deprecated* and will be removed in the next major version\nof the custom resource definition. It is recommended to use\n`spec.additionalScrapeConfigs` instead.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "prometheusExternalLabelName": { - "description": "Name of Prometheus external label used to denote the Prometheus instance\nname. The external label will _not_ be added when the field is set to\nthe empty string (`\"\"`).\n\nDefault: \"prometheus\"", - "type": "string" - }, - "reloadStrategy": { - "description": "Defines the strategy used to reload the Prometheus configuration.\nIf not specified, the configuration is reloaded using the /-/reload HTTP endpoint.", - "enum": [ - "HTTP", - "ProcessSignal" - ], - "type": "string" - }, - "remoteWrite": { - "description": "Defines the list of remote write configurations.", - "items": { - "description": "RemoteWriteSpec defines the configuration to write samples from Prometheus\nto a remote endpoint.", - "properties": { - "authorization": { - "description": "Authorization section for the URL.\n\nIt requires Prometheus >= v2.26.0.\n\nCannot be set at the same time as `sigv4`, `basicAuth`, `oauth2`, or `azureAd`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "credentialsFile": { - "description": "File to read a secret from, mutually exclusive with `credentials`.", - "type": "string" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "azureAd": { - "description": "AzureAD for the URL.\n\nIt requires Prometheus >= v2.45.0.\n\nCannot be set at the same time as `authorization`, `basicAuth`, `oauth2`, or `sigv4`.", - "properties": { - "cloud": { - "description": "The Azure Cloud. Options are 'AzurePublic', 'AzureChina', or 'AzureGovernment'.", - "enum": [ - "AzureChina", - "AzureGovernment", - "AzurePublic" - ], - "type": "string" - }, - "managedIdentity": { - "description": "ManagedIdentity defines the Azure User-assigned Managed identity.\nCannot be set at the same time as `oauth` or `sdk`.", - "properties": { - "clientId": { - "description": "The client id", - "type": "string" - } - }, - "required": [ - "clientId" - ], - "type": "object" - }, - "oauth": { - "description": "OAuth defines the oauth config that is being used to authenticate.\nCannot be set at the same time as `managedIdentity` or `sdk`.\n\nIt requires Prometheus >= v2.48.0.", - "properties": { - "clientId": { - "description": "`clientID` is the clientId of the Azure Active Directory application that is being used to authenticate.", - "minLength": 1, - "type": "string" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the client secret of the Azure Active Directory application that is being used to authenticate.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "tenantId": { - "description": "`tenantId` is the tenant ID of the Azure Active Directory application that is being used to authenticate.", - "minLength": 1, - "pattern": "^[0-9a-zA-Z-.]+$", - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tenantId" - ], - "type": "object" - }, - "sdk": { - "description": "SDK defines the Azure SDK config that is being used to authenticate.\nSee https://learn.microsoft.com/en-us/azure/developer/go/azure-sdk-authentication\nCannot be set at the same time as `oauth` or `managedIdentity`.\n\nIt requires Prometheus >= 2.52.0.", - "properties": { - "tenantId": { - "description": "`tenantId` is the tenant ID of the azure active directory application that is being used to authenticate.", - "pattern": "^[0-9a-zA-Z-.]+$", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth configuration for the URL.\n\nCannot be set at the same time as `sigv4`, `authorization`, `oauth2`, or `azureAd`.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerToken": { - "description": "*Warning: this field shouldn't be used because the token value appears\nin clear-text. Prefer using `authorization`.*\n\nDeprecated: this will be removed in a future release.", - "type": "string" - }, - "bearerTokenFile": { - "description": "File from which to read bearer token for the URL.\n\nDeprecated: this will be removed in a future release. Prefer using `authorization`.", - "type": "string" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.\n\nIt requires Prometheus >= v2.26.0.", - "type": "boolean" - }, - "headers": { - "additionalProperties": { - "type": "string" - }, - "description": "Custom HTTP headers to be sent along with each remote write request.\nBe aware that headers that are set by Prometheus itself can't be overwritten.\n\nIt requires Prometheus >= v2.25.0.", - "type": "object" - }, - "metadataConfig": { - "description": "MetadataConfig configures the sending of series metadata to the remote storage.", - "properties": { - "send": { - "description": "Defines whether metric metadata is sent to the remote storage or not.", - "type": "boolean" - }, - "sendInterval": { - "description": "Defines how frequently metric metadata is sent to the remote storage.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - } - }, - "type": "object" - }, - "name": { - "description": "The name of the remote write queue, it must be unique if specified. The\nname is used in metrics and logging in order to differentiate queues.\n\nIt requires Prometheus >= v2.15.0.", - "type": "string" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "OAuth2 configuration for the URL.\n\nIt requires Prometheus >= v2.27.0.\n\nCannot be set at the same time as `sigv4`, `authorization`, `basicAuth`, or `azureAd`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "queueConfig": { - "description": "QueueConfig allows tuning of the remote write queue parameters.", - "properties": { - "batchSendDeadline": { - "description": "BatchSendDeadline is the maximum time a sample will wait in buffer.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "capacity": { - "description": "Capacity is the number of samples to buffer per shard before we start\ndropping them.", - "type": "integer" - }, - "maxBackoff": { - "description": "MaxBackoff is the maximum retry delay.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "maxRetries": { - "description": "MaxRetries is the maximum number of times to retry a batch on recoverable errors.", - "type": "integer" - }, - "maxSamplesPerSend": { - "description": "MaxSamplesPerSend is the maximum number of samples per send.", - "type": "integer" - }, - "maxShards": { - "description": "MaxShards is the maximum number of shards, i.e. amount of concurrency.", - "type": "integer" - }, - "minBackoff": { - "description": "MinBackoff is the initial retry delay. Gets doubled for every retry.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "minShards": { - "description": "MinShards is the minimum number of shards, i.e. amount of concurrency.", - "type": "integer" - }, - "retryOnRateLimit": { - "description": "Retry upon receiving a 429 status code from the remote-write storage.\n\nThis is an *experimental feature*, it may change in any upcoming release\nin a breaking way.", - "type": "boolean" - }, - "sampleAgeLimit": { - "description": "SampleAgeLimit drops samples older than the limit.\nIt requires Prometheus >= v2.50.0.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - } - }, - "type": "object" - }, - "remoteTimeout": { - "description": "Timeout for requests to the remote write endpoint.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "sendExemplars": { - "description": "Enables sending of exemplars over remote write. Note that\nexemplar-storage itself must be enabled using the `spec.enableFeature`\noption for exemplars to be scraped in the first place.\n\nIt requires Prometheus >= v2.27.0.", - "type": "boolean" - }, - "sendNativeHistograms": { - "description": "Enables sending of native histograms, also known as sparse histograms\nover remote write.\n\nIt requires Prometheus >= v2.40.0.", - "type": "boolean" - }, - "sigv4": { - "description": "Sigv4 allows to configures AWS's Signature Verification 4 for the URL.\n\nIt requires Prometheus >= v2.26.0.\n\nCannot be set at the same time as `authorization`, `basicAuth`, `oauth2`, or `azureAd`.", - "properties": { - "accessKey": { - "description": "AccessKey is the AWS API key. If not specified, the environment variable\n`AWS_ACCESS_KEY_ID` is used.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "profile": { - "description": "Profile is the named AWS profile used to authenticate.", - "type": "string" - }, - "region": { - "description": "Region is the AWS region. If blank, the region from the default credentials chain used.", - "type": "string" - }, - "roleArn": { - "description": "RoleArn is the named AWS profile used to authenticate.", - "type": "string" - }, - "secretKey": { - "description": "SecretKey is the AWS API secret. If not specified, the environment\nvariable `AWS_SECRET_ACCESS_KEY` is used.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "tlsConfig": { - "description": "TLS Config to use for the URL.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "caFile": { - "description": "Path to the CA cert in the Prometheus container to use for the targets.", - "type": "string" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "certFile": { - "description": "Path to the client cert file in the Prometheus container for the targets.", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keyFile": { - "description": "Path to the client key file in the Prometheus container for the targets.", - "type": "string" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "url": { - "description": "The URL of the endpoint to send samples to.", - "type": "string" - }, - "writeRelabelConfigs": { - "description": "The list of remote write relabel configurations.", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - } - }, - "required": [ - "url" - ], - "type": "object" - }, - "type": "array" - }, - "replicaExternalLabelName": { - "description": "Name of Prometheus external label used to denote the replica name.\nThe external label will _not_ be added when the field is set to the\nempty string (`\"\"`).\n\nDefault: \"prometheus_replica\"", - "type": "string" - }, - "replicas": { - "description": "Number of replicas of each shard to deploy for a Prometheus deployment.\n`spec.replicas` multiplied by `spec.shards` is the total number of Pods\ncreated.\n\nDefault: 1", - "format": "int32", - "type": "integer" - }, - "resources": { - "description": "Defines the resources requests and limits of the 'prometheus' container.", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - "items": { - "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string" - }, - "request": { - "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "routePrefix": { - "description": "The route prefix Prometheus registers HTTP handlers for.\n\nThis is useful when using `spec.externalURL`, and a proxy is rewriting\nHTTP routes of a request, and the actual ExternalURL is still true, but\nthe server serves requests under a different route prefix. For example\nfor use with `kubectl proxy`.", - "type": "string" - }, - "sampleLimit": { - "description": "SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.\nOnly valid in Prometheus versions 2.45.0 and newer.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedSampleLimit.", - "format": "int64", - "type": "integer" - }, - "scrapeClasses": { - "description": "List of scrape classes to expose to scraping objects such as\nPodMonitors, ServiceMonitors, Probes and ScrapeConfigs.\n\nThis is an *experimental feature*, it may change in any upcoming release\nin a breaking way.", - "items": { - "properties": { - "attachMetadata": { - "description": "AttachMetadata configures additional metadata to the discovered targets.\nWhen the scrape object defines its own configuration, it takes\nprecedence over the scrape class configuration.", - "properties": { - "node": { - "description": "When set to true, Prometheus attaches node metadata to the discovered\ntargets.\n\nThe Prometheus service account must have the `list` and `watch`\npermissions on the `Nodes` objects.", - "type": "boolean" - } - }, - "type": "object" - }, - "default": { - "description": "Default indicates that the scrape applies to all scrape objects that\ndon't configure an explicit scrape class name.\n\nOnly one scrape class can be set as the default.", - "type": "boolean" - }, - "metricRelabelings": { - "description": "MetricRelabelings configures the relabeling rules to apply to all samples before ingestion.\n\nThe Operator adds the scrape class metric relabelings defined here.\nThen the Operator adds the target-specific metric relabelings defined in ServiceMonitors, PodMonitors, Probes and ScrapeConfigs.\nThen the Operator adds namespace enforcement relabeling rule, specified in '.spec.enforcedNamespaceLabel'.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "name": { - "description": "Name of the scrape class.", - "minLength": 1, - "type": "string" - }, - "relabelings": { - "description": "Relabelings configures the relabeling rules to apply to all scrape targets.\n\nThe Operator automatically adds relabelings for a few standard Kubernetes fields\nlike `__meta_kubernetes_namespace` and `__meta_kubernetes_service_name`.\nThen the Operator adds the scrape class relabelings defined here.\nThen the Operator adds the target-specific relabelings defined in the scrape object.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLSConfig defines the TLS settings to use for the scrape. When the\nscrape objects define their own CA, certificate and/or key, they take\nprecedence over the corresponding scrape class fields.\n\nFor now only the `caFile`, `certFile` and `keyFile` fields are supported.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "caFile": { - "description": "Path to the CA cert in the Prometheus container to use for the targets.", - "type": "string" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "certFile": { - "description": "Path to the client cert file in the Prometheus container for the targets.", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keyFile": { - "description": "Path to the client key file in the Prometheus container for the targets.", - "type": "string" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "scrapeConfigNamespaceSelector": { - "description": "Namespaces to match for ScrapeConfig discovery. An empty label selector\nmatches all namespaces. A null label selector matches the current\nnamespace only.\n\nNote that the ScrapeConfig custom resource definition is currently at Alpha level.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "scrapeConfigSelector": { - "description": "ScrapeConfigs to be selected for target discovery. An empty label\nselector matches all objects. A null label selector matches no objects.\n\nIf `spec.serviceMonitorSelector`, `spec.podMonitorSelector`, `spec.probeSelector`\nand `spec.scrapeConfigSelector` are null, the Prometheus configuration is unmanaged.\nThe Prometheus operator will ensure that the Prometheus configuration's\nSecret exists, but it is the responsibility of the user to provide the raw\ngzipped Prometheus configuration under the `prometheus.yaml.gz` key.\nThis behavior is *deprecated* and will be removed in the next major version\nof the custom resource definition. It is recommended to use\n`spec.additionalScrapeConfigs` instead.\n\nNote that the ScrapeConfig custom resource definition is currently at Alpha level.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "scrapeInterval": { - "default": "30s", - "description": "Interval between consecutive scrapes.\n\nDefault: \"30s\"", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "scrapeProtocols": { - "description": "The protocols to negotiate during a scrape. It tells clients the\nprotocols supported by Prometheus in order of preference (from most to least preferred).\n\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.49.0.", - "items": { - "description": "ScrapeProtocol represents a protocol used by Prometheus for scraping metrics.\nSupported values are:\n* `OpenMetricsText0.0.1`\n* `OpenMetricsText1.0.0`\n* `PrometheusProto`\n* `PrometheusText0.0.4`", - "enum": [ - "PrometheusProto", - "OpenMetricsText0.0.1", - "OpenMetricsText1.0.0", - "PrometheusText0.0.4" - ], - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "scrapeTimeout": { - "description": "Number of seconds to wait until a scrape request times out.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "secrets": { - "description": "Secrets is a list of Secrets in the same namespace as the Prometheus\nobject, which shall be mounted into the Prometheus Pods.\nEach Secret is added to the StatefulSet definition as a volume named `secret-`.\nThe Secrets are mounted into /etc/prometheus/secrets/ in the 'prometheus' container.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "securityContext": { - "description": "SecurityContext holds pod-level security attributes and common container settings.\nThis defaults to the default PodSecurityContext.", - "properties": { - "appArmorProfile": { - "description": "appArmorProfile is the AppArmor options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile loaded on the node that should be used.\nThe profile must be preconfigured on the node to work.\nMust match the loaded name of the profile.\nMust be set if and only if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of AppArmor profile will be applied.\nValid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "fsGroup": { - "description": "A special supplemental group that applies to all containers in a pod.\nSome volume types allow the Kubelet to change the ownership of that volume\nto be owned by the pod:\n\n1. The owning GID will be the FSGroup\n2. The setgid bit is set (new files created in the volume will be owned by FSGroup)\n3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume\nbefore being exposed inside Pod. This field will only apply to\nvolume types which support fsGroup based ownership(and permissions).\nIt will have no effect on ephemeral volume types such as: secret, configmaps\nand emptydir.\nValid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to all containers.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in SecurityContext. If set in\nboth SecurityContext and PodSecurityContext, the value specified in SecurityContext\ntakes precedence for that container.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - }, - "type": "object" - }, - "seccompProfile": { - "description": "The seccomp options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "supplementalGroups": { - "description": "A list of groups applied to the first process run in each container, in\naddition to the container's primary GID and fsGroup (if specified). If\nthe SupplementalGroupsPolicy feature is enabled, the\nsupplementalGroupsPolicy field determines whether these are in addition\nto or instead of any group memberships defined in the container image.\nIf unspecified, no additional groups are added, though group memberships\ndefined in the container image may still be used, depending on the\nsupplementalGroupsPolicy field.\nNote that this field cannot be set when spec.os.name is windows.", - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "supplementalGroupsPolicy": { - "description": "Defines how supplemental groups of the first container processes are calculated.\nValid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used.\n(Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled\nand the container runtime must implement support for this feature.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "sysctls": { - "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\nsysctls (by the container runtime) might fail to launch.\nNote that this field cannot be set when spec.os.name is windows.", - "items": { - "description": "Sysctl defines a kernel parameter to be set", - "properties": { - "name": { - "description": "Name of a property to set", - "type": "string" - }, - "value": { - "description": "Value of a property to set", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "windowsOptions": { - "description": "The Windows specific settings applied to all containers.\nIf unspecified, the options within a container's SecurityContext will be used.\nIf set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is linux.", - "properties": { - "gmsaCredentialSpec": { - "description": "GMSACredentialSpec is where the GMSA admission webhook\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\nGMSA credential spec named by the GMSACredentialSpecName field.", - "type": "string" - }, - "gmsaCredentialSpecName": { - "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", - "type": "string" - }, - "hostProcess": { - "description": "HostProcess determines if a container should be run as a 'Host Process' container.\nAll of a Pod's containers must have the same effective HostProcess value\n(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\nIn addition, if HostProcess is true then HostNetwork must also be set to true.", - "type": "boolean" - }, - "runAsUserName": { - "description": "The UserName in Windows to run the entrypoint of the container process.\nDefaults to the user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "serviceAccountName": { - "description": "ServiceAccountName is the name of the ServiceAccount to use to run the\nPrometheus Pods.", - "type": "string" - }, - "serviceDiscoveryRole": { - "description": "Defines the service discovery role used to discover targets from\n`ServiceMonitor` objects and Alertmanager endpoints.\n\nIf set, the value should be either \"Endpoints\" or \"EndpointSlice\".\nIf unset, the operator assumes the \"Endpoints\" role.", - "enum": [ - "Endpoints", - "EndpointSlice" - ], - "type": "string" - }, - "serviceMonitorNamespaceSelector": { - "description": "Namespaces to match for ServicedMonitors discovery. An empty label selector\nmatches all namespaces. A null label selector (default value) matches the current\nnamespace only.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "serviceMonitorSelector": { - "description": "ServiceMonitors to be selected for target discovery. An empty label\nselector matches all objects. A null label selector matches no objects.\n\nIf `spec.serviceMonitorSelector`, `spec.podMonitorSelector`, `spec.probeSelector`\nand `spec.scrapeConfigSelector` are null, the Prometheus configuration is unmanaged.\nThe Prometheus operator will ensure that the Prometheus configuration's\nSecret exists, but it is the responsibility of the user to provide the raw\ngzipped Prometheus configuration under the `prometheus.yaml.gz` key.\nThis behavior is *deprecated* and will be removed in the next major version\nof the custom resource definition. It is recommended to use\n`spec.additionalScrapeConfigs` instead.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "shards": { - "description": "Number of shards to distribute targets onto. `spec.replicas`\nmultiplied by `spec.shards` is the total number of Pods created.\n\nNote that scaling down shards will not reshard data onto remaining\ninstances, it must be manually moved. Increasing shards will not reshard\ndata either but it will continue to be available from the same\ninstances. To query globally, use Thanos sidecar and Thanos querier or\nremote write data to a central location.\n\nSharding is performed on the content of the `__address__` target meta-label\nfor PodMonitors and ServiceMonitors and `__param_target__` for Probes.\n\nDefault: 1", - "format": "int32", - "type": "integer" - }, - "storage": { - "description": "Storage defines the storage used by Prometheus.", - "properties": { - "disableMountSubPath": { - "description": "Deprecated: subPath usage will be removed in a future release.", - "type": "boolean" - }, - "emptyDir": { - "description": "EmptyDirVolumeSource to be used by the StatefulSet.\nIf specified, it takes precedence over `ephemeral` and `volumeClaimTemplate`.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir", - "properties": { - "medium": { - "description": "medium represents what type of storage medium should back this directory.\nThe default is \"\" which means to use the node's default medium.\nMust be an empty string (default) or Memory.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "type": "string" - }, - "sizeLimit": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume.\nThe size limit is also applicable for memory medium.\nThe maximum usage on memory medium EmptyDir would be the minimum value between\nthe SizeLimit specified here and the sum of memory limits of all containers in a pod.\nThe default is nil which means that the limit is undefined.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - } - }, - "type": "object" - }, - "ephemeral": { - "description": "EphemeralVolumeSource to be used by the StatefulSet.\nThis is a beta field in k8s 1.21 and GA in 1.15.\nFor lower versions, starting with k8s 1.19, it requires enabling the GenericEphemeralVolume feature gate.\nMore info: https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes", - "properties": { - "volumeClaimTemplate": { - "description": "Will be used to create a stand-alone PVC to provision the volume.\nThe pod in which this EphemeralVolumeSource is embedded will be the\nowner of the PVC, i.e. the PVC will be deleted together with the\npod. The name of the PVC will be `-` where\n`` is the name from the `PodSpec.Volumes` array\nentry. Pod validation will reject the pod if the concatenated name\nis not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod\nwill *not* be used for the pod to avoid using an unrelated\nvolume by mistake. Starting the pod is then blocked until\nthe unrelated PVC is removed. If such a pre-created PVC is\nmeant to be used by the pod, the PVC has to updated with an\nowner reference to the pod once the pod exists. Normally\nthis should not be necessary, but it may be useful when\nmanually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes\nto the PVC after it has been created.\n\nRequired, must not be nil.", - "properties": { - "metadata": { - "description": "May contain labels and annotations that will be copied into the PVC\nwhen creating it. No other fields are allowed and will be rejected during\nvalidation.", - "type": "object" - }, - "spec": { - "description": "The specification for the PersistentVolumeClaim. The entire content is\ncopied unchanged into the PVC that gets created from this\ntemplate. The same fields as in a PersistentVolumeClaim\nare also valid here.", - "properties": { - "accessModes": { - "description": "accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "dataSource": { - "description": "dataSource field can be used to specify either:\n* An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n* An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "dataSourceRef": { - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n* While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "resources": { - "description": "resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "selector": { - "description": "selector is a label query over volumes to consider for binding.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "storageClassName": { - "description": "storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeAttributesClassName": { - "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "type": "object" - }, - "volumeClaimTemplate": { - "description": "Defines the PVC spec to be used by the Prometheus StatefulSets.\nThe easiest way to use a volume that cannot be automatically provisioned\nis to use a label selector alongside manually created PersistentVolumes.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "EmbeddedMetadata contains metadata relevant to an EmbeddedResource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "type": "object" - }, - "spec": { - "description": "Defines the desired characteristics of a volume requested by a pod author.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "properties": { - "accessModes": { - "description": "accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "dataSource": { - "description": "dataSource field can be used to specify either:\n* An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n* An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "dataSourceRef": { - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n* While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "resources": { - "description": "resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "selector": { - "description": "selector is a label query over volumes to consider for binding.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "storageClassName": { - "description": "storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeAttributesClassName": { - "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - }, - "type": "object" - }, - "status": { - "description": "Deprecated: this field is never set.", - "properties": { - "accessModes": { - "description": "accessModes contains the actual access modes the volume backing the PVC has.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "allocatedResourceStatuses": { - "additionalProperties": { - "description": "When a controller receives persistentvolume claim update with ClaimResourceStatus for a resource\nthat it does not recognizes, then it should ignore that update and let other controllers\nhandle it.", - "type": "string" - }, - "description": "allocatedResourceStatuses stores status of resource being resized for the given PVC.\nKey names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered\nreserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus\nshould ignore the update for the purpose it was designed. For example - a controller that\nonly is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid\nresources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", - "type": "object", - "x-kubernetes-map-type": "granular" - }, - "allocatedResources": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "allocatedResources tracks the resources allocated to a PVC including its capacity.\nKey names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered\nreserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation\nis requested.\nFor storage quota, the larger value from allocatedResources and PVC.spec.resources is used.\nIf allocatedResources is not set, PVC.spec.resources alone is used for quota calculation.\nIf a volume expansion capacity request is lowered, allocatedResources is only\nlowered if there are no expansion operations in progress and if the actual volume capacity\nis equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName\nshould ignore the update for the purpose it was designed. For example - a controller that\nonly is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid\nresources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", - "type": "object" - }, - "capacity": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "capacity represents the actual resources of the underlying volume.", - "type": "object" - }, - "conditions": { - "description": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being\nresized then the Condition will be set to 'Resizing'.", - "items": { - "description": "PersistentVolumeClaimCondition contains details about state of pvc", - "properties": { - "lastProbeTime": { - "description": "lastProbeTime is the time we probed the condition.", - "format": "date-time", - "type": "string" - }, - "lastTransitionTime": { - "description": "lastTransitionTime is the time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "message is the human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "reason is a unique, this should be a short, machine understandable string that gives the reason\nfor condition's last transition. If it reports \"Resizing\" that means the underlying\npersistent volume is being resized.", - "type": "string" - }, - "status": { - "type": "string" - }, - "type": { - "description": "PersistentVolumeClaimConditionType defines the condition of PV claim.\nValid values are:\n - \"Resizing\", \"FileSystemResizePending\"\n\nIf RecoverVolumeExpansionFailure feature gate is enabled, then following additional values can be expected:\n - \"ControllerResizeError\", \"NodeResizeError\"\n\nIf VolumeAttributesClass feature gate is enabled, then following additional values can be expected:\n - \"ModifyVolumeError\", \"ModifyingVolume\"", - "type": "string" - } - }, - "required": [ - "status", - "type" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - }, - "currentVolumeAttributesClassName": { - "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.\nWhen unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim\nThis is a beta field and requires enabling VolumeAttributesClass feature (off by default).", - "type": "string" - }, - "modifyVolumeStatus": { - "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.\nWhen this is unset, there is no ModifyVolume operation being attempted.\nThis is a beta field and requires enabling VolumeAttributesClass feature (off by default).", - "properties": { - "status": { - "description": "status is the status of the ControllerModifyVolume operation. It can be in any of following states:\n - Pending\n Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n InProgress indicates that the volume is being modified.\n - Infeasible\n Infeasible indicates that the request has been rejected as invalid by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass needs to be specified.\nNote: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.", - "type": "string" - }, - "targetVolumeAttributesClassName": { - "description": "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled", - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "phase": { - "description": "phase represents the current phase of PersistentVolumeClaim.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "targetLimit": { - "description": "TargetLimit defines a limit on the number of scraped targets that will be accepted.\nOnly valid in Prometheus versions 2.45.0 and newer.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedTargetLimit.", - "format": "int64", - "type": "integer" - }, - "tolerations": { - "description": "Defines the Pods' tolerations if specified.", - "items": { - "description": "The pod this Toleration is attached to tolerates any taint that matches\nthe triple using the matching operator .", - "properties": { - "effect": { - "description": "Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", - "type": "string" - }, - "key": { - "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.", - "type": "string" - }, - "operator": { - "description": "Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category.", - "type": "string" - }, - "tolerationSeconds": { - "description": "TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system.", - "format": "int64", - "type": "integer" - }, - "value": { - "description": "Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "topologySpreadConstraints": { - "description": "Defines the pod's topology spread constraints if specified.", - "items": { - "properties": { - "additionalLabelSelectors": { - "description": "Defines what Prometheus Operator managed labels should be added to labelSelector on the topologySpreadConstraint.", - "enum": [ - "OnResource", - "OnShard" - ], - "type": "string" - }, - "labelSelector": { - "description": "LabelSelector is used to find matching pods.\nPods that match this label selector are counted to determine the number of pods\nin their corresponding topology domain.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select the pods over which\nspreading will be calculated. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are ANDed with labelSelector\nto select the group of existing pods over which spreading will be calculated\nfor the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.\nMatchLabelKeys cannot be set when LabelSelector isn't set.\nKeys that don't exist in the incoming pod labels will\nbe ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "maxSkew": { - "description": "MaxSkew describes the degree to which pods may be unevenly distributed.\nWhen `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference\nbetween the number of matching pods in the target topology and the global minimum.\nThe global minimum is the minimum number of matching pods in an eligible domain\nor zero if the number of eligible domains is less than MinDomains.\nFor example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\nlabelSelector spread as 2/2/1:\nIn this case, the global minimum is 1.\n| zone1 | zone2 | zone3 |\n| P P | P P | P |\n- if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;\nscheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)\nviolate MaxSkew(1).\n- if MaxSkew is 2, incoming pod can be scheduled onto any zone.\nWhen `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence\nto topologies that satisfy it.\nIt's a required field. Default value is 1 and 0 is not allowed.", - "format": "int32", - "type": "integer" - }, - "minDomains": { - "description": "MinDomains indicates a minimum number of eligible domains.\nWhen the number of eligible domains with matching topology keys is less than minDomains,\nPod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed.\nAnd when the number of eligible domains with matching topology keys equals or greater than minDomains,\nthis value has no effect on scheduling.\nAs a result, when the number of eligible domains is less than minDomains,\nscheduler won't schedule more than maxSkew Pods to those domains.\nIf value is nil, the constraint behaves as if MinDomains is equal to 1.\nValid values are integers greater than 0.\nWhen value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same\nlabelSelector spread as 2/2/2:\n| zone1 | zone2 | zone3 |\n| P P | P P | P P |\nThe number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0.\nIn this situation, new pod with the same labelSelector cannot be scheduled,\nbecause computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,\nit will violate MaxSkew.", - "format": "int32", - "type": "integer" - }, - "nodeAffinityPolicy": { - "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector\nwhen calculating pod topology spread skew. Options are:\n- Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.\n- Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy.\nThis is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", - "type": "string" - }, - "nodeTaintsPolicy": { - "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating\npod topology spread skew. Options are:\n- Honor: nodes without taints, along with tainted nodes for which the incoming pod\nhas a toleration, are included.\n- Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy.\nThis is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", - "type": "string" - }, - "topologyKey": { - "description": "TopologyKey is the key of node labels. Nodes that have a label with this key\nand identical values are considered to be in the same topology.\nWe consider each as a \"bucket\", and try to put balanced number\nof pods into each bucket.\nWe define a domain as a particular instance of a topology.\nAlso, we define an eligible domain as a domain whose nodes meet the requirements of\nnodeAffinityPolicy and nodeTaintsPolicy.\ne.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology.\nAnd, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology.\nIt's a required field.", - "type": "string" - }, - "whenUnsatisfiable": { - "description": "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy\nthe spread constraint.\n- DoNotSchedule (default) tells the scheduler not to schedule it.\n- ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod\nif and only if every possible node assignment for that pod would violate\n\"MaxSkew\" on some topology.\nFor example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\nlabelSelector spread as 3/1/1:\n| zone1 | zone2 | zone3 |\n| P P P | P | P |\nIf WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled\nto zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies\nMaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler\nwon't make it *more* imbalanced.\nIt's a required field.", - "type": "string" - } - }, - "required": [ - "maxSkew", - "topologyKey", - "whenUnsatisfiable" - ], - "type": "object" - }, - "type": "array" - }, - "tracingConfig": { - "description": "TracingConfig configures tracing in Prometheus.\n\nThis is an *experimental feature*, it may change in any upcoming release\nin a breaking way.", - "properties": { - "clientType": { - "description": "Client used to export the traces. Supported values are `http` or `grpc`.", - "enum": [ - "http", - "grpc" - ], - "type": "string" - }, - "compression": { - "description": "Compression key for supported compression types. The only supported value is `gzip`.", - "enum": [ - "gzip" - ], - "type": "string" - }, - "endpoint": { - "description": "Endpoint to send the traces to. Should be provided in format :.", - "minLength": 1, - "type": "string" - }, - "headers": { - "additionalProperties": { - "type": "string" - }, - "description": "Key-value pairs to be used as headers associated with gRPC or HTTP requests.", - "type": "object" - }, - "insecure": { - "description": "If disabled, the client will use a secure connection.", - "type": "boolean" - }, - "samplingFraction": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Sets the probability a given trace will be sampled. Must be a float from 0 through 1.", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "timeout": { - "description": "Maximum time the exporter will wait for each batch export.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "tlsConfig": { - "description": "TLS Config to use when sending traces.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "caFile": { - "description": "Path to the CA cert in the Prometheus container to use for the targets.", - "type": "string" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "certFile": { - "description": "Path to the client cert file in the Prometheus container for the targets.", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keyFile": { - "description": "Path to the client key file in the Prometheus container for the targets.", - "type": "string" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "endpoint" - ], - "type": "object" - }, - "tsdb": { - "description": "Defines the runtime reloadable configuration of the timeseries database(TSDB).\nIt requires Prometheus >= v2.39.0 or PrometheusAgent >= v2.54.0.", - "properties": { - "outOfOrderTimeWindow": { - "description": "Configures how old an out-of-order/out-of-bounds sample can be with\nrespect to the TSDB max time.\n\nAn out-of-order/out-of-bounds sample is ingested into the TSDB as long as\nthe timestamp of the sample is >= (TSDB.MaxTime - outOfOrderTimeWindow).\n\nThis is an *experimental feature*, it may change in any upcoming release\nin a breaking way.\n\nIt requires Prometheus >= v2.39.0 or PrometheusAgent >= v2.54.0.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - } - }, - "type": "object" - }, - "version": { - "description": "Version of Prometheus being deployed. The operator uses this information\nto generate the Prometheus StatefulSet + configuration files.\n\nIf not specified, the operator assumes the latest upstream version of\nPrometheus available at the time when the version of the operator was\nreleased.", - "type": "string" - }, - "volumeMounts": { - "description": "VolumeMounts allows the configuration of additional VolumeMounts.\n\nVolumeMounts will be appended to other VolumeMounts in the 'prometheus'\ncontainer, that are generated as a result of StorageSpec objects.", - "items": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None).", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.", - "type": "boolean" - }, - "recursiveReadOnly": { - "description": "RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - "type": "string" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).", - "type": "string" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.", - "type": "string" - } - }, - "required": [ - "mountPath", - "name" - ], - "type": "object" - }, - "type": "array" - }, - "volumes": { - "description": "Volumes allows the configuration of additional volumes on the output\nStatefulSet definition. Volumes specified will be appended to other\nvolumes that are generated as a result of StorageSpec objects.", - "items": { - "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", - "properties": { - "awsElasticBlockStore": { - "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "properties": { - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "string" - }, - "partition": { - "description": "partition is the partition in the volume that you want to mount.\nIf omitted, the default is to mount by volume name.\nExamples: For volume /dev/sda1, you specify the partition as \"1\".\nSimilarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "readOnly value true will force the readOnly setting in VolumeMounts.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "boolean" - }, - "volumeID": { - "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "azureDisk": { - "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "properties": { - "cachingMode": { - "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", - "type": "string" - }, - "diskName": { - "description": "diskName is the Name of the data disk in the blob storage", - "type": "string" - }, - "diskURI": { - "description": "diskURI is the URI of data disk in the blob storage", - "type": "string" - }, - "fsType": { - "default": "ext4", - "description": "fsType is Filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "kind": { - "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", - "type": "string" - }, - "readOnly": { - "default": false, - "description": "readOnly Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - } - }, - "required": [ - "diskName", - "diskURI" - ], - "type": "object" - }, - "azureFile": { - "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "properties": { - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretName": { - "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", - "type": "string" - }, - "shareName": { - "description": "shareName is the azure share Name", - "type": "string" - } - }, - "required": [ - "secretName", - "shareName" - ], - "type": "object" - }, - "cephfs": { - "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "properties": { - "monitors": { - "description": "monitors is Required: Monitors is a collection of Ceph monitors\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "type": "string" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "boolean" - }, - "secretFile": { - "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "user": { - "description": "user is optional: User is the rados user name, default is admin\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - } - }, - "required": [ - "monitors" - ], - "type": "object" - }, - "cinder": { - "description": "cinder represents a cinder volume attached and mounted on kubelets host machine.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is optional: points to a secret object containing parameters used to connect\nto OpenStack.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "volumeID": { - "description": "volumeID used to identify the volume in cinder.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "configMap": { - "description": "configMap represents a configMap that should populate this volume", - "properties": { - "defaultMode": { - "description": "defaultMode is optional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDefaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "csi": { - "description": "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", - "properties": { - "driver": { - "description": "driver is the name of the CSI driver that handles this volume.\nConsult with your admin for the correct name as registered in the cluster.", - "type": "string" - }, - "fsType": { - "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\".\nIf not provided, the empty value is passed to the associated CSI driver\nwhich will determine the default filesystem to apply.", - "type": "string" - }, - "nodePublishSecretRef": { - "description": "nodePublishSecretRef is a reference to the secret object containing\nsensitive information to pass to the CSI driver to complete the CSI\nNodePublishVolume and NodeUnpublishVolume calls.\nThis field is optional, and may be empty if no secret is required. If the\nsecret object contains more than one secret, all secret references are passed.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "readOnly": { - "description": "readOnly specifies a read-only configuration for the volume.\nDefaults to false (read/write).", - "type": "boolean" - }, - "volumeAttributes": { - "additionalProperties": { - "type": "string" - }, - "description": "volumeAttributes stores driver-specific properties that are passed to the CSI\ndriver. Consult your driver's documentation for supported values.", - "type": "object" - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "downwardAPI": { - "description": "downwardAPI represents downward API about the pod that should populate this volume", - "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a\nOptional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDefaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "Items is a list of downward API volume file", - "items": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "properties": { - "fieldRef": { - "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file, must be an octal value\nbetween 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", - "type": "string" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "emptyDir": { - "description": "emptyDir represents a temporary directory that shares a pod's lifetime.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "properties": { - "medium": { - "description": "medium represents what type of storage medium should back this directory.\nThe default is \"\" which means to use the node's default medium.\nMust be an empty string (default) or Memory.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "type": "string" - }, - "sizeLimit": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume.\nThe size limit is also applicable for memory medium.\nThe maximum usage on memory medium EmptyDir would be the minimum value between\nthe SizeLimit specified here and the sum of memory limits of all containers in a pod.\nThe default is nil which means that the limit is undefined.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - } - }, - "type": "object" - }, - "ephemeral": { - "description": "ephemeral represents a volume that is handled by a cluster storage driver.\nThe volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,\nand deleted when the pod is removed.\n\nUse this if:\na) the volume is only needed while the pod runs,\nb) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and\nd) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific\nAPIs for volumes that persist for longer than the lifecycle\nof an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to\nbe used that way - see the documentation of the driver for\nmore information.\n\nA pod can use both types of ephemeral volumes and\npersistent volumes at the same time.", - "properties": { - "volumeClaimTemplate": { - "description": "Will be used to create a stand-alone PVC to provision the volume.\nThe pod in which this EphemeralVolumeSource is embedded will be the\nowner of the PVC, i.e. the PVC will be deleted together with the\npod. The name of the PVC will be `-` where\n`` is the name from the `PodSpec.Volumes` array\nentry. Pod validation will reject the pod if the concatenated name\nis not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod\nwill *not* be used for the pod to avoid using an unrelated\nvolume by mistake. Starting the pod is then blocked until\nthe unrelated PVC is removed. If such a pre-created PVC is\nmeant to be used by the pod, the PVC has to updated with an\nowner reference to the pod once the pod exists. Normally\nthis should not be necessary, but it may be useful when\nmanually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes\nto the PVC after it has been created.\n\nRequired, must not be nil.", - "properties": { - "metadata": { - "description": "May contain labels and annotations that will be copied into the PVC\nwhen creating it. No other fields are allowed and will be rejected during\nvalidation.", - "type": "object" - }, - "spec": { - "description": "The specification for the PersistentVolumeClaim. The entire content is\ncopied unchanged into the PVC that gets created from this\ntemplate. The same fields as in a PersistentVolumeClaim\nare also valid here.", - "properties": { - "accessModes": { - "description": "accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "dataSource": { - "description": "dataSource field can be used to specify either:\n* An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n* An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "dataSourceRef": { - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n* While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "resources": { - "description": "resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "selector": { - "description": "selector is a label query over volumes to consider for binding.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "storageClassName": { - "description": "storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeAttributesClassName": { - "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "type": "object" - }, - "fc": { - "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "lun": { - "description": "lun is Optional: FC target lun number", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "targetWWNs": { - "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "wwids": { - "description": "wwids Optional: FC volume world wide identifiers (wwids)\nEither wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "flexVolume": { - "description": "flexVolume represents a generic volume resource that is\nprovisioned/attached using an exec based plugin.", - "properties": { - "driver": { - "description": "driver is the name of the driver to use for this volume.", - "type": "string" - }, - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", - "type": "string" - }, - "options": { - "additionalProperties": { - "type": "string" - }, - "description": "options is Optional: this field holds extra command options if any.", - "type": "object" - }, - "readOnly": { - "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is Optional: secretRef is reference to the secret object containing\nsensitive information to pass to the plugin scripts. This may be\nempty if no secret object is specified. If the secret object\ncontains more than one secret, all secrets are passed to the plugin\nscripts.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "flocker": { - "description": "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", - "properties": { - "datasetName": { - "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker\nshould be considered as deprecated", - "type": "string" - }, - "datasetUUID": { - "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", - "type": "string" - } - }, - "type": "object" - }, - "gcePersistentDisk": { - "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "properties": { - "fsType": { - "description": "fsType is filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string" - }, - "partition": { - "description": "partition is the partition in the volume that you want to mount.\nIf omitted, the default is to mount by volume name.\nExamples: For volume /dev/sda1, you specify the partition as \"1\".\nSimilarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "format": "int32", - "type": "integer" - }, - "pdName": { - "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "boolean" - } - }, - "required": [ - "pdName" - ], - "type": "object" - }, - "gitRepo": { - "description": "gitRepo represents a git repository at a particular revision.\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an\nEmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir\ninto the Pod's container.", - "properties": { - "directory": { - "description": "directory is the target directory name.\nMust not contain or start with '..'. If '.' is supplied, the volume directory will be the\ngit repository. Otherwise, if specified, the volume will contain the git repository in\nthe subdirectory with the given name.", - "type": "string" - }, - "repository": { - "description": "repository is the URL", - "type": "string" - }, - "revision": { - "description": "revision is the commit hash for the specified revision.", - "type": "string" - } - }, - "required": [ - "repository" - ], - "type": "object" - }, - "glusterfs": { - "description": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md", - "properties": { - "endpoints": { - "description": "endpoints is the endpoint name that details Glusterfs topology.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "path": { - "description": "path is the Glusterfs volume path.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions.\nDefaults to false.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" - } - }, - "required": [ - "endpoints", - "path" - ], - "type": "object" - }, - "hostPath": { - "description": "hostPath represents a pre-existing file or directory on the host\nmachine that is directly exposed to the container. This is generally\nused for system agents or other privileged things that are allowed\nto see the host machine. Most containers will NOT need this.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "properties": { - "path": { - "description": "path of the directory on the host.\nIf the path is a symlink, it will follow the link to the real path.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "type": "string" - }, - "type": { - "description": "type for HostPath Volume\nDefaults to \"\"\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "image": { - "description": "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.\nThe volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.\n- Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.\n- IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation.\nA failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message.\nThe types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field.\nThe OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images.\nThe volume will be mounted read-only (ro) and non-executable files (noexec).\nSub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath).\nThe field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", - "properties": { - "pullPolicy": { - "description": "Policy for pulling OCI objects. Possible values are:\nAlways: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.\nNever: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.\nIfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.", - "type": "string" - }, - "reference": { - "description": "Required: Image or artifact reference to be used.\nBehaves in the same way as pod.spec.containers[*].image.\nPull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.\nMore info: https://kubernetes.io/docs/concepts/containers/images\nThis field is optional to allow higher level config management to default or override\ncontainer images in workload controllers like Deployments and StatefulSets.", - "type": "string" - } - }, - "type": "object" - }, - "iscsi": { - "description": "iscsi represents an ISCSI Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://examples.k8s.io/volumes/iscsi/README.md", - "properties": { - "chapAuthDiscovery": { - "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", - "type": "boolean" - }, - "chapAuthSession": { - "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", - "type": "boolean" - }, - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", - "type": "string" - }, - "initiatorName": { - "description": "initiatorName is the custom iSCSI Initiator Name.\nIf initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface\n: will be created for the connection.", - "type": "string" - }, - "iqn": { - "description": "iqn is the target iSCSI Qualified Name.", - "type": "string" - }, - "iscsiInterface": { - "default": "default", - "description": "iscsiInterface is the interface Name that uses an iSCSI transport.\nDefaults to 'default' (tcp).", - "type": "string" - }, - "lun": { - "description": "lun represents iSCSI Target Lun number.", - "format": "int32", - "type": "integer" - }, - "portals": { - "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port\nis other than default (typically TCP ports 860 and 3260).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "targetPortal": { - "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port\nis other than default (typically TCP ports 860 and 3260).", - "type": "string" - } - }, - "required": [ - "iqn", - "lun", - "targetPortal" - ], - "type": "object" - }, - "name": { - "description": "name of the volume.\nMust be a DNS_LABEL and unique within the pod.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "nfs": { - "description": "nfs represents an NFS mount on the host that shares a pod's lifetime\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "properties": { - "path": { - "description": "path that is exported by the NFS server.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the NFS export to be mounted with read-only permissions.\nDefaults to false.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "boolean" - }, - "server": { - "description": "server is the hostname or IP address of the NFS server.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - } - }, - "required": [ - "path", - "server" - ], - "type": "object" - }, - "persistentVolumeClaim": { - "description": "persistentVolumeClaimVolumeSource represents a reference to a\nPersistentVolumeClaim in the same namespace.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "properties": { - "claimName": { - "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "type": "string" - }, - "readOnly": { - "description": "readOnly Will force the ReadOnly setting in VolumeMounts.\nDefault false.", - "type": "boolean" - } - }, - "required": [ - "claimName" - ], - "type": "object" - }, - "photonPersistentDisk": { - "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "pdID": { - "description": "pdID is the ID that identifies Photon Controller persistent disk", - "type": "string" - } - }, - "required": [ - "pdID" - ], - "type": "object" - }, - "portworxVolume": { - "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "properties": { - "fsType": { - "description": "fSType represents the filesystem type to mount\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "volumeID": { - "description": "volumeID uniquely identifies a Portworx volume", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "projected": { - "description": "projected items for all in one resources secrets, configmaps, and downward API", - "properties": { - "defaultMode": { - "description": "defaultMode are the mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "sources": { - "description": "sources is the list of volume projections. Each entry in this list\nhandles one source.", - "items": { - "description": "Projection that may be projected along with other supported volume types.\nExactly one of these fields must be set.", - "properties": { - "clusterTrustBundle": { - "description": "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field\nof ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the\ncombination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written\ninto the pod filesystem. Esoteric PEM features such as inter-block\ncomments and block headers are stripped. Certificates are deduplicated.\nThe ordering of certificates within the file is arbitrary, and Kubelet\nmay change the order over time.", - "properties": { - "labelSelector": { - "description": "Select all ClusterTrustBundles that match this label selector. Only has\neffect if signerName is set. Mutually-exclusive with name. If unset,\ninterpreted as \"match nothing\". If set but empty, interpreted as \"match\neverything\".", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "name": { - "description": "Select a single ClusterTrustBundle by object name. Mutually-exclusive\nwith signerName and labelSelector.", - "type": "string" - }, - "optional": { - "description": "If true, don't block pod startup if the referenced ClusterTrustBundle(s)\naren't available. If using name, then the named ClusterTrustBundle is\nallowed not to exist. If using signerName, then the combination of\nsignerName and labelSelector is allowed to match zero\nClusterTrustBundles.", - "type": "boolean" - }, - "path": { - "description": "Relative path from the volume root to write the bundle.", - "type": "string" - }, - "signerName": { - "description": "Select all ClusterTrustBundles that match this signer name.\nMutually-exclusive with name. The contents of all selected\nClusterTrustBundles will be unified and deduplicated.", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "configMap": { - "description": "configMap information about the configMap data to project", - "properties": { - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "downwardAPI": { - "description": "downwardAPI information about the downwardAPI data to project", - "properties": { - "items": { - "description": "Items is a list of DownwardAPIVolume file", - "items": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "properties": { - "fieldRef": { - "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file, must be an octal value\nbetween 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", - "type": "string" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "secret": { - "description": "secret information about the secret data to project", - "properties": { - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "optional field specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "serviceAccountToken": { - "description": "serviceAccountToken is information about the serviceAccountToken data to project", - "properties": { - "audience": { - "description": "audience is the intended audience of the token. A recipient of a token\nmust identify itself with an identifier specified in the audience of the\ntoken, and otherwise should reject the token. The audience defaults to the\nidentifier of the apiserver.", - "type": "string" - }, - "expirationSeconds": { - "description": "expirationSeconds is the requested duration of validity of the service\naccount token. As the token approaches expiration, the kubelet volume\nplugin will proactively rotate the service account token. The kubelet will\nstart trying to rotate the token if the token is older than 80 percent of\nits time to live or if the token is older than 24 hours.Defaults to 1 hour\nand must be at least 10 minutes.", - "format": "int64", - "type": "integer" - }, - "path": { - "description": "path is the path relative to the mount point of the file to project the\ntoken into.", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - } - }, - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "quobyte": { - "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "properties": { - "group": { - "description": "group to map volume access to\nDefault is no group", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the Quobyte volume to be mounted with read-only permissions.\nDefaults to false.", - "type": "boolean" - }, - "registry": { - "description": "registry represents a single or multiple Quobyte Registry services\nspecified as a string as host:port pair (multiple entries are separated with commas)\nwhich acts as the central registry for volumes", - "type": "string" - }, - "tenant": { - "description": "tenant owning the given Quobyte volume in the Backend\nUsed with dynamically provisioned Quobyte volumes, value is set by the plugin", - "type": "string" - }, - "user": { - "description": "user to map volume access to\nDefaults to serivceaccount user", - "type": "string" - }, - "volume": { - "description": "volume is a string that references an already created Quobyte volume by name.", - "type": "string" - } - }, - "required": [ - "registry", - "volume" - ], - "type": "object" - }, - "rbd": { - "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.\nMore info: https://examples.k8s.io/volumes/rbd/README.md", - "properties": { - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", - "type": "string" - }, - "image": { - "description": "image is the rados image name.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "keyring": { - "default": "/etc/ceph/keyring", - "description": "keyring is the path to key ring for RBDUser.\nDefault is /etc/ceph/keyring.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "monitors": { - "description": "monitors is a collection of Ceph monitors.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "pool": { - "default": "rbd", - "description": "pool is the rados pool name.\nDefault is rbd.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is name of the authentication secret for RBDUser. If provided\noverrides keyring.\nDefault is nil.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "user": { - "default": "admin", - "description": "user is the rados user name.\nDefault is admin.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - } - }, - "required": [ - "image", - "monitors" - ], - "type": "object" - }, - "scaleIO": { - "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "properties": { - "fsType": { - "default": "xfs", - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\".\nDefault is \"xfs\".", - "type": "string" - }, - "gateway": { - "description": "gateway is the host address of the ScaleIO API Gateway.", - "type": "string" - }, - "protectionDomain": { - "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", - "type": "string" - }, - "readOnly": { - "description": "readOnly Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef references to the secret for ScaleIO user and other\nsensitive information. If this is not provided, Login operation will fail.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "sslEnabled": { - "description": "sslEnabled Flag enable/disable SSL communication with Gateway, default false", - "type": "boolean" - }, - "storageMode": { - "default": "ThinProvisioned", - "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.\nDefault is ThinProvisioned.", - "type": "string" - }, - "storagePool": { - "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", - "type": "string" - }, - "system": { - "description": "system is the name of the storage system as configured in ScaleIO.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the name of a volume already created in the ScaleIO system\nthat is associated with this volume source.", - "type": "string" - } - }, - "required": [ - "gateway", - "secretRef", - "system" - ], - "type": "object" - }, - "secret": { - "description": "secret represents a secret that should populate this volume.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - "properties": { - "defaultMode": { - "description": "defaultMode is Optional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values\nfor mode bits. Defaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "items If unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "optional": { - "description": "optional field specify whether the Secret or its keys must be defined", - "type": "boolean" - }, - "secretName": { - "description": "secretName is the name of the secret in the pod's namespace to use.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - "type": "string" - } - }, - "type": "object" - }, - "storageos": { - "description": "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef specifies the secret to use for obtaining the StorageOS API\ncredentials. If not specified, default values will be attempted.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "volumeName": { - "description": "volumeName is the human-readable name of the StorageOS volume. Volume\nnames are only unique within a namespace.", - "type": "string" - }, - "volumeNamespace": { - "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no\nnamespace is specified then the Pod's namespace will be used. This allows the\nKubernetes name scoping to be mirrored within StorageOS for tighter integration.\nSet VolumeName to any name to override the default behaviour.\nSet to \"default\" if you are not using namespaces within StorageOS.\nNamespaces that do not pre-exist within StorageOS will be created.", - "type": "string" - } - }, - "type": "object" - }, - "vsphereVolume": { - "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "properties": { - "fsType": { - "description": "fsType is filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "storagePolicyID": { - "description": "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", - "type": "string" - }, - "storagePolicyName": { - "description": "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", - "type": "string" - }, - "volumePath": { - "description": "volumePath is the path that identifies vSphere volume vmdk", - "type": "string" - } - }, - "required": [ - "volumePath" - ], - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "walCompression": { - "description": "Configures compression of the write-ahead log (WAL) using Snappy.\n\nWAL compression is enabled by default for Prometheus >= 2.20.0\n\nRequires Prometheus v2.11.0 and above.", - "type": "boolean" - }, - "web": { - "description": "Defines the configuration of the Prometheus web server.", - "properties": { - "httpConfig": { - "description": "Defines HTTP parameters for web server.", - "properties": { - "headers": { - "description": "List of headers that can be added to HTTP responses.", - "properties": { - "contentSecurityPolicy": { - "description": "Set the Content-Security-Policy header to HTTP responses.\nUnset if blank.", - "type": "string" - }, - "strictTransportSecurity": { - "description": "Set the Strict-Transport-Security header to HTTP responses.\nUnset if blank.\nPlease make sure that you use this with care as this header might force\nbrowsers to load Prometheus and the other applications hosted on the same\ndomain and subdomains over HTTPS.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security", - "type": "string" - }, - "xContentTypeOptions": { - "description": "Set the X-Content-Type-Options header to HTTP responses.\nUnset if blank. Accepted value is nosniff.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options", - "enum": [ - "", - "NoSniff" - ], - "type": "string" - }, - "xFrameOptions": { - "description": "Set the X-Frame-Options header to HTTP responses.\nUnset if blank. Accepted values are deny and sameorigin.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options", - "enum": [ - "", - "Deny", - "SameOrigin" - ], - "type": "string" - }, - "xXSSProtection": { - "description": "Set the X-XSS-Protection header to all responses.\nUnset if blank.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection", - "type": "string" - } - }, - "type": "object" - }, - "http2": { - "description": "Enable HTTP/2 support. Note that HTTP/2 is only supported with TLS.\nWhen TLSConfig is not configured, HTTP/2 will be disabled.\nWhenever the value of the field changes, a rolling update will be triggered.", - "type": "boolean" - } - }, - "type": "object" - }, - "maxConnections": { - "description": "Defines the maximum number of simultaneous connections\nA zero value means that Prometheus doesn't accept any incoming connection.", - "format": "int32", - "minimum": 0, - "type": "integer" - }, - "pageTitle": { - "description": "The prometheus web page title.", - "type": "string" - }, - "tlsConfig": { - "description": "Defines the TLS parameters for HTTPS.", - "properties": { - "cert": { - "description": "Contains the TLS certificate for the server.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cipherSuites": { - "description": "List of supported cipher suites for TLS versions up to TLS 1.2. If empty,\nGo default cipher suites are used. Available cipher suites are documented\nin the go documentation: https://golang.org/pkg/crypto/tls/#pkg-constants", - "items": { - "type": "string" - }, - "type": "array" - }, - "clientAuthType": { - "description": "Server policy for client authentication. Maps to ClientAuth Policies.\nFor more detail on clientAuth options:\nhttps://golang.org/pkg/crypto/tls/#ClientAuthType", - "type": "string" - }, - "client_ca": { - "description": "Contains the CA certificate for client certificate authentication to the server.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "curvePreferences": { - "description": "Elliptic curves that will be used in an ECDHE handshake, in preference\norder. Available curves are documented in the go documentation:\nhttps://golang.org/pkg/crypto/tls/#CurveID", - "items": { - "type": "string" - }, - "type": "array" - }, - "keySecret": { - "description": "Secret containing the TLS key for the server.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum TLS version that is acceptable. Defaults to TLS13.", - "type": "string" - }, - "minVersion": { - "description": "Minimum TLS version that is acceptable. Defaults to TLS12.", - "type": "string" - }, - "preferServerCipherSuites": { - "description": "Controls whether the server selects the\nclient's most preferred cipher suite, or the server's most preferred\ncipher suite. If true then the server's preference, as expressed in\nthe order of elements in cipherSuites, is used.", - "type": "boolean" - } - }, - "required": [ - "cert", - "keySecret" - ], - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "status": { - "description": "Most recent observed status of the Prometheus cluster. Read-only.\nMore info:\nhttps://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds)\ntargeted by this Prometheus deployment.", - "format": "int32", - "type": "integer" - }, - "conditions": { - "description": "The current state of the Prometheus deployment.", - "items": { - "description": "Condition represents the state of the resources associated with the\nPrometheus, Alertmanager or ThanosRuler resource.", - "properties": { - "lastTransitionTime": { - "description": "lastTransitionTime is the time of the last update to the current status property.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "Human-readable message indicating details for the condition's last transition.", - "type": "string" - }, - "observedGeneration": { - "description": "ObservedGeneration represents the .metadata.generation that the\ncondition was set based upon. For instance, if `.metadata.generation` is\ncurrently 12, but the `.status.conditions[].observedGeneration` is 9, the\ncondition is out of date with respect to the current state of the\ninstance.", - "format": "int64", - "type": "integer" - }, - "reason": { - "description": "Reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition.", - "type": "string" - }, - "type": { - "description": "Type of the condition being reported.", - "type": "string" - } - }, - "required": [ - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - }, - "paused": { - "description": "Represents whether any actions on the underlying managed objects are\nbeing performed. Only delete actions will be performed.", - "type": "boolean" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this Prometheus deployment\n(their labels match the selector).", - "format": "int32", - "type": "integer" - }, - "selector": { - "description": "The selector used to match the pods targeted by this Prometheus resource.", - "type": "string" - }, - "shardStatuses": { - "description": "The list has one entry per shard. Each entry provides a summary of the shard status.", - "items": { - "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds)\ntargeted by this shard.", - "format": "int32", - "type": "integer" - }, - "replicas": { - "description": "Total number of pods targeted by this shard.", - "format": "int32", - "type": "integer" - }, - "shardID": { - "description": "Identifier of the shard.", - "type": "string" - }, - "unavailableReplicas": { - "description": "Total number of unavailable pods targeted by this shard.", - "format": "int32", - "type": "integer" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this shard\nthat have the desired spec.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "availableReplicas", - "replicas", - "shardID", - "unavailableReplicas", - "updatedReplicas" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "shardID" - ], - "x-kubernetes-list-type": "map" - }, - "shards": { - "description": "Shards is the most recently observed number of shards.", - "format": "int32", - "type": "integer" - }, - "unavailableReplicas": { - "description": "Total number of unavailable pods targeted by this Prometheus deployment.", - "format": "int32", - "type": "integer" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this Prometheus deployment\nthat have the desired version spec.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "availableReplicas", - "paused", - "replicas", - "unavailableReplicas", - "updatedReplicas" - ], - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "served": true, - "storage": true, - "subresources": { - "scale": { - "labelSelectorPath": ".status.selector", - "specReplicasPath": ".spec.shards", - "statusReplicasPath": ".status.shards" - }, - "status": {} - } - } - ] - } -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheuses-crd.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheuses-crd.json deleted file mode 100644 index b3ffe35e3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheuses-crd.json +++ /dev/null @@ -1,10677 +0,0 @@ -{ - "apiVersion": "apiextensions.k8s.io/v1", - "kind": "CustomResourceDefinition", - "metadata": { - "annotations": { - "controller-gen.kubebuilder.io/version": "v0.16.1", - "operator.prometheus.io/version": "0.76.0" - }, - "name": "prometheuses.monitoring.coreos.com" - }, - "spec": { - "group": "monitoring.coreos.com", - "names": { - "categories": [ - "prometheus-operator" - ], - "kind": "Prometheus", - "listKind": "PrometheusList", - "plural": "prometheuses", - "shortNames": [ - "prom" - ], - "singular": "prometheus" - }, - "scope": "Namespaced", - "versions": [ - { - "additionalPrinterColumns": [ - { - "description": "The version of Prometheus", - "jsonPath": ".spec.version", - "name": "Version", - "type": "string" - }, - { - "description": "The number of desired replicas", - "jsonPath": ".spec.replicas", - "name": "Desired", - "type": "integer" - }, - { - "description": "The number of ready replicas", - "jsonPath": ".status.availableReplicas", - "name": "Ready", - "type": "integer" - }, - { - "jsonPath": ".status.conditions[?(@.type == 'Reconciled')].status", - "name": "Reconciled", - "type": "string" - }, - { - "jsonPath": ".status.conditions[?(@.type == 'Available')].status", - "name": "Available", - "type": "string" - }, - { - "jsonPath": ".metadata.creationTimestamp", - "name": "Age", - "type": "date" - }, - { - "description": "Whether the resource reconciliation is paused or not", - "jsonPath": ".status.paused", - "name": "Paused", - "priority": 1, - "type": "boolean" - } - ], - "name": "v1", - "schema": { - "openAPIV3Schema": { - "description": "The `Prometheus` custom resource definition (CRD) defines a desired [Prometheus](https://prometheus.io/docs/prometheus) setup to run in a Kubernetes cluster. It allows to specify many options such as the number of replicas, persistent storage, and Alertmanagers where firing alerts should be sent and many more.\n\nFor each `Prometheus` resource, the Operator deploys one or several `StatefulSet` objects in the same namespace. The number of StatefulSets is equal to the number of shards which is 1 by default.\n\nThe resource defines via label and namespace selectors which `ServiceMonitor`, `PodMonitor`, `Probe` and `PrometheusRule` objects should be associated to the deployed Prometheus instances.\n\nThe Operator continuously reconciles the scrape and rules configuration and a sidecar container running in the Prometheus pods triggers a reload of the configuration when needed.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "type": "object" - }, - "spec": { - "description": "Specification of the desired behavior of the Prometheus cluster. More info:\nhttps://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "properties": { - "additionalAlertManagerConfigs": { - "description": "AdditionalAlertManagerConfigs specifies a key of a Secret containing\nadditional Prometheus Alertmanager configurations. The Alertmanager\nconfigurations are appended to the configuration generated by the\nPrometheus Operator. They must be formatted according to the official\nPrometheus documentation:\n\nhttps://prometheus.io/docs/prometheus/latest/configuration/configuration/#alertmanager_config\n\nThe user is responsible for making sure that the configurations are valid\n\nNote that using this feature may expose the possibility to break\nupgrades of Prometheus. It is advised to review Prometheus release notes\nto ensure that no incompatible AlertManager configs are going to break\nPrometheus after the upgrade.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "additionalAlertRelabelConfigs": { - "description": "AdditionalAlertRelabelConfigs specifies a key of a Secret containing\nadditional Prometheus alert relabel configurations. The alert relabel\nconfigurations are appended to the configuration generated by the\nPrometheus Operator. They must be formatted according to the official\nPrometheus documentation:\n\nhttps://prometheus.io/docs/prometheus/latest/configuration/configuration/#alert_relabel_configs\n\nThe user is responsible for making sure that the configurations are valid\n\nNote that using this feature may expose the possibility to break\nupgrades of Prometheus. It is advised to review Prometheus release notes\nto ensure that no incompatible alert relabel configs are going to break\nPrometheus after the upgrade.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "additionalArgs": { - "description": "AdditionalArgs allows setting additional arguments for the 'prometheus' container.\n\nIt is intended for e.g. activating hidden flags which are not supported by\nthe dedicated configuration options yet. The arguments are passed as-is to the\nPrometheus container which may cause issues if they are invalid or not supported\nby the given Prometheus version.\n\nIn case of an argument conflict (e.g. an argument which is already set by the\noperator itself) or when providing an invalid argument, the reconciliation will\nfail and an error will be logged.", - "items": { - "description": "Argument as part of the AdditionalArgs list.", - "properties": { - "name": { - "description": "Name of the argument, e.g. \"scrape.discovery-reload-interval\".", - "minLength": 1, - "type": "string" - }, - "value": { - "description": "Argument value, e.g. 30s. Can be empty for name-only arguments (e.g. --storage.tsdb.no-lockfile)", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "additionalScrapeConfigs": { - "description": "AdditionalScrapeConfigs allows specifying a key of a Secret containing\nadditional Prometheus scrape configurations. Scrape configurations\nspecified are appended to the configurations generated by the Prometheus\nOperator. Job configurations specified must have the form as specified\nin the official Prometheus documentation:\nhttps://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config.\nAs scrape configs are appended, the user is responsible to make sure it\nis valid. Note that using this feature may expose the possibility to\nbreak upgrades of Prometheus. It is advised to review Prometheus release\nnotes to ensure that no incompatible scrape configs are going to break\nPrometheus after the upgrade.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "affinity": { - "description": "Defines the Pods' affinity scheduling rules if specified.", - "properties": { - "nodeAffinity": { - "description": "Describes node affinity scheduling rules for the pod.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node matches the corresponding matchExpressions; the\nnode(s) with the highest sum are the most preferred.", - "items": { - "description": "An empty preferred scheduling term matches all objects with implicit weight 0\n(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", - "properties": { - "preference": { - "description": "A node selector term, associated with the corresponding weight.", - "properties": { - "matchExpressions": { - "description": "A list of node selector requirements by node's labels.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchFields": { - "description": "A list of node selector requirements by node's fields.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "weight": { - "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "preference", - "weight" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to an update), the system\nmay or may not try to eventually evict the pod from its node.", - "properties": { - "nodeSelectorTerms": { - "description": "Required. A list of node selector terms. The terms are ORed.", - "items": { - "description": "A null or empty node selector term matches no objects. The requirements of\nthem are ANDed.\nThe TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", - "properties": { - "matchExpressions": { - "description": "A list of node selector requirements by node's labels.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchFields": { - "description": "A list of node selector requirements by node's fields.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "nodeSelectorTerms" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "podAffinity": { - "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", - "items": { - "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "properties": { - "podAffinityTerm": { - "description": "Required. A pod affinity term, associated with the corresponding weight.", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "podAffinityTerm", - "weight" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", - "items": { - "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "podAntiAffinity": { - "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe anti-affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling anti-affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", - "items": { - "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "properties": { - "podAffinityTerm": { - "description": "Required. A pod affinity term, associated with the corresponding weight.", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "podAffinityTerm", - "weight" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the anti-affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the anti-affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", - "items": { - "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "alerting": { - "description": "Defines the settings related to Alertmanager.", - "properties": { - "alertmanagers": { - "description": "Alertmanager endpoints where Prometheus should send alerts to.", - "items": { - "description": "AlertmanagerEndpoints defines a selection of a single Endpoints object\ncontaining Alertmanager IPs to fire alerts against.", - "properties": { - "alertRelabelings": { - "description": "Relabeling configs applied before sending alerts to a specific Alertmanager.\nIt requires Prometheus >= v2.51.0.", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "apiVersion": { - "description": "Version of the Alertmanager API that Prometheus uses to send alerts.\nIt can be \"v1\" or \"v2\".", - "type": "string" - }, - "authorization": { - "description": "Authorization section for Alertmanager.\n\nCannot be set at the same time as `basicAuth`, `bearerTokenFile` or `sigv4`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth configuration for Alertmanager.\n\nCannot be set at the same time as `bearerTokenFile`, `authorization` or `sigv4`.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenFile": { - "description": "File to read bearer token for Alertmanager.\n\nCannot be set at the same time as `basicAuth`, `authorization`, or `sigv4`.\n\nDeprecated: this will be removed in a future release. Prefer using `authorization`.", - "type": "string" - }, - "enableHttp2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "name": { - "description": "Name of the Endpoints object in the namespace.", - "minLength": 1, - "type": "string" - }, - "namespace": { - "description": "Namespace of the Endpoints object.\n\nIf not set, the object will be discovered in the namespace of the\nPrometheus object.", - "minLength": 1, - "type": "string" - }, - "pathPrefix": { - "description": "Prefix for the HTTP path alerts are pushed to.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Port on which the Alertmanager API is exposed.", - "x-kubernetes-int-or-string": true - }, - "relabelings": { - "description": "Relabel configuration applied to the discovered Alertmanagers.", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "scheme": { - "description": "Scheme to use when firing alerts.", - "type": "string" - }, - "sigv4": { - "description": "Sigv4 allows to configures AWS's Signature Verification 4 for the URL.\n\nIt requires Prometheus >= v2.48.0.\n\nCannot be set at the same time as `basicAuth`, `bearerTokenFile` or `authorization`.", - "properties": { - "accessKey": { - "description": "AccessKey is the AWS API key. If not specified, the environment variable\n`AWS_ACCESS_KEY_ID` is used.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "profile": { - "description": "Profile is the named AWS profile used to authenticate.", - "type": "string" - }, - "region": { - "description": "Region is the AWS region. If blank, the region from the default credentials chain used.", - "type": "string" - }, - "roleArn": { - "description": "RoleArn is the named AWS profile used to authenticate.", - "type": "string" - }, - "secretKey": { - "description": "SecretKey is the AWS API secret. If not specified, the environment\nvariable `AWS_SECRET_ACCESS_KEY` is used.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "timeout": { - "description": "Timeout is a per-target Alertmanager timeout when pushing alerts.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "tlsConfig": { - "description": "TLS Config to use for Alertmanager.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "caFile": { - "description": "Path to the CA cert in the Prometheus container to use for the targets.", - "type": "string" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "certFile": { - "description": "Path to the client cert file in the Prometheus container for the targets.", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keyFile": { - "description": "Path to the client key file in the Prometheus container for the targets.", - "type": "string" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "name", - "port" - ], - "type": "object" - }, - "type": "array" - } - }, - "required": [ - "alertmanagers" - ], - "type": "object" - }, - "allowOverlappingBlocks": { - "description": "AllowOverlappingBlocks enables vertical compaction and vertical query\nmerge in Prometheus.\n\nDeprecated: this flag has no effect for Prometheus >= 2.39.0 where overlapping blocks are enabled by default.", - "type": "boolean" - }, - "apiserverConfig": { - "description": "APIServerConfig allows specifying a host and auth methods to access the\nKuberntees API server.\nIf null, Prometheus is assumed to run inside of the cluster: it will\ndiscover the API servers automatically and use the Pod's CA certificate\nand bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/.", - "properties": { - "authorization": { - "description": "Authorization section for the API server.\n\nCannot be set at the same time as `basicAuth`, `bearerToken`, or\n`bearerTokenFile`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "credentialsFile": { - "description": "File to read a secret from, mutually exclusive with `credentials`.", - "type": "string" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth configuration for the API server.\n\nCannot be set at the same time as `authorization`, `bearerToken`, or\n`bearerTokenFile`.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerToken": { - "description": "*Warning: this field shouldn't be used because the token value appears\nin clear-text. Prefer using `authorization`.*\n\nDeprecated: this will be removed in a future release.", - "type": "string" - }, - "bearerTokenFile": { - "description": "File to read bearer token for accessing apiserver.\n\nCannot be set at the same time as `basicAuth`, `authorization`, or `bearerToken`.\n\nDeprecated: this will be removed in a future release. Prefer using `authorization`.", - "type": "string" - }, - "host": { - "description": "Kubernetes API address consisting of a hostname or IP address followed\nby an optional port number.", - "type": "string" - }, - "tlsConfig": { - "description": "TLS Config to use for the API server.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "caFile": { - "description": "Path to the CA cert in the Prometheus container to use for the targets.", - "type": "string" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "certFile": { - "description": "Path to the client cert file in the Prometheus container for the targets.", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keyFile": { - "description": "Path to the client key file in the Prometheus container for the targets.", - "type": "string" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "host" - ], - "type": "object" - }, - "arbitraryFSAccessThroughSMs": { - "description": "When true, ServiceMonitor, PodMonitor and Probe object are forbidden to\nreference arbitrary files on the file system of the 'prometheus'\ncontainer.\nWhen a ServiceMonitor's endpoint specifies a `bearerTokenFile` value\n(e.g. '/var/run/secrets/kubernetes.io/serviceaccount/token'), a\nmalicious target can get access to the Prometheus service account's\ntoken in the Prometheus' scrape request. Setting\n`spec.arbitraryFSAccessThroughSM` to 'true' would prevent the attack.\nUsers should instead provide the credentials using the\n`spec.bearerTokenSecret` field.", - "properties": { - "deny": { - "type": "boolean" - } - }, - "type": "object" - }, - "automountServiceAccountToken": { - "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in the pod.\nIf the field isn't set, the operator mounts the service account token by default.\n\n**Warning:** be aware that by default, Prometheus requires the service account token for Kubernetes service discovery.\nIt is possible to use strategic merge patch to project the service account token into the 'prometheus' container.", - "type": "boolean" - }, - "baseImage": { - "description": "Deprecated: use 'spec.image' instead.", - "type": "string" - }, - "bodySizeLimit": { - "description": "BodySizeLimit defines per-scrape on response body size.\nOnly valid in Prometheus versions 2.45.0 and newer.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedBodySizeLimit.", - "pattern": "(^0|([0-9]*[.])?[0-9]+((K|M|G|T|E|P)i?)?B)$", - "type": "string" - }, - "configMaps": { - "description": "ConfigMaps is a list of ConfigMaps in the same namespace as the Prometheus\nobject, which shall be mounted into the Prometheus Pods.\nEach ConfigMap is added to the StatefulSet definition as a volume named `configmap-`.\nThe ConfigMaps are mounted into /etc/prometheus/configmaps/ in the 'prometheus' container.", - "items": { - "type": "string" - }, - "type": "array" - }, - "containers": { - "description": "Containers allows injecting additional containers or modifying operator\ngenerated containers. This can be used to allow adding an authentication\nproxy to the Pods or to change the behavior of an operator generated\ncontainer. Containers described here modify an operator generated\ncontainer if they share the same name and modifications are done via a\nstrategic merge patch.\n\nThe names of containers managed by the operator are:\n* `prometheus`\n* `config-reloader`\n* `thanos-sidecar`\n\nOverriding containers is entirely outside the scope of what the\nmaintainers will support and by doing so, you accept that this behaviour\nmay break at any time without notice.", - "items": { - "description": "A single application container that you want to run within a pod.", - "properties": { - "args": { - "description": "Arguments to the entrypoint.\nThe container image's CMD is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell.\nThe container image's ENTRYPOINT is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "env": { - "description": "List of environment variables to set in the container.\nCannot be updated.", - "items": { - "description": "EnvVar represents an environment variable present in a Container.", - "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", - "type": "string" - }, - "value": { - "description": "Variable references $(VAR_NAME) are expanded\nusing the previously defined environment variables in the container and\nany service environment variables. If a variable cannot be resolved,\nthe reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n\"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\nEscaped references will never be expanded, regardless of whether the variable\nexists or not.\nDefaults to \"\".", - "type": "string" - }, - "valueFrom": { - "description": "Source for the environment variable's value. Cannot be used if value is not empty.", - "properties": { - "configMapKeyRef": { - "description": "Selects a key of a ConfigMap.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "fieldRef": { - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`,\nspec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secretKeyRef": { - "description": "Selects a key of a secret in the pod's namespace", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container.\nThe keys defined within a source must be a C_IDENTIFIER. All invalid keys\nwill be reported as an event when the container is starting. When a key exists in multiple\nsources, the value associated with the last source will take precedence.\nValues defined by an Env with a duplicate key will take precedence.\nCannot be updated.", - "items": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", - "properties": { - "configMapRef": { - "description": "The ConfigMap to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", - "type": "string" - }, - "secretRef": { - "description": "The Secret to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "image": { - "description": "Container image name.\nMore info: https://kubernetes.io/docs/concepts/containers/images\nThis field is optional to allow higher level config management to default or override\ncontainer images in workload controllers like Deployments and StatefulSets.", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy.\nOne of Always, Never, IfNotPresent.\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/containers/images#updating-images", - "type": "string" - }, - "lifecycle": { - "description": "Actions that the management system should take in response to container lifecycle events.\nCannot be updated.", - "properties": { - "postStart": { - "description": "PostStart is called immediately after a container is created. If the handler fails,\nthe container is terminated and restarted according to its restart policy.\nOther management of the container blocks until the hook completes.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - }, - "preStop": { - "description": "PreStop is called immediately before a container is terminated due to an\nAPI request or management event such as liveness/startup probe failure,\npreemption, resource contention, etc. The handler is not called if the\ncontainer crashes or exits. The Pod's termination grace period countdown begins before the\nPreStop hook is executed. Regardless of the outcome of the handler, the\ncontainer will eventually terminate within the Pod's termination grace\nperiod (unless delayed by finalizers). Other management of the container blocks until the hook completes\nor until the termination grace period is reached.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "livenessProbe": { - "description": "Periodic probe of container liveness.\nContainer will be restarted if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL.\nEach container in a pod must have a unique name (DNS_LABEL).\nCannot be updated.", - "type": "string" - }, - "ports": { - "description": "List of ports to expose from the container. Not specifying a port here\nDOES NOT prevent that port from being exposed. Any port which is\nlistening on the default \"0.0.0.0\" address inside a container will be\naccessible from the network.\nModifying this array with strategic merge patch may corrupt the data.\nFor more information See https://github.com/kubernetes/kubernetes/issues/108255.\nCannot be updated.", - "items": { - "description": "ContainerPort represents a network port in a single container.", - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 < x < 65536.", - "format": "int32", - "type": "integer" - }, - "hostIP": { - "description": "What host IP to bind the external port to.", - "type": "string" - }, - "hostPort": { - "description": "Number of port to expose on the host.\nIf specified, this must be a valid port number, 0 < x < 65536.\nIf HostNetwork is specified, this must match ContainerPort.\nMost containers do not need this.", - "format": "int32", - "type": "integer" - }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each\nnamed port in a pod must have a unique name. Name for the port that can be\nreferred to by services.", - "type": "string" - }, - "protocol": { - "default": "TCP", - "description": "Protocol for port. Must be UDP, TCP, or SCTP.\nDefaults to \"TCP\".", - "type": "string" - } - }, - "required": [ - "containerPort" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "containerPort", - "protocol" - ], - "x-kubernetes-list-type": "map" - }, - "readinessProbe": { - "description": "Periodic probe of container service readiness.\nContainer will be removed from service endpoints if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "resizePolicy": { - "description": "Resources resize policy for the container.", - "items": { - "description": "ContainerResizePolicy represents resource resize policy for the container.", - "properties": { - "resourceName": { - "description": "Name of the resource to which this resource resize policy applies.\nSupported values: cpu, memory.", - "type": "string" - }, - "restartPolicy": { - "description": "Restart policy to apply when specified resource is resized.\nIf not specified, it defaults to NotRequired.", - "type": "string" - } - }, - "required": [ - "resourceName", - "restartPolicy" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "resources": { - "description": "Compute Resources required by this container.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - "items": { - "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string" - }, - "request": { - "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "restartPolicy": { - "description": "RestartPolicy defines the restart behavior of individual containers in a pod.\nThis field may only be set for init containers, and the only allowed value is \"Always\".\nFor non-init containers or when this field is not specified,\nthe restart behavior is defined by the Pod's restart policy and the container type.\nSetting the RestartPolicy as \"Always\" for the init container will have the following effect:\nthis init container will be continually restarted on\nexit until all regular containers have terminated. Once all regular\ncontainers have completed, all init containers with restartPolicy \"Always\"\nwill be shut down. This lifecycle differs from normal init containers and\nis often referred to as a \"sidecar\" container. Although this init\ncontainer still starts in the init container sequence, it does not wait\nfor the container to complete before proceeding to the next init\ncontainer. Instead, the next init container starts immediately after this\ninit container is started, or after any startupProbe has successfully\ncompleted.", - "type": "string" - }, - "securityContext": { - "description": "SecurityContext defines the security options the container should be run with.\nIf set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.\nMore info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", - "properties": { - "allowPrivilegeEscalation": { - "description": "AllowPrivilegeEscalation controls whether a process can gain more\nprivileges than its parent process. This bool directly controls if\nthe no_new_privs flag will be set on the container process.\nAllowPrivilegeEscalation is true always when the container is:\n1) run as Privileged\n2) has CAP_SYS_ADMIN\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "appArmorProfile": { - "description": "appArmorProfile is the AppArmor options to use by this container. If set, this profile\noverrides the pod's appArmorProfile.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile loaded on the node that should be used.\nThe profile must be preconfigured on the node to work.\nMust match the loaded name of the profile.\nMust be set if and only if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of AppArmor profile will be applied.\nValid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "capabilities": { - "description": "The capabilities to add/drop when running containers.\nDefaults to the default set of capabilities granted by the container runtime.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "add": { - "description": "Added capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "drop": { - "description": "Removed capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "privileged": { - "description": "Run container in privileged mode.\nProcesses in privileged containers are essentially equivalent to root on the host.\nDefaults to false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "procMount": { - "description": "procMount denotes the type of proc mount to use for the containers.\nThe default value is Default which uses the container runtime defaults for\nreadonly paths and masked paths.\nThis requires the ProcMountType feature flag to be enabled.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem.\nDefault is false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to the container.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - }, - "type": "object" - }, - "seccompProfile": { - "description": "The seccomp options to use by this container. If seccomp options are\nprovided at both the pod & container level, the container options\noverride the pod options.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "windowsOptions": { - "description": "The Windows specific settings applied to all containers.\nIf unspecified, the options from the PodSecurityContext will be used.\nIf set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is linux.", - "properties": { - "gmsaCredentialSpec": { - "description": "GMSACredentialSpec is where the GMSA admission webhook\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\nGMSA credential spec named by the GMSACredentialSpecName field.", - "type": "string" - }, - "gmsaCredentialSpecName": { - "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", - "type": "string" - }, - "hostProcess": { - "description": "HostProcess determines if a container should be run as a 'Host Process' container.\nAll of a Pod's containers must have the same effective HostProcess value\n(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\nIn addition, if HostProcess is true then HostNetwork must also be set to true.", - "type": "boolean" - }, - "runAsUserName": { - "description": "The UserName in Windows to run the entrypoint of the container process.\nDefaults to the user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "startupProbe": { - "description": "StartupProbe indicates that the Pod has successfully initialized.\nIf specified, no other probes are executed until this completes successfully.\nIf this probe fails, the Pod will be restarted, just as if the livenessProbe failed.\nThis can be used to provide different probe parameters at the beginning of a Pod's lifecycle,\nwhen it might take a long time to load data or warm a cache, than during steady-state operation.\nThis cannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this\nis not set, reads from stdin in the container will always result in EOF.\nDefault is false.", - "type": "boolean" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by\na single attach. When stdin is true the stdin stream will remain open across multiple attach\nsessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\nfirst client attaches to stdin, and then remains open and accepts data until the client disconnects,\nat which time stdin is closed and remains closed until the container is restarted. If this\nflag is false, a container processes that reads from stdin will never receive an EOF.\nDefault is false", - "type": "boolean" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message\nwill be written is mounted into the container's filesystem.\nMessage written is intended to be brief final status, such as an assertion failure message.\nWill be truncated by the node if greater than 4096 bytes. The total message length across\nall containers will be limited to 12kb.\nDefaults to /dev/termination-log.\nCannot be updated.", - "type": "string" - }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of\nterminationMessagePath to populate the container status message on both success and failure.\nFallbackToLogsOnError will use the last chunk of container log output if the termination\nmessage file is empty and the container exited with an error.\nThe log output is limited to 2048 bytes or 80 lines, whichever is smaller.\nDefaults to File.\nCannot be updated.", - "type": "string" - }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\nDefault is false.", - "type": "boolean" - }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", - "items": { - "description": "volumeDevice describes a mapping of a raw block device within a container.", - "properties": { - "devicePath": { - "description": "devicePath is the path inside of the container that the device will be mapped to.", - "type": "string" - }, - "name": { - "description": "name must match the name of a persistentVolumeClaim in the pod", - "type": "string" - } - }, - "required": [ - "devicePath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "devicePath" - ], - "x-kubernetes-list-type": "map" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem.\nCannot be updated.", - "items": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None).", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.", - "type": "boolean" - }, - "recursiveReadOnly": { - "description": "RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - "type": "string" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).", - "type": "string" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.", - "type": "string" - } - }, - "required": [ - "mountPath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "mountPath" - ], - "x-kubernetes-list-type": "map" - }, - "workingDir": { - "description": "Container's working directory.\nIf not specified, the container runtime's default will be used, which\nmight be configured in the container image.\nCannot be updated.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "disableCompaction": { - "description": "When true, the Prometheus compaction is disabled.", - "type": "boolean" - }, - "enableAdminAPI": { - "description": "Enables access to the Prometheus web admin API.\n\nWARNING: Enabling the admin APIs enables mutating endpoints, to delete data,\nshutdown Prometheus, and more. Enabling this should be done with care and the\nuser is advised to add additional authentication authorization via a proxy to\nensure only clients authorized to perform these actions can do so.\n\nFor more information:\nhttps://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-admin-apis", - "type": "boolean" - }, - "enableFeatures": { - "description": "Enable access to Prometheus feature flags. By default, no features are enabled.\n\nEnabling features which are disabled by default is entirely outside the\nscope of what the maintainers will support and by doing so, you accept\nthat this behaviour may break at any time without notice.\n\nFor more information see https://prometheus.io/docs/prometheus/latest/feature_flags/", - "items": { - "minLength": 1, - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "enableRemoteWriteReceiver": { - "description": "Enable Prometheus to be used as a receiver for the Prometheus remote\nwrite protocol.\n\nWARNING: This is not considered an efficient way of ingesting samples.\nUse it with caution for specific low-volume use cases.\nIt is not suitable for replacing the ingestion via scraping and turning\nPrometheus into a push-based metrics collection system.\nFor more information see https://prometheus.io/docs/prometheus/latest/querying/api/#remote-write-receiver\n\nIt requires Prometheus >= v2.33.0.", - "type": "boolean" - }, - "enforcedBodySizeLimit": { - "description": "When defined, enforcedBodySizeLimit specifies a global limit on the size\nof uncompressed response body that will be accepted by Prometheus.\nTargets responding with a body larger than this many bytes will cause\nthe scrape to fail.\n\nIt requires Prometheus >= v2.28.0.\n\nWhen both `enforcedBodySizeLimit` and `bodySizeLimit` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined bodySizeLimit value will inherit the global bodySizeLimit value (Prometheus >= 2.45.0) or the enforcedBodySizeLimit value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedBodySizeLimit` is greater than the `bodySizeLimit`, the `bodySizeLimit` will be set to `enforcedBodySizeLimit`.\n* Scrape objects with a bodySizeLimit value less than or equal to enforcedBodySizeLimit keep their specific value.\n* Scrape objects with a bodySizeLimit value greater than enforcedBodySizeLimit are set to enforcedBodySizeLimit.", - "pattern": "(^0|([0-9]*[.])?[0-9]+((K|M|G|T|E|P)i?)?B)$", - "type": "string" - }, - "enforcedKeepDroppedTargets": { - "description": "When defined, enforcedKeepDroppedTargets specifies a global limit on the number of targets\ndropped by relabeling that will be kept in memory. The value overrides\nany `spec.keepDroppedTargets` set by\nServiceMonitor, PodMonitor, Probe objects unless `spec.keepDroppedTargets` is\ngreater than zero and less than `spec.enforcedKeepDroppedTargets`.\n\nIt requires Prometheus >= v2.47.0.\n\nWhen both `enforcedKeepDroppedTargets` and `keepDroppedTargets` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined keepDroppedTargets value will inherit the global keepDroppedTargets value (Prometheus >= 2.45.0) or the enforcedKeepDroppedTargets value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedKeepDroppedTargets` is greater than the `keepDroppedTargets`, the `keepDroppedTargets` will be set to `enforcedKeepDroppedTargets`.\n* Scrape objects with a keepDroppedTargets value less than or equal to enforcedKeepDroppedTargets keep their specific value.\n* Scrape objects with a keepDroppedTargets value greater than enforcedKeepDroppedTargets are set to enforcedKeepDroppedTargets.", - "format": "int64", - "type": "integer" - }, - "enforcedLabelLimit": { - "description": "When defined, enforcedLabelLimit specifies a global limit on the number\nof labels per sample. The value overrides any `spec.labelLimit` set by\nServiceMonitor, PodMonitor, Probe objects unless `spec.labelLimit` is\ngreater than zero and less than `spec.enforcedLabelLimit`.\n\nIt requires Prometheus >= v2.27.0.\n\nWhen both `enforcedLabelLimit` and `labelLimit` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined labelLimit value will inherit the global labelLimit value (Prometheus >= 2.45.0) or the enforcedLabelLimit value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedLabelLimit` is greater than the `labelLimit`, the `labelLimit` will be set to `enforcedLabelLimit`.\n* Scrape objects with a labelLimit value less than or equal to enforcedLabelLimit keep their specific value.\n* Scrape objects with a labelLimit value greater than enforcedLabelLimit are set to enforcedLabelLimit.", - "format": "int64", - "type": "integer" - }, - "enforcedLabelNameLengthLimit": { - "description": "When defined, enforcedLabelNameLengthLimit specifies a global limit on the length\nof labels name per sample. The value overrides any `spec.labelNameLengthLimit` set by\nServiceMonitor, PodMonitor, Probe objects unless `spec.labelNameLengthLimit` is\ngreater than zero and less than `spec.enforcedLabelNameLengthLimit`.\n\nIt requires Prometheus >= v2.27.0.\n\nWhen both `enforcedLabelNameLengthLimit` and `labelNameLengthLimit` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined labelNameLengthLimit value will inherit the global labelNameLengthLimit value (Prometheus >= 2.45.0) or the enforcedLabelNameLengthLimit value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedLabelNameLengthLimit` is greater than the `labelNameLengthLimit`, the `labelNameLengthLimit` will be set to `enforcedLabelNameLengthLimit`.\n* Scrape objects with a labelNameLengthLimit value less than or equal to enforcedLabelNameLengthLimit keep their specific value.\n* Scrape objects with a labelNameLengthLimit value greater than enforcedLabelNameLengthLimit are set to enforcedLabelNameLengthLimit.", - "format": "int64", - "type": "integer" - }, - "enforcedLabelValueLengthLimit": { - "description": "When not null, enforcedLabelValueLengthLimit defines a global limit on the length\nof labels value per sample. The value overrides any `spec.labelValueLengthLimit` set by\nServiceMonitor, PodMonitor, Probe objects unless `spec.labelValueLengthLimit` is\ngreater than zero and less than `spec.enforcedLabelValueLengthLimit`.\n\nIt requires Prometheus >= v2.27.0.\n\nWhen both `enforcedLabelValueLengthLimit` and `labelValueLengthLimit` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined labelValueLengthLimit value will inherit the global labelValueLengthLimit value (Prometheus >= 2.45.0) or the enforcedLabelValueLengthLimit value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedLabelValueLengthLimit` is greater than the `labelValueLengthLimit`, the `labelValueLengthLimit` will be set to `enforcedLabelValueLengthLimit`.\n* Scrape objects with a labelValueLengthLimit value less than or equal to enforcedLabelValueLengthLimit keep their specific value.\n* Scrape objects with a labelValueLengthLimit value greater than enforcedLabelValueLengthLimit are set to enforcedLabelValueLengthLimit.", - "format": "int64", - "type": "integer" - }, - "enforcedNamespaceLabel": { - "description": "When not empty, a label will be added to:\n\n1. All metrics scraped from `ServiceMonitor`, `PodMonitor`, `Probe` and `ScrapeConfig` objects.\n2. All metrics generated from recording rules defined in `PrometheusRule` objects.\n3. All alerts generated from alerting rules defined in `PrometheusRule` objects.\n4. All vector selectors of PromQL expressions defined in `PrometheusRule` objects.\n\nThe label will not added for objects referenced in `spec.excludedFromEnforcement`.\n\nThe label's name is this field's value.\nThe label's value is the namespace of the `ServiceMonitor`,\n`PodMonitor`, `Probe`, `PrometheusRule` or `ScrapeConfig` object.", - "type": "string" - }, - "enforcedSampleLimit": { - "description": "When defined, enforcedSampleLimit specifies a global limit on the number\nof scraped samples that will be accepted. This overrides any\n`spec.sampleLimit` set by ServiceMonitor, PodMonitor, Probe objects\nunless `spec.sampleLimit` is greater than zero and less than\n`spec.enforcedSampleLimit`.\n\nIt is meant to be used by admins to keep the overall number of\nsamples/series under a desired limit.\n\nWhen both `enforcedSampleLimit` and `sampleLimit` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined sampleLimit value will inherit the global sampleLimit value (Prometheus >= 2.45.0) or the enforcedSampleLimit value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedSampleLimit` is greater than the `sampleLimit`, the `sampleLimit` will be set to `enforcedSampleLimit`.\n* Scrape objects with a sampleLimit value less than or equal to enforcedSampleLimit keep their specific value.\n* Scrape objects with a sampleLimit value greater than enforcedSampleLimit are set to enforcedSampleLimit.", - "format": "int64", - "type": "integer" - }, - "enforcedTargetLimit": { - "description": "When defined, enforcedTargetLimit specifies a global limit on the number\nof scraped targets. The value overrides any `spec.targetLimit` set by\nServiceMonitor, PodMonitor, Probe objects unless `spec.targetLimit` is\ngreater than zero and less than `spec.enforcedTargetLimit`.\n\nIt is meant to be used by admins to to keep the overall number of\ntargets under a desired limit.\n\nWhen both `enforcedTargetLimit` and `targetLimit` are defined and greater than zero, the following rules apply:\n* Scrape objects without a defined targetLimit value will inherit the global targetLimit value (Prometheus >= 2.45.0) or the enforcedTargetLimit value (Prometheus < v2.45.0).\n If Prometheus version is >= 2.45.0 and the `enforcedTargetLimit` is greater than the `targetLimit`, the `targetLimit` will be set to `enforcedTargetLimit`.\n* Scrape objects with a targetLimit value less than or equal to enforcedTargetLimit keep their specific value.\n* Scrape objects with a targetLimit value greater than enforcedTargetLimit are set to enforcedTargetLimit.", - "format": "int64", - "type": "integer" - }, - "evaluationInterval": { - "default": "30s", - "description": "Interval between rule evaluations.\nDefault: \"30s\"", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "excludedFromEnforcement": { - "description": "List of references to PodMonitor, ServiceMonitor, Probe and PrometheusRule objects\nto be excluded from enforcing a namespace label of origin.\n\nIt is only applicable if `spec.enforcedNamespaceLabel` set to true.", - "items": { - "description": "ObjectReference references a PodMonitor, ServiceMonitor, Probe or PrometheusRule object.", - "properties": { - "group": { - "default": "monitoring.coreos.com", - "description": "Group of the referent. When not specified, it defaults to `monitoring.coreos.com`", - "enum": [ - "monitoring.coreos.com" - ], - "type": "string" - }, - "name": { - "description": "Name of the referent. When not set, all resources in the namespace are matched.", - "type": "string" - }, - "namespace": { - "description": "Namespace of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "minLength": 1, - "type": "string" - }, - "resource": { - "description": "Resource of the referent.", - "enum": [ - "prometheusrules", - "servicemonitors", - "podmonitors", - "probes", - "scrapeconfigs" - ], - "type": "string" - } - }, - "required": [ - "namespace", - "resource" - ], - "type": "object" - }, - "type": "array" - }, - "exemplars": { - "description": "Exemplars related settings that are runtime reloadable.\nIt requires to enable the `exemplar-storage` feature flag to be effective.", - "properties": { - "maxSize": { - "description": "Maximum number of exemplars stored in memory for all series.\n\nexemplar-storage itself must be enabled using the `spec.enableFeature`\noption for exemplars to be scraped in the first place.\n\nIf not set, Prometheus uses its default value. A value of zero or less\nthan zero disables the storage.", - "format": "int64", - "type": "integer" - } - }, - "type": "object" - }, - "externalLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "The labels to add to any time series or alerts when communicating with\nexternal systems (federation, remote storage, Alertmanager).\nLabels defined by `spec.replicaExternalLabelName` and\n`spec.prometheusExternalLabelName` take precedence over this list.", - "type": "object" - }, - "externalUrl": { - "description": "The external URL under which the Prometheus service is externally\navailable. This is necessary to generate correct URLs (for instance if\nPrometheus is accessible behind an Ingress resource).", - "type": "string" - }, - "hostAliases": { - "description": "Optional list of hosts and IPs that will be injected into the Pod's\nhosts file if specified.", - "items": { - "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the\npod's hosts file.", - "properties": { - "hostnames": { - "description": "Hostnames for the above IP address.", - "items": { - "type": "string" - }, - "type": "array" - }, - "ip": { - "description": "IP address of the host file entry.", - "type": "string" - } - }, - "required": [ - "hostnames", - "ip" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "ip" - ], - "x-kubernetes-list-type": "map" - }, - "hostNetwork": { - "description": "Use the host's network namespace if true.\n\nMake sure to understand the security implications if you want to enable\nit (https://kubernetes.io/docs/concepts/configuration/overview/).\n\nWhen hostNetwork is enabled, this will set the DNS policy to\n`ClusterFirstWithHostNet` automatically.", - "type": "boolean" - }, - "ignoreNamespaceSelectors": { - "description": "When true, `spec.namespaceSelector` from all PodMonitor, ServiceMonitor\nand Probe objects will be ignored. They will only discover targets\nwithin the namespace of the PodMonitor, ServiceMonitor and Probe\nobject.", - "type": "boolean" - }, - "image": { - "description": "Container image name for Prometheus. If specified, it takes precedence\nover the `spec.baseImage`, `spec.tag` and `spec.sha` fields.\n\nSpecifying `spec.version` is still necessary to ensure the Prometheus\nOperator knows which version of Prometheus is being configured.\n\nIf neither `spec.image` nor `spec.baseImage` are defined, the operator\nwill use the latest upstream version of Prometheus available at the time\nwhen the operator was released.", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy for the 'prometheus', 'init-config-reloader' and 'config-reloader' containers.\nSee https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy for more details.", - "enum": [ - "", - "Always", - "Never", - "IfNotPresent" - ], - "type": "string" - }, - "imagePullSecrets": { - "description": "An optional list of references to Secrets in the same namespace\nto use for pulling images from registries.\nSee http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod", - "items": { - "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "initContainers": { - "description": "InitContainers allows injecting initContainers to the Pod definition. Those\ncan be used to e.g. fetch secrets for injection into the Prometheus\nconfiguration from external sources. Any errors during the execution of\nan initContainer will lead to a restart of the Pod. More info:\nhttps://kubernetes.io/docs/concepts/workloads/pods/init-containers/\nInitContainers described here modify an operator generated init\ncontainers if they share the same name and modifications are done via a\nstrategic merge patch.\n\nThe names of init container name managed by the operator are:\n* `init-config-reloader`.\n\nOverriding init containers is entirely outside the scope of what the\nmaintainers will support and by doing so, you accept that this behaviour\nmay break at any time without notice.", - "items": { - "description": "A single application container that you want to run within a pod.", - "properties": { - "args": { - "description": "Arguments to the entrypoint.\nThe container image's CMD is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell.\nThe container image's ENTRYPOINT is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "env": { - "description": "List of environment variables to set in the container.\nCannot be updated.", - "items": { - "description": "EnvVar represents an environment variable present in a Container.", - "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", - "type": "string" - }, - "value": { - "description": "Variable references $(VAR_NAME) are expanded\nusing the previously defined environment variables in the container and\nany service environment variables. If a variable cannot be resolved,\nthe reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n\"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\nEscaped references will never be expanded, regardless of whether the variable\nexists or not.\nDefaults to \"\".", - "type": "string" - }, - "valueFrom": { - "description": "Source for the environment variable's value. Cannot be used if value is not empty.", - "properties": { - "configMapKeyRef": { - "description": "Selects a key of a ConfigMap.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "fieldRef": { - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`,\nspec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secretKeyRef": { - "description": "Selects a key of a secret in the pod's namespace", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container.\nThe keys defined within a source must be a C_IDENTIFIER. All invalid keys\nwill be reported as an event when the container is starting. When a key exists in multiple\nsources, the value associated with the last source will take precedence.\nValues defined by an Env with a duplicate key will take precedence.\nCannot be updated.", - "items": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", - "properties": { - "configMapRef": { - "description": "The ConfigMap to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", - "type": "string" - }, - "secretRef": { - "description": "The Secret to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "image": { - "description": "Container image name.\nMore info: https://kubernetes.io/docs/concepts/containers/images\nThis field is optional to allow higher level config management to default or override\ncontainer images in workload controllers like Deployments and StatefulSets.", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy.\nOne of Always, Never, IfNotPresent.\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/containers/images#updating-images", - "type": "string" - }, - "lifecycle": { - "description": "Actions that the management system should take in response to container lifecycle events.\nCannot be updated.", - "properties": { - "postStart": { - "description": "PostStart is called immediately after a container is created. If the handler fails,\nthe container is terminated and restarted according to its restart policy.\nOther management of the container blocks until the hook completes.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - }, - "preStop": { - "description": "PreStop is called immediately before a container is terminated due to an\nAPI request or management event such as liveness/startup probe failure,\npreemption, resource contention, etc. The handler is not called if the\ncontainer crashes or exits. The Pod's termination grace period countdown begins before the\nPreStop hook is executed. Regardless of the outcome of the handler, the\ncontainer will eventually terminate within the Pod's termination grace\nperiod (unless delayed by finalizers). Other management of the container blocks until the hook completes\nor until the termination grace period is reached.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "livenessProbe": { - "description": "Periodic probe of container liveness.\nContainer will be restarted if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL.\nEach container in a pod must have a unique name (DNS_LABEL).\nCannot be updated.", - "type": "string" - }, - "ports": { - "description": "List of ports to expose from the container. Not specifying a port here\nDOES NOT prevent that port from being exposed. Any port which is\nlistening on the default \"0.0.0.0\" address inside a container will be\naccessible from the network.\nModifying this array with strategic merge patch may corrupt the data.\nFor more information See https://github.com/kubernetes/kubernetes/issues/108255.\nCannot be updated.", - "items": { - "description": "ContainerPort represents a network port in a single container.", - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 < x < 65536.", - "format": "int32", - "type": "integer" - }, - "hostIP": { - "description": "What host IP to bind the external port to.", - "type": "string" - }, - "hostPort": { - "description": "Number of port to expose on the host.\nIf specified, this must be a valid port number, 0 < x < 65536.\nIf HostNetwork is specified, this must match ContainerPort.\nMost containers do not need this.", - "format": "int32", - "type": "integer" - }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each\nnamed port in a pod must have a unique name. Name for the port that can be\nreferred to by services.", - "type": "string" - }, - "protocol": { - "default": "TCP", - "description": "Protocol for port. Must be UDP, TCP, or SCTP.\nDefaults to \"TCP\".", - "type": "string" - } - }, - "required": [ - "containerPort" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "containerPort", - "protocol" - ], - "x-kubernetes-list-type": "map" - }, - "readinessProbe": { - "description": "Periodic probe of container service readiness.\nContainer will be removed from service endpoints if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "resizePolicy": { - "description": "Resources resize policy for the container.", - "items": { - "description": "ContainerResizePolicy represents resource resize policy for the container.", - "properties": { - "resourceName": { - "description": "Name of the resource to which this resource resize policy applies.\nSupported values: cpu, memory.", - "type": "string" - }, - "restartPolicy": { - "description": "Restart policy to apply when specified resource is resized.\nIf not specified, it defaults to NotRequired.", - "type": "string" - } - }, - "required": [ - "resourceName", - "restartPolicy" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "resources": { - "description": "Compute Resources required by this container.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - "items": { - "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string" - }, - "request": { - "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "restartPolicy": { - "description": "RestartPolicy defines the restart behavior of individual containers in a pod.\nThis field may only be set for init containers, and the only allowed value is \"Always\".\nFor non-init containers or when this field is not specified,\nthe restart behavior is defined by the Pod's restart policy and the container type.\nSetting the RestartPolicy as \"Always\" for the init container will have the following effect:\nthis init container will be continually restarted on\nexit until all regular containers have terminated. Once all regular\ncontainers have completed, all init containers with restartPolicy \"Always\"\nwill be shut down. This lifecycle differs from normal init containers and\nis often referred to as a \"sidecar\" container. Although this init\ncontainer still starts in the init container sequence, it does not wait\nfor the container to complete before proceeding to the next init\ncontainer. Instead, the next init container starts immediately after this\ninit container is started, or after any startupProbe has successfully\ncompleted.", - "type": "string" - }, - "securityContext": { - "description": "SecurityContext defines the security options the container should be run with.\nIf set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.\nMore info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", - "properties": { - "allowPrivilegeEscalation": { - "description": "AllowPrivilegeEscalation controls whether a process can gain more\nprivileges than its parent process. This bool directly controls if\nthe no_new_privs flag will be set on the container process.\nAllowPrivilegeEscalation is true always when the container is:\n1) run as Privileged\n2) has CAP_SYS_ADMIN\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "appArmorProfile": { - "description": "appArmorProfile is the AppArmor options to use by this container. If set, this profile\noverrides the pod's appArmorProfile.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile loaded on the node that should be used.\nThe profile must be preconfigured on the node to work.\nMust match the loaded name of the profile.\nMust be set if and only if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of AppArmor profile will be applied.\nValid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "capabilities": { - "description": "The capabilities to add/drop when running containers.\nDefaults to the default set of capabilities granted by the container runtime.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "add": { - "description": "Added capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "drop": { - "description": "Removed capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "privileged": { - "description": "Run container in privileged mode.\nProcesses in privileged containers are essentially equivalent to root on the host.\nDefaults to false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "procMount": { - "description": "procMount denotes the type of proc mount to use for the containers.\nThe default value is Default which uses the container runtime defaults for\nreadonly paths and masked paths.\nThis requires the ProcMountType feature flag to be enabled.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem.\nDefault is false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to the container.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - }, - "type": "object" - }, - "seccompProfile": { - "description": "The seccomp options to use by this container. If seccomp options are\nprovided at both the pod & container level, the container options\noverride the pod options.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "windowsOptions": { - "description": "The Windows specific settings applied to all containers.\nIf unspecified, the options from the PodSecurityContext will be used.\nIf set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is linux.", - "properties": { - "gmsaCredentialSpec": { - "description": "GMSACredentialSpec is where the GMSA admission webhook\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\nGMSA credential spec named by the GMSACredentialSpecName field.", - "type": "string" - }, - "gmsaCredentialSpecName": { - "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", - "type": "string" - }, - "hostProcess": { - "description": "HostProcess determines if a container should be run as a 'Host Process' container.\nAll of a Pod's containers must have the same effective HostProcess value\n(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\nIn addition, if HostProcess is true then HostNetwork must also be set to true.", - "type": "boolean" - }, - "runAsUserName": { - "description": "The UserName in Windows to run the entrypoint of the container process.\nDefaults to the user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "startupProbe": { - "description": "StartupProbe indicates that the Pod has successfully initialized.\nIf specified, no other probes are executed until this completes successfully.\nIf this probe fails, the Pod will be restarted, just as if the livenessProbe failed.\nThis can be used to provide different probe parameters at the beginning of a Pod's lifecycle,\nwhen it might take a long time to load data or warm a cache, than during steady-state operation.\nThis cannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this\nis not set, reads from stdin in the container will always result in EOF.\nDefault is false.", - "type": "boolean" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by\na single attach. When stdin is true the stdin stream will remain open across multiple attach\nsessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\nfirst client attaches to stdin, and then remains open and accepts data until the client disconnects,\nat which time stdin is closed and remains closed until the container is restarted. If this\nflag is false, a container processes that reads from stdin will never receive an EOF.\nDefault is false", - "type": "boolean" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message\nwill be written is mounted into the container's filesystem.\nMessage written is intended to be brief final status, such as an assertion failure message.\nWill be truncated by the node if greater than 4096 bytes. The total message length across\nall containers will be limited to 12kb.\nDefaults to /dev/termination-log.\nCannot be updated.", - "type": "string" - }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of\nterminationMessagePath to populate the container status message on both success and failure.\nFallbackToLogsOnError will use the last chunk of container log output if the termination\nmessage file is empty and the container exited with an error.\nThe log output is limited to 2048 bytes or 80 lines, whichever is smaller.\nDefaults to File.\nCannot be updated.", - "type": "string" - }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\nDefault is false.", - "type": "boolean" - }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", - "items": { - "description": "volumeDevice describes a mapping of a raw block device within a container.", - "properties": { - "devicePath": { - "description": "devicePath is the path inside of the container that the device will be mapped to.", - "type": "string" - }, - "name": { - "description": "name must match the name of a persistentVolumeClaim in the pod", - "type": "string" - } - }, - "required": [ - "devicePath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "devicePath" - ], - "x-kubernetes-list-type": "map" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem.\nCannot be updated.", - "items": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None).", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.", - "type": "boolean" - }, - "recursiveReadOnly": { - "description": "RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - "type": "string" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).", - "type": "string" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.", - "type": "string" - } - }, - "required": [ - "mountPath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "mountPath" - ], - "x-kubernetes-list-type": "map" - }, - "workingDir": { - "description": "Container's working directory.\nIf not specified, the container runtime's default will be used, which\nmight be configured in the container image.\nCannot be updated.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "keepDroppedTargets": { - "description": "Per-scrape limit on the number of targets dropped by relabeling\nthat will be kept in memory. 0 means no limit.\n\nIt requires Prometheus >= v2.47.0.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedKeepDroppedTargets.", - "format": "int64", - "type": "integer" - }, - "labelLimit": { - "description": "Per-scrape limit on number of labels that will be accepted for a sample.\nOnly valid in Prometheus versions 2.45.0 and newer.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedLabelLimit.", - "format": "int64", - "type": "integer" - }, - "labelNameLengthLimit": { - "description": "Per-scrape limit on length of labels name that will be accepted for a sample.\nOnly valid in Prometheus versions 2.45.0 and newer.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedLabelNameLengthLimit.", - "format": "int64", - "type": "integer" - }, - "labelValueLengthLimit": { - "description": "Per-scrape limit on length of labels value that will be accepted for a sample.\nOnly valid in Prometheus versions 2.45.0 and newer.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedLabelValueLengthLimit.", - "format": "int64", - "type": "integer" - }, - "listenLocal": { - "description": "When true, the Prometheus server listens on the loopback address\ninstead of the Pod IP's address.", - "type": "boolean" - }, - "logFormat": { - "description": "Log format for Log level for Prometheus and the config-reloader sidecar.", - "enum": [ - "", - "logfmt", - "json" - ], - "type": "string" - }, - "logLevel": { - "description": "Log level for Prometheus and the config-reloader sidecar.", - "enum": [ - "", - "debug", - "info", - "warn", - "error" - ], - "type": "string" - }, - "maximumStartupDurationSeconds": { - "description": "Defines the maximum time that the `prometheus` container's startup probe will wait before being considered failed. The startup probe will return success after the WAL replay is complete.\nIf set, the value should be greater than 60 (seconds). Otherwise it will be equal to 600 seconds (15 minutes).", - "format": "int32", - "minimum": 60, - "type": "integer" - }, - "minReadySeconds": { - "description": "Minimum number of seconds for which a newly created Pod should be ready\nwithout any of its container crashing for it to be considered available.\nDefaults to 0 (pod will be considered available as soon as it is ready)\n\nThis is an alpha field from kubernetes 1.22 until 1.24 which requires\nenabling the StatefulSetMinReadySeconds feature gate.", - "format": "int32", - "type": "integer" - }, - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "Defines on which Nodes the Pods are scheduled.", - "type": "object" - }, - "otlp": { - "description": "Settings related to the OTLP receiver feature.\nIt requires Prometheus >= v2.54.0.", - "properties": { - "promoteResourceAttributes": { - "description": "List of OpenTelemetry Attributes that should be promoted to metric labels, defaults to none.", - "items": { - "minLength": 1, - "type": "string" - }, - "minItems": 1, - "type": "array", - "x-kubernetes-list-type": "set" - } - }, - "type": "object" - }, - "overrideHonorLabels": { - "description": "When true, Prometheus resolves label conflicts by renaming the labels in the scraped data\n to “exported_” for all targets created from ServiceMonitor, PodMonitor and\nScrapeConfig objects. Otherwise the HonorLabels field of the service or pod monitor applies.\nIn practice,`overrideHonorLaels:true` enforces `honorLabels:false`\nfor all ServiceMonitor, PodMonitor and ScrapeConfig objects.", - "type": "boolean" - }, - "overrideHonorTimestamps": { - "description": "When true, Prometheus ignores the timestamps for all the targets created\nfrom service and pod monitors.\nOtherwise the HonorTimestamps field of the service or pod monitor applies.", - "type": "boolean" - }, - "paused": { - "description": "When a Prometheus deployment is paused, no actions except for deletion\nwill be performed on the underlying objects.", - "type": "boolean" - }, - "persistentVolumeClaimRetentionPolicy": { - "description": "The field controls if and how PVCs are deleted during the lifecycle of a StatefulSet.\nThe default behavior is all PVCs are retained.\nThis is an alpha field from kubernetes 1.23 until 1.26 and a beta field from 1.26.\nIt requires enabling the StatefulSetAutoDeletePVC feature gate.", - "properties": { - "whenDeleted": { - "description": "WhenDeleted specifies what happens to PVCs created from StatefulSet\nVolumeClaimTemplates when the StatefulSet is deleted. The default policy\nof `Retain` causes PVCs to not be affected by StatefulSet deletion. The\n`Delete` policy causes those PVCs to be deleted.", - "type": "string" - }, - "whenScaled": { - "description": "WhenScaled specifies what happens to PVCs created from StatefulSet\nVolumeClaimTemplates when the StatefulSet is scaled down. The default\npolicy of `Retain` causes PVCs to not be affected by a scaledown. The\n`Delete` policy causes the associated PVCs for any excess pods above\nthe replica count to be deleted.", - "type": "string" - } - }, - "type": "object" - }, - "podMetadata": { - "description": "PodMetadata configures labels and annotations which are propagated to the Prometheus pods.\n\nThe following items are reserved and cannot be overridden:\n* \"prometheus\" label, set to the name of the Prometheus object.\n* \"app.kubernetes.io/instance\" label, set to the name of the Prometheus object.\n* \"app.kubernetes.io/managed-by\" label, set to \"prometheus-operator\".\n* \"app.kubernetes.io/name\" label, set to \"prometheus\".\n* \"app.kubernetes.io/version\" label, set to the Prometheus version.\n* \"operator.prometheus.io/name\" label, set to the name of the Prometheus object.\n* \"operator.prometheus.io/shard\" label, set to the shard number of the Prometheus object.\n* \"kubectl.kubernetes.io/default-container\" annotation, set to \"prometheus\".", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "type": "object" - }, - "podMonitorNamespaceSelector": { - "description": "Namespaces to match for PodMonitors discovery. An empty label selector\nmatches all namespaces. A null label selector (default value) matches the current\nnamespace only.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "podMonitorSelector": { - "description": "PodMonitors to be selected for target discovery. An empty label selector\nmatches all objects. A null label selector matches no objects.\n\nIf `spec.serviceMonitorSelector`, `spec.podMonitorSelector`, `spec.probeSelector`\nand `spec.scrapeConfigSelector` are null, the Prometheus configuration is unmanaged.\nThe Prometheus operator will ensure that the Prometheus configuration's\nSecret exists, but it is the responsibility of the user to provide the raw\ngzipped Prometheus configuration under the `prometheus.yaml.gz` key.\nThis behavior is *deprecated* and will be removed in the next major version\nof the custom resource definition. It is recommended to use\n`spec.additionalScrapeConfigs` instead.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "podTargetLabels": { - "description": "PodTargetLabels are appended to the `spec.podTargetLabels` field of all\nPodMonitor and ServiceMonitor objects.", - "items": { - "type": "string" - }, - "type": "array" - }, - "portName": { - "default": "web", - "description": "Port name used for the pods and governing service.\nDefault: \"web\"", - "type": "string" - }, - "priorityClassName": { - "description": "Priority class assigned to the Pods.", - "type": "string" - }, - "probeNamespaceSelector": { - "description": "Namespaces to match for Probe discovery. An empty label\nselector matches all namespaces. A null label selector matches the\ncurrent namespace only.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "probeSelector": { - "description": "Probes to be selected for target discovery. An empty label selector\nmatches all objects. A null label selector matches no objects.\n\nIf `spec.serviceMonitorSelector`, `spec.podMonitorSelector`, `spec.probeSelector`\nand `spec.scrapeConfigSelector` are null, the Prometheus configuration is unmanaged.\nThe Prometheus operator will ensure that the Prometheus configuration's\nSecret exists, but it is the responsibility of the user to provide the raw\ngzipped Prometheus configuration under the `prometheus.yaml.gz` key.\nThis behavior is *deprecated* and will be removed in the next major version\nof the custom resource definition. It is recommended to use\n`spec.additionalScrapeConfigs` instead.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "prometheusExternalLabelName": { - "description": "Name of Prometheus external label used to denote the Prometheus instance\nname. The external label will _not_ be added when the field is set to\nthe empty string (`\"\"`).\n\nDefault: \"prometheus\"", - "type": "string" - }, - "prometheusRulesExcludedFromEnforce": { - "description": "Defines the list of PrometheusRule objects to which the namespace label\nenforcement doesn't apply.\nThis is only relevant when `spec.enforcedNamespaceLabel` is set to true.\nDeprecated: use `spec.excludedFromEnforcement` instead.", - "items": { - "description": "PrometheusRuleExcludeConfig enables users to configure excluded\nPrometheusRule names and their namespaces to be ignored while enforcing\nnamespace label for alerts and metrics.", - "properties": { - "ruleName": { - "description": "Name of the excluded PrometheusRule object.", - "type": "string" - }, - "ruleNamespace": { - "description": "Namespace of the excluded PrometheusRule object.", - "type": "string" - } - }, - "required": [ - "ruleName", - "ruleNamespace" - ], - "type": "object" - }, - "type": "array" - }, - "query": { - "description": "QuerySpec defines the configuration of the Promethus query service.", - "properties": { - "lookbackDelta": { - "description": "The delta difference allowed for retrieving metrics during expression evaluations.", - "type": "string" - }, - "maxConcurrency": { - "description": "Number of concurrent queries that can be run at once.", - "format": "int32", - "minimum": 1, - "type": "integer" - }, - "maxSamples": { - "description": "Maximum number of samples a single query can load into memory. Note that\nqueries will fail if they would load more samples than this into memory,\nso this also limits the number of samples a query can return.", - "format": "int32", - "type": "integer" - }, - "timeout": { - "description": "Maximum time a query may take before being aborted.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - } - }, - "type": "object" - }, - "queryLogFile": { - "description": "queryLogFile specifies where the file to which PromQL queries are logged.\n\nIf the filename has an empty path, e.g. 'query.log', The Prometheus Pods\nwill mount the file into an emptyDir volume at `/var/log/prometheus`.\nIf a full path is provided, e.g. '/var/log/prometheus/query.log', you\nmust mount a volume in the specified directory and it must be writable.\nThis is because the prometheus container runs with a read-only root\nfilesystem for security reasons.\nAlternatively, the location can be set to a standard I/O stream, e.g.\n`/dev/stdout`, to log query information to the default Prometheus log\nstream.", - "type": "string" - }, - "reloadStrategy": { - "description": "Defines the strategy used to reload the Prometheus configuration.\nIf not specified, the configuration is reloaded using the /-/reload HTTP endpoint.", - "enum": [ - "HTTP", - "ProcessSignal" - ], - "type": "string" - }, - "remoteRead": { - "description": "Defines the list of remote read configurations.", - "items": { - "description": "RemoteReadSpec defines the configuration for Prometheus to read back samples\nfrom a remote endpoint.", - "properties": { - "authorization": { - "description": "Authorization section for the URL.\n\nIt requires Prometheus >= v2.26.0.\n\nCannot be set at the same time as `basicAuth`, or `oauth2`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "credentialsFile": { - "description": "File to read a secret from, mutually exclusive with `credentials`.", - "type": "string" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth configuration for the URL.\n\nCannot be set at the same time as `authorization`, or `oauth2`.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerToken": { - "description": "*Warning: this field shouldn't be used because the token value appears\nin clear-text. Prefer using `authorization`.*\n\nDeprecated: this will be removed in a future release.", - "type": "string" - }, - "bearerTokenFile": { - "description": "File from which to read the bearer token for the URL.\n\nDeprecated: this will be removed in a future release. Prefer using `authorization`.", - "type": "string" - }, - "filterExternalLabels": { - "description": "Whether to use the external labels as selectors for the remote read endpoint.\n\nIt requires Prometheus >= v2.34.0.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.\n\nIt requires Prometheus >= v2.26.0.", - "type": "boolean" - }, - "headers": { - "additionalProperties": { - "type": "string" - }, - "description": "Custom HTTP headers to be sent along with each remote read request.\nBe aware that headers that are set by Prometheus itself can't be overwritten.\nOnly valid in Prometheus versions 2.26.0 and newer.", - "type": "object" - }, - "name": { - "description": "The name of the remote read queue, it must be unique if specified. The\nname is used in metrics and logging in order to differentiate read\nconfigurations.\n\nIt requires Prometheus >= v2.15.0.", - "type": "string" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "OAuth2 configuration for the URL.\n\nIt requires Prometheus >= v2.27.0.\n\nCannot be set at the same time as `authorization`, or `basicAuth`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "readRecent": { - "description": "Whether reads should be made for queries for time ranges that\nthe local storage should have complete data for.", - "type": "boolean" - }, - "remoteTimeout": { - "description": "Timeout for requests to the remote read endpoint.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "requiredMatchers": { - "additionalProperties": { - "type": "string" - }, - "description": "An optional list of equality matchers which have to be present\nin a selector to query the remote read endpoint.", - "type": "object" - }, - "tlsConfig": { - "description": "TLS Config to use for the URL.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "caFile": { - "description": "Path to the CA cert in the Prometheus container to use for the targets.", - "type": "string" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "certFile": { - "description": "Path to the client cert file in the Prometheus container for the targets.", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keyFile": { - "description": "Path to the client key file in the Prometheus container for the targets.", - "type": "string" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "url": { - "description": "The URL of the endpoint to query from.", - "type": "string" - } - }, - "required": [ - "url" - ], - "type": "object" - }, - "type": "array" - }, - "remoteWrite": { - "description": "Defines the list of remote write configurations.", - "items": { - "description": "RemoteWriteSpec defines the configuration to write samples from Prometheus\nto a remote endpoint.", - "properties": { - "authorization": { - "description": "Authorization section for the URL.\n\nIt requires Prometheus >= v2.26.0.\n\nCannot be set at the same time as `sigv4`, `basicAuth`, `oauth2`, or `azureAd`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "credentialsFile": { - "description": "File to read a secret from, mutually exclusive with `credentials`.", - "type": "string" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "azureAd": { - "description": "AzureAD for the URL.\n\nIt requires Prometheus >= v2.45.0.\n\nCannot be set at the same time as `authorization`, `basicAuth`, `oauth2`, or `sigv4`.", - "properties": { - "cloud": { - "description": "The Azure Cloud. Options are 'AzurePublic', 'AzureChina', or 'AzureGovernment'.", - "enum": [ - "AzureChina", - "AzureGovernment", - "AzurePublic" - ], - "type": "string" - }, - "managedIdentity": { - "description": "ManagedIdentity defines the Azure User-assigned Managed identity.\nCannot be set at the same time as `oauth` or `sdk`.", - "properties": { - "clientId": { - "description": "The client id", - "type": "string" - } - }, - "required": [ - "clientId" - ], - "type": "object" - }, - "oauth": { - "description": "OAuth defines the oauth config that is being used to authenticate.\nCannot be set at the same time as `managedIdentity` or `sdk`.\n\nIt requires Prometheus >= v2.48.0.", - "properties": { - "clientId": { - "description": "`clientID` is the clientId of the Azure Active Directory application that is being used to authenticate.", - "minLength": 1, - "type": "string" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the client secret of the Azure Active Directory application that is being used to authenticate.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "tenantId": { - "description": "`tenantId` is the tenant ID of the Azure Active Directory application that is being used to authenticate.", - "minLength": 1, - "pattern": "^[0-9a-zA-Z-.]+$", - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tenantId" - ], - "type": "object" - }, - "sdk": { - "description": "SDK defines the Azure SDK config that is being used to authenticate.\nSee https://learn.microsoft.com/en-us/azure/developer/go/azure-sdk-authentication\nCannot be set at the same time as `oauth` or `managedIdentity`.\n\nIt requires Prometheus >= 2.52.0.", - "properties": { - "tenantId": { - "description": "`tenantId` is the tenant ID of the azure active directory application that is being used to authenticate.", - "pattern": "^[0-9a-zA-Z-.]+$", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth configuration for the URL.\n\nCannot be set at the same time as `sigv4`, `authorization`, `oauth2`, or `azureAd`.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerToken": { - "description": "*Warning: this field shouldn't be used because the token value appears\nin clear-text. Prefer using `authorization`.*\n\nDeprecated: this will be removed in a future release.", - "type": "string" - }, - "bearerTokenFile": { - "description": "File from which to read bearer token for the URL.\n\nDeprecated: this will be removed in a future release. Prefer using `authorization`.", - "type": "string" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.\n\nIt requires Prometheus >= v2.26.0.", - "type": "boolean" - }, - "headers": { - "additionalProperties": { - "type": "string" - }, - "description": "Custom HTTP headers to be sent along with each remote write request.\nBe aware that headers that are set by Prometheus itself can't be overwritten.\n\nIt requires Prometheus >= v2.25.0.", - "type": "object" - }, - "metadataConfig": { - "description": "MetadataConfig configures the sending of series metadata to the remote storage.", - "properties": { - "send": { - "description": "Defines whether metric metadata is sent to the remote storage or not.", - "type": "boolean" - }, - "sendInterval": { - "description": "Defines how frequently metric metadata is sent to the remote storage.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - } - }, - "type": "object" - }, - "name": { - "description": "The name of the remote write queue, it must be unique if specified. The\nname is used in metrics and logging in order to differentiate queues.\n\nIt requires Prometheus >= v2.15.0.", - "type": "string" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "OAuth2 configuration for the URL.\n\nIt requires Prometheus >= v2.27.0.\n\nCannot be set at the same time as `sigv4`, `authorization`, `basicAuth`, or `azureAd`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "queueConfig": { - "description": "QueueConfig allows tuning of the remote write queue parameters.", - "properties": { - "batchSendDeadline": { - "description": "BatchSendDeadline is the maximum time a sample will wait in buffer.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "capacity": { - "description": "Capacity is the number of samples to buffer per shard before we start\ndropping them.", - "type": "integer" - }, - "maxBackoff": { - "description": "MaxBackoff is the maximum retry delay.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "maxRetries": { - "description": "MaxRetries is the maximum number of times to retry a batch on recoverable errors.", - "type": "integer" - }, - "maxSamplesPerSend": { - "description": "MaxSamplesPerSend is the maximum number of samples per send.", - "type": "integer" - }, - "maxShards": { - "description": "MaxShards is the maximum number of shards, i.e. amount of concurrency.", - "type": "integer" - }, - "minBackoff": { - "description": "MinBackoff is the initial retry delay. Gets doubled for every retry.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "minShards": { - "description": "MinShards is the minimum number of shards, i.e. amount of concurrency.", - "type": "integer" - }, - "retryOnRateLimit": { - "description": "Retry upon receiving a 429 status code from the remote-write storage.\n\nThis is an *experimental feature*, it may change in any upcoming release\nin a breaking way.", - "type": "boolean" - }, - "sampleAgeLimit": { - "description": "SampleAgeLimit drops samples older than the limit.\nIt requires Prometheus >= v2.50.0.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - } - }, - "type": "object" - }, - "remoteTimeout": { - "description": "Timeout for requests to the remote write endpoint.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "sendExemplars": { - "description": "Enables sending of exemplars over remote write. Note that\nexemplar-storage itself must be enabled using the `spec.enableFeature`\noption for exemplars to be scraped in the first place.\n\nIt requires Prometheus >= v2.27.0.", - "type": "boolean" - }, - "sendNativeHistograms": { - "description": "Enables sending of native histograms, also known as sparse histograms\nover remote write.\n\nIt requires Prometheus >= v2.40.0.", - "type": "boolean" - }, - "sigv4": { - "description": "Sigv4 allows to configures AWS's Signature Verification 4 for the URL.\n\nIt requires Prometheus >= v2.26.0.\n\nCannot be set at the same time as `authorization`, `basicAuth`, `oauth2`, or `azureAd`.", - "properties": { - "accessKey": { - "description": "AccessKey is the AWS API key. If not specified, the environment variable\n`AWS_ACCESS_KEY_ID` is used.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "profile": { - "description": "Profile is the named AWS profile used to authenticate.", - "type": "string" - }, - "region": { - "description": "Region is the AWS region. If blank, the region from the default credentials chain used.", - "type": "string" - }, - "roleArn": { - "description": "RoleArn is the named AWS profile used to authenticate.", - "type": "string" - }, - "secretKey": { - "description": "SecretKey is the AWS API secret. If not specified, the environment\nvariable `AWS_SECRET_ACCESS_KEY` is used.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "tlsConfig": { - "description": "TLS Config to use for the URL.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "caFile": { - "description": "Path to the CA cert in the Prometheus container to use for the targets.", - "type": "string" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "certFile": { - "description": "Path to the client cert file in the Prometheus container for the targets.", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keyFile": { - "description": "Path to the client key file in the Prometheus container for the targets.", - "type": "string" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "url": { - "description": "The URL of the endpoint to send samples to.", - "type": "string" - }, - "writeRelabelConfigs": { - "description": "The list of remote write relabel configurations.", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - } - }, - "required": [ - "url" - ], - "type": "object" - }, - "type": "array" - }, - "replicaExternalLabelName": { - "description": "Name of Prometheus external label used to denote the replica name.\nThe external label will _not_ be added when the field is set to the\nempty string (`\"\"`).\n\nDefault: \"prometheus_replica\"", - "type": "string" - }, - "replicas": { - "description": "Number of replicas of each shard to deploy for a Prometheus deployment.\n`spec.replicas` multiplied by `spec.shards` is the total number of Pods\ncreated.\n\nDefault: 1", - "format": "int32", - "type": "integer" - }, - "resources": { - "description": "Defines the resources requests and limits of the 'prometheus' container.", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - "items": { - "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string" - }, - "request": { - "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "retention": { - "description": "How long to retain the Prometheus data.\n\nDefault: \"24h\" if `spec.retention` and `spec.retentionSize` are empty.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "retentionSize": { - "description": "Maximum number of bytes used by the Prometheus data.", - "pattern": "(^0|([0-9]*[.])?[0-9]+((K|M|G|T|E|P)i?)?B)$", - "type": "string" - }, - "routePrefix": { - "description": "The route prefix Prometheus registers HTTP handlers for.\n\nThis is useful when using `spec.externalURL`, and a proxy is rewriting\nHTTP routes of a request, and the actual ExternalURL is still true, but\nthe server serves requests under a different route prefix. For example\nfor use with `kubectl proxy`.", - "type": "string" - }, - "ruleNamespaceSelector": { - "description": "Namespaces to match for PrometheusRule discovery. An empty label selector\nmatches all namespaces. A null label selector matches the current\nnamespace only.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "ruleSelector": { - "description": "PrometheusRule objects to be selected for rule evaluation. An empty\nlabel selector matches all objects. A null label selector matches no\nobjects.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "rules": { - "description": "Defines the configuration of the Prometheus rules' engine.", - "properties": { - "alert": { - "description": "Defines the parameters of the Prometheus rules' engine.\n\nAny update to these parameters trigger a restart of the pods.", - "properties": { - "forGracePeriod": { - "description": "Minimum duration between alert and restored 'for' state.\n\nThis is maintained only for alerts with a configured 'for' time greater\nthan the grace period.", - "type": "string" - }, - "forOutageTolerance": { - "description": "Max time to tolerate prometheus outage for restoring 'for' state of\nalert.", - "type": "string" - }, - "resendDelay": { - "description": "Minimum amount of time to wait before resending an alert to\nAlertmanager.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "sampleLimit": { - "description": "SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.\nOnly valid in Prometheus versions 2.45.0 and newer.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedSampleLimit.", - "format": "int64", - "type": "integer" - }, - "scrapeClasses": { - "description": "List of scrape classes to expose to scraping objects such as\nPodMonitors, ServiceMonitors, Probes and ScrapeConfigs.\n\nThis is an *experimental feature*, it may change in any upcoming release\nin a breaking way.", - "items": { - "properties": { - "attachMetadata": { - "description": "AttachMetadata configures additional metadata to the discovered targets.\nWhen the scrape object defines its own configuration, it takes\nprecedence over the scrape class configuration.", - "properties": { - "node": { - "description": "When set to true, Prometheus attaches node metadata to the discovered\ntargets.\n\nThe Prometheus service account must have the `list` and `watch`\npermissions on the `Nodes` objects.", - "type": "boolean" - } - }, - "type": "object" - }, - "default": { - "description": "Default indicates that the scrape applies to all scrape objects that\ndon't configure an explicit scrape class name.\n\nOnly one scrape class can be set as the default.", - "type": "boolean" - }, - "metricRelabelings": { - "description": "MetricRelabelings configures the relabeling rules to apply to all samples before ingestion.\n\nThe Operator adds the scrape class metric relabelings defined here.\nThen the Operator adds the target-specific metric relabelings defined in ServiceMonitors, PodMonitors, Probes and ScrapeConfigs.\nThen the Operator adds namespace enforcement relabeling rule, specified in '.spec.enforcedNamespaceLabel'.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "name": { - "description": "Name of the scrape class.", - "minLength": 1, - "type": "string" - }, - "relabelings": { - "description": "Relabelings configures the relabeling rules to apply to all scrape targets.\n\nThe Operator automatically adds relabelings for a few standard Kubernetes fields\nlike `__meta_kubernetes_namespace` and `__meta_kubernetes_service_name`.\nThen the Operator adds the scrape class relabelings defined here.\nThen the Operator adds the target-specific relabelings defined in the scrape object.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLSConfig defines the TLS settings to use for the scrape. When the\nscrape objects define their own CA, certificate and/or key, they take\nprecedence over the corresponding scrape class fields.\n\nFor now only the `caFile`, `certFile` and `keyFile` fields are supported.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "caFile": { - "description": "Path to the CA cert in the Prometheus container to use for the targets.", - "type": "string" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "certFile": { - "description": "Path to the client cert file in the Prometheus container for the targets.", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keyFile": { - "description": "Path to the client key file in the Prometheus container for the targets.", - "type": "string" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "scrapeConfigNamespaceSelector": { - "description": "Namespaces to match for ScrapeConfig discovery. An empty label selector\nmatches all namespaces. A null label selector matches the current\nnamespace only.\n\nNote that the ScrapeConfig custom resource definition is currently at Alpha level.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "scrapeConfigSelector": { - "description": "ScrapeConfigs to be selected for target discovery. An empty label\nselector matches all objects. A null label selector matches no objects.\n\nIf `spec.serviceMonitorSelector`, `spec.podMonitorSelector`, `spec.probeSelector`\nand `spec.scrapeConfigSelector` are null, the Prometheus configuration is unmanaged.\nThe Prometheus operator will ensure that the Prometheus configuration's\nSecret exists, but it is the responsibility of the user to provide the raw\ngzipped Prometheus configuration under the `prometheus.yaml.gz` key.\nThis behavior is *deprecated* and will be removed in the next major version\nof the custom resource definition. It is recommended to use\n`spec.additionalScrapeConfigs` instead.\n\nNote that the ScrapeConfig custom resource definition is currently at Alpha level.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "scrapeInterval": { - "default": "30s", - "description": "Interval between consecutive scrapes.\n\nDefault: \"30s\"", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "scrapeProtocols": { - "description": "The protocols to negotiate during a scrape. It tells clients the\nprotocols supported by Prometheus in order of preference (from most to least preferred).\n\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.49.0.", - "items": { - "description": "ScrapeProtocol represents a protocol used by Prometheus for scraping metrics.\nSupported values are:\n* `OpenMetricsText0.0.1`\n* `OpenMetricsText1.0.0`\n* `PrometheusProto`\n* `PrometheusText0.0.4`", - "enum": [ - "PrometheusProto", - "OpenMetricsText0.0.1", - "OpenMetricsText1.0.0", - "PrometheusText0.0.4" - ], - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "scrapeTimeout": { - "description": "Number of seconds to wait until a scrape request times out.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "secrets": { - "description": "Secrets is a list of Secrets in the same namespace as the Prometheus\nobject, which shall be mounted into the Prometheus Pods.\nEach Secret is added to the StatefulSet definition as a volume named `secret-`.\nThe Secrets are mounted into /etc/prometheus/secrets/ in the 'prometheus' container.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "securityContext": { - "description": "SecurityContext holds pod-level security attributes and common container settings.\nThis defaults to the default PodSecurityContext.", - "properties": { - "appArmorProfile": { - "description": "appArmorProfile is the AppArmor options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile loaded on the node that should be used.\nThe profile must be preconfigured on the node to work.\nMust match the loaded name of the profile.\nMust be set if and only if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of AppArmor profile will be applied.\nValid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "fsGroup": { - "description": "A special supplemental group that applies to all containers in a pod.\nSome volume types allow the Kubelet to change the ownership of that volume\nto be owned by the pod:\n\n1. The owning GID will be the FSGroup\n2. The setgid bit is set (new files created in the volume will be owned by FSGroup)\n3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume\nbefore being exposed inside Pod. This field will only apply to\nvolume types which support fsGroup based ownership(and permissions).\nIt will have no effect on ephemeral volume types such as: secret, configmaps\nand emptydir.\nValid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to all containers.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in SecurityContext. If set in\nboth SecurityContext and PodSecurityContext, the value specified in SecurityContext\ntakes precedence for that container.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - }, - "type": "object" - }, - "seccompProfile": { - "description": "The seccomp options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "supplementalGroups": { - "description": "A list of groups applied to the first process run in each container, in\naddition to the container's primary GID and fsGroup (if specified). If\nthe SupplementalGroupsPolicy feature is enabled, the\nsupplementalGroupsPolicy field determines whether these are in addition\nto or instead of any group memberships defined in the container image.\nIf unspecified, no additional groups are added, though group memberships\ndefined in the container image may still be used, depending on the\nsupplementalGroupsPolicy field.\nNote that this field cannot be set when spec.os.name is windows.", - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "supplementalGroupsPolicy": { - "description": "Defines how supplemental groups of the first container processes are calculated.\nValid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used.\n(Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled\nand the container runtime must implement support for this feature.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "sysctls": { - "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\nsysctls (by the container runtime) might fail to launch.\nNote that this field cannot be set when spec.os.name is windows.", - "items": { - "description": "Sysctl defines a kernel parameter to be set", - "properties": { - "name": { - "description": "Name of a property to set", - "type": "string" - }, - "value": { - "description": "Value of a property to set", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "windowsOptions": { - "description": "The Windows specific settings applied to all containers.\nIf unspecified, the options within a container's SecurityContext will be used.\nIf set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is linux.", - "properties": { - "gmsaCredentialSpec": { - "description": "GMSACredentialSpec is where the GMSA admission webhook\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\nGMSA credential spec named by the GMSACredentialSpecName field.", - "type": "string" - }, - "gmsaCredentialSpecName": { - "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", - "type": "string" - }, - "hostProcess": { - "description": "HostProcess determines if a container should be run as a 'Host Process' container.\nAll of a Pod's containers must have the same effective HostProcess value\n(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\nIn addition, if HostProcess is true then HostNetwork must also be set to true.", - "type": "boolean" - }, - "runAsUserName": { - "description": "The UserName in Windows to run the entrypoint of the container process.\nDefaults to the user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "serviceAccountName": { - "description": "ServiceAccountName is the name of the ServiceAccount to use to run the\nPrometheus Pods.", - "type": "string" - }, - "serviceDiscoveryRole": { - "description": "Defines the service discovery role used to discover targets from\n`ServiceMonitor` objects and Alertmanager endpoints.\n\nIf set, the value should be either \"Endpoints\" or \"EndpointSlice\".\nIf unset, the operator assumes the \"Endpoints\" role.", - "enum": [ - "Endpoints", - "EndpointSlice" - ], - "type": "string" - }, - "serviceMonitorNamespaceSelector": { - "description": "Namespaces to match for ServicedMonitors discovery. An empty label selector\nmatches all namespaces. A null label selector (default value) matches the current\nnamespace only.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "serviceMonitorSelector": { - "description": "ServiceMonitors to be selected for target discovery. An empty label\nselector matches all objects. A null label selector matches no objects.\n\nIf `spec.serviceMonitorSelector`, `spec.podMonitorSelector`, `spec.probeSelector`\nand `spec.scrapeConfigSelector` are null, the Prometheus configuration is unmanaged.\nThe Prometheus operator will ensure that the Prometheus configuration's\nSecret exists, but it is the responsibility of the user to provide the raw\ngzipped Prometheus configuration under the `prometheus.yaml.gz` key.\nThis behavior is *deprecated* and will be removed in the next major version\nof the custom resource definition. It is recommended to use\n`spec.additionalScrapeConfigs` instead.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "sha": { - "description": "Deprecated: use 'spec.image' instead. The image's digest can be specified as part of the image name.", - "type": "string" - }, - "shards": { - "description": "Number of shards to distribute targets onto. `spec.replicas`\nmultiplied by `spec.shards` is the total number of Pods created.\n\nNote that scaling down shards will not reshard data onto remaining\ninstances, it must be manually moved. Increasing shards will not reshard\ndata either but it will continue to be available from the same\ninstances. To query globally, use Thanos sidecar and Thanos querier or\nremote write data to a central location.\n\nSharding is performed on the content of the `__address__` target meta-label\nfor PodMonitors and ServiceMonitors and `__param_target__` for Probes.\n\nDefault: 1", - "format": "int32", - "type": "integer" - }, - "storage": { - "description": "Storage defines the storage used by Prometheus.", - "properties": { - "disableMountSubPath": { - "description": "Deprecated: subPath usage will be removed in a future release.", - "type": "boolean" - }, - "emptyDir": { - "description": "EmptyDirVolumeSource to be used by the StatefulSet.\nIf specified, it takes precedence over `ephemeral` and `volumeClaimTemplate`.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir", - "properties": { - "medium": { - "description": "medium represents what type of storage medium should back this directory.\nThe default is \"\" which means to use the node's default medium.\nMust be an empty string (default) or Memory.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "type": "string" - }, - "sizeLimit": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume.\nThe size limit is also applicable for memory medium.\nThe maximum usage on memory medium EmptyDir would be the minimum value between\nthe SizeLimit specified here and the sum of memory limits of all containers in a pod.\nThe default is nil which means that the limit is undefined.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - } - }, - "type": "object" - }, - "ephemeral": { - "description": "EphemeralVolumeSource to be used by the StatefulSet.\nThis is a beta field in k8s 1.21 and GA in 1.15.\nFor lower versions, starting with k8s 1.19, it requires enabling the GenericEphemeralVolume feature gate.\nMore info: https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes", - "properties": { - "volumeClaimTemplate": { - "description": "Will be used to create a stand-alone PVC to provision the volume.\nThe pod in which this EphemeralVolumeSource is embedded will be the\nowner of the PVC, i.e. the PVC will be deleted together with the\npod. The name of the PVC will be `-` where\n`` is the name from the `PodSpec.Volumes` array\nentry. Pod validation will reject the pod if the concatenated name\nis not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod\nwill *not* be used for the pod to avoid using an unrelated\nvolume by mistake. Starting the pod is then blocked until\nthe unrelated PVC is removed. If such a pre-created PVC is\nmeant to be used by the pod, the PVC has to updated with an\nowner reference to the pod once the pod exists. Normally\nthis should not be necessary, but it may be useful when\nmanually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes\nto the PVC after it has been created.\n\nRequired, must not be nil.", - "properties": { - "metadata": { - "description": "May contain labels and annotations that will be copied into the PVC\nwhen creating it. No other fields are allowed and will be rejected during\nvalidation.", - "type": "object" - }, - "spec": { - "description": "The specification for the PersistentVolumeClaim. The entire content is\ncopied unchanged into the PVC that gets created from this\ntemplate. The same fields as in a PersistentVolumeClaim\nare also valid here.", - "properties": { - "accessModes": { - "description": "accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "dataSource": { - "description": "dataSource field can be used to specify either:\n* An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n* An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "dataSourceRef": { - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n* While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "resources": { - "description": "resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "selector": { - "description": "selector is a label query over volumes to consider for binding.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "storageClassName": { - "description": "storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeAttributesClassName": { - "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "type": "object" - }, - "volumeClaimTemplate": { - "description": "Defines the PVC spec to be used by the Prometheus StatefulSets.\nThe easiest way to use a volume that cannot be automatically provisioned\nis to use a label selector alongside manually created PersistentVolumes.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "EmbeddedMetadata contains metadata relevant to an EmbeddedResource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "type": "object" - }, - "spec": { - "description": "Defines the desired characteristics of a volume requested by a pod author.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "properties": { - "accessModes": { - "description": "accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "dataSource": { - "description": "dataSource field can be used to specify either:\n* An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n* An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "dataSourceRef": { - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n* While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "resources": { - "description": "resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "selector": { - "description": "selector is a label query over volumes to consider for binding.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "storageClassName": { - "description": "storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeAttributesClassName": { - "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - }, - "type": "object" - }, - "status": { - "description": "Deprecated: this field is never set.", - "properties": { - "accessModes": { - "description": "accessModes contains the actual access modes the volume backing the PVC has.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "allocatedResourceStatuses": { - "additionalProperties": { - "description": "When a controller receives persistentvolume claim update with ClaimResourceStatus for a resource\nthat it does not recognizes, then it should ignore that update and let other controllers\nhandle it.", - "type": "string" - }, - "description": "allocatedResourceStatuses stores status of resource being resized for the given PVC.\nKey names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered\nreserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus\nshould ignore the update for the purpose it was designed. For example - a controller that\nonly is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid\nresources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", - "type": "object", - "x-kubernetes-map-type": "granular" - }, - "allocatedResources": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "allocatedResources tracks the resources allocated to a PVC including its capacity.\nKey names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered\nreserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation\nis requested.\nFor storage quota, the larger value from allocatedResources and PVC.spec.resources is used.\nIf allocatedResources is not set, PVC.spec.resources alone is used for quota calculation.\nIf a volume expansion capacity request is lowered, allocatedResources is only\nlowered if there are no expansion operations in progress and if the actual volume capacity\nis equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName\nshould ignore the update for the purpose it was designed. For example - a controller that\nonly is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid\nresources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", - "type": "object" - }, - "capacity": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "capacity represents the actual resources of the underlying volume.", - "type": "object" - }, - "conditions": { - "description": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being\nresized then the Condition will be set to 'Resizing'.", - "items": { - "description": "PersistentVolumeClaimCondition contains details about state of pvc", - "properties": { - "lastProbeTime": { - "description": "lastProbeTime is the time we probed the condition.", - "format": "date-time", - "type": "string" - }, - "lastTransitionTime": { - "description": "lastTransitionTime is the time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "message is the human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "reason is a unique, this should be a short, machine understandable string that gives the reason\nfor condition's last transition. If it reports \"Resizing\" that means the underlying\npersistent volume is being resized.", - "type": "string" - }, - "status": { - "type": "string" - }, - "type": { - "description": "PersistentVolumeClaimConditionType defines the condition of PV claim.\nValid values are:\n - \"Resizing\", \"FileSystemResizePending\"\n\nIf RecoverVolumeExpansionFailure feature gate is enabled, then following additional values can be expected:\n - \"ControllerResizeError\", \"NodeResizeError\"\n\nIf VolumeAttributesClass feature gate is enabled, then following additional values can be expected:\n - \"ModifyVolumeError\", \"ModifyingVolume\"", - "type": "string" - } - }, - "required": [ - "status", - "type" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - }, - "currentVolumeAttributesClassName": { - "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.\nWhen unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim\nThis is a beta field and requires enabling VolumeAttributesClass feature (off by default).", - "type": "string" - }, - "modifyVolumeStatus": { - "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.\nWhen this is unset, there is no ModifyVolume operation being attempted.\nThis is a beta field and requires enabling VolumeAttributesClass feature (off by default).", - "properties": { - "status": { - "description": "status is the status of the ControllerModifyVolume operation. It can be in any of following states:\n - Pending\n Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n InProgress indicates that the volume is being modified.\n - Infeasible\n Infeasible indicates that the request has been rejected as invalid by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass needs to be specified.\nNote: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.", - "type": "string" - }, - "targetVolumeAttributesClassName": { - "description": "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled", - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "phase": { - "description": "phase represents the current phase of PersistentVolumeClaim.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "tag": { - "description": "Deprecated: use 'spec.image' instead. The image's tag can be specified as part of the image name.", - "type": "string" - }, - "targetLimit": { - "description": "TargetLimit defines a limit on the number of scraped targets that will be accepted.\nOnly valid in Prometheus versions 2.45.0 and newer.\n\nNote that the global limit only applies to scrape objects that don't specify an explicit limit value.\nIf you want to enforce a maximum limit for all scrape objects, refer to enforcedTargetLimit.", - "format": "int64", - "type": "integer" - }, - "thanos": { - "description": "Defines the configuration of the optional Thanos sidecar.", - "properties": { - "additionalArgs": { - "description": "AdditionalArgs allows setting additional arguments for the Thanos container.\nThe arguments are passed as-is to the Thanos container which may cause issues\nif they are invalid or not supported the given Thanos version.\nIn case of an argument conflict (e.g. an argument which is already set by the\noperator itself) or when providing an invalid argument, the reconciliation will\nfail and an error will be logged.", - "items": { - "description": "Argument as part of the AdditionalArgs list.", - "properties": { - "name": { - "description": "Name of the argument, e.g. \"scrape.discovery-reload-interval\".", - "minLength": 1, - "type": "string" - }, - "value": { - "description": "Argument value, e.g. 30s. Can be empty for name-only arguments (e.g. --storage.tsdb.no-lockfile)", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "baseImage": { - "description": "Deprecated: use 'image' instead.", - "type": "string" - }, - "blockSize": { - "default": "2h", - "description": "BlockDuration controls the size of TSDB blocks produced by Prometheus.\nThe default value is 2h to match the upstream Prometheus defaults.\n\nWARNING: Changing the block duration can impact the performance and\nefficiency of the entire Prometheus/Thanos stack due to how it interacts\nwith memory and Thanos compactors. It is recommended to keep this value\nset to a multiple of 120 times your longest scrape or rule interval. For\nexample, 30s * 120 = 1h.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "getConfigInterval": { - "description": "How often to retrieve the Prometheus configuration.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "getConfigTimeout": { - "description": "Maximum time to wait when retrieving the Prometheus configuration.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "grpcListenLocal": { - "description": "When true, the Thanos sidecar listens on the loopback interface instead\nof the Pod IP's address for the gRPC endpoints.\n\nIt has no effect if `listenLocal` is true.", - "type": "boolean" - }, - "grpcServerTlsConfig": { - "description": "Configures the TLS parameters for the gRPC server providing the StoreAPI.\n\nNote: Currently only the `caFile`, `certFile`, and `keyFile` fields are supported.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "caFile": { - "description": "Path to the CA cert in the Prometheus container to use for the targets.", - "type": "string" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "certFile": { - "description": "Path to the client cert file in the Prometheus container for the targets.", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keyFile": { - "description": "Path to the client key file in the Prometheus container for the targets.", - "type": "string" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "httpListenLocal": { - "description": "When true, the Thanos sidecar listens on the loopback interface instead\nof the Pod IP's address for the HTTP endpoints.\n\nIt has no effect if `listenLocal` is true.", - "type": "boolean" - }, - "image": { - "description": "Container image name for Thanos. If specified, it takes precedence over\nthe `spec.thanos.baseImage`, `spec.thanos.tag` and `spec.thanos.sha`\nfields.\n\nSpecifying `spec.thanos.version` is still necessary to ensure the\nPrometheus Operator knows which version of Thanos is being configured.\n\nIf neither `spec.thanos.image` nor `spec.thanos.baseImage` are defined,\nthe operator will use the latest upstream version of Thanos available at\nthe time when the operator was released.", - "type": "string" - }, - "listenLocal": { - "description": "Deprecated: use `grpcListenLocal` and `httpListenLocal` instead.", - "type": "boolean" - }, - "logFormat": { - "description": "Log format for the Thanos sidecar.", - "enum": [ - "", - "logfmt", - "json" - ], - "type": "string" - }, - "logLevel": { - "description": "Log level for the Thanos sidecar.", - "enum": [ - "", - "debug", - "info", - "warn", - "error" - ], - "type": "string" - }, - "minTime": { - "description": "Defines the start of time range limit served by the Thanos sidecar's StoreAPI.\nThe field's value should be a constant time in RFC3339 format or a time\nduration relative to current time, such as -1d or 2h45m. Valid duration\nunits are ms, s, m, h, d, w, y.", - "type": "string" - }, - "objectStorageConfig": { - "description": "Defines the Thanos sidecar's configuration to upload TSDB blocks to object storage.\n\nMore info: https://thanos.io/tip/thanos/storage.md/\n\nobjectStorageConfigFile takes precedence over this field.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "objectStorageConfigFile": { - "description": "Defines the Thanos sidecar's configuration file to upload TSDB blocks to object storage.\n\nMore info: https://thanos.io/tip/thanos/storage.md/\n\nThis field takes precedence over objectStorageConfig.", - "type": "string" - }, - "readyTimeout": { - "description": "ReadyTimeout is the maximum time that the Thanos sidecar will wait for\nPrometheus to start.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "resources": { - "description": "Defines the resources requests and limits of the Thanos sidecar.", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - "items": { - "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string" - }, - "request": { - "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "sha": { - "description": "Deprecated: use 'image' instead. The image digest can be specified as part of the image name.", - "type": "string" - }, - "tag": { - "description": "Deprecated: use 'image' instead. The image's tag can be specified as as part of the image name.", - "type": "string" - }, - "tracingConfig": { - "description": "Defines the tracing configuration for the Thanos sidecar.\n\n`tracingConfigFile` takes precedence over this field.\n\nMore info: https://thanos.io/tip/thanos/tracing.md/\n\nThis is an *experimental feature*, it may change in any upcoming release\nin a breaking way.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "tracingConfigFile": { - "description": "Defines the tracing configuration file for the Thanos sidecar.\n\nThis field takes precedence over `tracingConfig`.\n\nMore info: https://thanos.io/tip/thanos/tracing.md/\n\nThis is an *experimental feature*, it may change in any upcoming release\nin a breaking way.", - "type": "string" - }, - "version": { - "description": "Version of Thanos being deployed. The operator uses this information\nto generate the Prometheus StatefulSet + configuration files.\n\nIf not specified, the operator assumes the latest upstream release of\nThanos available at the time when the version of the operator was\nreleased.", - "type": "string" - }, - "volumeMounts": { - "description": "VolumeMounts allows configuration of additional VolumeMounts for Thanos.\nVolumeMounts specified will be appended to other VolumeMounts in the\n'thanos-sidecar' container.", - "items": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None).", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.", - "type": "boolean" - }, - "recursiveReadOnly": { - "description": "RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - "type": "string" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).", - "type": "string" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.", - "type": "string" - } - }, - "required": [ - "mountPath", - "name" - ], - "type": "object" - }, - "type": "array" - } - }, - "type": "object" - }, - "tolerations": { - "description": "Defines the Pods' tolerations if specified.", - "items": { - "description": "The pod this Toleration is attached to tolerates any taint that matches\nthe triple using the matching operator .", - "properties": { - "effect": { - "description": "Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", - "type": "string" - }, - "key": { - "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.", - "type": "string" - }, - "operator": { - "description": "Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category.", - "type": "string" - }, - "tolerationSeconds": { - "description": "TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system.", - "format": "int64", - "type": "integer" - }, - "value": { - "description": "Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "topologySpreadConstraints": { - "description": "Defines the pod's topology spread constraints if specified.", - "items": { - "properties": { - "additionalLabelSelectors": { - "description": "Defines what Prometheus Operator managed labels should be added to labelSelector on the topologySpreadConstraint.", - "enum": [ - "OnResource", - "OnShard" - ], - "type": "string" - }, - "labelSelector": { - "description": "LabelSelector is used to find matching pods.\nPods that match this label selector are counted to determine the number of pods\nin their corresponding topology domain.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select the pods over which\nspreading will be calculated. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are ANDed with labelSelector\nto select the group of existing pods over which spreading will be calculated\nfor the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.\nMatchLabelKeys cannot be set when LabelSelector isn't set.\nKeys that don't exist in the incoming pod labels will\nbe ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "maxSkew": { - "description": "MaxSkew describes the degree to which pods may be unevenly distributed.\nWhen `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference\nbetween the number of matching pods in the target topology and the global minimum.\nThe global minimum is the minimum number of matching pods in an eligible domain\nor zero if the number of eligible domains is less than MinDomains.\nFor example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\nlabelSelector spread as 2/2/1:\nIn this case, the global minimum is 1.\n| zone1 | zone2 | zone3 |\n| P P | P P | P |\n- if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;\nscheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)\nviolate MaxSkew(1).\n- if MaxSkew is 2, incoming pod can be scheduled onto any zone.\nWhen `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence\nto topologies that satisfy it.\nIt's a required field. Default value is 1 and 0 is not allowed.", - "format": "int32", - "type": "integer" - }, - "minDomains": { - "description": "MinDomains indicates a minimum number of eligible domains.\nWhen the number of eligible domains with matching topology keys is less than minDomains,\nPod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed.\nAnd when the number of eligible domains with matching topology keys equals or greater than minDomains,\nthis value has no effect on scheduling.\nAs a result, when the number of eligible domains is less than minDomains,\nscheduler won't schedule more than maxSkew Pods to those domains.\nIf value is nil, the constraint behaves as if MinDomains is equal to 1.\nValid values are integers greater than 0.\nWhen value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same\nlabelSelector spread as 2/2/2:\n| zone1 | zone2 | zone3 |\n| P P | P P | P P |\nThe number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0.\nIn this situation, new pod with the same labelSelector cannot be scheduled,\nbecause computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,\nit will violate MaxSkew.", - "format": "int32", - "type": "integer" - }, - "nodeAffinityPolicy": { - "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector\nwhen calculating pod topology spread skew. Options are:\n- Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.\n- Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy.\nThis is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", - "type": "string" - }, - "nodeTaintsPolicy": { - "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating\npod topology spread skew. Options are:\n- Honor: nodes without taints, along with tainted nodes for which the incoming pod\nhas a toleration, are included.\n- Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy.\nThis is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", - "type": "string" - }, - "topologyKey": { - "description": "TopologyKey is the key of node labels. Nodes that have a label with this key\nand identical values are considered to be in the same topology.\nWe consider each as a \"bucket\", and try to put balanced number\nof pods into each bucket.\nWe define a domain as a particular instance of a topology.\nAlso, we define an eligible domain as a domain whose nodes meet the requirements of\nnodeAffinityPolicy and nodeTaintsPolicy.\ne.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology.\nAnd, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology.\nIt's a required field.", - "type": "string" - }, - "whenUnsatisfiable": { - "description": "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy\nthe spread constraint.\n- DoNotSchedule (default) tells the scheduler not to schedule it.\n- ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod\nif and only if every possible node assignment for that pod would violate\n\"MaxSkew\" on some topology.\nFor example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\nlabelSelector spread as 3/1/1:\n| zone1 | zone2 | zone3 |\n| P P P | P | P |\nIf WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled\nto zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies\nMaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler\nwon't make it *more* imbalanced.\nIt's a required field.", - "type": "string" - } - }, - "required": [ - "maxSkew", - "topologyKey", - "whenUnsatisfiable" - ], - "type": "object" - }, - "type": "array" - }, - "tracingConfig": { - "description": "TracingConfig configures tracing in Prometheus.\n\nThis is an *experimental feature*, it may change in any upcoming release\nin a breaking way.", - "properties": { - "clientType": { - "description": "Client used to export the traces. Supported values are `http` or `grpc`.", - "enum": [ - "http", - "grpc" - ], - "type": "string" - }, - "compression": { - "description": "Compression key for supported compression types. The only supported value is `gzip`.", - "enum": [ - "gzip" - ], - "type": "string" - }, - "endpoint": { - "description": "Endpoint to send the traces to. Should be provided in format :.", - "minLength": 1, - "type": "string" - }, - "headers": { - "additionalProperties": { - "type": "string" - }, - "description": "Key-value pairs to be used as headers associated with gRPC or HTTP requests.", - "type": "object" - }, - "insecure": { - "description": "If disabled, the client will use a secure connection.", - "type": "boolean" - }, - "samplingFraction": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Sets the probability a given trace will be sampled. Must be a float from 0 through 1.", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "timeout": { - "description": "Maximum time the exporter will wait for each batch export.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "tlsConfig": { - "description": "TLS Config to use when sending traces.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "caFile": { - "description": "Path to the CA cert in the Prometheus container to use for the targets.", - "type": "string" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "certFile": { - "description": "Path to the client cert file in the Prometheus container for the targets.", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keyFile": { - "description": "Path to the client key file in the Prometheus container for the targets.", - "type": "string" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "endpoint" - ], - "type": "object" - }, - "tsdb": { - "description": "Defines the runtime reloadable configuration of the timeseries database(TSDB).\nIt requires Prometheus >= v2.39.0 or PrometheusAgent >= v2.54.0.", - "properties": { - "outOfOrderTimeWindow": { - "description": "Configures how old an out-of-order/out-of-bounds sample can be with\nrespect to the TSDB max time.\n\nAn out-of-order/out-of-bounds sample is ingested into the TSDB as long as\nthe timestamp of the sample is >= (TSDB.MaxTime - outOfOrderTimeWindow).\n\nThis is an *experimental feature*, it may change in any upcoming release\nin a breaking way.\n\nIt requires Prometheus >= v2.39.0 or PrometheusAgent >= v2.54.0.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - } - }, - "type": "object" - }, - "version": { - "description": "Version of Prometheus being deployed. The operator uses this information\nto generate the Prometheus StatefulSet + configuration files.\n\nIf not specified, the operator assumes the latest upstream version of\nPrometheus available at the time when the version of the operator was\nreleased.", - "type": "string" - }, - "volumeMounts": { - "description": "VolumeMounts allows the configuration of additional VolumeMounts.\n\nVolumeMounts will be appended to other VolumeMounts in the 'prometheus'\ncontainer, that are generated as a result of StorageSpec objects.", - "items": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None).", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.", - "type": "boolean" - }, - "recursiveReadOnly": { - "description": "RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - "type": "string" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).", - "type": "string" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.", - "type": "string" - } - }, - "required": [ - "mountPath", - "name" - ], - "type": "object" - }, - "type": "array" - }, - "volumes": { - "description": "Volumes allows the configuration of additional volumes on the output\nStatefulSet definition. Volumes specified will be appended to other\nvolumes that are generated as a result of StorageSpec objects.", - "items": { - "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", - "properties": { - "awsElasticBlockStore": { - "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "properties": { - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "string" - }, - "partition": { - "description": "partition is the partition in the volume that you want to mount.\nIf omitted, the default is to mount by volume name.\nExamples: For volume /dev/sda1, you specify the partition as \"1\".\nSimilarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "readOnly value true will force the readOnly setting in VolumeMounts.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "boolean" - }, - "volumeID": { - "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "azureDisk": { - "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "properties": { - "cachingMode": { - "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", - "type": "string" - }, - "diskName": { - "description": "diskName is the Name of the data disk in the blob storage", - "type": "string" - }, - "diskURI": { - "description": "diskURI is the URI of data disk in the blob storage", - "type": "string" - }, - "fsType": { - "default": "ext4", - "description": "fsType is Filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "kind": { - "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", - "type": "string" - }, - "readOnly": { - "default": false, - "description": "readOnly Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - } - }, - "required": [ - "diskName", - "diskURI" - ], - "type": "object" - }, - "azureFile": { - "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "properties": { - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretName": { - "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", - "type": "string" - }, - "shareName": { - "description": "shareName is the azure share Name", - "type": "string" - } - }, - "required": [ - "secretName", - "shareName" - ], - "type": "object" - }, - "cephfs": { - "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "properties": { - "monitors": { - "description": "monitors is Required: Monitors is a collection of Ceph monitors\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "type": "string" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "boolean" - }, - "secretFile": { - "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "user": { - "description": "user is optional: User is the rados user name, default is admin\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - } - }, - "required": [ - "monitors" - ], - "type": "object" - }, - "cinder": { - "description": "cinder represents a cinder volume attached and mounted on kubelets host machine.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is optional: points to a secret object containing parameters used to connect\nto OpenStack.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "volumeID": { - "description": "volumeID used to identify the volume in cinder.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "configMap": { - "description": "configMap represents a configMap that should populate this volume", - "properties": { - "defaultMode": { - "description": "defaultMode is optional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDefaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "csi": { - "description": "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", - "properties": { - "driver": { - "description": "driver is the name of the CSI driver that handles this volume.\nConsult with your admin for the correct name as registered in the cluster.", - "type": "string" - }, - "fsType": { - "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\".\nIf not provided, the empty value is passed to the associated CSI driver\nwhich will determine the default filesystem to apply.", - "type": "string" - }, - "nodePublishSecretRef": { - "description": "nodePublishSecretRef is a reference to the secret object containing\nsensitive information to pass to the CSI driver to complete the CSI\nNodePublishVolume and NodeUnpublishVolume calls.\nThis field is optional, and may be empty if no secret is required. If the\nsecret object contains more than one secret, all secret references are passed.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "readOnly": { - "description": "readOnly specifies a read-only configuration for the volume.\nDefaults to false (read/write).", - "type": "boolean" - }, - "volumeAttributes": { - "additionalProperties": { - "type": "string" - }, - "description": "volumeAttributes stores driver-specific properties that are passed to the CSI\ndriver. Consult your driver's documentation for supported values.", - "type": "object" - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "downwardAPI": { - "description": "downwardAPI represents downward API about the pod that should populate this volume", - "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a\nOptional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDefaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "Items is a list of downward API volume file", - "items": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "properties": { - "fieldRef": { - "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file, must be an octal value\nbetween 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", - "type": "string" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "emptyDir": { - "description": "emptyDir represents a temporary directory that shares a pod's lifetime.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "properties": { - "medium": { - "description": "medium represents what type of storage medium should back this directory.\nThe default is \"\" which means to use the node's default medium.\nMust be an empty string (default) or Memory.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "type": "string" - }, - "sizeLimit": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume.\nThe size limit is also applicable for memory medium.\nThe maximum usage on memory medium EmptyDir would be the minimum value between\nthe SizeLimit specified here and the sum of memory limits of all containers in a pod.\nThe default is nil which means that the limit is undefined.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - } - }, - "type": "object" - }, - "ephemeral": { - "description": "ephemeral represents a volume that is handled by a cluster storage driver.\nThe volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,\nand deleted when the pod is removed.\n\nUse this if:\na) the volume is only needed while the pod runs,\nb) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and\nd) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific\nAPIs for volumes that persist for longer than the lifecycle\nof an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to\nbe used that way - see the documentation of the driver for\nmore information.\n\nA pod can use both types of ephemeral volumes and\npersistent volumes at the same time.", - "properties": { - "volumeClaimTemplate": { - "description": "Will be used to create a stand-alone PVC to provision the volume.\nThe pod in which this EphemeralVolumeSource is embedded will be the\nowner of the PVC, i.e. the PVC will be deleted together with the\npod. The name of the PVC will be `-` where\n`` is the name from the `PodSpec.Volumes` array\nentry. Pod validation will reject the pod if the concatenated name\nis not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod\nwill *not* be used for the pod to avoid using an unrelated\nvolume by mistake. Starting the pod is then blocked until\nthe unrelated PVC is removed. If such a pre-created PVC is\nmeant to be used by the pod, the PVC has to updated with an\nowner reference to the pod once the pod exists. Normally\nthis should not be necessary, but it may be useful when\nmanually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes\nto the PVC after it has been created.\n\nRequired, must not be nil.", - "properties": { - "metadata": { - "description": "May contain labels and annotations that will be copied into the PVC\nwhen creating it. No other fields are allowed and will be rejected during\nvalidation.", - "type": "object" - }, - "spec": { - "description": "The specification for the PersistentVolumeClaim. The entire content is\ncopied unchanged into the PVC that gets created from this\ntemplate. The same fields as in a PersistentVolumeClaim\nare also valid here.", - "properties": { - "accessModes": { - "description": "accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "dataSource": { - "description": "dataSource field can be used to specify either:\n* An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n* An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "dataSourceRef": { - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n* While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "resources": { - "description": "resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "selector": { - "description": "selector is a label query over volumes to consider for binding.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "storageClassName": { - "description": "storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeAttributesClassName": { - "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "type": "object" - }, - "fc": { - "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "lun": { - "description": "lun is Optional: FC target lun number", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "targetWWNs": { - "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "wwids": { - "description": "wwids Optional: FC volume world wide identifiers (wwids)\nEither wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "flexVolume": { - "description": "flexVolume represents a generic volume resource that is\nprovisioned/attached using an exec based plugin.", - "properties": { - "driver": { - "description": "driver is the name of the driver to use for this volume.", - "type": "string" - }, - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", - "type": "string" - }, - "options": { - "additionalProperties": { - "type": "string" - }, - "description": "options is Optional: this field holds extra command options if any.", - "type": "object" - }, - "readOnly": { - "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is Optional: secretRef is reference to the secret object containing\nsensitive information to pass to the plugin scripts. This may be\nempty if no secret object is specified. If the secret object\ncontains more than one secret, all secrets are passed to the plugin\nscripts.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "flocker": { - "description": "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", - "properties": { - "datasetName": { - "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker\nshould be considered as deprecated", - "type": "string" - }, - "datasetUUID": { - "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", - "type": "string" - } - }, - "type": "object" - }, - "gcePersistentDisk": { - "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "properties": { - "fsType": { - "description": "fsType is filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string" - }, - "partition": { - "description": "partition is the partition in the volume that you want to mount.\nIf omitted, the default is to mount by volume name.\nExamples: For volume /dev/sda1, you specify the partition as \"1\".\nSimilarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "format": "int32", - "type": "integer" - }, - "pdName": { - "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "boolean" - } - }, - "required": [ - "pdName" - ], - "type": "object" - }, - "gitRepo": { - "description": "gitRepo represents a git repository at a particular revision.\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an\nEmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir\ninto the Pod's container.", - "properties": { - "directory": { - "description": "directory is the target directory name.\nMust not contain or start with '..'. If '.' is supplied, the volume directory will be the\ngit repository. Otherwise, if specified, the volume will contain the git repository in\nthe subdirectory with the given name.", - "type": "string" - }, - "repository": { - "description": "repository is the URL", - "type": "string" - }, - "revision": { - "description": "revision is the commit hash for the specified revision.", - "type": "string" - } - }, - "required": [ - "repository" - ], - "type": "object" - }, - "glusterfs": { - "description": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md", - "properties": { - "endpoints": { - "description": "endpoints is the endpoint name that details Glusterfs topology.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "path": { - "description": "path is the Glusterfs volume path.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions.\nDefaults to false.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" - } - }, - "required": [ - "endpoints", - "path" - ], - "type": "object" - }, - "hostPath": { - "description": "hostPath represents a pre-existing file or directory on the host\nmachine that is directly exposed to the container. This is generally\nused for system agents or other privileged things that are allowed\nto see the host machine. Most containers will NOT need this.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "properties": { - "path": { - "description": "path of the directory on the host.\nIf the path is a symlink, it will follow the link to the real path.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "type": "string" - }, - "type": { - "description": "type for HostPath Volume\nDefaults to \"\"\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "image": { - "description": "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.\nThe volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.\n- Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.\n- IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation.\nA failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message.\nThe types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field.\nThe OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images.\nThe volume will be mounted read-only (ro) and non-executable files (noexec).\nSub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath).\nThe field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", - "properties": { - "pullPolicy": { - "description": "Policy for pulling OCI objects. Possible values are:\nAlways: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.\nNever: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.\nIfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.", - "type": "string" - }, - "reference": { - "description": "Required: Image or artifact reference to be used.\nBehaves in the same way as pod.spec.containers[*].image.\nPull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.\nMore info: https://kubernetes.io/docs/concepts/containers/images\nThis field is optional to allow higher level config management to default or override\ncontainer images in workload controllers like Deployments and StatefulSets.", - "type": "string" - } - }, - "type": "object" - }, - "iscsi": { - "description": "iscsi represents an ISCSI Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://examples.k8s.io/volumes/iscsi/README.md", - "properties": { - "chapAuthDiscovery": { - "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", - "type": "boolean" - }, - "chapAuthSession": { - "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", - "type": "boolean" - }, - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", - "type": "string" - }, - "initiatorName": { - "description": "initiatorName is the custom iSCSI Initiator Name.\nIf initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface\n: will be created for the connection.", - "type": "string" - }, - "iqn": { - "description": "iqn is the target iSCSI Qualified Name.", - "type": "string" - }, - "iscsiInterface": { - "default": "default", - "description": "iscsiInterface is the interface Name that uses an iSCSI transport.\nDefaults to 'default' (tcp).", - "type": "string" - }, - "lun": { - "description": "lun represents iSCSI Target Lun number.", - "format": "int32", - "type": "integer" - }, - "portals": { - "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port\nis other than default (typically TCP ports 860 and 3260).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "targetPortal": { - "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port\nis other than default (typically TCP ports 860 and 3260).", - "type": "string" - } - }, - "required": [ - "iqn", - "lun", - "targetPortal" - ], - "type": "object" - }, - "name": { - "description": "name of the volume.\nMust be a DNS_LABEL and unique within the pod.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "nfs": { - "description": "nfs represents an NFS mount on the host that shares a pod's lifetime\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "properties": { - "path": { - "description": "path that is exported by the NFS server.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the NFS export to be mounted with read-only permissions.\nDefaults to false.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "boolean" - }, - "server": { - "description": "server is the hostname or IP address of the NFS server.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - } - }, - "required": [ - "path", - "server" - ], - "type": "object" - }, - "persistentVolumeClaim": { - "description": "persistentVolumeClaimVolumeSource represents a reference to a\nPersistentVolumeClaim in the same namespace.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "properties": { - "claimName": { - "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "type": "string" - }, - "readOnly": { - "description": "readOnly Will force the ReadOnly setting in VolumeMounts.\nDefault false.", - "type": "boolean" - } - }, - "required": [ - "claimName" - ], - "type": "object" - }, - "photonPersistentDisk": { - "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "pdID": { - "description": "pdID is the ID that identifies Photon Controller persistent disk", - "type": "string" - } - }, - "required": [ - "pdID" - ], - "type": "object" - }, - "portworxVolume": { - "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "properties": { - "fsType": { - "description": "fSType represents the filesystem type to mount\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "volumeID": { - "description": "volumeID uniquely identifies a Portworx volume", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "projected": { - "description": "projected items for all in one resources secrets, configmaps, and downward API", - "properties": { - "defaultMode": { - "description": "defaultMode are the mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "sources": { - "description": "sources is the list of volume projections. Each entry in this list\nhandles one source.", - "items": { - "description": "Projection that may be projected along with other supported volume types.\nExactly one of these fields must be set.", - "properties": { - "clusterTrustBundle": { - "description": "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field\nof ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the\ncombination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written\ninto the pod filesystem. Esoteric PEM features such as inter-block\ncomments and block headers are stripped. Certificates are deduplicated.\nThe ordering of certificates within the file is arbitrary, and Kubelet\nmay change the order over time.", - "properties": { - "labelSelector": { - "description": "Select all ClusterTrustBundles that match this label selector. Only has\neffect if signerName is set. Mutually-exclusive with name. If unset,\ninterpreted as \"match nothing\". If set but empty, interpreted as \"match\neverything\".", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "name": { - "description": "Select a single ClusterTrustBundle by object name. Mutually-exclusive\nwith signerName and labelSelector.", - "type": "string" - }, - "optional": { - "description": "If true, don't block pod startup if the referenced ClusterTrustBundle(s)\naren't available. If using name, then the named ClusterTrustBundle is\nallowed not to exist. If using signerName, then the combination of\nsignerName and labelSelector is allowed to match zero\nClusterTrustBundles.", - "type": "boolean" - }, - "path": { - "description": "Relative path from the volume root to write the bundle.", - "type": "string" - }, - "signerName": { - "description": "Select all ClusterTrustBundles that match this signer name.\nMutually-exclusive with name. The contents of all selected\nClusterTrustBundles will be unified and deduplicated.", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "configMap": { - "description": "configMap information about the configMap data to project", - "properties": { - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "downwardAPI": { - "description": "downwardAPI information about the downwardAPI data to project", - "properties": { - "items": { - "description": "Items is a list of DownwardAPIVolume file", - "items": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "properties": { - "fieldRef": { - "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file, must be an octal value\nbetween 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", - "type": "string" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "secret": { - "description": "secret information about the secret data to project", - "properties": { - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "optional field specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "serviceAccountToken": { - "description": "serviceAccountToken is information about the serviceAccountToken data to project", - "properties": { - "audience": { - "description": "audience is the intended audience of the token. A recipient of a token\nmust identify itself with an identifier specified in the audience of the\ntoken, and otherwise should reject the token. The audience defaults to the\nidentifier of the apiserver.", - "type": "string" - }, - "expirationSeconds": { - "description": "expirationSeconds is the requested duration of validity of the service\naccount token. As the token approaches expiration, the kubelet volume\nplugin will proactively rotate the service account token. The kubelet will\nstart trying to rotate the token if the token is older than 80 percent of\nits time to live or if the token is older than 24 hours.Defaults to 1 hour\nand must be at least 10 minutes.", - "format": "int64", - "type": "integer" - }, - "path": { - "description": "path is the path relative to the mount point of the file to project the\ntoken into.", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - } - }, - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "quobyte": { - "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "properties": { - "group": { - "description": "group to map volume access to\nDefault is no group", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the Quobyte volume to be mounted with read-only permissions.\nDefaults to false.", - "type": "boolean" - }, - "registry": { - "description": "registry represents a single or multiple Quobyte Registry services\nspecified as a string as host:port pair (multiple entries are separated with commas)\nwhich acts as the central registry for volumes", - "type": "string" - }, - "tenant": { - "description": "tenant owning the given Quobyte volume in the Backend\nUsed with dynamically provisioned Quobyte volumes, value is set by the plugin", - "type": "string" - }, - "user": { - "description": "user to map volume access to\nDefaults to serivceaccount user", - "type": "string" - }, - "volume": { - "description": "volume is a string that references an already created Quobyte volume by name.", - "type": "string" - } - }, - "required": [ - "registry", - "volume" - ], - "type": "object" - }, - "rbd": { - "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.\nMore info: https://examples.k8s.io/volumes/rbd/README.md", - "properties": { - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", - "type": "string" - }, - "image": { - "description": "image is the rados image name.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "keyring": { - "default": "/etc/ceph/keyring", - "description": "keyring is the path to key ring for RBDUser.\nDefault is /etc/ceph/keyring.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "monitors": { - "description": "monitors is a collection of Ceph monitors.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "pool": { - "default": "rbd", - "description": "pool is the rados pool name.\nDefault is rbd.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is name of the authentication secret for RBDUser. If provided\noverrides keyring.\nDefault is nil.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "user": { - "default": "admin", - "description": "user is the rados user name.\nDefault is admin.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - } - }, - "required": [ - "image", - "monitors" - ], - "type": "object" - }, - "scaleIO": { - "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "properties": { - "fsType": { - "default": "xfs", - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\".\nDefault is \"xfs\".", - "type": "string" - }, - "gateway": { - "description": "gateway is the host address of the ScaleIO API Gateway.", - "type": "string" - }, - "protectionDomain": { - "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", - "type": "string" - }, - "readOnly": { - "description": "readOnly Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef references to the secret for ScaleIO user and other\nsensitive information. If this is not provided, Login operation will fail.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "sslEnabled": { - "description": "sslEnabled Flag enable/disable SSL communication with Gateway, default false", - "type": "boolean" - }, - "storageMode": { - "default": "ThinProvisioned", - "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.\nDefault is ThinProvisioned.", - "type": "string" - }, - "storagePool": { - "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", - "type": "string" - }, - "system": { - "description": "system is the name of the storage system as configured in ScaleIO.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the name of a volume already created in the ScaleIO system\nthat is associated with this volume source.", - "type": "string" - } - }, - "required": [ - "gateway", - "secretRef", - "system" - ], - "type": "object" - }, - "secret": { - "description": "secret represents a secret that should populate this volume.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - "properties": { - "defaultMode": { - "description": "defaultMode is Optional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values\nfor mode bits. Defaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "items If unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "optional": { - "description": "optional field specify whether the Secret or its keys must be defined", - "type": "boolean" - }, - "secretName": { - "description": "secretName is the name of the secret in the pod's namespace to use.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - "type": "string" - } - }, - "type": "object" - }, - "storageos": { - "description": "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef specifies the secret to use for obtaining the StorageOS API\ncredentials. If not specified, default values will be attempted.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "volumeName": { - "description": "volumeName is the human-readable name of the StorageOS volume. Volume\nnames are only unique within a namespace.", - "type": "string" - }, - "volumeNamespace": { - "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no\nnamespace is specified then the Pod's namespace will be used. This allows the\nKubernetes name scoping to be mirrored within StorageOS for tighter integration.\nSet VolumeName to any name to override the default behaviour.\nSet to \"default\" if you are not using namespaces within StorageOS.\nNamespaces that do not pre-exist within StorageOS will be created.", - "type": "string" - } - }, - "type": "object" - }, - "vsphereVolume": { - "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "properties": { - "fsType": { - "description": "fsType is filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "storagePolicyID": { - "description": "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", - "type": "string" - }, - "storagePolicyName": { - "description": "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", - "type": "string" - }, - "volumePath": { - "description": "volumePath is the path that identifies vSphere volume vmdk", - "type": "string" - } - }, - "required": [ - "volumePath" - ], - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "walCompression": { - "description": "Configures compression of the write-ahead log (WAL) using Snappy.\n\nWAL compression is enabled by default for Prometheus >= 2.20.0\n\nRequires Prometheus v2.11.0 and above.", - "type": "boolean" - }, - "web": { - "description": "Defines the configuration of the Prometheus web server.", - "properties": { - "httpConfig": { - "description": "Defines HTTP parameters for web server.", - "properties": { - "headers": { - "description": "List of headers that can be added to HTTP responses.", - "properties": { - "contentSecurityPolicy": { - "description": "Set the Content-Security-Policy header to HTTP responses.\nUnset if blank.", - "type": "string" - }, - "strictTransportSecurity": { - "description": "Set the Strict-Transport-Security header to HTTP responses.\nUnset if blank.\nPlease make sure that you use this with care as this header might force\nbrowsers to load Prometheus and the other applications hosted on the same\ndomain and subdomains over HTTPS.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security", - "type": "string" - }, - "xContentTypeOptions": { - "description": "Set the X-Content-Type-Options header to HTTP responses.\nUnset if blank. Accepted value is nosniff.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options", - "enum": [ - "", - "NoSniff" - ], - "type": "string" - }, - "xFrameOptions": { - "description": "Set the X-Frame-Options header to HTTP responses.\nUnset if blank. Accepted values are deny and sameorigin.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options", - "enum": [ - "", - "Deny", - "SameOrigin" - ], - "type": "string" - }, - "xXSSProtection": { - "description": "Set the X-XSS-Protection header to all responses.\nUnset if blank.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection", - "type": "string" - } - }, - "type": "object" - }, - "http2": { - "description": "Enable HTTP/2 support. Note that HTTP/2 is only supported with TLS.\nWhen TLSConfig is not configured, HTTP/2 will be disabled.\nWhenever the value of the field changes, a rolling update will be triggered.", - "type": "boolean" - } - }, - "type": "object" - }, - "maxConnections": { - "description": "Defines the maximum number of simultaneous connections\nA zero value means that Prometheus doesn't accept any incoming connection.", - "format": "int32", - "minimum": 0, - "type": "integer" - }, - "pageTitle": { - "description": "The prometheus web page title.", - "type": "string" - }, - "tlsConfig": { - "description": "Defines the TLS parameters for HTTPS.", - "properties": { - "cert": { - "description": "Contains the TLS certificate for the server.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cipherSuites": { - "description": "List of supported cipher suites for TLS versions up to TLS 1.2. If empty,\nGo default cipher suites are used. Available cipher suites are documented\nin the go documentation: https://golang.org/pkg/crypto/tls/#pkg-constants", - "items": { - "type": "string" - }, - "type": "array" - }, - "clientAuthType": { - "description": "Server policy for client authentication. Maps to ClientAuth Policies.\nFor more detail on clientAuth options:\nhttps://golang.org/pkg/crypto/tls/#ClientAuthType", - "type": "string" - }, - "client_ca": { - "description": "Contains the CA certificate for client certificate authentication to the server.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "curvePreferences": { - "description": "Elliptic curves that will be used in an ECDHE handshake, in preference\norder. Available curves are documented in the go documentation:\nhttps://golang.org/pkg/crypto/tls/#CurveID", - "items": { - "type": "string" - }, - "type": "array" - }, - "keySecret": { - "description": "Secret containing the TLS key for the server.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum TLS version that is acceptable. Defaults to TLS13.", - "type": "string" - }, - "minVersion": { - "description": "Minimum TLS version that is acceptable. Defaults to TLS12.", - "type": "string" - }, - "preferServerCipherSuites": { - "description": "Controls whether the server selects the\nclient's most preferred cipher suite, or the server's most preferred\ncipher suite. If true then the server's preference, as expressed in\nthe order of elements in cipherSuites, is used.", - "type": "boolean" - } - }, - "required": [ - "cert", - "keySecret" - ], - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "status": { - "description": "Most recent observed status of the Prometheus cluster. Read-only.\nMore info:\nhttps://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds)\ntargeted by this Prometheus deployment.", - "format": "int32", - "type": "integer" - }, - "conditions": { - "description": "The current state of the Prometheus deployment.", - "items": { - "description": "Condition represents the state of the resources associated with the\nPrometheus, Alertmanager or ThanosRuler resource.", - "properties": { - "lastTransitionTime": { - "description": "lastTransitionTime is the time of the last update to the current status property.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "Human-readable message indicating details for the condition's last transition.", - "type": "string" - }, - "observedGeneration": { - "description": "ObservedGeneration represents the .metadata.generation that the\ncondition was set based upon. For instance, if `.metadata.generation` is\ncurrently 12, but the `.status.conditions[].observedGeneration` is 9, the\ncondition is out of date with respect to the current state of the\ninstance.", - "format": "int64", - "type": "integer" - }, - "reason": { - "description": "Reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition.", - "type": "string" - }, - "type": { - "description": "Type of the condition being reported.", - "type": "string" - } - }, - "required": [ - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - }, - "paused": { - "description": "Represents whether any actions on the underlying managed objects are\nbeing performed. Only delete actions will be performed.", - "type": "boolean" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this Prometheus deployment\n(their labels match the selector).", - "format": "int32", - "type": "integer" - }, - "selector": { - "description": "The selector used to match the pods targeted by this Prometheus resource.", - "type": "string" - }, - "shardStatuses": { - "description": "The list has one entry per shard. Each entry provides a summary of the shard status.", - "items": { - "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds)\ntargeted by this shard.", - "format": "int32", - "type": "integer" - }, - "replicas": { - "description": "Total number of pods targeted by this shard.", - "format": "int32", - "type": "integer" - }, - "shardID": { - "description": "Identifier of the shard.", - "type": "string" - }, - "unavailableReplicas": { - "description": "Total number of unavailable pods targeted by this shard.", - "format": "int32", - "type": "integer" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this shard\nthat have the desired spec.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "availableReplicas", - "replicas", - "shardID", - "unavailableReplicas", - "updatedReplicas" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "shardID" - ], - "x-kubernetes-list-type": "map" - }, - "shards": { - "description": "Shards is the most recently observed number of shards.", - "format": "int32", - "type": "integer" - }, - "unavailableReplicas": { - "description": "Total number of unavailable pods targeted by this Prometheus deployment.", - "format": "int32", - "type": "integer" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this Prometheus deployment\nthat have the desired version spec.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "availableReplicas", - "paused", - "replicas", - "unavailableReplicas", - "updatedReplicas" - ], - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "served": true, - "storage": true, - "subresources": { - "scale": { - "labelSelectorPath": ".status.selector", - "specReplicasPath": ".spec.shards", - "statusReplicasPath": ".status.shards" - }, - "status": {} - } - } - ] - } -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheusrules-crd.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheusrules-crd.json deleted file mode 100644 index 280e425af..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheusrules-crd.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "apiVersion": "apiextensions.k8s.io/v1", - "kind": "CustomResourceDefinition", - "metadata": { - "annotations": { - "controller-gen.kubebuilder.io/version": "v0.16.1", - "operator.prometheus.io/version": "0.76.0" - }, - "name": "prometheusrules.monitoring.coreos.com" - }, - "spec": { - "group": "monitoring.coreos.com", - "names": { - "categories": [ - "prometheus-operator" - ], - "kind": "PrometheusRule", - "listKind": "PrometheusRuleList", - "plural": "prometheusrules", - "shortNames": [ - "promrule" - ], - "singular": "prometheusrule" - }, - "scope": "Namespaced", - "versions": [ - { - "name": "v1", - "schema": { - "openAPIV3Schema": { - "description": "The `PrometheusRule` custom resource definition (CRD) defines [alerting](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) and [recording](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/) rules to be evaluated by `Prometheus` or `ThanosRuler` objects.\n\n`Prometheus` and `ThanosRuler` objects select `PrometheusRule` objects using label and namespace selectors.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "type": "object" - }, - "spec": { - "description": "Specification of desired alerting rule definitions for Prometheus.", - "properties": { - "groups": { - "description": "Content of Prometheus rule file", - "items": { - "description": "RuleGroup is a list of sequentially evaluated recording and alerting rules.", - "properties": { - "interval": { - "description": "Interval determines how often rules in the group are evaluated.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "limit": { - "description": "Limit the number of alerts an alerting rule and series a recording\nrule can produce.\nLimit is supported starting with Prometheus >= 2.31 and Thanos Ruler >= 0.24.", - "type": "integer" - }, - "name": { - "description": "Name of the rule group.", - "minLength": 1, - "type": "string" - }, - "partial_response_strategy": { - "description": "PartialResponseStrategy is only used by ThanosRuler and will\nbe ignored by Prometheus instances.\nMore info: https://github.com/thanos-io/thanos/blob/main/docs/components/rule.md#partial-response", - "pattern": "^(?i)(abort|warn)?$", - "type": "string" - }, - "rules": { - "description": "List of alerting and recording rules.", - "items": { - "description": "Rule describes an alerting or recording rule\nSee Prometheus documentation: [alerting](https://www.prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) or [recording](https://www.prometheus.io/docs/prometheus/latest/configuration/recording_rules/#recording-rules) rule", - "properties": { - "alert": { - "description": "Name of the alert. Must be a valid label value.\nOnly one of `record` and `alert` must be set.", - "type": "string" - }, - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations to add to each alert.\nOnly valid for alerting rules.", - "type": "object" - }, - "expr": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "PromQL expression to evaluate.", - "x-kubernetes-int-or-string": true - }, - "for": { - "description": "Alerts are considered firing once they have been returned for this long.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "keep_firing_for": { - "description": "KeepFiringFor defines how long an alert will continue firing after the condition that triggered it has cleared.", - "minLength": 1, - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels to add or overwrite.", - "type": "object" - }, - "record": { - "description": "Name of the time series to output to. Must be a valid metric name.\nOnly one of `record` and `alert` must be set.", - "type": "string" - } - }, - "required": [ - "expr" - ], - "type": "object" - }, - "type": "array" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - } - }, - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "served": true, - "storage": true - } - ] - } -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/scrapeconfigs-crd.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/scrapeconfigs-crd.json deleted file mode 100644 index 5ecade8c0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/scrapeconfigs-crd.json +++ /dev/null @@ -1,10868 +0,0 @@ -{ - "apiVersion": "apiextensions.k8s.io/v1", - "kind": "CustomResourceDefinition", - "metadata": { - "annotations": { - "controller-gen.kubebuilder.io/version": "v0.16.1", - "operator.prometheus.io/version": "0.76.0" - }, - "name": "scrapeconfigs.monitoring.coreos.com" - }, - "spec": { - "group": "monitoring.coreos.com", - "names": { - "categories": [ - "prometheus-operator" - ], - "kind": "ScrapeConfig", - "listKind": "ScrapeConfigList", - "plural": "scrapeconfigs", - "shortNames": [ - "scfg" - ], - "singular": "scrapeconfig" - }, - "scope": "Namespaced", - "versions": [ - { - "name": "v1alpha1", - "schema": { - "openAPIV3Schema": { - "description": "ScrapeConfig defines a namespaced Prometheus scrape_config to be aggregated across\nmultiple namespaces into the Prometheus configuration.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "type": "object" - }, - "spec": { - "description": "ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.", - "properties": { - "authorization": { - "description": "Authorization header to use on every scrape request.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "azureSDConfigs": { - "description": "AzureSDConfigs defines a list of Azure service discovery configurations.", - "items": { - "description": "AzureSDConfig allow retrieving scrape targets from Azure VMs.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#azure_sd_config", - "properties": { - "authenticationMethod": { - "description": "# The authentication method, either `OAuth` or `ManagedIdentity` or `SDK`.\nSee https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview\nSDK authentication method uses environment variables by default.\nSee https://learn.microsoft.com/en-us/azure/developer/go/azure-sdk-authentication", - "enum": [ - "OAuth", - "ManagedIdentity", - "SDK" - ], - "type": "string" - }, - "clientID": { - "description": "Optional client ID. Only required with the OAuth authentication method.", - "type": "string" - }, - "clientSecret": { - "description": "Optional client secret. Only required with the OAuth authentication method.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "environment": { - "description": "The Azure environment.", - "type": "string" - }, - "port": { - "description": "The port to scrape metrics from. If using the public IP address, this must\ninstead be specified in the relabeling rule.", - "type": "integer" - }, - "refreshInterval": { - "description": "RefreshInterval configures the refresh interval at which Prometheus will re-read the instance list.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "resourceGroup": { - "description": "Optional resource group name. Limits discovery to this resource group.", - "type": "string" - }, - "subscriptionID": { - "description": "The subscription ID. Always required.", - "minLength": 1, - "type": "string" - }, - "tenantID": { - "description": "Optional tenant ID. Only required with the OAuth authentication method.", - "type": "string" - } - }, - "required": [ - "subscriptionID" - ], - "type": "object" - }, - "type": "array" - }, - "basicAuth": { - "description": "BasicAuth information to use on every scrape request.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "consulSDConfigs": { - "description": "ConsulSDConfigs defines a list of Consul service discovery configurations.", - "items": { - "description": "ConsulSDConfig defines a Consul service discovery configuration\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#consul_sd_config", - "properties": { - "allowStale": { - "description": "Allow stale Consul results (see https://www.consul.io/api/features/consistency.html). Will reduce load on Consul.\nIf unset, Prometheus uses its default value.", - "type": "boolean" - }, - "authorization": { - "description": "Authorization header configuration to authenticate against the Consul Server.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth information to authenticate against the Consul Server.\nMore info: https://prometheus.io/docs/operating/configuration/#endpoints", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "datacenter": { - "description": "Consul Datacenter name, if not provided it will use the local Consul Agent Datacenter.", - "type": "string" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.\nIf unset, Prometheus uses its default value.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.\nIf unset, Prometheus uses its default value.", - "type": "boolean" - }, - "namespace": { - "description": "Namespaces are only supported in Consul Enterprise.", - "type": "string" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "nodeMeta": { - "additionalProperties": { - "type": "string" - }, - "description": "Node metadata key/value pairs to filter nodes for a given service.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "oauth2": { - "description": "Optional OAuth 2.0 configuration.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "partition": { - "description": "Admin Partitions are only supported in Consul Enterprise.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "The time after which the provided names are refreshed.\nOn large setup it might be a good idea to increase this value because the catalog will change all the time.\nIf unset, Prometheus uses its default value.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "scheme": { - "description": "HTTP Scheme default \"http\"", - "enum": [ - "HTTP", - "HTTPS" - ], - "type": "string" - }, - "server": { - "description": "A valid string consisting of a hostname or IP followed by an optional port number.", - "minLength": 1, - "type": "string" - }, - "services": { - "description": "A list of services for which targets are retrieved. If omitted, all services are scraped.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "tagSeparator": { - "description": "The string by which Consul tags are joined into the tag label.\nIf unset, Prometheus uses its default value.", - "type": "string" - }, - "tags": { - "description": "An optional list of tags used to filter nodes for a given service. Services must contain all tags in the list.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "tlsConfig": { - "description": "TLS Config", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenRef": { - "description": "Consul ACL TokenRef, if not provided it will use the ACL from the local Consul Agent.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "server" - ], - "type": "object" - }, - "type": "array" - }, - "digitalOceanSDConfigs": { - "description": "DigitalOceanSDConfigs defines a list of DigitalOcean service discovery configurations.", - "items": { - "description": "DigitalOceanSDConfig allow retrieving scrape targets from DigitalOcean's Droplets API.\nThis service discovery uses the public IPv4 address by default, by that can be changed with relabeling\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#digitalocean_sd_config", - "properties": { - "authorization": { - "description": "Authorization header configuration to authenticate against the DigitalOcean API.\nCannot be set at the same time as `oauth2`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.", - "type": "boolean" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "Optional OAuth 2.0 configuration.\nCannot be set at the same time as `authorization`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "port": { - "description": "The port to scrape metrics from.", - "type": "integer" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "Refresh interval to re-read the instance list.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration applying to the target HTTP endpoint.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "type": "array" - }, - "dnsSDConfigs": { - "description": "DNSSDConfigs defines a list of DNS service discovery configurations.", - "items": { - "description": "DNSSDConfig allows specifying a set of DNS domain names which are periodically queried to discover a list of targets.\nThe DNS servers to be contacted are read from /etc/resolv.conf.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#dns_sd_config", - "properties": { - "names": { - "description": "A list of DNS domain names to be queried.", - "items": { - "type": "string" - }, - "minItems": 1, - "type": "array" - }, - "port": { - "description": "The port number used if the query type is not SRV\nIgnored for SRV records", - "format": "int32", - "maximum": 65535, - "minimum": 0, - "type": "integer" - }, - "refreshInterval": { - "description": "RefreshInterval configures the time after which the provided names are refreshed.\nIf not set, Prometheus uses its default value.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "type": { - "description": "The type of DNS query to perform. One of SRV, A, AAAA, MX or NS.\nIf not set, Prometheus uses its default value.\n\nWhen set to NS, it requires Prometheus >= v2.49.0.\nWhen set to MX, it requires Prometheus >= v2.38.0", - "enum": [ - "A", - "AAAA", - "MX", - "NS", - "SRV" - ], - "type": "string" - } - }, - "required": [ - "names" - ], - "type": "object" - }, - "type": "array" - }, - "dockerSDConfigs": { - "description": "DockerSDConfigs defines a list of Docker service discovery configurations.", - "items": { - "description": "Docker SD configurations allow retrieving scrape targets from Docker Engine hosts.\nThis SD discovers \"containers\" and will create a target for each network IP and\nport the container is configured to expose.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#docker_sd_config", - "properties": { - "authorization": { - "description": "Authorization header configuration to authenticate against the Docker API.\nCannot be set at the same time as `oauth2`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth information to use on every scrape request.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "filters": { - "description": "Optional filters to limit the discovery process to a subset of the available resources.", - "items": { - "description": "Filter name and value pairs to limit the discovery process to a subset of available resources.", - "properties": { - "name": { - "description": "Name of the Filter.", - "type": "string" - }, - "values": { - "description": "Value to filter on.", - "items": { - "type": "string" - }, - "minItems": 1, - "type": "array" - } - }, - "required": [ - "name", - "values" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.", - "type": "boolean" - }, - "host": { - "description": "Address of the docker daemon", - "minLength": 1, - "type": "string" - }, - "hostNetworkingHost": { - "description": "The host to use if the container is in host networking mode.", - "type": "string" - }, - "matchFirstNetwork": { - "description": "Configure whether to match the first network if the container has multiple networks defined.\nIf unset, Prometheus uses true by default.\nIt requires Prometheus >= v2.54.1.", - "type": "boolean" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "Optional OAuth 2.0 configuration.\nCannot be set at the same time as `authorization`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "port": { - "description": "The port to scrape metrics from.", - "type": "integer" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "Time after which the container is refreshed.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration applying to the target HTTP endpoint.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "host" - ], - "type": "object" - }, - "type": "array" - }, - "dockerSwarmSDConfigs": { - "description": "DockerswarmSDConfigs defines a list of Dockerswarm service discovery configurations.", - "items": { - "description": "DockerSwarmSDConfig configurations allow retrieving scrape targets from Docker Swarm engine.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#dockerswarm_sd_config", - "properties": { - "authorization": { - "description": "Authorization header configuration to authenticate against the target HTTP endpoint.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "Optional HTTP basic authentication information.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "filters": { - "description": "Optional filters to limit the discovery process to a subset of available\nresources.\nThe available filters are listed in the upstream documentation:\nServices: https://docs.docker.com/engine/api/v1.40/#operation/ServiceList\nTasks: https://docs.docker.com/engine/api/v1.40/#operation/TaskList\nNodes: https://docs.docker.com/engine/api/v1.40/#operation/NodeList", - "items": { - "description": "Filter name and value pairs to limit the discovery process to a subset of available resources.", - "properties": { - "name": { - "description": "Name of the Filter.", - "type": "string" - }, - "values": { - "description": "Value to filter on.", - "items": { - "type": "string" - }, - "minItems": 1, - "type": "array" - } - }, - "required": [ - "name", - "values" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.", - "type": "boolean" - }, - "host": { - "description": "Address of the Docker daemon", - "pattern": "^[a-zA-Z][a-zA-Z0-9+.-]*://.+$", - "type": "string" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "Optional OAuth 2.0 configuration.\nCannot be set at the same time as `authorization`, or `basicAuth`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "port": { - "description": "The port to scrape metrics from, when `role` is nodes, and for discovered\ntasks and services that don't have published ports.", - "format": "int32", - "maximum": 65535, - "minimum": 0, - "type": "integer" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "The time after which the service discovery data is refreshed.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "role": { - "description": "Role of the targets to retrieve. Must be `Services`, `Tasks`, or `Nodes`.", - "enum": [ - "Services", - "Tasks", - "Nodes" - ], - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration to use on every scrape request", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "host", - "role" - ], - "type": "object" - }, - "type": "array" - }, - "ec2SDConfigs": { - "description": "EC2SDConfigs defines a list of EC2 service discovery configurations.", - "items": { - "description": "EC2SDConfig allow retrieving scrape targets from AWS EC2 instances.\nThe private IP address is used by default, but may be changed to the public IP address with relabeling.\nThe IAM credentials used must have the ec2:DescribeInstances permission to discover scrape targets\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#ec2_sd_config\n\nThe EC2 service discovery requires AWS API keys or role ARN for authentication.\nBasicAuth, Authorization and OAuth2 fields are not present on purpose.", - "properties": { - "accessKey": { - "description": "AccessKey is the AWS API key.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.\nIt requires Prometheus >= v2.41.0", - "type": "boolean" - }, - "filters": { - "description": "Filters can be used optionally to filter the instance list by other criteria.\nAvailable filter criteria can be found here:\nhttps://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html\nFilter API documentation: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Filter.html\nIt requires Prometheus >= v2.3.0", - "items": { - "description": "Filter name and value pairs to limit the discovery process to a subset of available resources.", - "properties": { - "name": { - "description": "Name of the Filter.", - "type": "string" - }, - "values": { - "description": "Value to filter on.", - "items": { - "type": "string" - }, - "minItems": 1, - "type": "array" - } - }, - "required": [ - "name", - "values" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.\nIt requires Prometheus >= v2.41.0", - "type": "boolean" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "port": { - "description": "The port to scrape metrics from. If using the public IP address, this must\ninstead be specified in the relabeling rule.", - "format": "int32", - "maximum": 65535, - "minimum": 0, - "type": "integer" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "RefreshInterval configures the refresh interval at which Prometheus will re-read the instance list.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "region": { - "description": "The AWS region.", - "minLength": 1, - "type": "string" - }, - "roleARN": { - "description": "AWS Role ARN, an alternative to using AWS API keys.", - "minLength": 1, - "type": "string" - }, - "secretKey": { - "description": "SecretKey is the AWS API secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "tlsConfig": { - "description": "TLS configuration to connect to the AWS EC2 API.\nIt requires Prometheus >= v2.41.0", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "type": "array" - }, - "enableCompression": { - "description": "When false, Prometheus will request uncompressed response from the scraped target.\n\nIt requires Prometheus >= v2.49.0.\n\nIf unset, Prometheus uses true by default.", - "type": "boolean" - }, - "eurekaSDConfigs": { - "description": "EurekaSDConfigs defines a list of Eureka service discovery configurations.", - "items": { - "description": "Eureka SD configurations allow retrieving scrape targets using the Eureka REST API.\nPrometheus will periodically check the REST endpoint and create a target for every app instance.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#eureka_sd_config", - "properties": { - "authorization": { - "description": "Authorization header to use on every scrape request.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth information to use on every scrape request.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.", - "type": "boolean" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "Optional OAuth 2.0 configuration.\nCannot be set at the same time as `authorization` or `basic_auth`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "Refresh interval to re-read the instance list.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "server": { - "description": "The URL to connect to the Eureka server.", - "minLength": 1, - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration applying to the target HTTP endpoint.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "server" - ], - "type": "object" - }, - "type": "array" - }, - "fileSDConfigs": { - "description": "FileSDConfigs defines a list of file service discovery configurations.", - "items": { - "description": "FileSDConfig defines a Prometheus file service discovery configuration\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config", - "properties": { - "files": { - "description": "List of files to be used for file discovery. Recommendation: use absolute paths. While relative paths work, the\nprometheus-operator project makes no guarantees about the working directory where the configuration file is\nstored.\nFiles must be mounted using Prometheus.ConfigMaps or Prometheus.Secrets.", - "items": { - "description": "SDFile represents a file used for service discovery", - "pattern": "^[^*]*(\\*[^/]*)?\\.(json|yml|yaml|JSON|YML|YAML)$", - "type": "string" - }, - "minItems": 1, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "refreshInterval": { - "description": "RefreshInterval configures the refresh interval at which Prometheus will reload the content of the files.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - } - }, - "required": [ - "files" - ], - "type": "object" - }, - "type": "array" - }, - "gceSDConfigs": { - "description": "GCESDConfigs defines a list of GCE service discovery configurations.", - "items": { - "description": "GCESDConfig configures scrape targets from GCP GCE instances.\nThe private IP address is used by default, but may be changed to\nthe public IP address with relabeling.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#gce_sd_config\n\nThe GCE service discovery will load the Google Cloud credentials\nfrom the file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable.\nSee https://cloud.google.com/kubernetes-engine/docs/tutorials/authenticating-to-cloud-platform\n\nA pre-requisite for using GCESDConfig is that a Secret containing valid\nGoogle Cloud credentials is mounted into the Prometheus or PrometheusAgent\npod via the `.spec.secrets` field and that the GOOGLE_APPLICATION_CREDENTIALS\nenvironment variable is set to /etc/prometheus/secrets//.", - "properties": { - "filter": { - "description": "Filter can be used optionally to filter the instance list by other criteria\nSyntax of this filter is described in the filter query parameter section:\nhttps://cloud.google.com/compute/docs/reference/latest/instances/list", - "type": "string" - }, - "port": { - "description": "The port to scrape metrics from. If using the public IP address, this must\ninstead be specified in the relabeling rule.", - "type": "integer" - }, - "project": { - "description": "The Google Cloud Project ID", - "minLength": 1, - "type": "string" - }, - "refreshInterval": { - "description": "RefreshInterval configures the refresh interval at which Prometheus will re-read the instance list.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "tagSeparator": { - "description": "The tag separator is used to separate the tags on concatenation", - "type": "string" - }, - "zone": { - "description": "The zone of the scrape targets. If you need multiple zones use multiple GCESDConfigs.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "project", - "zone" - ], - "type": "object" - }, - "type": "array" - }, - "hetznerSDConfigs": { - "description": "HetznerSDConfigs defines a list of Hetzner service discovery configurations.", - "items": { - "description": "HetznerSDConfig allow retrieving scrape targets from Hetzner Cloud API and Robot API.\nThis service discovery uses the public IPv4 address by default, but that can be changed with relabeling\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#hetzner_sd_config", - "properties": { - "authorization": { - "description": "Authorization header configuration, required when role is hcloud.\nRole robot does not support bearer token authentication.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth information to use on every scrape request, required when role is robot.\nRole hcloud does not support basic auth.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.", - "type": "boolean" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "Optional OAuth 2.0 configuration.\nCannot be used at the same time as `basic_auth` or `authorization`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "port": { - "description": "The port to scrape metrics from.", - "type": "integer" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "The time after which the servers are refreshed.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "role": { - "description": "The Hetzner role of entities that should be discovered.", - "enum": [ - "hcloud", - "Hcloud", - "robot", - "Robot" - ], - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration to use on every scrape request.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "role" - ], - "type": "object" - }, - "type": "array" - }, - "honorLabels": { - "description": "HonorLabels chooses the metric's labels on collisions with target labels.", - "type": "boolean" - }, - "honorTimestamps": { - "description": "HonorTimestamps controls whether Prometheus respects the timestamps present in scraped data.", - "type": "boolean" - }, - "httpSDConfigs": { - "description": "HTTPSDConfigs defines a list of HTTP service discovery configurations.", - "items": { - "description": "HTTPSDConfig defines a prometheus HTTP service discovery configuration\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#http_sd_config", - "properties": { - "authorization": { - "description": "Authorization header configuration to authenticate against the target HTTP endpoint.\nCannot be set at the same time as `oAuth2`, or `basicAuth`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth information to authenticate against the target HTTP endpoint.\nMore info: https://prometheus.io/docs/operating/configuration/#endpoints\nCannot be set at the same time as `authorization`, or `oAuth2`.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.", - "type": "boolean" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "Optional OAuth 2.0 configuration to authenticate against the target HTTP endpoint.\nCannot be set at the same time as `authorization`, or `basicAuth`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "RefreshInterval configures the refresh interval at which Prometheus will re-query the\nendpoint to update the target list.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration applying to the target HTTP endpoint.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "url": { - "description": "URL from which the targets are fetched.", - "minLength": 1, - "pattern": "^http(s)?://.+$", - "type": "string" - } - }, - "required": [ - "url" - ], - "type": "object" - }, - "type": "array" - }, - "ionosSDConfigs": { - "description": "IonosSDConfigs defines a list of IONOS service discovery configurations.", - "items": { - "description": "IonosSDConfig configurations allow retrieving scrape targets from IONOS resources.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#ionos_sd_config", - "properties": { - "authorization": { - "description": "Authorization` header configuration, required when using IONOS.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "datacenterID": { - "description": "The unique ID of the IONOS data center.", - "minLength": 1, - "type": "string" - }, - "enableHTTP2": { - "description": "Configure whether to enable HTTP2.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether the HTTP requests should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "port": { - "description": "Port to scrape the metrics from.", - "format": "int32", - "maximum": 65535, - "minimum": 0, - "type": "integer" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "Refresh interval to re-read the list of resources.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the IONOS API.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "authorization", - "datacenterID" - ], - "type": "object" - }, - "type": "array" - }, - "jobName": { - "description": "The value of the `job` label assigned to the scraped metrics by default.\n\nThe `job_name` field in the rendered scrape configuration is always controlled by the\noperator to prevent duplicate job names, which Prometheus does not allow. Instead the\n`job` label is set by means of relabeling configs.", - "minLength": 1, - "type": "string" - }, - "keepDroppedTargets": { - "description": "Per-scrape limit on the number of targets dropped by relabeling\nthat will be kept in memory. 0 means no limit.\n\nIt requires Prometheus >= v2.47.0.", - "format": "int64", - "type": "integer" - }, - "kubernetesSDConfigs": { - "description": "KubernetesSDConfigs defines a list of Kubernetes service discovery configurations.", - "items": { - "description": "KubernetesSDConfig allows retrieving scrape targets from Kubernetes' REST API.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config", - "properties": { - "apiServer": { - "description": "The API server address consisting of a hostname or IP address followed\nby an optional port number.\nIf left empty, Prometheus is assumed to run inside\nof the cluster. It will discover API servers automatically and use the pod's\nCA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/.", - "minLength": 1, - "type": "string" - }, - "attachMetadata": { - "description": "Optional metadata to attach to discovered targets.\nIt requires Prometheus >= v2.35.0 when using the `Pod` role and\nPrometheus >= v2.37.0 for `Endpoints` and `Endpointslice` roles.", - "properties": { - "node": { - "description": "Attaches node metadata to discovered targets.\nWhen set to true, Prometheus must have the `get` permission on the\n`Nodes` objects.\nOnly valid for Pod, Endpoint and Endpointslice roles.", - "type": "boolean" - } - }, - "type": "object" - }, - "authorization": { - "description": "Authorization header to use on every scrape request.\nCannot be set at the same time as `basicAuth`, or `oauth2`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth information to use on every scrape request.\nCannot be set at the same time as `authorization`, or `oauth2`.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.", - "type": "boolean" - }, - "namespaces": { - "description": "Optional namespace discovery. If omitted, Prometheus discovers targets across all namespaces.", - "properties": { - "names": { - "description": "List of namespaces where to watch for resources.\nIf empty and `ownNamespace` isn't true, Prometheus watches for resources in all namespaces.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "ownNamespace": { - "description": "Includes the namespace in which the Prometheus pod runs to the list of watched namespaces.", - "type": "boolean" - } - }, - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "Optional OAuth 2.0 configuration.\nCannot be set at the same time as `authorization`, or `basicAuth`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "role": { - "description": "Role of the Kubernetes entities that should be discovered.\nRole `Endpointslice` requires Prometheus >= v2.21.0", - "enum": [ - "Pod", - "Endpoints", - "Ingress", - "Service", - "Node", - "EndpointSlice" - ], - "type": "string" - }, - "selectors": { - "description": "Selector to select objects.\nIt requires Prometheus >= v2.17.0", - "items": { - "description": "K8SSelectorConfig is Kubernetes Selector Config", - "properties": { - "field": { - "description": "An optional field selector to limit the service discovery to resources which have fields with specific values.\ne.g: `metadata.name=foobar`", - "minLength": 1, - "type": "string" - }, - "label": { - "description": "An optional label selector to limit the service discovery to resources with specific labels and label values.\ne.g: `node.kubernetes.io/instance-type=master`", - "minLength": 1, - "type": "string" - }, - "role": { - "description": "Role specifies the type of Kubernetes resource to limit the service discovery to.\nAccepted values are: Node, Pod, Endpoints, EndpointSlice, Service, Ingress.", - "enum": [ - "Pod", - "Endpoints", - "Ingress", - "Service", - "Node", - "EndpointSlice" - ], - "type": "string" - } - }, - "required": [ - "role" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "role" - ], - "x-kubernetes-list-type": "map" - }, - "tlsConfig": { - "description": "TLS configuration to connect to the Kubernetes API.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "role" - ], - "type": "object" - }, - "type": "array" - }, - "kumaSDConfigs": { - "description": "KumaSDConfigs defines a list of Kuma service discovery configurations.", - "items": { - "description": "KumaSDConfig allow retrieving scrape targets from Kuma's control plane.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kuma_sd_config", - "properties": { - "authorization": { - "description": "Authorization header to use on every scrape request.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth information to use on every scrape request.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientID": { - "description": "Client id is used by Kuma Control Plane to compute Monitoring Assignment for specific Prometheus backend.", - "type": "string" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "fetchTimeout": { - "description": "The time after which the monitoring assignments are refreshed.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.", - "type": "boolean" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "Optional OAuth 2.0 configuration.\nCannot be set at the same time as `authorization`, or `basicAuth`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "The time to wait between polling update requests.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "server": { - "description": "Address of the Kuma Control Plane's MADS xDS server.", - "minLength": 1, - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration to use on every scrape request", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "server" - ], - "type": "object" - }, - "type": "array" - }, - "labelLimit": { - "description": "Per-scrape limit on number of labels that will be accepted for a sample.\nOnly valid in Prometheus versions 2.27.0 and newer.", - "format": "int64", - "type": "integer" - }, - "labelNameLengthLimit": { - "description": "Per-scrape limit on length of labels name that will be accepted for a sample.\nOnly valid in Prometheus versions 2.27.0 and newer.", - "format": "int64", - "type": "integer" - }, - "labelValueLengthLimit": { - "description": "Per-scrape limit on length of labels value that will be accepted for a sample.\nOnly valid in Prometheus versions 2.27.0 and newer.", - "format": "int64", - "type": "integer" - }, - "lightSailSDConfigs": { - "description": "LightsailSDConfigs defines a list of Lightsail service discovery configurations.", - "items": { - "description": "LightSailSDConfig configurations allow retrieving scrape targets from AWS Lightsail instances.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#lightsail_sd_config", - "properties": { - "accessKey": { - "description": "AccessKey is the AWS API key.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "authorization": { - "description": "Optional `authorization` HTTP header configuration.\nCannot be set at the same time as `basicAuth`, or `oauth2`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "Optional HTTP basic authentication information.\nCannot be set at the same time as `authorization`, or `oauth2`.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "enableHTTP2": { - "description": "Configure whether to enable HTTP2.", - "type": "boolean" - }, - "endpoint": { - "description": "Custom endpoint to be used.", - "minLength": 1, - "type": "string" - }, - "followRedirects": { - "description": "Configure whether the HTTP requests should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "Optional OAuth2.0 configuration.\nCannot be set at the same time as `basicAuth`, or `authorization`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "port": { - "description": "Port to scrape the metrics from.\nIf using the public IP address, this must instead be specified in the relabeling rule.", - "format": "int32", - "maximum": 65535, - "minimum": 0, - "type": "integer" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "Refresh interval to re-read the list of instances.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "region": { - "description": "The AWS region.", - "minLength": 1, - "type": "string" - }, - "roleARN": { - "description": "AWS Role ARN, an alternative to using AWS API keys.", - "type": "string" - }, - "secretKey": { - "description": "SecretKey is the AWS API secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "tlsConfig": { - "description": "TLS configuration to connect to the Puppet DB.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "type": "array" - }, - "linodeSDConfigs": { - "description": "LinodeSDConfigs defines a list of Linode service discovery configurations.", - "items": { - "description": "LinodeSDConfig configurations allow retrieving scrape targets from Linode's Linode APIv4.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#linode_sd_config", - "properties": { - "authorization": { - "description": "Authorization header configuration.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.", - "type": "boolean" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "Optional OAuth 2.0 configuration.\nCannot be used at the same time as `authorization`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "port": { - "description": "Default port to scrape metrics from.", - "format": "int32", - "maximum": 65535, - "minimum": 0, - "type": "integer" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "Time after which the linode instances are refreshed.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "region": { - "description": "Optional region to filter on.", - "minLength": 1, - "type": "string" - }, - "tagSeparator": { - "description": "The string by which Linode Instance tags are joined into the tag label.", - "minLength": 1, - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration applying to the target HTTP endpoint.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "type": "array" - }, - "metricRelabelings": { - "description": "MetricRelabelConfigs to apply to samples before ingestion.", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "minItems": 1, - "type": "array" - }, - "metricsPath": { - "description": "MetricsPath HTTP path to scrape for metrics. If empty, Prometheus uses the default value (e.g. /metrics).", - "minLength": 1, - "type": "string" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "nomadSDConfigs": { - "description": "NomadSDConfigs defines a list of Nomad service discovery configurations.", - "items": { - "description": "NomadSDConfig configurations allow retrieving scrape targets from Nomad's Service API.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#nomad_sd_config", - "properties": { - "allowStale": { - "description": "The information to access the Nomad API. It is to be defined\nas the Nomad documentation requires.", - "type": "boolean" - }, - "authorization": { - "description": "Authorization header to use on every scrape request.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "BasicAuth information to use on every scrape request.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.", - "type": "boolean" - }, - "namespace": { - "type": "string" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "Optional OAuth 2.0 configuration.\nCannot be set at the same time as `authorization` or `basic_auth`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "Duration is a valid time duration that can be parsed by Prometheus model.ParseDuration() function.\nSupported units: y, w, d, h, m, s, ms\nExamples: `30s`, `1m`, `1h20m15s`, `15d`", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "region": { - "type": "string" - }, - "server": { - "minLength": 1, - "type": "string" - }, - "tagSeparator": { - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration applying to the target HTTP endpoint.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "server" - ], - "type": "object" - }, - "type": "array" - }, - "oauth2": { - "description": "OAuth2 configuration to use on every scrape request.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "openstackSDConfigs": { - "description": "OpenStackSDConfigs defines a list of OpenStack service discovery configurations.", - "items": { - "description": "OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config", - "properties": { - "allTenants": { - "description": "Whether the service discovery should list all instances for all projects.\nIt is only relevant for the 'instance' role and usually requires admin permissions.", - "type": "boolean" - }, - "applicationCredentialId": { - "description": "ApplicationCredentialID", - "type": "string" - }, - "applicationCredentialName": { - "description": "The ApplicationCredentialID or ApplicationCredentialName fields are\nrequired if using an application credential to authenticate. Some providers\nallow you to create an application credential to authenticate rather than a\npassword.", - "type": "string" - }, - "applicationCredentialSecret": { - "description": "The applicationCredentialSecret field is required if using an application\ncredential to authenticate.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "availability": { - "description": "Availability of the endpoint to connect to.", - "enum": [ - "Public", - "public", - "Admin", - "admin", - "Internal", - "internal" - ], - "type": "string" - }, - "domainID": { - "description": "DomainID", - "type": "string" - }, - "domainName": { - "description": "At most one of domainId and domainName must be provided if using username\nwith Identity V3. Otherwise, either are optional.", - "type": "string" - }, - "identityEndpoint": { - "description": "IdentityEndpoint specifies the HTTP endpoint that is required to work with\nthe Identity API of the appropriate version.", - "type": "string" - }, - "password": { - "description": "Password for the Identity V2 and V3 APIs. Consult with your provider's\ncontrol panel to discover your account's preferred method of authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "port": { - "description": "The port to scrape metrics from. If using the public IP address, this must\ninstead be specified in the relabeling rule.", - "type": "integer" - }, - "projectID": { - "description": " ProjectID", - "type": "string" - }, - "projectName": { - "description": "The ProjectId and ProjectName fields are optional for the Identity V2 API.\nSome providers allow you to specify a ProjectName instead of the ProjectId.\nSome require both. Your provider's authentication policies will determine\nhow these fields influence authentication.", - "type": "string" - }, - "refreshInterval": { - "description": "Refresh interval to re-read the instance list.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "region": { - "description": "The OpenStack Region.", - "minLength": 1, - "type": "string" - }, - "role": { - "description": "The OpenStack role of entities that should be discovered.", - "enum": [ - "Instance", - "instance", - "Hypervisor", - "hypervisor" - ], - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration applying to the target HTTP endpoint.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "userid": { - "description": "UserID", - "type": "string" - }, - "username": { - "description": "Username is required if using Identity V2 API. Consult with your provider's\ncontrol panel to discover your account's username.\nIn Identity V3, either userid or a combination of username\nand domainId or domainName are needed", - "type": "string" - } - }, - "required": [ - "region", - "role" - ], - "type": "object" - }, - "type": "array" - }, - "ovhcloudSDConfigs": { - "description": "OVHCloudSDConfigs defines a list of OVHcloud service discovery configurations.", - "items": { - "description": "OVHCloudSDConfig configurations allow retrieving scrape targets from OVHcloud's dedicated servers and VPS using their API.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#ovhcloud_sd_config", - "properties": { - "applicationKey": { - "description": "Access key to use. https://api.ovh.com.", - "minLength": 1, - "type": "string" - }, - "applicationSecret": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "consumerKey": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpoint": { - "description": "Custom endpoint to be used.", - "minLength": 1, - "type": "string" - }, - "refreshInterval": { - "description": "Refresh interval to re-read the resources list.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "service": { - "allOf": [ - { - "enum": [ - "VPS", - "DedicatedServer" - ] - }, - { - "enum": [ - "VPS", - "DedicatedServer" - ] - } - ], - "description": "Service of the targets to retrieve. Must be `VPS` or `DedicatedServer`.", - "type": "string" - } - }, - "required": [ - "applicationKey", - "applicationSecret", - "consumerKey", - "service" - ], - "type": "object" - }, - "type": "array" - }, - "params": { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "description": "Optional HTTP URL parameters", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "puppetDBSDConfigs": { - "description": "PuppetDBSDConfigs defines a list of PuppetDB service discovery configurations.", - "items": { - "description": "PuppetDBSDConfig configurations allow retrieving scrape targets from PuppetDB resources.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#puppetdb_sd_config", - "properties": { - "authorization": { - "description": "Optional `authorization` HTTP header configuration.\nCannot be set at the same time as `basicAuth`, or `oauth2`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "Optional HTTP basic authentication information.\nCannot be set at the same time as `authorization`, or `oauth2`.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "enableHTTP2": { - "description": "Configure whether to enable HTTP2.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether the HTTP requests should follow HTTP 3xx redirects.", - "type": "boolean" - }, - "includeParameters": { - "description": "Whether to include the parameters as meta labels.\nNote: Enabling this exposes parameters in the Prometheus UI and API. Make sure\nthat you don't have secrets exposed as parameters if you enable this.", - "type": "boolean" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "oauth2": { - "description": "Optional OAuth2.0 configuration.\nCannot be set at the same time as `basicAuth`, or `authorization`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "port": { - "description": "Port to scrape the metrics from.", - "format": "int32", - "maximum": 65535, - "minimum": 0, - "type": "integer" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "query": { - "description": "Puppet Query Language (PQL) query. Only resources are supported.\nhttps://puppet.com/docs/puppetdb/latest/api/query/v4/pql.html", - "minLength": 1, - "type": "string" - }, - "refreshInterval": { - "description": "Refresh interval to re-read the list of resources.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "tlsConfig": { - "description": "TLS configuration to connect to the Puppet DB.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "url": { - "description": "The URL of the PuppetDB root query endpoint.", - "minLength": 1, - "pattern": "^http(s)?://.+$", - "type": "string" - } - }, - "required": [ - "query", - "url" - ], - "type": "object" - }, - "type": "array" - }, - "relabelings": { - "description": "RelabelConfigs defines how to rewrite the target's labels before scraping.\nPrometheus Operator automatically adds relabelings for a few standard Kubernetes fields.\nThe original scrape job's name is available via the `__tmp_prometheus_job_name` label.\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "minItems": 1, - "type": "array" - }, - "sampleLimit": { - "description": "SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.", - "format": "int64", - "type": "integer" - }, - "scalewaySDConfigs": { - "description": "ScalewaySDConfigs defines a list of Scaleway instances and baremetal service discovery configurations.", - "items": { - "description": "ScalewaySDConfig configurations allow retrieving scrape targets from Scaleway instances and baremetal services.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scaleway_sd_config", - "properties": { - "accessKey": { - "description": "Access key to use. https://console.scaleway.com/project/credentials", - "minLength": 1, - "type": "string" - }, - "apiURL": { - "description": "API URL to use when doing the server listing requests.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "enableHTTP2": { - "description": "Whether to enable HTTP2.", - "type": "boolean" - }, - "followRedirects": { - "description": "Configure whether HTTP requests follow HTTP 3xx redirects.", - "type": "boolean" - }, - "nameFilter": { - "description": "NameFilter specify a name filter (works as a LIKE) to apply on the server listing request.", - "minLength": 1, - "type": "string" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "port": { - "description": "The port to scrape metrics from.", - "format": "int32", - "maximum": 65535, - "minimum": 0, - "type": "integer" - }, - "projectID": { - "description": "Project ID of the targets.", - "minLength": 1, - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "refreshInterval": { - "description": "Refresh interval to re-read the list of instances.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "role": { - "description": "Service of the targets to retrieve. Must be `Instance` or `Baremetal`.", - "enum": [ - "Instance", - "Baremetal" - ], - "type": "string" - }, - "secretKey": { - "description": "Secret key to use when listing targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "tagsFilter": { - "description": "TagsFilter specify a tag filter (a server needs to have all defined tags to be listed) to apply on the server listing request.", - "items": { - "type": "string" - }, - "minItems": 1, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use on every scrape request", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "zone": { - "description": "Zone is the availability zone of your targets (e.g. fr-par-1).", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "accessKey", - "projectID", - "role", - "secretKey" - ], - "type": "object" - }, - "type": "array" - }, - "scheme": { - "description": "Configures the protocol scheme used for requests.\nIf empty, Prometheus uses HTTP by default.", - "enum": [ - "HTTP", - "HTTPS" - ], - "type": "string" - }, - "scrapeClass": { - "description": "The scrape class to apply.", - "minLength": 1, - "type": "string" - }, - "scrapeInterval": { - "description": "ScrapeInterval is the interval between consecutive scrapes.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "scrapeProtocols": { - "description": "The protocols to negotiate during a scrape. It tells clients the\nprotocols supported by Prometheus in order of preference (from most to least preferred).\n\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.49.0.", - "items": { - "description": "ScrapeProtocol represents a protocol used by Prometheus for scraping metrics.\nSupported values are:\n* `OpenMetricsText0.0.1`\n* `OpenMetricsText1.0.0`\n* `PrometheusProto`\n* `PrometheusText0.0.4`", - "enum": [ - "PrometheusProto", - "OpenMetricsText0.0.1", - "OpenMetricsText1.0.0", - "PrometheusText0.0.4" - ], - "type": "string" - }, - "minItems": 1, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "scrapeTimeout": { - "description": "ScrapeTimeout is the number of seconds to wait until a scrape request times out.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "staticConfigs": { - "description": "StaticConfigs defines a list of static targets with a common label set.", - "items": { - "description": "StaticConfig defines a Prometheus static configuration.\nSee https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config", - "properties": { - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels assigned to all metrics scraped from the targets.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "targets": { - "description": "List of targets for this static configuration.", - "items": { - "description": "Target represents a target for Prometheus to scrape", - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "type": "array" - }, - "targetLimit": { - "description": "TargetLimit defines a limit on the number of scraped targets that will be accepted.", - "format": "int64", - "type": "integer" - }, - "tlsConfig": { - "description": "TLS configuration to use on every scrape request", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "trackTimestampsStaleness": { - "description": "TrackTimestampsStaleness whether Prometheus tracks staleness of\nthe metrics that have an explicit timestamp present in scraped data.\nHas no effect if `honorTimestamps` is false.\nIt requires Prometheus >= v2.48.0.", - "type": "boolean" - } - }, - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "served": true, - "storage": true - } - ] - } -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/servicemonitors-crd.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/servicemonitors-crd.json deleted file mode 100644 index 4edf40ef8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/servicemonitors-crd.json +++ /dev/null @@ -1,1030 +0,0 @@ -{ - "apiVersion": "apiextensions.k8s.io/v1", - "kind": "CustomResourceDefinition", - "metadata": { - "annotations": { - "controller-gen.kubebuilder.io/version": "v0.16.1", - "operator.prometheus.io/version": "0.76.0" - }, - "name": "servicemonitors.monitoring.coreos.com" - }, - "spec": { - "group": "monitoring.coreos.com", - "names": { - "categories": [ - "prometheus-operator" - ], - "kind": "ServiceMonitor", - "listKind": "ServiceMonitorList", - "plural": "servicemonitors", - "shortNames": [ - "smon" - ], - "singular": "servicemonitor" - }, - "scope": "Namespaced", - "versions": [ - { - "name": "v1", - "schema": { - "openAPIV3Schema": { - "description": "The `ServiceMonitor` custom resource definition (CRD) defines how `Prometheus` and `PrometheusAgent` can scrape metrics from a group of services.\nAmong other things, it allows to specify:\n* The services to scrape via label selectors.\n* The container ports to scrape.\n* Authentication credentials to use.\n* Target and metric relabeling.\n\n`Prometheus` and `PrometheusAgent` objects select `ServiceMonitor` objects using label and namespace selectors.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "type": "object" - }, - "spec": { - "description": "Specification of desired Service selection for target discovery by\nPrometheus.", - "properties": { - "attachMetadata": { - "description": "`attachMetadata` defines additional metadata which is added to the\ndiscovered targets.\n\nIt requires Prometheus >= v2.37.0.", - "properties": { - "node": { - "description": "When set to true, Prometheus attaches node metadata to the discovered\ntargets.\n\nThe Prometheus service account must have the `list` and `watch`\npermissions on the `Nodes` objects.", - "type": "boolean" - } - }, - "type": "object" - }, - "bodySizeLimit": { - "description": "When defined, bodySizeLimit specifies a job level limit on the size\nof uncompressed response body that will be accepted by Prometheus.\n\nIt requires Prometheus >= v2.28.0.", - "pattern": "(^0|([0-9]*[.])?[0-9]+((K|M|G|T|E|P)i?)?B)$", - "type": "string" - }, - "endpoints": { - "description": "List of endpoints part of this ServiceMonitor.\nDefines how to scrape metrics from Kubernetes [Endpoints](https://kubernetes.io/docs/concepts/services-networking/service/#endpoints) objects.\nIn most cases, an Endpoints object is backed by a Kubernetes [Service](https://kubernetes.io/docs/concepts/services-networking/service/) object with the same name and labels.", - "items": { - "description": "Endpoint defines an endpoint serving Prometheus metrics to be scraped by\nPrometheus.", - "properties": { - "authorization": { - "description": "`authorization` configures the Authorization header credentials to use when\nscraping the target.\n\nCannot be set at the same time as `basicAuth`, or `oauth2`.", - "properties": { - "credentials": { - "description": "Selects a key of a Secret in the namespace that contains the credentials for authentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": { - "description": "Defines the authentication type. The value is case-insensitive.\n\n\"Basic\" is not a supported value.\n\nDefault: \"Bearer\"", - "type": "string" - } - }, - "type": "object" - }, - "basicAuth": { - "description": "`basicAuth` configures the Basic Authentication credentials to use when\nscraping the target.\n\nCannot be set at the same time as `authorization`, or `oauth2`.", - "properties": { - "password": { - "description": "`password` specifies a key of a Secret containing the password for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "username": { - "description": "`username` specifies a key of a Secret containing the username for\nauthentication.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "bearerTokenFile": { - "description": "File to read bearer token for scraping the target.\n\nDeprecated: use `authorization` instead.", - "type": "string" - }, - "bearerTokenSecret": { - "description": "`bearerTokenSecret` specifies a key of a Secret containing the bearer\ntoken for scraping targets. The secret needs to be in the same namespace\nas the ServiceMonitor object and readable by the Prometheus Operator.\n\nDeprecated: use `authorization` instead.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "enableHttp2": { - "description": "`enableHttp2` can be used to disable HTTP2 when scraping the target.", - "type": "boolean" - }, - "filterRunning": { - "description": "When true, the pods which are not running (e.g. either in Failed or\nSucceeded state) are dropped during the target discovery.\n\nIf unset, the filtering is enabled.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase", - "type": "boolean" - }, - "followRedirects": { - "description": "`followRedirects` defines whether the scrape requests should follow HTTP\n3xx redirects.", - "type": "boolean" - }, - "honorLabels": { - "description": "When true, `honorLabels` preserves the metric's labels when they collide\nwith the target's labels.", - "type": "boolean" - }, - "honorTimestamps": { - "description": "`honorTimestamps` controls whether Prometheus preserves the timestamps\nwhen exposed by the target.", - "type": "boolean" - }, - "interval": { - "description": "Interval at which Prometheus scrapes the metrics from the target.\n\nIf empty, Prometheus uses the global scrape interval.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "metricRelabelings": { - "description": "`metricRelabelings` configures the relabeling rules to apply to the\nsamples before ingestion.", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "oauth2": { - "description": "`oauth2` configures the OAuth2 settings to use when scraping the target.\n\nIt requires Prometheus >= 2.27.0.\n\nCannot be set at the same time as `authorization`, or `basicAuth`.", - "properties": { - "clientId": { - "description": "`clientId` specifies a key of a Secret or ConfigMap containing the\nOAuth2 client's ID.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "clientSecret": { - "description": "`clientSecret` specifies a key of a Secret containing the OAuth2\nclient's secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "endpointParams": { - "additionalProperties": { - "type": "string" - }, - "description": "`endpointParams` configures the HTTP parameters to append to the token\nURL.", - "type": "object" - }, - "noProxy": { - "description": "`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names\nthat should be excluded from proxying. IP and domain names can\ncontain port numbers.\n\nIt requires Prometheus >= v2.43.0.", - "type": "string" - }, - "proxyConnectHeader": { - "additionalProperties": { - "items": { - "description": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "description": "ProxyConnectHeader optionally specifies headers to send to\nproxies during CONNECT requests.\n\nIt requires Prometheus >= v2.43.0.", - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "proxyFromEnvironment": { - "description": "Whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.43.0.", - "type": "boolean" - }, - "proxyUrl": { - "description": "`proxyURL` defines the HTTP proxy server to use.", - "pattern": "^http(s)?://.+$", - "type": "string" - }, - "scopes": { - "description": "`scopes` defines the OAuth2 scopes used for the token request.", - "items": { - "type": "string" - }, - "type": "array" - }, - "tlsConfig": { - "description": "TLS configuration to use when connecting to the OAuth2 server.\nIt requires Prometheus >= v2.43.0.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "tokenUrl": { - "description": "`tokenURL` configures the URL to fetch the token from.", - "minLength": 1, - "type": "string" - } - }, - "required": [ - "clientId", - "clientSecret", - "tokenUrl" - ], - "type": "object" - }, - "params": { - "additionalProperties": { - "items": { - "type": "string" - }, - "type": "array" - }, - "description": "params define optional HTTP URL parameters.", - "type": "object" - }, - "path": { - "description": "HTTP path from which to scrape for metrics.\n\nIf empty, Prometheus uses the default value (e.g. `/metrics`).", - "type": "string" - }, - "port": { - "description": "Name of the Service port which this endpoint refers to.\n\nIt takes precedence over `targetPort`.", - "type": "string" - }, - "proxyUrl": { - "description": "`proxyURL` configures the HTTP Proxy URL (e.g.\n\"http://proxyserver:2195\") to go through when scraping the target.", - "type": "string" - }, - "relabelings": { - "description": "`relabelings` configures the relabeling rules to apply the target's\nmetadata labels.\n\nThe Operator automatically adds relabelings for a few standard Kubernetes fields.\n\nThe original scrape job's name is available via the `__tmp_prometheus_job_name` label.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "items": { - "description": "RelabelConfig allows dynamic rewriting of the label set for targets, alerts,\nscraped samples and remote write samples.\n\nMore info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config", - "properties": { - "action": { - "default": "replace", - "description": "Action to perform based on the regex matching.\n\n`Uppercase` and `Lowercase` actions require Prometheus >= v2.36.0.\n`DropEqual` and `KeepEqual` actions require Prometheus >= v2.41.0.\n\nDefault: \"Replace\"", - "enum": [ - "replace", - "Replace", - "keep", - "Keep", - "drop", - "Drop", - "hashmod", - "HashMod", - "labelmap", - "LabelMap", - "labeldrop", - "LabelDrop", - "labelkeep", - "LabelKeep", - "lowercase", - "Lowercase", - "uppercase", - "Uppercase", - "keepequal", - "KeepEqual", - "dropequal", - "DropEqual" - ], - "type": "string" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.\n\nOnly applicable when the action is `HashMod`.", - "format": "int64", - "type": "integer" - }, - "regex": { - "description": "Regular expression against which the extracted value is matched.", - "type": "string" - }, - "replacement": { - "description": "Replacement value against which a Replace action is performed if the\nregular expression matches.\n\nRegex capture groups are available.", - "type": "string" - }, - "separator": { - "description": "Separator is the string between concatenated SourceLabels.", - "type": "string" - }, - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is\nconcatenated using the configured Separator and matched against the\nconfigured regular expression.", - "items": { - "description": "LabelName is a valid Prometheus label name which may only contain ASCII\nletters, numbers, as well as underscores.", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$", - "type": "string" - }, - "type": "array" - }, - "targetLabel": { - "description": "Label to which the resulting string is written in a replacement.\n\nIt is mandatory for `Replace`, `HashMod`, `Lowercase`, `Uppercase`,\n`KeepEqual` and `DropEqual` actions.\n\nRegex capture groups are available.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "scheme": { - "description": "HTTP scheme to use for scraping.\n\n`http` and `https` are the expected values unless you rewrite the\n`__scheme__` label via relabeling.\n\nIf empty, Prometheus uses the default value `http`.", - "enum": [ - "http", - "https" - ], - "type": "string" - }, - "scrapeTimeout": { - "description": "Timeout after which Prometheus considers the scrape to be failed.\n\nIf empty, Prometheus uses the global scrape timeout unless it is less\nthan the target's scrape interval value in which the latter is used.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "targetPort": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the target port of the `Pod` object behind the\nService. The port must be specified with the container's port property.", - "x-kubernetes-int-or-string": true - }, - "tlsConfig": { - "description": "TLS configuration to use when scraping the target.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "caFile": { - "description": "Path to the CA cert in the Prometheus container to use for the targets.", - "type": "string" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "certFile": { - "description": "Path to the client cert file in the Prometheus container for the targets.", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keyFile": { - "description": "Path to the client key file in the Prometheus container for the targets.", - "type": "string" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "trackTimestampsStaleness": { - "description": "`trackTimestampsStaleness` defines whether Prometheus tracks staleness of\nthe metrics that have an explicit timestamp present in scraped data.\nHas no effect if `honorTimestamps` is false.\n\nIt requires Prometheus >= v2.48.0.", - "type": "boolean" - } - }, - "type": "object" - }, - "type": "array" - }, - "jobLabel": { - "description": "`jobLabel` selects the label from the associated Kubernetes `Service`\nobject which will be used as the `job` label for all metrics.\n\nFor example if `jobLabel` is set to `foo` and the Kubernetes `Service`\nobject is labeled with `foo: bar`, then Prometheus adds the `job=\"bar\"`\nlabel to all ingested metrics.\n\nIf the value of this field is empty or if the label doesn't exist for\nthe given Service, the `job` label of the metrics defaults to the name\nof the associated Kubernetes `Service`.", - "type": "string" - }, - "keepDroppedTargets": { - "description": "Per-scrape limit on the number of targets dropped by relabeling\nthat will be kept in memory. 0 means no limit.\n\nIt requires Prometheus >= v2.47.0.", - "format": "int64", - "type": "integer" - }, - "labelLimit": { - "description": "Per-scrape limit on number of labels that will be accepted for a sample.\n\nIt requires Prometheus >= v2.27.0.", - "format": "int64", - "type": "integer" - }, - "labelNameLengthLimit": { - "description": "Per-scrape limit on length of labels name that will be accepted for a sample.\n\nIt requires Prometheus >= v2.27.0.", - "format": "int64", - "type": "integer" - }, - "labelValueLengthLimit": { - "description": "Per-scrape limit on length of labels value that will be accepted for a sample.\n\nIt requires Prometheus >= v2.27.0.", - "format": "int64", - "type": "integer" - }, - "namespaceSelector": { - "description": "`namespaceSelector` defines in which namespace(s) Prometheus should discover the services.\nBy default, the services are discovered in the same namespace as the `ServiceMonitor` object but it is possible to select pods across different/all namespaces.", - "properties": { - "any": { - "description": "Boolean describing whether all namespaces are selected in contrast to a\nlist restricting them.", - "type": "boolean" - }, - "matchNames": { - "description": "List of namespace names to select from.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "podTargetLabels": { - "description": "`podTargetLabels` defines the labels which are transferred from the\nassociated Kubernetes `Pod` object onto the ingested metrics.", - "items": { - "type": "string" - }, - "type": "array" - }, - "sampleLimit": { - "description": "`sampleLimit` defines a per-scrape limit on the number of scraped samples\nthat will be accepted.", - "format": "int64", - "type": "integer" - }, - "scrapeClass": { - "description": "The scrape class to apply.", - "minLength": 1, - "type": "string" - }, - "scrapeProtocols": { - "description": "`scrapeProtocols` defines the protocols to negotiate during a scrape. It tells clients the\nprotocols supported by Prometheus in order of preference (from most to least preferred).\n\nIf unset, Prometheus uses its default value.\n\nIt requires Prometheus >= v2.49.0.", - "items": { - "description": "ScrapeProtocol represents a protocol used by Prometheus for scraping metrics.\nSupported values are:\n* `OpenMetricsText0.0.1`\n* `OpenMetricsText1.0.0`\n* `PrometheusProto`\n* `PrometheusText0.0.4`", - "enum": [ - "PrometheusProto", - "OpenMetricsText0.0.1", - "OpenMetricsText1.0.0", - "PrometheusText0.0.4" - ], - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "selector": { - "description": "Label selector to select the Kubernetes `Endpoints` objects to scrape metrics from.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "targetLabels": { - "description": "`targetLabels` defines the labels which are transferred from the\nassociated Kubernetes `Service` object onto the ingested metrics.", - "items": { - "type": "string" - }, - "type": "array" - }, - "targetLimit": { - "description": "`targetLimit` defines a limit on the number of scraped targets that will\nbe accepted.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "endpoints", - "selector" - ], - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "served": true, - "storage": true - } - ] - } -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/thanosrulers-crd.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/thanosrulers-crd.json deleted file mode 100644 index ed2f6f673..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/thanosrulers-crd.json +++ /dev/null @@ -1,6707 +0,0 @@ -{ - "apiVersion": "apiextensions.k8s.io/v1", - "kind": "CustomResourceDefinition", - "metadata": { - "annotations": { - "controller-gen.kubebuilder.io/version": "v0.16.1", - "operator.prometheus.io/version": "0.76.0" - }, - "name": "thanosrulers.monitoring.coreos.com" - }, - "spec": { - "group": "monitoring.coreos.com", - "names": { - "categories": [ - "prometheus-operator" - ], - "kind": "ThanosRuler", - "listKind": "ThanosRulerList", - "plural": "thanosrulers", - "shortNames": [ - "ruler" - ], - "singular": "thanosruler" - }, - "scope": "Namespaced", - "versions": [ - { - "additionalPrinterColumns": [ - { - "description": "The version of Thanos Ruler", - "jsonPath": ".spec.version", - "name": "Version", - "type": "string" - }, - { - "description": "The number of desired replicas", - "jsonPath": ".spec.replicas", - "name": "Replicas", - "type": "integer" - }, - { - "description": "The number of ready replicas", - "jsonPath": ".status.availableReplicas", - "name": "Ready", - "type": "integer" - }, - { - "jsonPath": ".status.conditions[?(@.type == 'Reconciled')].status", - "name": "Reconciled", - "type": "string" - }, - { - "jsonPath": ".status.conditions[?(@.type == 'Available')].status", - "name": "Available", - "type": "string" - }, - { - "jsonPath": ".metadata.creationTimestamp", - "name": "Age", - "type": "date" - }, - { - "description": "Whether the resource reconciliation is paused or not", - "jsonPath": ".status.paused", - "name": "Paused", - "priority": 1, - "type": "boolean" - } - ], - "name": "v1", - "schema": { - "openAPIV3Schema": { - "description": "The `ThanosRuler` custom resource definition (CRD) defines a desired [Thanos Ruler](https://github.com/thanos-io/thanos/blob/main/docs/components/rule.md) setup to run in a Kubernetes cluster.\n\nA `ThanosRuler` instance requires at least one compatible Prometheus API endpoint (either Thanos Querier or Prometheus services).\n\nThe resource defines via label and namespace selectors which `PrometheusRule` objects should be associated to the deployed Thanos Ruler instances.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "type": "object" - }, - "spec": { - "description": "Specification of the desired behavior of the ThanosRuler cluster. More info:\nhttps://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "properties": { - "additionalArgs": { - "description": "AdditionalArgs allows setting additional arguments for the ThanosRuler container.\nIt is intended for e.g. activating hidden flags which are not supported by\nthe dedicated configuration options yet. The arguments are passed as-is to the\nThanosRuler container which may cause issues if they are invalid or not supported\nby the given ThanosRuler version.\nIn case of an argument conflict (e.g. an argument which is already set by the\noperator itself) or when providing an invalid argument the reconciliation will\nfail and an error will be logged.", - "items": { - "description": "Argument as part of the AdditionalArgs list.", - "properties": { - "name": { - "description": "Name of the argument, e.g. \"scrape.discovery-reload-interval\".", - "minLength": 1, - "type": "string" - }, - "value": { - "description": "Argument value, e.g. 30s. Can be empty for name-only arguments (e.g. --storage.tsdb.no-lockfile)", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "affinity": { - "description": "If specified, the pod's scheduling constraints.", - "properties": { - "nodeAffinity": { - "description": "Describes node affinity scheduling rules for the pod.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node matches the corresponding matchExpressions; the\nnode(s) with the highest sum are the most preferred.", - "items": { - "description": "An empty preferred scheduling term matches all objects with implicit weight 0\n(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", - "properties": { - "preference": { - "description": "A node selector term, associated with the corresponding weight.", - "properties": { - "matchExpressions": { - "description": "A list of node selector requirements by node's labels.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchFields": { - "description": "A list of node selector requirements by node's fields.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "weight": { - "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "preference", - "weight" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to an update), the system\nmay or may not try to eventually evict the pod from its node.", - "properties": { - "nodeSelectorTerms": { - "description": "Required. A list of node selector terms. The terms are ORed.", - "items": { - "description": "A null or empty node selector term matches no objects. The requirements of\nthem are ANDed.\nThe TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", - "properties": { - "matchExpressions": { - "description": "A list of node selector requirements by node's labels.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchFields": { - "description": "A list of node selector requirements by node's fields.", - "items": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "Represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", - "type": "string" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "nodeSelectorTerms" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "podAffinity": { - "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", - "items": { - "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "properties": { - "podAffinityTerm": { - "description": "Required. A pod affinity term, associated with the corresponding weight.", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "podAffinityTerm", - "weight" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", - "items": { - "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "podAntiAffinity": { - "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe anti-affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling anti-affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.", - "items": { - "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "properties": { - "podAffinityTerm": { - "description": "Required. A pod affinity term, associated with the corresponding weight.", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "podAffinityTerm", - "weight" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the anti-affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the anti-affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.", - "items": { - "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key matches that of any node on which\na pod of the set of pods is running", - "properties": { - "labelSelector": { - "description": "A label query over a set of resources, in this case pods.\nIf it's null, this PodAffinityTerm matches with no Pods.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both matchLabelKeys and labelSelector.\nAlso, matchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "mismatchLabelKeys": { - "description": "MismatchLabelKeys is a set of pod label keys to select which pods will\nbe taken into consideration. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`\nto select the group of existing pods which pods will be taken into consideration\nfor the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming\npod labels will be ignored. The default value is empty.\nThe same key is forbidden to exist in both mismatchLabelKeys and labelSelector.\nAlso, mismatchLabelKeys cannot be set when labelSelector isn't set.\nThis is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "namespaceSelector": { - "description": "A label query over the set of namespaces that the term applies to.\nThe term is applied to the union of the namespaces selected by this field\nand the ones listed in the namespaces field.\nnull selector and null or empty namespaces list means \"this pod's namespace\".\nAn empty selector ({}) matches all namespaces.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string" - } - }, - "required": [ - "topologyKey" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "alertDropLabels": { - "description": "AlertDropLabels configure the label names which should be dropped in ThanosRuler alerts.\nThe replica label `thanos_ruler_replica` will always be dropped in alerts.", - "items": { - "type": "string" - }, - "type": "array" - }, - "alertQueryUrl": { - "description": "The external Query URL the Thanos Ruler will set in the 'Source' field\nof all alerts.\nMaps to the '--alert.query-url' CLI arg.", - "type": "string" - }, - "alertRelabelConfigFile": { - "description": "AlertRelabelConfigFile specifies the path of the alert relabeling configuration file.\nWhen used alongside with AlertRelabelConfigs, alertRelabelConfigFile takes precedence.", - "type": "string" - }, - "alertRelabelConfigs": { - "description": "AlertRelabelConfigs configures alert relabeling in ThanosRuler.\nAlert relabel configurations must have the form as specified in the official Prometheus documentation:\nhttps://prometheus.io/docs/prometheus/latest/configuration/configuration/#alert_relabel_configs\nAlternative to AlertRelabelConfigFile, and lower order priority.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "alertmanagersConfig": { - "description": "Define configuration for connecting to alertmanager. Only available with thanos v0.10.0\nand higher. Maps to the `alertmanagers.config` arg.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "alertmanagersUrl": { - "description": "Define URLs to send alerts to Alertmanager. For Thanos v0.10.0 and higher,\nAlertManagersConfig should be used instead. Note: this field will be ignored\nif AlertManagersConfig is specified.\nMaps to the `alertmanagers.url` arg.", - "items": { - "type": "string" - }, - "type": "array" - }, - "containers": { - "description": "Containers allows injecting additional containers or modifying operator generated\ncontainers. This can be used to allow adding an authentication proxy to a ThanosRuler pod or\nto change the behavior of an operator generated container. Containers described here modify\nan operator generated container if they share the same name and modifications are done via a\nstrategic merge patch. The current container names are: `thanos-ruler` and `config-reloader`.\nOverriding containers is entirely outside the scope of what the maintainers will support and by doing\nso, you accept that this behaviour may break at any time without notice.", - "items": { - "description": "A single application container that you want to run within a pod.", - "properties": { - "args": { - "description": "Arguments to the entrypoint.\nThe container image's CMD is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell.\nThe container image's ENTRYPOINT is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "env": { - "description": "List of environment variables to set in the container.\nCannot be updated.", - "items": { - "description": "EnvVar represents an environment variable present in a Container.", - "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", - "type": "string" - }, - "value": { - "description": "Variable references $(VAR_NAME) are expanded\nusing the previously defined environment variables in the container and\nany service environment variables. If a variable cannot be resolved,\nthe reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n\"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\nEscaped references will never be expanded, regardless of whether the variable\nexists or not.\nDefaults to \"\".", - "type": "string" - }, - "valueFrom": { - "description": "Source for the environment variable's value. Cannot be used if value is not empty.", - "properties": { - "configMapKeyRef": { - "description": "Selects a key of a ConfigMap.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "fieldRef": { - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`,\nspec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secretKeyRef": { - "description": "Selects a key of a secret in the pod's namespace", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container.\nThe keys defined within a source must be a C_IDENTIFIER. All invalid keys\nwill be reported as an event when the container is starting. When a key exists in multiple\nsources, the value associated with the last source will take precedence.\nValues defined by an Env with a duplicate key will take precedence.\nCannot be updated.", - "items": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", - "properties": { - "configMapRef": { - "description": "The ConfigMap to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", - "type": "string" - }, - "secretRef": { - "description": "The Secret to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "image": { - "description": "Container image name.\nMore info: https://kubernetes.io/docs/concepts/containers/images\nThis field is optional to allow higher level config management to default or override\ncontainer images in workload controllers like Deployments and StatefulSets.", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy.\nOne of Always, Never, IfNotPresent.\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/containers/images#updating-images", - "type": "string" - }, - "lifecycle": { - "description": "Actions that the management system should take in response to container lifecycle events.\nCannot be updated.", - "properties": { - "postStart": { - "description": "PostStart is called immediately after a container is created. If the handler fails,\nthe container is terminated and restarted according to its restart policy.\nOther management of the container blocks until the hook completes.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - }, - "preStop": { - "description": "PreStop is called immediately before a container is terminated due to an\nAPI request or management event such as liveness/startup probe failure,\npreemption, resource contention, etc. The handler is not called if the\ncontainer crashes or exits. The Pod's termination grace period countdown begins before the\nPreStop hook is executed. Regardless of the outcome of the handler, the\ncontainer will eventually terminate within the Pod's termination grace\nperiod (unless delayed by finalizers). Other management of the container blocks until the hook completes\nor until the termination grace period is reached.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "livenessProbe": { - "description": "Periodic probe of container liveness.\nContainer will be restarted if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL.\nEach container in a pod must have a unique name (DNS_LABEL).\nCannot be updated.", - "type": "string" - }, - "ports": { - "description": "List of ports to expose from the container. Not specifying a port here\nDOES NOT prevent that port from being exposed. Any port which is\nlistening on the default \"0.0.0.0\" address inside a container will be\naccessible from the network.\nModifying this array with strategic merge patch may corrupt the data.\nFor more information See https://github.com/kubernetes/kubernetes/issues/108255.\nCannot be updated.", - "items": { - "description": "ContainerPort represents a network port in a single container.", - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 < x < 65536.", - "format": "int32", - "type": "integer" - }, - "hostIP": { - "description": "What host IP to bind the external port to.", - "type": "string" - }, - "hostPort": { - "description": "Number of port to expose on the host.\nIf specified, this must be a valid port number, 0 < x < 65536.\nIf HostNetwork is specified, this must match ContainerPort.\nMost containers do not need this.", - "format": "int32", - "type": "integer" - }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each\nnamed port in a pod must have a unique name. Name for the port that can be\nreferred to by services.", - "type": "string" - }, - "protocol": { - "default": "TCP", - "description": "Protocol for port. Must be UDP, TCP, or SCTP.\nDefaults to \"TCP\".", - "type": "string" - } - }, - "required": [ - "containerPort" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "containerPort", - "protocol" - ], - "x-kubernetes-list-type": "map" - }, - "readinessProbe": { - "description": "Periodic probe of container service readiness.\nContainer will be removed from service endpoints if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "resizePolicy": { - "description": "Resources resize policy for the container.", - "items": { - "description": "ContainerResizePolicy represents resource resize policy for the container.", - "properties": { - "resourceName": { - "description": "Name of the resource to which this resource resize policy applies.\nSupported values: cpu, memory.", - "type": "string" - }, - "restartPolicy": { - "description": "Restart policy to apply when specified resource is resized.\nIf not specified, it defaults to NotRequired.", - "type": "string" - } - }, - "required": [ - "resourceName", - "restartPolicy" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "resources": { - "description": "Compute Resources required by this container.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - "items": { - "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string" - }, - "request": { - "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "restartPolicy": { - "description": "RestartPolicy defines the restart behavior of individual containers in a pod.\nThis field may only be set for init containers, and the only allowed value is \"Always\".\nFor non-init containers or when this field is not specified,\nthe restart behavior is defined by the Pod's restart policy and the container type.\nSetting the RestartPolicy as \"Always\" for the init container will have the following effect:\nthis init container will be continually restarted on\nexit until all regular containers have terminated. Once all regular\ncontainers have completed, all init containers with restartPolicy \"Always\"\nwill be shut down. This lifecycle differs from normal init containers and\nis often referred to as a \"sidecar\" container. Although this init\ncontainer still starts in the init container sequence, it does not wait\nfor the container to complete before proceeding to the next init\ncontainer. Instead, the next init container starts immediately after this\ninit container is started, or after any startupProbe has successfully\ncompleted.", - "type": "string" - }, - "securityContext": { - "description": "SecurityContext defines the security options the container should be run with.\nIf set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.\nMore info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", - "properties": { - "allowPrivilegeEscalation": { - "description": "AllowPrivilegeEscalation controls whether a process can gain more\nprivileges than its parent process. This bool directly controls if\nthe no_new_privs flag will be set on the container process.\nAllowPrivilegeEscalation is true always when the container is:\n1) run as Privileged\n2) has CAP_SYS_ADMIN\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "appArmorProfile": { - "description": "appArmorProfile is the AppArmor options to use by this container. If set, this profile\noverrides the pod's appArmorProfile.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile loaded on the node that should be used.\nThe profile must be preconfigured on the node to work.\nMust match the loaded name of the profile.\nMust be set if and only if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of AppArmor profile will be applied.\nValid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "capabilities": { - "description": "The capabilities to add/drop when running containers.\nDefaults to the default set of capabilities granted by the container runtime.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "add": { - "description": "Added capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "drop": { - "description": "Removed capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "privileged": { - "description": "Run container in privileged mode.\nProcesses in privileged containers are essentially equivalent to root on the host.\nDefaults to false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "procMount": { - "description": "procMount denotes the type of proc mount to use for the containers.\nThe default value is Default which uses the container runtime defaults for\nreadonly paths and masked paths.\nThis requires the ProcMountType feature flag to be enabled.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem.\nDefault is false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to the container.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - }, - "type": "object" - }, - "seccompProfile": { - "description": "The seccomp options to use by this container. If seccomp options are\nprovided at both the pod & container level, the container options\noverride the pod options.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "windowsOptions": { - "description": "The Windows specific settings applied to all containers.\nIf unspecified, the options from the PodSecurityContext will be used.\nIf set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is linux.", - "properties": { - "gmsaCredentialSpec": { - "description": "GMSACredentialSpec is where the GMSA admission webhook\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\nGMSA credential spec named by the GMSACredentialSpecName field.", - "type": "string" - }, - "gmsaCredentialSpecName": { - "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", - "type": "string" - }, - "hostProcess": { - "description": "HostProcess determines if a container should be run as a 'Host Process' container.\nAll of a Pod's containers must have the same effective HostProcess value\n(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\nIn addition, if HostProcess is true then HostNetwork must also be set to true.", - "type": "boolean" - }, - "runAsUserName": { - "description": "The UserName in Windows to run the entrypoint of the container process.\nDefaults to the user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "startupProbe": { - "description": "StartupProbe indicates that the Pod has successfully initialized.\nIf specified, no other probes are executed until this completes successfully.\nIf this probe fails, the Pod will be restarted, just as if the livenessProbe failed.\nThis can be used to provide different probe parameters at the beginning of a Pod's lifecycle,\nwhen it might take a long time to load data or warm a cache, than during steady-state operation.\nThis cannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this\nis not set, reads from stdin in the container will always result in EOF.\nDefault is false.", - "type": "boolean" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by\na single attach. When stdin is true the stdin stream will remain open across multiple attach\nsessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\nfirst client attaches to stdin, and then remains open and accepts data until the client disconnects,\nat which time stdin is closed and remains closed until the container is restarted. If this\nflag is false, a container processes that reads from stdin will never receive an EOF.\nDefault is false", - "type": "boolean" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message\nwill be written is mounted into the container's filesystem.\nMessage written is intended to be brief final status, such as an assertion failure message.\nWill be truncated by the node if greater than 4096 bytes. The total message length across\nall containers will be limited to 12kb.\nDefaults to /dev/termination-log.\nCannot be updated.", - "type": "string" - }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of\nterminationMessagePath to populate the container status message on both success and failure.\nFallbackToLogsOnError will use the last chunk of container log output if the termination\nmessage file is empty and the container exited with an error.\nThe log output is limited to 2048 bytes or 80 lines, whichever is smaller.\nDefaults to File.\nCannot be updated.", - "type": "string" - }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\nDefault is false.", - "type": "boolean" - }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", - "items": { - "description": "volumeDevice describes a mapping of a raw block device within a container.", - "properties": { - "devicePath": { - "description": "devicePath is the path inside of the container that the device will be mapped to.", - "type": "string" - }, - "name": { - "description": "name must match the name of a persistentVolumeClaim in the pod", - "type": "string" - } - }, - "required": [ - "devicePath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "devicePath" - ], - "x-kubernetes-list-type": "map" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem.\nCannot be updated.", - "items": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None).", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.", - "type": "boolean" - }, - "recursiveReadOnly": { - "description": "RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - "type": "string" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).", - "type": "string" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.", - "type": "string" - } - }, - "required": [ - "mountPath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "mountPath" - ], - "x-kubernetes-list-type": "map" - }, - "workingDir": { - "description": "Container's working directory.\nIf not specified, the container runtime's default will be used, which\nmight be configured in the container image.\nCannot be updated.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "enforcedNamespaceLabel": { - "description": "EnforcedNamespaceLabel enforces adding a namespace label of origin for each alert\nand metric that is user created. The label value will always be the namespace of the object that is\nbeing created.", - "type": "string" - }, - "evaluationInterval": { - "default": "15s", - "description": "Interval between consecutive evaluations.", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "excludedFromEnforcement": { - "description": "List of references to PrometheusRule objects\nto be excluded from enforcing a namespace label of origin.\nApplies only if enforcedNamespaceLabel set to true.", - "items": { - "description": "ObjectReference references a PodMonitor, ServiceMonitor, Probe or PrometheusRule object.", - "properties": { - "group": { - "default": "monitoring.coreos.com", - "description": "Group of the referent. When not specified, it defaults to `monitoring.coreos.com`", - "enum": [ - "monitoring.coreos.com" - ], - "type": "string" - }, - "name": { - "description": "Name of the referent. When not set, all resources in the namespace are matched.", - "type": "string" - }, - "namespace": { - "description": "Namespace of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", - "minLength": 1, - "type": "string" - }, - "resource": { - "description": "Resource of the referent.", - "enum": [ - "prometheusrules", - "servicemonitors", - "podmonitors", - "probes", - "scrapeconfigs" - ], - "type": "string" - } - }, - "required": [ - "namespace", - "resource" - ], - "type": "object" - }, - "type": "array" - }, - "externalPrefix": { - "description": "The external URL the Thanos Ruler instances will be available under. This is\nnecessary to generate correct URLs. This is necessary if Thanos Ruler is not\nserved from root of a DNS name.", - "type": "string" - }, - "grpcServerTlsConfig": { - "description": "GRPCServerTLSConfig configures the gRPC server from which Thanos Querier reads\nrecorded rule data.\nNote: Currently only the CAFile, CertFile, and KeyFile fields are supported.\nMaps to the '--grpc-server-tls-*' CLI args.", - "properties": { - "ca": { - "description": "Certificate authority used when verifying server certificates.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "caFile": { - "description": "Path to the CA cert in the Prometheus container to use for the targets.", - "type": "string" - }, - "cert": { - "description": "Client certificate to present when doing client-authentication.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "certFile": { - "description": "Path to the client cert file in the Prometheus container for the targets.", - "type": "string" - }, - "insecureSkipVerify": { - "description": "Disable target certificate validation.", - "type": "boolean" - }, - "keyFile": { - "description": "Path to the client key file in the Prometheus container for the targets.", - "type": "string" - }, - "keySecret": { - "description": "Secret containing the client key file for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum acceptable TLS version.\n\nIt requires Prometheus >= v2.41.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "minVersion": { - "description": "Minimum acceptable TLS version.\n\nIt requires Prometheus >= v2.35.0.", - "enum": [ - "TLS10", - "TLS11", - "TLS12", - "TLS13" - ], - "type": "string" - }, - "serverName": { - "description": "Used to verify the hostname for the targets.", - "type": "string" - } - }, - "type": "object" - }, - "hostAliases": { - "description": "Pods' hostAliases configuration", - "items": { - "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the\npod's hosts file.", - "properties": { - "hostnames": { - "description": "Hostnames for the above IP address.", - "items": { - "type": "string" - }, - "type": "array" - }, - "ip": { - "description": "IP address of the host file entry.", - "type": "string" - } - }, - "required": [ - "hostnames", - "ip" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "ip" - ], - "x-kubernetes-list-type": "map" - }, - "image": { - "description": "Thanos container image URL.", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy for the 'thanos', 'init-config-reloader' and 'config-reloader' containers.\nSee https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy for more details.", - "enum": [ - "", - "Always", - "Never", - "IfNotPresent" - ], - "type": "string" - }, - "imagePullSecrets": { - "description": "An optional list of references to secrets in the same namespace\nto use for pulling thanos images from registries\nsee http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod", - "items": { - "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "type": "array" - }, - "initContainers": { - "description": "InitContainers allows adding initContainers to the pod definition. Those can be used to e.g.\nfetch secrets for injection into the ThanosRuler configuration from external sources. Any\nerrors during the execution of an initContainer will lead to a restart of the Pod.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/\nUsing initContainers for any use case other then secret fetching is entirely outside the scope\nof what the maintainers will support and by doing so, you accept that this behaviour may break\nat any time without notice.", - "items": { - "description": "A single application container that you want to run within a pod.", - "properties": { - "args": { - "description": "Arguments to the entrypoint.\nThe container image's CMD is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell.\nThe container image's ENTRYPOINT is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "env": { - "description": "List of environment variables to set in the container.\nCannot be updated.", - "items": { - "description": "EnvVar represents an environment variable present in a Container.", - "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", - "type": "string" - }, - "value": { - "description": "Variable references $(VAR_NAME) are expanded\nusing the previously defined environment variables in the container and\nany service environment variables. If a variable cannot be resolved,\nthe reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n\"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\nEscaped references will never be expanded, regardless of whether the variable\nexists or not.\nDefaults to \"\".", - "type": "string" - }, - "valueFrom": { - "description": "Source for the environment variable's value. Cannot be used if value is not empty.", - "properties": { - "configMapKeyRef": { - "description": "Selects a key of a ConfigMap.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "fieldRef": { - "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`,\nspec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secretKeyRef": { - "description": "Selects a key of a secret in the pod's namespace", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container.\nThe keys defined within a source must be a C_IDENTIFIER. All invalid keys\nwill be reported as an event when the container is starting. When a key exists in multiple\nsources, the value associated with the last source will take precedence.\nValues defined by an Env with a duplicate key will take precedence.\nCannot be updated.", - "items": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", - "properties": { - "configMapRef": { - "description": "The ConfigMap to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", - "type": "string" - }, - "secretRef": { - "description": "The Secret to select from", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "image": { - "description": "Container image name.\nMore info: https://kubernetes.io/docs/concepts/containers/images\nThis field is optional to allow higher level config management to default or override\ncontainer images in workload controllers like Deployments and StatefulSets.", - "type": "string" - }, - "imagePullPolicy": { - "description": "Image pull policy.\nOne of Always, Never, IfNotPresent.\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/containers/images#updating-images", - "type": "string" - }, - "lifecycle": { - "description": "Actions that the management system should take in response to container lifecycle events.\nCannot be updated.", - "properties": { - "postStart": { - "description": "PostStart is called immediately after a container is created. If the handler fails,\nthe container is terminated and restarted according to its restart policy.\nOther management of the container blocks until the hook completes.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - }, - "preStop": { - "description": "PreStop is called immediately before a container is terminated due to an\nAPI request or management event such as liveness/startup probe failure,\npreemption, resource contention, etc. The handler is not called if the\ncontainer crashes or exits. The Pod's termination grace period countdown begins before the\nPreStop hook is executed. Regardless of the outcome of the handler, the\ncontainer will eventually terminate within the Pod's termination grace\nperiod (unless delayed by finalizers). Other management of the container blocks until the hook completes\nor until the termination grace period is reached.\nMore info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "sleep": { - "description": "Sleep represents the duration that the container should sleep before being terminated.", - "properties": { - "seconds": { - "description": "Seconds is the number of seconds to sleep.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "seconds" - ], - "type": "object" - }, - "tcpSocket": { - "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept\nfor the backward compatibility. There are no validation of this field and\nlifecycle hooks will fail in runtime when tcp handler is specified.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "livenessProbe": { - "description": "Periodic probe of container liveness.\nContainer will be restarted if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL.\nEach container in a pod must have a unique name (DNS_LABEL).\nCannot be updated.", - "type": "string" - }, - "ports": { - "description": "List of ports to expose from the container. Not specifying a port here\nDOES NOT prevent that port from being exposed. Any port which is\nlistening on the default \"0.0.0.0\" address inside a container will be\naccessible from the network.\nModifying this array with strategic merge patch may corrupt the data.\nFor more information See https://github.com/kubernetes/kubernetes/issues/108255.\nCannot be updated.", - "items": { - "description": "ContainerPort represents a network port in a single container.", - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 < x < 65536.", - "format": "int32", - "type": "integer" - }, - "hostIP": { - "description": "What host IP to bind the external port to.", - "type": "string" - }, - "hostPort": { - "description": "Number of port to expose on the host.\nIf specified, this must be a valid port number, 0 < x < 65536.\nIf HostNetwork is specified, this must match ContainerPort.\nMost containers do not need this.", - "format": "int32", - "type": "integer" - }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each\nnamed port in a pod must have a unique name. Name for the port that can be\nreferred to by services.", - "type": "string" - }, - "protocol": { - "default": "TCP", - "description": "Protocol for port. Must be UDP, TCP, or SCTP.\nDefaults to \"TCP\".", - "type": "string" - } - }, - "required": [ - "containerPort" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "containerPort", - "protocol" - ], - "x-kubernetes-list-type": "map" - }, - "readinessProbe": { - "description": "Periodic probe of container service readiness.\nContainer will be removed from service endpoints if the probe fails.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "resizePolicy": { - "description": "Resources resize policy for the container.", - "items": { - "description": "ContainerResizePolicy represents resource resize policy for the container.", - "properties": { - "resourceName": { - "description": "Name of the resource to which this resource resize policy applies.\nSupported values: cpu, memory.", - "type": "string" - }, - "restartPolicy": { - "description": "Restart policy to apply when specified resource is resized.\nIf not specified, it defaults to NotRequired.", - "type": "string" - } - }, - "required": [ - "resourceName", - "restartPolicy" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "resources": { - "description": "Compute Resources required by this container.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - "items": { - "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string" - }, - "request": { - "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "restartPolicy": { - "description": "RestartPolicy defines the restart behavior of individual containers in a pod.\nThis field may only be set for init containers, and the only allowed value is \"Always\".\nFor non-init containers or when this field is not specified,\nthe restart behavior is defined by the Pod's restart policy and the container type.\nSetting the RestartPolicy as \"Always\" for the init container will have the following effect:\nthis init container will be continually restarted on\nexit until all regular containers have terminated. Once all regular\ncontainers have completed, all init containers with restartPolicy \"Always\"\nwill be shut down. This lifecycle differs from normal init containers and\nis often referred to as a \"sidecar\" container. Although this init\ncontainer still starts in the init container sequence, it does not wait\nfor the container to complete before proceeding to the next init\ncontainer. Instead, the next init container starts immediately after this\ninit container is started, or after any startupProbe has successfully\ncompleted.", - "type": "string" - }, - "securityContext": { - "description": "SecurityContext defines the security options the container should be run with.\nIf set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.\nMore info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", - "properties": { - "allowPrivilegeEscalation": { - "description": "AllowPrivilegeEscalation controls whether a process can gain more\nprivileges than its parent process. This bool directly controls if\nthe no_new_privs flag will be set on the container process.\nAllowPrivilegeEscalation is true always when the container is:\n1) run as Privileged\n2) has CAP_SYS_ADMIN\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "appArmorProfile": { - "description": "appArmorProfile is the AppArmor options to use by this container. If set, this profile\noverrides the pod's appArmorProfile.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile loaded on the node that should be used.\nThe profile must be preconfigured on the node to work.\nMust match the loaded name of the profile.\nMust be set if and only if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of AppArmor profile will be applied.\nValid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "capabilities": { - "description": "The capabilities to add/drop when running containers.\nDefaults to the default set of capabilities granted by the container runtime.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "add": { - "description": "Added capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "drop": { - "description": "Removed capabilities", - "items": { - "description": "Capability represent POSIX capabilities type", - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "privileged": { - "description": "Run container in privileged mode.\nProcesses in privileged containers are essentially equivalent to root on the host.\nDefaults to false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "procMount": { - "description": "procMount denotes the type of proc mount to use for the containers.\nThe default value is Default which uses the container runtime defaults for\nreadonly paths and masked paths.\nThis requires the ProcMountType feature flag to be enabled.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem.\nDefault is false.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "boolean" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to the container.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - }, - "type": "object" - }, - "seccompProfile": { - "description": "The seccomp options to use by this container. If seccomp options are\nprovided at both the pod & container level, the container options\noverride the pod options.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "windowsOptions": { - "description": "The Windows specific settings applied to all containers.\nIf unspecified, the options from the PodSecurityContext will be used.\nIf set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is linux.", - "properties": { - "gmsaCredentialSpec": { - "description": "GMSACredentialSpec is where the GMSA admission webhook\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\nGMSA credential spec named by the GMSACredentialSpecName field.", - "type": "string" - }, - "gmsaCredentialSpecName": { - "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", - "type": "string" - }, - "hostProcess": { - "description": "HostProcess determines if a container should be run as a 'Host Process' container.\nAll of a Pod's containers must have the same effective HostProcess value\n(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\nIn addition, if HostProcess is true then HostNetwork must also be set to true.", - "type": "boolean" - }, - "runAsUserName": { - "description": "The UserName in Windows to run the entrypoint of the container process.\nDefaults to the user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "startupProbe": { - "description": "StartupProbe indicates that the Pod has successfully initialized.\nIf specified, no other probes are executed until this completes successfully.\nIf this probe fails, the Pod will be restarted, just as if the livenessProbe failed.\nThis can be used to provide different probe parameters at the beginning of a Pod's lifecycle,\nwhen it might take a long time to load data or warm a cache, than during steady-state operation.\nThis cannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "properties": { - "exec": { - "description": "Exec specifies the action to take.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "grpc": { - "description": "GRPC specifies an action involving a GRPC port.", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "format": "int32", - "type": "integer" - }, - "service": { - "default": "", - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "httpGet": { - "description": "HTTPGet specifies the http request to perform.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.", - "type": "string" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.", - "items": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string" - }, - "value": { - "description": "The header field value", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "Path to access on the HTTP server.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Name or number of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - }, - "scheme": { - "description": "Scheme to use for connecting to the host.\nDefaults to HTTP.", - "type": "string" - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", - "format": "int32", - "type": "integer" - }, - "tcpSocket": { - "description": "TCPSocket specifies an action involving a TCP port.", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.", - "type": "string" - }, - "port": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Number or name of the port to access on the container.\nNumber must be in the range 1 to 65535.\nName must be an IANA_SVC_NAME.", - "x-kubernetes-int-or-string": true - } - }, - "required": [ - "port" - ], - "type": "object" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", - "format": "int64", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this\nis not set, reads from stdin in the container will always result in EOF.\nDefault is false.", - "type": "boolean" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by\na single attach. When stdin is true the stdin stream will remain open across multiple attach\nsessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\nfirst client attaches to stdin, and then remains open and accepts data until the client disconnects,\nat which time stdin is closed and remains closed until the container is restarted. If this\nflag is false, a container processes that reads from stdin will never receive an EOF.\nDefault is false", - "type": "boolean" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message\nwill be written is mounted into the container's filesystem.\nMessage written is intended to be brief final status, such as an assertion failure message.\nWill be truncated by the node if greater than 4096 bytes. The total message length across\nall containers will be limited to 12kb.\nDefaults to /dev/termination-log.\nCannot be updated.", - "type": "string" - }, - "terminationMessagePolicy": { - "description": "Indicate how the termination message should be populated. File will use the contents of\nterminationMessagePath to populate the container status message on both success and failure.\nFallbackToLogsOnError will use the last chunk of container log output if the termination\nmessage file is empty and the container exited with an error.\nThe log output is limited to 2048 bytes or 80 lines, whichever is smaller.\nDefaults to File.\nCannot be updated.", - "type": "string" - }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\nDefault is false.", - "type": "boolean" - }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.", - "items": { - "description": "volumeDevice describes a mapping of a raw block device within a container.", - "properties": { - "devicePath": { - "description": "devicePath is the path inside of the container that the device will be mapped to.", - "type": "string" - }, - "name": { - "description": "name must match the name of a persistentVolumeClaim in the pod", - "type": "string" - } - }, - "required": [ - "devicePath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "devicePath" - ], - "x-kubernetes-list-type": "map" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem.\nCannot be updated.", - "items": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None).", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.", - "type": "boolean" - }, - "recursiveReadOnly": { - "description": "RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - "type": "string" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).", - "type": "string" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.", - "type": "string" - } - }, - "required": [ - "mountPath", - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "mountPath" - ], - "x-kubernetes-list-type": "map" - }, - "workingDir": { - "description": "Container's working directory.\nIf not specified, the container runtime's default will be used, which\nmight be configured in the container image.\nCannot be updated.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Labels configure the external label pairs to ThanosRuler. A default replica label\n`thanos_ruler_replica` will be always added as a label with the value of the pod's name and it will be dropped in the alerts.", - "type": "object" - }, - "listenLocal": { - "description": "ListenLocal makes the Thanos ruler listen on loopback, so that it\ndoes not bind against the Pod IP.", - "type": "boolean" - }, - "logFormat": { - "description": "Log format for ThanosRuler to be configured with.", - "enum": [ - "", - "logfmt", - "json" - ], - "type": "string" - }, - "logLevel": { - "description": "Log level for ThanosRuler to be configured with.", - "enum": [ - "", - "debug", - "info", - "warn", - "error" - ], - "type": "string" - }, - "minReadySeconds": { - "description": "Minimum number of seconds for which a newly created pod should be ready\nwithout any of its container crashing for it to be considered available.\nDefaults to 0 (pod will be considered available as soon as it is ready)\nThis is an alpha field from kubernetes 1.22 until 1.24 which requires enabling the StatefulSetMinReadySeconds feature gate.", - "format": "int32", - "type": "integer" - }, - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "Define which Nodes the Pods are scheduled on.", - "type": "object" - }, - "objectStorageConfig": { - "description": "ObjectStorageConfig configures object storage in Thanos.\nAlternative to ObjectStorageConfigFile, and lower order priority.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "objectStorageConfigFile": { - "description": "ObjectStorageConfigFile specifies the path of the object storage configuration file.\nWhen used alongside with ObjectStorageConfig, ObjectStorageConfigFile takes precedence.", - "type": "string" - }, - "paused": { - "description": "When a ThanosRuler deployment is paused, no actions except for deletion\nwill be performed on the underlying objects.", - "type": "boolean" - }, - "podMetadata": { - "description": "PodMetadata configures labels and annotations which are propagated to the ThanosRuler pods.\n\nThe following items are reserved and cannot be overridden:\n* \"app.kubernetes.io/name\" label, set to \"thanos-ruler\".\n* \"app.kubernetes.io/managed-by\" label, set to \"prometheus-operator\".\n* \"app.kubernetes.io/instance\" label, set to the name of the ThanosRuler instance.\n* \"thanos-ruler\" label, set to the name of the ThanosRuler instance.\n* \"kubectl.kubernetes.io/default-container\" annotation, set to \"thanos-ruler\".", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "type": "object" - }, - "portName": { - "default": "web", - "description": "Port name used for the pods and governing service.\nDefaults to `web`.", - "type": "string" - }, - "priorityClassName": { - "description": "Priority class assigned to the Pods", - "type": "string" - }, - "prometheusRulesExcludedFromEnforce": { - "description": "PrometheusRulesExcludedFromEnforce - list of Prometheus rules to be excluded from enforcing\nof adding namespace labels. Works only if enforcedNamespaceLabel set to true.\nMake sure both ruleNamespace and ruleName are set for each pair\nDeprecated: use excludedFromEnforcement instead.", - "items": { - "description": "PrometheusRuleExcludeConfig enables users to configure excluded\nPrometheusRule names and their namespaces to be ignored while enforcing\nnamespace label for alerts and metrics.", - "properties": { - "ruleName": { - "description": "Name of the excluded PrometheusRule object.", - "type": "string" - }, - "ruleNamespace": { - "description": "Namespace of the excluded PrometheusRule object.", - "type": "string" - } - }, - "required": [ - "ruleName", - "ruleNamespace" - ], - "type": "object" - }, - "type": "array" - }, - "queryConfig": { - "description": "Define configuration for connecting to thanos query instances.\nIf this is defined, the QueryEndpoints field will be ignored.\nMaps to the `query.config` CLI argument.\nOnly available with thanos v0.11.0 and higher.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "queryEndpoints": { - "description": "QueryEndpoints defines Thanos querier endpoints from which to query metrics.\nMaps to the --query flag of thanos ruler.", - "items": { - "type": "string" - }, - "type": "array" - }, - "replicas": { - "description": "Number of thanos ruler instances to deploy.", - "format": "int32", - "type": "integer" - }, - "resources": { - "description": "Resources defines the resource requirements for single Pods.\nIf not provided, no requests/limits will be set", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - "items": { - "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string" - }, - "request": { - "description": "Request is the name chosen for a request in the referenced claim.\nIf empty, everything from the claim is made available, otherwise\nonly the result of this request.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "name" - ], - "x-kubernetes-list-type": "map" - }, - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "retention": { - "default": "24h", - "description": "Time duration ThanosRuler shall retain data for. Default is '24h',\nand must match the regular expression `[0-9]+(ms|s|m|h|d|w|y)` (milliseconds seconds minutes hours days weeks years).", - "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$", - "type": "string" - }, - "routePrefix": { - "description": "The route prefix ThanosRuler registers HTTP handlers for. This allows thanos UI to be served on a sub-path.", - "type": "string" - }, - "ruleNamespaceSelector": { - "description": "Namespaces to be selected for Rules discovery. If unspecified, only\nthe same namespace as the ThanosRuler object is in is used.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "ruleSelector": { - "description": "A label selector to select which PrometheusRules to mount for alerting and\nrecording.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "securityContext": { - "description": "SecurityContext holds pod-level security attributes and common container settings.\nThis defaults to the default PodSecurityContext.", - "properties": { - "appArmorProfile": { - "description": "appArmorProfile is the AppArmor options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile loaded on the node that should be used.\nThe profile must be preconfigured on the node to work.\nMust match the loaded name of the profile.\nMust be set if and only if type is \"Localhost\".", - "type": "string" - }, - "type": { - "description": "type indicates which kind of AppArmor profile will be applied.\nValid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "fsGroup": { - "description": "A special supplemental group that applies to all containers in a pod.\nSome volume types allow the Kubelet to change the ownership of that volume\nto be owned by the pod:\n\n1. The owning GID will be the FSGroup\n2. The setgid bit is set (new files created in the volume will be owned by FSGroup)\n3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume\nbefore being exposed inside Pod. This field will only apply to\nvolume types which support fsGroup based ownership(and permissions).\nIt will have no effect on ephemeral volume types such as: secret, configmaps\nand emptydir.\nValid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "boolean" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.", - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "description": "The SELinux context to be applied to all containers.\nIf unspecified, the container runtime will allocate a random SELinux context for each\ncontainer. May also be set in SecurityContext. If set in\nboth SecurityContext and PodSecurityContext, the value specified in SecurityContext\ntakes precedence for that container.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.", - "type": "string" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.", - "type": "string" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.", - "type": "string" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.", - "type": "string" - } - }, - "type": "object" - }, - "seccompProfile": { - "description": "The seccomp options to use by the containers in this pod.\nNote that this field cannot be set when spec.os.name is windows.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust be set if type is \"Localhost\". Must NOT be set for any other type.", - "type": "string" - }, - "type": { - "description": "type indicates which kind of seccomp profile will be applied.\nValid options are:\n\nLocalhost - a profile defined in a file on the node should be used.\nRuntimeDefault - the container runtime default profile should be used.\nUnconfined - no profile should be applied.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "supplementalGroups": { - "description": "A list of groups applied to the first process run in each container, in\naddition to the container's primary GID and fsGroup (if specified). If\nthe SupplementalGroupsPolicy feature is enabled, the\nsupplementalGroupsPolicy field determines whether these are in addition\nto or instead of any group memberships defined in the container image.\nIf unspecified, no additional groups are added, though group memberships\ndefined in the container image may still be used, depending on the\nsupplementalGroupsPolicy field.\nNote that this field cannot be set when spec.os.name is windows.", - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "supplementalGroupsPolicy": { - "description": "Defines how supplemental groups of the first container processes are calculated.\nValid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used.\n(Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled\nand the container runtime must implement support for this feature.\nNote that this field cannot be set when spec.os.name is windows.", - "type": "string" - }, - "sysctls": { - "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\nsysctls (by the container runtime) might fail to launch.\nNote that this field cannot be set when spec.os.name is windows.", - "items": { - "description": "Sysctl defines a kernel parameter to be set", - "properties": { - "name": { - "description": "Name of a property to set", - "type": "string" - }, - "value": { - "description": "Value of a property to set", - "type": "string" - } - }, - "required": [ - "name", - "value" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "windowsOptions": { - "description": "The Windows specific settings applied to all containers.\nIf unspecified, the options within a container's SecurityContext will be used.\nIf set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is linux.", - "properties": { - "gmsaCredentialSpec": { - "description": "GMSACredentialSpec is where the GMSA admission webhook\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\nGMSA credential spec named by the GMSACredentialSpecName field.", - "type": "string" - }, - "gmsaCredentialSpecName": { - "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", - "type": "string" - }, - "hostProcess": { - "description": "HostProcess determines if a container should be run as a 'Host Process' container.\nAll of a Pod's containers must have the same effective HostProcess value\n(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).\nIn addition, if HostProcess is true then HostNetwork must also be set to true.", - "type": "boolean" - }, - "runAsUserName": { - "description": "The UserName in Windows to run the entrypoint of the container process.\nDefaults to the user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "serviceAccountName": { - "description": "ServiceAccountName is the name of the ServiceAccount to use to run the\nThanos Ruler Pods.", - "type": "string" - }, - "storage": { - "description": "Storage spec to specify how storage shall be used.", - "properties": { - "disableMountSubPath": { - "description": "Deprecated: subPath usage will be removed in a future release.", - "type": "boolean" - }, - "emptyDir": { - "description": "EmptyDirVolumeSource to be used by the StatefulSet.\nIf specified, it takes precedence over `ephemeral` and `volumeClaimTemplate`.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir", - "properties": { - "medium": { - "description": "medium represents what type of storage medium should back this directory.\nThe default is \"\" which means to use the node's default medium.\nMust be an empty string (default) or Memory.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "type": "string" - }, - "sizeLimit": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume.\nThe size limit is also applicable for memory medium.\nThe maximum usage on memory medium EmptyDir would be the minimum value between\nthe SizeLimit specified here and the sum of memory limits of all containers in a pod.\nThe default is nil which means that the limit is undefined.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - } - }, - "type": "object" - }, - "ephemeral": { - "description": "EphemeralVolumeSource to be used by the StatefulSet.\nThis is a beta field in k8s 1.21 and GA in 1.15.\nFor lower versions, starting with k8s 1.19, it requires enabling the GenericEphemeralVolume feature gate.\nMore info: https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes", - "properties": { - "volumeClaimTemplate": { - "description": "Will be used to create a stand-alone PVC to provision the volume.\nThe pod in which this EphemeralVolumeSource is embedded will be the\nowner of the PVC, i.e. the PVC will be deleted together with the\npod. The name of the PVC will be `-` where\n`` is the name from the `PodSpec.Volumes` array\nentry. Pod validation will reject the pod if the concatenated name\nis not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod\nwill *not* be used for the pod to avoid using an unrelated\nvolume by mistake. Starting the pod is then blocked until\nthe unrelated PVC is removed. If such a pre-created PVC is\nmeant to be used by the pod, the PVC has to updated with an\nowner reference to the pod once the pod exists. Normally\nthis should not be necessary, but it may be useful when\nmanually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes\nto the PVC after it has been created.\n\nRequired, must not be nil.", - "properties": { - "metadata": { - "description": "May contain labels and annotations that will be copied into the PVC\nwhen creating it. No other fields are allowed and will be rejected during\nvalidation.", - "type": "object" - }, - "spec": { - "description": "The specification for the PersistentVolumeClaim. The entire content is\ncopied unchanged into the PVC that gets created from this\ntemplate. The same fields as in a PersistentVolumeClaim\nare also valid here.", - "properties": { - "accessModes": { - "description": "accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "dataSource": { - "description": "dataSource field can be used to specify either:\n* An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n* An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "dataSourceRef": { - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n* While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "resources": { - "description": "resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "selector": { - "description": "selector is a label query over volumes to consider for binding.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "storageClassName": { - "description": "storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeAttributesClassName": { - "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "type": "object" - }, - "volumeClaimTemplate": { - "description": "Defines the PVC spec to be used by the Prometheus StatefulSets.\nThe easiest way to use a volume that cannot be automatically provisioned\nis to use a label selector alongside manually created PersistentVolumes.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "description": "EmbeddedMetadata contains metadata relevant to an EmbeddedResource.", - "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: http://kubernetes.io/docs/user-guide/annotations", - "type": "object" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: http://kubernetes.io/docs/user-guide/labels", - "type": "object" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "type": "object" - }, - "spec": { - "description": "Defines the desired characteristics of a volume requested by a pod author.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "properties": { - "accessModes": { - "description": "accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "dataSource": { - "description": "dataSource field can be used to specify either:\n* An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n* An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "dataSourceRef": { - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n* While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "resources": { - "description": "resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "selector": { - "description": "selector is a label query over volumes to consider for binding.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "storageClassName": { - "description": "storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeAttributesClassName": { - "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - }, - "type": "object" - }, - "status": { - "description": "Deprecated: this field is never set.", - "properties": { - "accessModes": { - "description": "accessModes contains the actual access modes the volume backing the PVC has.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "allocatedResourceStatuses": { - "additionalProperties": { - "description": "When a controller receives persistentvolume claim update with ClaimResourceStatus for a resource\nthat it does not recognizes, then it should ignore that update and let other controllers\nhandle it.", - "type": "string" - }, - "description": "allocatedResourceStatuses stores status of resource being resized for the given PVC.\nKey names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered\nreserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus\nshould ignore the update for the purpose it was designed. For example - a controller that\nonly is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid\nresources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", - "type": "object", - "x-kubernetes-map-type": "granular" - }, - "allocatedResources": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "allocatedResources tracks the resources allocated to a PVC including its capacity.\nKey names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered\nreserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation\nis requested.\nFor storage quota, the larger value from allocatedResources and PVC.spec.resources is used.\nIf allocatedResources is not set, PVC.spec.resources alone is used for quota calculation.\nIf a volume expansion capacity request is lowered, allocatedResources is only\nlowered if there are no expansion operations in progress and if the actual volume capacity\nis equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName\nshould ignore the update for the purpose it was designed. For example - a controller that\nonly is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid\nresources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", - "type": "object" - }, - "capacity": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "capacity represents the actual resources of the underlying volume.", - "type": "object" - }, - "conditions": { - "description": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being\nresized then the Condition will be set to 'Resizing'.", - "items": { - "description": "PersistentVolumeClaimCondition contains details about state of pvc", - "properties": { - "lastProbeTime": { - "description": "lastProbeTime is the time we probed the condition.", - "format": "date-time", - "type": "string" - }, - "lastTransitionTime": { - "description": "lastTransitionTime is the time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "message is the human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "reason is a unique, this should be a short, machine understandable string that gives the reason\nfor condition's last transition. If it reports \"Resizing\" that means the underlying\npersistent volume is being resized.", - "type": "string" - }, - "status": { - "type": "string" - }, - "type": { - "description": "PersistentVolumeClaimConditionType defines the condition of PV claim.\nValid values are:\n - \"Resizing\", \"FileSystemResizePending\"\n\nIf RecoverVolumeExpansionFailure feature gate is enabled, then following additional values can be expected:\n - \"ControllerResizeError\", \"NodeResizeError\"\n\nIf VolumeAttributesClass feature gate is enabled, then following additional values can be expected:\n - \"ModifyVolumeError\", \"ModifyingVolume\"", - "type": "string" - } - }, - "required": [ - "status", - "type" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - }, - "currentVolumeAttributesClassName": { - "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.\nWhen unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim\nThis is a beta field and requires enabling VolumeAttributesClass feature (off by default).", - "type": "string" - }, - "modifyVolumeStatus": { - "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.\nWhen this is unset, there is no ModifyVolume operation being attempted.\nThis is a beta field and requires enabling VolumeAttributesClass feature (off by default).", - "properties": { - "status": { - "description": "status is the status of the ControllerModifyVolume operation. It can be in any of following states:\n - Pending\n Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n InProgress indicates that the volume is being modified.\n - Infeasible\n Infeasible indicates that the request has been rejected as invalid by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass needs to be specified.\nNote: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.", - "type": "string" - }, - "targetVolumeAttributesClassName": { - "description": "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled", - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "phase": { - "description": "phase represents the current phase of PersistentVolumeClaim.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "tolerations": { - "description": "If specified, the pod's tolerations.", - "items": { - "description": "The pod this Toleration is attached to tolerates any taint that matches\nthe triple using the matching operator .", - "properties": { - "effect": { - "description": "Effect indicates the taint effect to match. Empty means match all taint effects.\nWhen specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", - "type": "string" - }, - "key": { - "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.", - "type": "string" - }, - "operator": { - "description": "Operator represents a key's relationship to the value.\nValid operators are Exists and Equal. Defaults to Equal.\nExists is equivalent to wildcard for value, so that a pod can\ntolerate all taints of a particular category.", - "type": "string" - }, - "tolerationSeconds": { - "description": "TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system.", - "format": "int64", - "type": "integer" - }, - "value": { - "description": "Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "topologySpreadConstraints": { - "description": "If specified, the pod's topology spread constraints.", - "items": { - "description": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", - "properties": { - "labelSelector": { - "description": "LabelSelector is used to find matching pods.\nPods that match this label selector are counted to determine the number of pods\nin their corresponding topology domain.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select the pods over which\nspreading will be calculated. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are ANDed with labelSelector\nto select the group of existing pods over which spreading will be calculated\nfor the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.\nMatchLabelKeys cannot be set when LabelSelector isn't set.\nKeys that don't exist in the incoming pod labels will\nbe ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "maxSkew": { - "description": "MaxSkew describes the degree to which pods may be unevenly distributed.\nWhen `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference\nbetween the number of matching pods in the target topology and the global minimum.\nThe global minimum is the minimum number of matching pods in an eligible domain\nor zero if the number of eligible domains is less than MinDomains.\nFor example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\nlabelSelector spread as 2/2/1:\nIn this case, the global minimum is 1.\n| zone1 | zone2 | zone3 |\n| P P | P P | P |\n- if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;\nscheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)\nviolate MaxSkew(1).\n- if MaxSkew is 2, incoming pod can be scheduled onto any zone.\nWhen `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence\nto topologies that satisfy it.\nIt's a required field. Default value is 1 and 0 is not allowed.", - "format": "int32", - "type": "integer" - }, - "minDomains": { - "description": "MinDomains indicates a minimum number of eligible domains.\nWhen the number of eligible domains with matching topology keys is less than minDomains,\nPod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed.\nAnd when the number of eligible domains with matching topology keys equals or greater than minDomains,\nthis value has no effect on scheduling.\nAs a result, when the number of eligible domains is less than minDomains,\nscheduler won't schedule more than maxSkew Pods to those domains.\nIf value is nil, the constraint behaves as if MinDomains is equal to 1.\nValid values are integers greater than 0.\nWhen value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same\nlabelSelector spread as 2/2/2:\n| zone1 | zone2 | zone3 |\n| P P | P P | P P |\nThe number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0.\nIn this situation, new pod with the same labelSelector cannot be scheduled,\nbecause computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,\nit will violate MaxSkew.", - "format": "int32", - "type": "integer" - }, - "nodeAffinityPolicy": { - "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector\nwhen calculating pod topology spread skew. Options are:\n- Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.\n- Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy.\nThis is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", - "type": "string" - }, - "nodeTaintsPolicy": { - "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating\npod topology spread skew. Options are:\n- Honor: nodes without taints, along with tainted nodes for which the incoming pod\nhas a toleration, are included.\n- Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy.\nThis is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", - "type": "string" - }, - "topologyKey": { - "description": "TopologyKey is the key of node labels. Nodes that have a label with this key\nand identical values are considered to be in the same topology.\nWe consider each as a \"bucket\", and try to put balanced number\nof pods into each bucket.\nWe define a domain as a particular instance of a topology.\nAlso, we define an eligible domain as a domain whose nodes meet the requirements of\nnodeAffinityPolicy and nodeTaintsPolicy.\ne.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology.\nAnd, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology.\nIt's a required field.", - "type": "string" - }, - "whenUnsatisfiable": { - "description": "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy\nthe spread constraint.\n- DoNotSchedule (default) tells the scheduler not to schedule it.\n- ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod\nif and only if every possible node assignment for that pod would violate\n\"MaxSkew\" on some topology.\nFor example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\nlabelSelector spread as 3/1/1:\n| zone1 | zone2 | zone3 |\n| P P P | P | P |\nIf WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled\nto zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies\nMaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler\nwon't make it *more* imbalanced.\nIt's a required field.", - "type": "string" - } - }, - "required": [ - "maxSkew", - "topologyKey", - "whenUnsatisfiable" - ], - "type": "object" - }, - "type": "array" - }, - "tracingConfig": { - "description": "TracingConfig configures tracing in Thanos.\n\n`tracingConfigFile` takes precedence over this field.\n\nThis is an *experimental feature*, it may change in any upcoming release\nin a breaking way.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "tracingConfigFile": { - "description": "TracingConfig specifies the path of the tracing configuration file.\n\nThis field takes precedence over `tracingConfig`.\n\nThis is an *experimental feature*, it may change in any upcoming release\nin a breaking way.", - "type": "string" - }, - "version": { - "description": "Version of Thanos to be deployed.", - "type": "string" - }, - "volumeMounts": { - "description": "VolumeMounts allows configuration of additional VolumeMounts on the output StatefulSet definition.\nVolumeMounts specified will be appended to other VolumeMounts in the ruler container,\nthat are generated as a result of StorageSpec objects.", - "items": { - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string" - }, - "mountPropagation": { - "description": "mountPropagation determines how mounts are propagated from the host\nto container and the other way around.\nWhen not set, MountPropagationNone is used.\nThis field is beta in 1.10.\nWhen RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified\n(which defaults to None).", - "type": "string" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.", - "type": "boolean" - }, - "recursiveReadOnly": { - "description": "RecursiveReadOnly specifies whether read-only mounts should be handled\nrecursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made\nrecursively read-only. If this field is set to IfPossible, the mount is made\nrecursively read-only, if it is supported by the container runtime. If this\nfield is set to Enabled, the mount is made recursively read-only if it is\nsupported by the container runtime, otherwise the pod will not be started and\nan error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to\nNone (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - "type": "string" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).", - "type": "string" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.", - "type": "string" - } - }, - "required": [ - "mountPath", - "name" - ], - "type": "object" - }, - "type": "array" - }, - "volumes": { - "description": "Volumes allows configuration of additional volumes on the output StatefulSet definition. Volumes specified will\nbe appended to other volumes that are generated as a result of StorageSpec objects.", - "items": { - "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", - "properties": { - "awsElasticBlockStore": { - "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "properties": { - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "string" - }, - "partition": { - "description": "partition is the partition in the volume that you want to mount.\nIf omitted, the default is to mount by volume name.\nExamples: For volume /dev/sda1, you specify the partition as \"1\".\nSimilarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "readOnly value true will force the readOnly setting in VolumeMounts.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "boolean" - }, - "volumeID": { - "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "azureDisk": { - "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "properties": { - "cachingMode": { - "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", - "type": "string" - }, - "diskName": { - "description": "diskName is the Name of the data disk in the blob storage", - "type": "string" - }, - "diskURI": { - "description": "diskURI is the URI of data disk in the blob storage", - "type": "string" - }, - "fsType": { - "default": "ext4", - "description": "fsType is Filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "kind": { - "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", - "type": "string" - }, - "readOnly": { - "default": false, - "description": "readOnly Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - } - }, - "required": [ - "diskName", - "diskURI" - ], - "type": "object" - }, - "azureFile": { - "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "properties": { - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretName": { - "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", - "type": "string" - }, - "shareName": { - "description": "shareName is the azure share Name", - "type": "string" - } - }, - "required": [ - "secretName", - "shareName" - ], - "type": "object" - }, - "cephfs": { - "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", - "properties": { - "monitors": { - "description": "monitors is Required: Monitors is a collection of Ceph monitors\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "path": { - "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", - "type": "string" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "boolean" - }, - "secretFile": { - "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - }, - "secretRef": { - "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "user": { - "description": "user is optional: User is the rados user name, default is admin\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "string" - } - }, - "required": [ - "monitors" - ], - "type": "object" - }, - "cinder": { - "description": "cinder represents a cinder volume attached and mounted on kubelets host machine.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is optional: points to a secret object containing parameters used to connect\nto OpenStack.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "volumeID": { - "description": "volumeID used to identify the volume in cinder.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "configMap": { - "description": "configMap represents a configMap that should populate this volume", - "properties": { - "defaultMode": { - "description": "defaultMode is optional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDefaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "csi": { - "description": "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", - "properties": { - "driver": { - "description": "driver is the name of the CSI driver that handles this volume.\nConsult with your admin for the correct name as registered in the cluster.", - "type": "string" - }, - "fsType": { - "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\".\nIf not provided, the empty value is passed to the associated CSI driver\nwhich will determine the default filesystem to apply.", - "type": "string" - }, - "nodePublishSecretRef": { - "description": "nodePublishSecretRef is a reference to the secret object containing\nsensitive information to pass to the CSI driver to complete the CSI\nNodePublishVolume and NodeUnpublishVolume calls.\nThis field is optional, and may be empty if no secret is required. If the\nsecret object contains more than one secret, all secret references are passed.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "readOnly": { - "description": "readOnly specifies a read-only configuration for the volume.\nDefaults to false (read/write).", - "type": "boolean" - }, - "volumeAttributes": { - "additionalProperties": { - "type": "string" - }, - "description": "volumeAttributes stores driver-specific properties that are passed to the CSI\ndriver. Consult your driver's documentation for supported values.", - "type": "object" - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "downwardAPI": { - "description": "downwardAPI represents downward API about the pod that should populate this volume", - "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a\nOptional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDefaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "Items is a list of downward API volume file", - "items": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "properties": { - "fieldRef": { - "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file, must be an octal value\nbetween 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", - "type": "string" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "emptyDir": { - "description": "emptyDir represents a temporary directory that shares a pod's lifetime.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "properties": { - "medium": { - "description": "medium represents what type of storage medium should back this directory.\nThe default is \"\" which means to use the node's default medium.\nMust be an empty string (default) or Memory.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "type": "string" - }, - "sizeLimit": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume.\nThe size limit is also applicable for memory medium.\nThe maximum usage on memory medium EmptyDir would be the minimum value between\nthe SizeLimit specified here and the sum of memory limits of all containers in a pod.\nThe default is nil which means that the limit is undefined.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - } - }, - "type": "object" - }, - "ephemeral": { - "description": "ephemeral represents a volume that is handled by a cluster storage driver.\nThe volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,\nand deleted when the pod is removed.\n\nUse this if:\na) the volume is only needed while the pod runs,\nb) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and\nd) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific\nAPIs for volumes that persist for longer than the lifecycle\nof an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to\nbe used that way - see the documentation of the driver for\nmore information.\n\nA pod can use both types of ephemeral volumes and\npersistent volumes at the same time.", - "properties": { - "volumeClaimTemplate": { - "description": "Will be used to create a stand-alone PVC to provision the volume.\nThe pod in which this EphemeralVolumeSource is embedded will be the\nowner of the PVC, i.e. the PVC will be deleted together with the\npod. The name of the PVC will be `-` where\n`` is the name from the `PodSpec.Volumes` array\nentry. Pod validation will reject the pod if the concatenated name\nis not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod\nwill *not* be used for the pod to avoid using an unrelated\nvolume by mistake. Starting the pod is then blocked until\nthe unrelated PVC is removed. If such a pre-created PVC is\nmeant to be used by the pod, the PVC has to updated with an\nowner reference to the pod once the pod exists. Normally\nthis should not be necessary, but it may be useful when\nmanually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes\nto the PVC after it has been created.\n\nRequired, must not be nil.", - "properties": { - "metadata": { - "description": "May contain labels and annotations that will be copied into the PVC\nwhen creating it. No other fields are allowed and will be rejected during\nvalidation.", - "type": "object" - }, - "spec": { - "description": "The specification for the PersistentVolumeClaim. The entire content is\ncopied unchanged into the PVC that gets created from this\ntemplate. The same fields as in a PersistentVolumeClaim\nare also valid here.", - "properties": { - "accessModes": { - "description": "accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "dataSource": { - "description": "dataSource field can be used to specify either:\n* An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)\n* An existing PVC (PersistentVolumeClaim)\nIf the provisioner or an external controller can support the specified data source,\nit will create a new volume based on the contents of the specified data source.\nWhen the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,\nand dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.\nIf the namespace is specified, then dataSourceRef will not be copied to dataSource.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "dataSourceRef": { - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty\nvolume is desired. This may be any object from a non-empty API group (non\ncore object) or a PersistentVolumeClaim object.\nWhen this field is specified, volume binding will only succeed if the type of\nthe specified object matches some installed volume populator or dynamic\nprovisioner.\nThis field will replace the functionality of the dataSource field and as such\nif both fields are non-empty, they must have the same value. For backwards\ncompatibility, when namespace isn't specified in dataSourceRef,\nboth fields (dataSource and dataSourceRef) will be set to the same\nvalue automatically if one of them is empty and the other is non-empty.\nWhen namespace is specified in dataSourceRef,\ndataSource isn't set to the same value and must be empty.\nThere are three important differences between dataSource and dataSourceRef:\n* While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.", - "type": "string" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string" - }, - "namespace": { - "description": "Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "resources": { - "description": "resources represents the minimum resources the volume should have.\nIf RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements\nthat are lower than previous value but must still be higher than capacity recorded in the\nstatus field of the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Limits describes the maximum amount of compute resources allowed.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - }, - "requests": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "description": "Requests describes the minimum amount of compute resources required.\nIf Requests is omitted for a container, it defaults to Limits if that is explicitly specified,\notherwise to an implementation-defined value. Requests cannot exceed Limits.\nMore info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - "type": "object" - } - }, - "type": "object" - }, - "selector": { - "description": "selector is a label query over volumes to consider for binding.", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "storageClassName": { - "description": "storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - "type": "string" - }, - "volumeAttributesClassName": { - "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.\nIf specified, the CSI driver will create or update the volume with the attributes defined\nin the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,\nit can be changed after the claim is created. An empty string value means that no VolumeAttributesClass\nwill be applied to the claim but it's not allowed to reset this field to empty string once it is set.\nIf unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass\nwill be set by the persistentvolume controller if it exists.\nIf the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be\nset to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource\nexists.\nMore info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/\n(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", - "type": "string" - }, - "volumeMode": { - "description": "volumeMode defines what type of volume is required by the claim.\nValue of Filesystem is implied when not included in claim spec.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", - "type": "string" - } - }, - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "type": "object" - }, - "fc": { - "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "lun": { - "description": "lun is Optional: FC target lun number", - "format": "int32", - "type": "integer" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "targetWWNs": { - "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "wwids": { - "description": "wwids Optional: FC volume world wide identifiers (wwids)\nEither wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "flexVolume": { - "description": "flexVolume represents a generic volume resource that is\nprovisioned/attached using an exec based plugin.", - "properties": { - "driver": { - "description": "driver is the name of the driver to use for this volume.", - "type": "string" - }, - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", - "type": "string" - }, - "options": { - "additionalProperties": { - "type": "string" - }, - "description": "options is Optional: this field holds extra command options if any.", - "type": "object" - }, - "readOnly": { - "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is Optional: secretRef is reference to the secret object containing\nsensitive information to pass to the plugin scripts. This may be\nempty if no secret object is specified. If the secret object\ncontains more than one secret, all secrets are passed to the plugin\nscripts.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "flocker": { - "description": "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", - "properties": { - "datasetName": { - "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker\nshould be considered as deprecated", - "type": "string" - }, - "datasetUUID": { - "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", - "type": "string" - } - }, - "type": "object" - }, - "gcePersistentDisk": { - "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "properties": { - "fsType": { - "description": "fsType is filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string" - }, - "partition": { - "description": "partition is the partition in the volume that you want to mount.\nIf omitted, the default is to mount by volume name.\nExamples: For volume /dev/sda1, you specify the partition as \"1\".\nSimilarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "format": "int32", - "type": "integer" - }, - "pdName": { - "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "boolean" - } - }, - "required": [ - "pdName" - ], - "type": "object" - }, - "gitRepo": { - "description": "gitRepo represents a git repository at a particular revision.\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an\nEmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir\ninto the Pod's container.", - "properties": { - "directory": { - "description": "directory is the target directory name.\nMust not contain or start with '..'. If '.' is supplied, the volume directory will be the\ngit repository. Otherwise, if specified, the volume will contain the git repository in\nthe subdirectory with the given name.", - "type": "string" - }, - "repository": { - "description": "repository is the URL", - "type": "string" - }, - "revision": { - "description": "revision is the commit hash for the specified revision.", - "type": "string" - } - }, - "required": [ - "repository" - ], - "type": "object" - }, - "glusterfs": { - "description": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md", - "properties": { - "endpoints": { - "description": "endpoints is the endpoint name that details Glusterfs topology.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "path": { - "description": "path is the Glusterfs volume path.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions.\nDefaults to false.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "boolean" - } - }, - "required": [ - "endpoints", - "path" - ], - "type": "object" - }, - "hostPath": { - "description": "hostPath represents a pre-existing file or directory on the host\nmachine that is directly exposed to the container. This is generally\nused for system agents or other privileged things that are allowed\nto see the host machine. Most containers will NOT need this.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "properties": { - "path": { - "description": "path of the directory on the host.\nIf the path is a symlink, it will follow the link to the real path.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "type": "string" - }, - "type": { - "description": "type for HostPath Volume\nDefaults to \"\"\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "image": { - "description": "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.\nThe volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.\n- Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.\n- IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation.\nA failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message.\nThe types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field.\nThe OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images.\nThe volume will be mounted read-only (ro) and non-executable files (noexec).\nSub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath).\nThe field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", - "properties": { - "pullPolicy": { - "description": "Policy for pulling OCI objects. Possible values are:\nAlways: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.\nNever: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.\nIfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\nDefaults to Always if :latest tag is specified, or IfNotPresent otherwise.", - "type": "string" - }, - "reference": { - "description": "Required: Image or artifact reference to be used.\nBehaves in the same way as pod.spec.containers[*].image.\nPull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.\nMore info: https://kubernetes.io/docs/concepts/containers/images\nThis field is optional to allow higher level config management to default or override\ncontainer images in workload controllers like Deployments and StatefulSets.", - "type": "string" - } - }, - "type": "object" - }, - "iscsi": { - "description": "iscsi represents an ISCSI Disk resource that is attached to a\nkubelet's host machine and then exposed to the pod.\nMore info: https://examples.k8s.io/volumes/iscsi/README.md", - "properties": { - "chapAuthDiscovery": { - "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", - "type": "boolean" - }, - "chapAuthSession": { - "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", - "type": "boolean" - }, - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", - "type": "string" - }, - "initiatorName": { - "description": "initiatorName is the custom iSCSI Initiator Name.\nIf initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface\n: will be created for the connection.", - "type": "string" - }, - "iqn": { - "description": "iqn is the target iSCSI Qualified Name.", - "type": "string" - }, - "iscsiInterface": { - "default": "default", - "description": "iscsiInterface is the interface Name that uses an iSCSI transport.\nDefaults to 'default' (tcp).", - "type": "string" - }, - "lun": { - "description": "lun represents iSCSI Target Lun number.", - "format": "int32", - "type": "integer" - }, - "portals": { - "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port\nis other than default (typically TCP ports 860 and 3260).", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "targetPortal": { - "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port\nis other than default (typically TCP ports 860 and 3260).", - "type": "string" - } - }, - "required": [ - "iqn", - "lun", - "targetPortal" - ], - "type": "object" - }, - "name": { - "description": "name of the volume.\nMust be a DNS_LABEL and unique within the pod.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "nfs": { - "description": "nfs represents an NFS mount on the host that shares a pod's lifetime\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "properties": { - "path": { - "description": "path that is exported by the NFS server.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the NFS export to be mounted with read-only permissions.\nDefaults to false.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "boolean" - }, - "server": { - "description": "server is the hostname or IP address of the NFS server.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string" - } - }, - "required": [ - "path", - "server" - ], - "type": "object" - }, - "persistentVolumeClaim": { - "description": "persistentVolumeClaimVolumeSource represents a reference to a\nPersistentVolumeClaim in the same namespace.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "properties": { - "claimName": { - "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "type": "string" - }, - "readOnly": { - "description": "readOnly Will force the ReadOnly setting in VolumeMounts.\nDefault false.", - "type": "boolean" - } - }, - "required": [ - "claimName" - ], - "type": "object" - }, - "photonPersistentDisk": { - "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "pdID": { - "description": "pdID is the ID that identifies Photon Controller persistent disk", - "type": "string" - } - }, - "required": [ - "pdID" - ], - "type": "object" - }, - "portworxVolume": { - "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", - "properties": { - "fsType": { - "description": "fSType represents the filesystem type to mount\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "volumeID": { - "description": "volumeID uniquely identifies a Portworx volume", - "type": "string" - } - }, - "required": [ - "volumeID" - ], - "type": "object" - }, - "projected": { - "description": "projected items for all in one resources secrets, configmaps, and downward API", - "properties": { - "defaultMode": { - "description": "defaultMode are the mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "sources": { - "description": "sources is the list of volume projections. Each entry in this list\nhandles one source.", - "items": { - "description": "Projection that may be projected along with other supported volume types.\nExactly one of these fields must be set.", - "properties": { - "clusterTrustBundle": { - "description": "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field\nof ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the\ncombination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written\ninto the pod filesystem. Esoteric PEM features such as inter-block\ncomments and block headers are stripped. Certificates are deduplicated.\nThe ordering of certificates within the file is arbitrary, and Kubelet\nmay change the order over time.", - "properties": { - "labelSelector": { - "description": "Select all ClusterTrustBundles that match this label selector. Only has\neffect if signerName is set. Mutually-exclusive with name. If unset,\ninterpreted as \"match nothing\". If set but empty, interpreted as \"match\neverything\".", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", - "items": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.", - "type": "string" - }, - "operator": { - "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.", - "type": "string" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "key", - "operator" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", - "type": "object" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "name": { - "description": "Select a single ClusterTrustBundle by object name. Mutually-exclusive\nwith signerName and labelSelector.", - "type": "string" - }, - "optional": { - "description": "If true, don't block pod startup if the referenced ClusterTrustBundle(s)\naren't available. If using name, then the named ClusterTrustBundle is\nallowed not to exist. If using signerName, then the combination of\nsignerName and labelSelector is allowed to match zero\nClusterTrustBundles.", - "type": "boolean" - }, - "path": { - "description": "Relative path from the volume root to write the bundle.", - "type": "string" - }, - "signerName": { - "description": "Select all ClusterTrustBundles that match this signer name.\nMutually-exclusive with name. The contents of all selected\nClusterTrustBundles will be unified and deduplicated.", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "configMap": { - "description": "configMap information about the configMap data to project", - "properties": { - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "downwardAPI": { - "description": "downwardAPI information about the downwardAPI data to project", - "properties": { - "items": { - "description": "Items is a list of DownwardAPIVolume file", - "items": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "properties": { - "fieldRef": { - "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", - "type": "string" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string" - } - }, - "required": [ - "fieldPath" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file, must be an octal value\nbetween 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", - "type": "string" - }, - "resourceFieldRef": { - "description": "Selects a resource of the container: only resources limits and requests\n(limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars", - "type": "string" - }, - "divisor": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$", - "x-kubernetes-int-or-string": true - }, - "resource": { - "description": "Required: resource to select", - "type": "string" - } - }, - "required": [ - "resource" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "required": [ - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "secret": { - "description": "secret information about the secret data to project", - "properties": { - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "optional field specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "serviceAccountToken": { - "description": "serviceAccountToken is information about the serviceAccountToken data to project", - "properties": { - "audience": { - "description": "audience is the intended audience of the token. A recipient of a token\nmust identify itself with an identifier specified in the audience of the\ntoken, and otherwise should reject the token. The audience defaults to the\nidentifier of the apiserver.", - "type": "string" - }, - "expirationSeconds": { - "description": "expirationSeconds is the requested duration of validity of the service\naccount token. As the token approaches expiration, the kubelet volume\nplugin will proactively rotate the service account token. The kubelet will\nstart trying to rotate the token if the token is older than 80 percent of\nits time to live or if the token is older than 24 hours.Defaults to 1 hour\nand must be at least 10 minutes.", - "format": "int64", - "type": "integer" - }, - "path": { - "description": "path is the path relative to the mount point of the file to project the\ntoken into.", - "type": "string" - } - }, - "required": [ - "path" - ], - "type": "object" - } - }, - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "quobyte": { - "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", - "properties": { - "group": { - "description": "group to map volume access to\nDefault is no group", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the Quobyte volume to be mounted with read-only permissions.\nDefaults to false.", - "type": "boolean" - }, - "registry": { - "description": "registry represents a single or multiple Quobyte Registry services\nspecified as a string as host:port pair (multiple entries are separated with commas)\nwhich acts as the central registry for volumes", - "type": "string" - }, - "tenant": { - "description": "tenant owning the given Quobyte volume in the Backend\nUsed with dynamically provisioned Quobyte volumes, value is set by the plugin", - "type": "string" - }, - "user": { - "description": "user to map volume access to\nDefaults to serivceaccount user", - "type": "string" - }, - "volume": { - "description": "volume is a string that references an already created Quobyte volume by name.", - "type": "string" - } - }, - "required": [ - "registry", - "volume" - ], - "type": "object" - }, - "rbd": { - "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.\nMore info: https://examples.k8s.io/volumes/rbd/README.md", - "properties": { - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", - "type": "string" - }, - "image": { - "description": "image is the rados image name.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "keyring": { - "default": "/etc/ceph/keyring", - "description": "keyring is the path to key ring for RBDUser.\nDefault is /etc/ceph/keyring.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "monitors": { - "description": "monitors is a collection of Ceph monitors.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "pool": { - "default": "rbd", - "description": "pool is the rados pool name.\nDefault is rbd.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef is name of the authentication secret for RBDUser. If provided\noverrides keyring.\nDefault is nil.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "user": { - "default": "admin", - "description": "user is the rados user name.\nDefault is admin.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string" - } - }, - "required": [ - "image", - "monitors" - ], - "type": "object" - }, - "scaleIO": { - "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", - "properties": { - "fsType": { - "default": "xfs", - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\".\nDefault is \"xfs\".", - "type": "string" - }, - "gateway": { - "description": "gateway is the host address of the ScaleIO API Gateway.", - "type": "string" - }, - "protectionDomain": { - "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", - "type": "string" - }, - "readOnly": { - "description": "readOnly Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef references to the secret for ScaleIO user and other\nsensitive information. If this is not provided, Login operation will fail.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "sslEnabled": { - "description": "sslEnabled Flag enable/disable SSL communication with Gateway, default false", - "type": "boolean" - }, - "storageMode": { - "default": "ThinProvisioned", - "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.\nDefault is ThinProvisioned.", - "type": "string" - }, - "storagePool": { - "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", - "type": "string" - }, - "system": { - "description": "system is the name of the storage system as configured in ScaleIO.", - "type": "string" - }, - "volumeName": { - "description": "volumeName is the name of a volume already created in the ScaleIO system\nthat is associated with this volume source.", - "type": "string" - } - }, - "required": [ - "gateway", - "secretRef", - "system" - ], - "type": "object" - }, - "secret": { - "description": "secret represents a secret that should populate this volume.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - "properties": { - "defaultMode": { - "description": "defaultMode is Optional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values\nfor mode bits. Defaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "items If unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.", - "items": { - "description": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.", - "format": "int32", - "type": "integer" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string" - } - }, - "required": [ - "key", - "path" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "optional": { - "description": "optional field specify whether the Secret or its keys must be defined", - "type": "boolean" - }, - "secretName": { - "description": "secretName is the name of the secret in the pod's namespace to use.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - "type": "string" - } - }, - "type": "object" - }, - "storageos": { - "description": "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.", - "type": "boolean" - }, - "secretRef": { - "description": "secretRef specifies the secret to use for obtaining the StorageOS API\ncredentials. If not specified, default values will be attempted.", - "properties": { - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - } - }, - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "volumeName": { - "description": "volumeName is the human-readable name of the StorageOS volume. Volume\nnames are only unique within a namespace.", - "type": "string" - }, - "volumeNamespace": { - "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no\nnamespace is specified then the Pod's namespace will be used. This allows the\nKubernetes name scoping to be mirrored within StorageOS for tighter integration.\nSet VolumeName to any name to override the default behaviour.\nSet to \"default\" if you are not using namespaces within StorageOS.\nNamespaces that do not pre-exist within StorageOS will be created.", - "type": "string" - } - }, - "type": "object" - }, - "vsphereVolume": { - "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", - "properties": { - "fsType": { - "description": "fsType is filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string" - }, - "storagePolicyID": { - "description": "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", - "type": "string" - }, - "storagePolicyName": { - "description": "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", - "type": "string" - }, - "volumePath": { - "description": "volumePath is the path that identifies vSphere volume vmdk", - "type": "string" - } - }, - "required": [ - "volumePath" - ], - "type": "object" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "type": "array" - }, - "web": { - "description": "Defines the configuration of the ThanosRuler web server.", - "properties": { - "httpConfig": { - "description": "Defines HTTP parameters for web server.", - "properties": { - "headers": { - "description": "List of headers that can be added to HTTP responses.", - "properties": { - "contentSecurityPolicy": { - "description": "Set the Content-Security-Policy header to HTTP responses.\nUnset if blank.", - "type": "string" - }, - "strictTransportSecurity": { - "description": "Set the Strict-Transport-Security header to HTTP responses.\nUnset if blank.\nPlease make sure that you use this with care as this header might force\nbrowsers to load Prometheus and the other applications hosted on the same\ndomain and subdomains over HTTPS.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security", - "type": "string" - }, - "xContentTypeOptions": { - "description": "Set the X-Content-Type-Options header to HTTP responses.\nUnset if blank. Accepted value is nosniff.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options", - "enum": [ - "", - "NoSniff" - ], - "type": "string" - }, - "xFrameOptions": { - "description": "Set the X-Frame-Options header to HTTP responses.\nUnset if blank. Accepted values are deny and sameorigin.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options", - "enum": [ - "", - "Deny", - "SameOrigin" - ], - "type": "string" - }, - "xXSSProtection": { - "description": "Set the X-XSS-Protection header to all responses.\nUnset if blank.\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection", - "type": "string" - } - }, - "type": "object" - }, - "http2": { - "description": "Enable HTTP/2 support. Note that HTTP/2 is only supported with TLS.\nWhen TLSConfig is not configured, HTTP/2 will be disabled.\nWhenever the value of the field changes, a rolling update will be triggered.", - "type": "boolean" - } - }, - "type": "object" - }, - "tlsConfig": { - "description": "Defines the TLS parameters for HTTPS.", - "properties": { - "cert": { - "description": "Contains the TLS certificate for the server.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "cipherSuites": { - "description": "List of supported cipher suites for TLS versions up to TLS 1.2. If empty,\nGo default cipher suites are used. Available cipher suites are documented\nin the go documentation: https://golang.org/pkg/crypto/tls/#pkg-constants", - "items": { - "type": "string" - }, - "type": "array" - }, - "clientAuthType": { - "description": "Server policy for client authentication. Maps to ClientAuth Policies.\nFor more detail on clientAuth options:\nhttps://golang.org/pkg/crypto/tls/#ClientAuthType", - "type": "string" - }, - "client_ca": { - "description": "Contains the CA certificate for client certificate authentication to the server.", - "properties": { - "configMap": { - "description": "ConfigMap containing data to use for the targets.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "secret": { - "description": "Secret containing data to use for the targets.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - } - }, - "type": "object" - }, - "curvePreferences": { - "description": "Elliptic curves that will be used in an ECDHE handshake, in preference\norder. Available curves are documented in the go documentation:\nhttps://golang.org/pkg/crypto/tls/#CurveID", - "items": { - "type": "string" - }, - "type": "array" - }, - "keySecret": { - "description": "Secret containing the TLS key for the server.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string" - }, - "name": { - "default": "", - "description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined", - "type": "boolean" - } - }, - "required": [ - "key" - ], - "type": "object", - "x-kubernetes-map-type": "atomic" - }, - "maxVersion": { - "description": "Maximum TLS version that is acceptable. Defaults to TLS13.", - "type": "string" - }, - "minVersion": { - "description": "Minimum TLS version that is acceptable. Defaults to TLS12.", - "type": "string" - }, - "preferServerCipherSuites": { - "description": "Controls whether the server selects the\nclient's most preferred cipher suite, or the server's most preferred\ncipher suite. If true then the server's preference, as expressed in\nthe order of elements in cipherSuites, is used.", - "type": "boolean" - } - }, - "required": [ - "cert", - "keySecret" - ], - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - }, - "status": { - "description": "Most recent observed status of the ThanosRuler cluster. Read-only.\nMore info:\nhttps://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - "properties": { - "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds)\ntargeted by this ThanosRuler deployment.", - "format": "int32", - "type": "integer" - }, - "conditions": { - "description": "The current state of the Alertmanager object.", - "items": { - "description": "Condition represents the state of the resources associated with the\nPrometheus, Alertmanager or ThanosRuler resource.", - "properties": { - "lastTransitionTime": { - "description": "lastTransitionTime is the time of the last update to the current status property.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "Human-readable message indicating details for the condition's last transition.", - "type": "string" - }, - "observedGeneration": { - "description": "ObservedGeneration represents the .metadata.generation that the\ncondition was set based upon. For instance, if `.metadata.generation` is\ncurrently 12, but the `.status.conditions[].observedGeneration` is 9, the\ncondition is out of date with respect to the current state of the\ninstance.", - "format": "int64", - "type": "integer" - }, - "reason": { - "description": "Reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "Status of the condition.", - "type": "string" - }, - "type": { - "description": "Type of the condition being reported.", - "type": "string" - } - }, - "required": [ - "lastTransitionTime", - "status", - "type" - ], - "type": "object" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - }, - "paused": { - "description": "Represents whether any actions on the underlying managed objects are\nbeing performed. Only delete actions will be performed.", - "type": "boolean" - }, - "replicas": { - "description": "Total number of non-terminated pods targeted by this ThanosRuler deployment\n(their labels match the selector).", - "format": "int32", - "type": "integer" - }, - "unavailableReplicas": { - "description": "Total number of unavailable pods targeted by this ThanosRuler deployment.", - "format": "int32", - "type": "integer" - }, - "updatedReplicas": { - "description": "Total number of non-terminated pods targeted by this ThanosRuler deployment\nthat have the desired version spec.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "availableReplicas", - "paused", - "replicas", - "unavailableReplicas", - "updatedReplicas" - ], - "type": "object" - } - }, - "required": [ - "spec" - ], - "type": "object" - } - }, - "served": true, - "storage": true, - "subresources": { - "status": {} - } - } - ] - } -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/.gitignore b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/.gitignore deleted file mode 100644 index 09527a315..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -vendor -dashboards_out diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/.lint b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/.lint deleted file mode 100644 index 59542cece..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/.lint +++ /dev/null @@ -1,15 +0,0 @@ -exclusions: - target-instance-rule: - reason: no need to have every query contains two matchers within every selector - `{job=~"$job", instance=~"$instance"}` - template-job-rule: - entries: - - dashboard: Alertmanager / Overview - reason: multi-select is not always required - template-instance-rule: - entries: - - dashboard: Alertmanager / Overview - reason: multi-select is not always required - panel-units-rule: - entries: - - dashboard: Alertmanager / Overview - reason: Dashboard does not benefit from specific unit specification. \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/Makefile b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/Makefile deleted file mode 100644 index 9ce9a9f43..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -JSONNET_FMT := jsonnetfmt -n 2 --max-blank-lines 1 --string-style s --comment-style s -ALERTMANAGER_ALERTS := alertmanager_alerts.yaml - -default: vendor build dashboards_out - -all: fmt build - -vendor: - jb install - -fmt: - find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \ - xargs -n 1 -- $(JSONNET_FMT) -i - -lint: build - find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \ - while read f; do \ - $(JSONNET_FMT) "$$f" | diff -u "$$f" -; \ - done - - mixtool lint mixin.libsonnet - -dashboards_out: mixin.libsonnet config.libsonnet $(wildcard dashboards/*) - @mkdir -p dashboards_out - jsonnet -J vendor -m dashboards_out dashboards.jsonnet - -build: vendor - mixtool generate alerts mixin.libsonnet > $(ALERTMANAGER_ALERTS) - -clean: - rm -rf $(ALERTMANAGER_ALERTS) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/README.md deleted file mode 100644 index d3190d75d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/README.md +++ /dev/null @@ -1,30 +0,0 @@ -# Alertmanager Mixin - -The Alertmanager Mixin is a set of configurable, reusable, and extensible -alerts (and eventually dashboards) for Alertmanager. - -The alerts are designed to monitor a cluster of Alertmanager instances. To make -them work as expected, the Prometheus server the alerts are evaluated on has to -scrape all Alertmanager instances of the cluster, even if those instances are -distributed over different locations. All Alertmanager instances in the same -Alertmanager cluster must have the same `job` label. In turn, if monitoring -multiple different Alertmanager clusters, instances from different clusters -must have a different `job` label. - -The most basic use of the Alertmanager Mixin is to create a YAML file with the -alerts from it. To do so, you need to have `jsonnetfmt` and `mixtool` installed. If you have a working Go development environment, it's -easiest to run the following: - -```bash -$ go get github.com/monitoring-mixins/mixtool/cmd/mixtool -$ go get github.com/google/go-jsonnet/cmd/jsonnetfmt -``` - -Edit `config.libsonnet` to match your environment and then build -`alertmanager_alerts.yaml` with the alerts by running: - -```bash -$ make build -``` - -For instructions on more advanced uses of mixins, see https://github.com/monitoring-mixins/docs. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/alerts.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/alerts.jsonnet deleted file mode 100644 index 75e7c1b29..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/alerts.jsonnet +++ /dev/null @@ -1 +0,0 @@ -std.manifestYamlDoc((import 'mixin.libsonnet').prometheusAlerts) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/alerts.libsonnet deleted file mode 100644 index 6032d7b49..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/alerts.libsonnet +++ /dev/null @@ -1,169 +0,0 @@ -{ - prometheusAlerts+:: { - groups+: [ - { - name: 'alertmanager.rules', - rules: [ - { - alert: 'AlertmanagerFailedReload', - expr: ||| - # Without max_over_time, failed scrapes could create false negatives, see - # https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0 for details. - max_over_time(alertmanager_config_last_reload_successful{%(alertmanagerSelector)s}[5m]) == 0 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Reloading an Alertmanager configuration has failed.', - description: 'Configuration has failed to load for %(alertmanagerName)s.' % $._config, - }, - }, - { - alert: 'AlertmanagerMembersInconsistent', - expr: ||| - # Without max_over_time, failed scrapes could create false negatives, see - # https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0 for details. - max_over_time(alertmanager_cluster_members{%(alertmanagerSelector)s}[5m]) - < on (%(alertmanagerClusterLabels)s) group_left - count by (%(alertmanagerClusterLabels)s) (max_over_time(alertmanager_cluster_members{%(alertmanagerSelector)s}[5m])) - ||| % $._config, - 'for': '15m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'A member of an Alertmanager cluster has not found all other cluster members.', - description: 'Alertmanager %(alertmanagerName)s has only found {{ $value }} members of the %(alertmanagerClusterName)s cluster.' % $._config, - }, - }, - { - alert: 'AlertmanagerFailedToSendAlerts', - expr: ||| - ( - rate(alertmanager_notifications_failed_total{%(alertmanagerSelector)s}[5m]) - / - ignoring (reason) group_left rate(alertmanager_notifications_total{%(alertmanagerSelector)s}[5m]) - ) - > 0.01 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'An Alertmanager instance failed to send notifications.', - description: 'Alertmanager %(alertmanagerName)s failed to send {{ $value | humanizePercentage }} of notifications to {{ $labels.integration }}.' % $._config, - }, - }, - { - alert: 'AlertmanagerClusterFailedToSendAlerts', - expr: ||| - min by (%(alertmanagerClusterLabels)s, integration) ( - rate(alertmanager_notifications_failed_total{%(alertmanagerSelector)s, integration=~`%(alertmanagerCriticalIntegrationsRegEx)s`}[5m]) - / - ignoring (reason) group_left rate(alertmanager_notifications_total{%(alertmanagerSelector)s, integration=~`%(alertmanagerCriticalIntegrationsRegEx)s`}[5m]) - ) - > 0.01 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'All Alertmanager instances in a cluster failed to send notifications to a critical integration.', - description: 'The minimum notification failure rate to {{ $labels.integration }} sent from any instance in the %(alertmanagerClusterName)s cluster is {{ $value | humanizePercentage }}.' % $._config, - }, - }, - { - alert: 'AlertmanagerClusterFailedToSendAlerts', - expr: ||| - min by (%(alertmanagerClusterLabels)s, integration) ( - rate(alertmanager_notifications_failed_total{%(alertmanagerSelector)s, integration!~`%(alertmanagerCriticalIntegrationsRegEx)s`}[5m]) - / - ignoring (reason) group_left rate(alertmanager_notifications_total{%(alertmanagerSelector)s, integration!~`%(alertmanagerCriticalIntegrationsRegEx)s`}[5m]) - ) - > 0.01 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'All Alertmanager instances in a cluster failed to send notifications to a non-critical integration.', - description: 'The minimum notification failure rate to {{ $labels.integration }} sent from any instance in the %(alertmanagerClusterName)s cluster is {{ $value | humanizePercentage }}.' % $._config, - }, - }, - { - alert: 'AlertmanagerConfigInconsistent', - expr: ||| - count by (%(alertmanagerClusterLabels)s) ( - count_values by (%(alertmanagerClusterLabels)s) ("config_hash", alertmanager_config_hash{%(alertmanagerSelector)s}) - ) - != 1 - ||| % $._config, - 'for': '20m', // A config change across an Alertmanager cluster can take its time. But it's really bad if it persists for too long. - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Alertmanager instances within the same cluster have different configurations.', - description: 'Alertmanager instances within the %(alertmanagerClusterName)s cluster have different configurations.' % $._config, - }, - }, - // Both the following critical alerts, AlertmanagerClusterDown and - // AlertmanagerClusterCrashlooping, fire if a whole cluster is - // unhealthy. It is implied that a generic warning alert is in place - // for individual instances being down or crashlooping. - { - alert: 'AlertmanagerClusterDown', - expr: ||| - ( - count by (%(alertmanagerClusterLabels)s) ( - avg_over_time(up{%(alertmanagerSelector)s}[5m]) < 0.5 - ) - / - count by (%(alertmanagerClusterLabels)s) ( - up{%(alertmanagerSelector)s} - ) - ) - >= 0.5 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Half or more of the Alertmanager instances within the same cluster are down.', - description: '{{ $value | humanizePercentage }} of Alertmanager instances within the %(alertmanagerClusterName)s cluster have been up for less than half of the last 5m.' % $._config, - }, - }, - { - alert: 'AlertmanagerClusterCrashlooping', - expr: ||| - ( - count by (%(alertmanagerClusterLabels)s) ( - changes(process_start_time_seconds{%(alertmanagerSelector)s}[10m]) > 4 - ) - / - count by (%(alertmanagerClusterLabels)s) ( - up{%(alertmanagerSelector)s} - ) - ) - >= 0.5 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Half or more of the Alertmanager instances within the same cluster are crashlooping.', - description: '{{ $value | humanizePercentage }} of Alertmanager instances within the %(alertmanagerClusterName)s cluster have restarted at least 5 times in the last 10m.' % $._config, - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/config.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/config.libsonnet deleted file mode 100644 index d0a289235..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/config.libsonnet +++ /dev/null @@ -1,44 +0,0 @@ -{ - _config+:: { - local c = self, - // alertmanagerSelector is inserted as part of the label selector in - // PromQL queries to identify metrics collected from Alertmanager - // servers. - alertmanagerSelector: 'job="alertmanager"', - - // alertmanagerClusterLabels is a string with comma-separated - // labels that are common labels of instances belonging to the - // same Alertmanager cluster. Include not only enough labels to - // identify cluster members, but also all common labels you want - // to keep for resulting cluster-level alerts. - alertmanagerClusterLabels: 'job', - - // alertmanagerNameLabels is a string with comma-separated - // labels used to identify different alertmanagers within the same - // Alertmanager HA cluster. - // If you run Alertmanager on Kubernetes with the Prometheus - // Operator, you can make use of the configured target labels for - // nicer naming: - // alertmanagerNameLabels: 'namespace,pod' - alertmanagerNameLabels: 'instance', - - // alertmanagerName is an identifier for alerts. By default, it is built from 'alertmanagerNameLabels'. - alertmanagerName: std.join('/', ['{{$labels.%s}}' % [label] for label in std.split(c.alertmanagerNameLabels, ',')]), - - // alertmanagerClusterName is inserted into annotations to name an - // Alertmanager cluster. All labels used here must also be present - // in alertmanagerClusterLabels above. - alertmanagerClusterName: '{{$labels.job}}', - - // alertmanagerCriticalIntegrationsRegEx is matched against the - // value of the `integration` label to determine if the - // AlertmanagerClusterFailedToSendAlerts is critical or merely a - // warning. This can be used to avoid paging about a failed - // integration that is itself not used for critical alerts. - // Example: @'pagerduty|webhook' - alertmanagerCriticalIntegrationsRegEx: @'.*', - - dashboardNamePrefix: 'Alertmanager / ', - dashboardTags: ['alertmanager-mixin'], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/dashboards.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/dashboards.jsonnet deleted file mode 100644 index 9d913ed3f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/dashboards.jsonnet +++ /dev/null @@ -1,6 +0,0 @@ -local dashboards = (import 'mixin.libsonnet').grafanaDashboards; - -{ - [name]: dashboards[name] - for name in std.objectFields(dashboards) -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/dashboards.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/dashboards.libsonnet deleted file mode 100644 index e4cc41caa..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/dashboards.libsonnet +++ /dev/null @@ -1 +0,0 @@ -(import './dashboards/overview.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/dashboards/overview.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/dashboards/overview.libsonnet deleted file mode 100644 index 27c02d25a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/dashboards/overview.libsonnet +++ /dev/null @@ -1,154 +0,0 @@ -local grafana = import 'github.com/grafana/grafonnet-lib/grafonnet/grafana.libsonnet'; -local dashboard = grafana.dashboard; -local row = grafana.row; -local prometheus = grafana.prometheus; -local template = grafana.template; -local graphPanel = grafana.graphPanel; - -{ - grafanaDashboards+:: { - - local amQuerySelector = std.join(',', ['%s=~"$%s"' % [label, label] for label in std.split($._config.alertmanagerClusterLabels, ',')]), - local amNameDashboardLegend = std.join('/', ['{{%s}}' % [label] for label in std.split($._config.alertmanagerNameLabels, ',')]), - - local alertmanagerClusterSelectorTemplates = - [ - template.new( - name=label, - label=label, - datasource='$datasource', - query='label_values(alertmanager_alerts, %s)' % label, - current='', - refresh=2, - includeAll=false, - sort=1 - ) - for label in std.split($._config.alertmanagerClusterLabels, ',') - ], - - local integrationTemplate = - template.new( - name='integration', - datasource='$datasource', - query='label_values(alertmanager_notifications_total{integration=~"%s"}, integration)' % $._config.alertmanagerCriticalIntegrationsRegEx, - current='all', - hide='2', // Always hide - refresh=2, - includeAll=true, - sort=1 - ), - - 'alertmanager-overview.json': - local alerts = - graphPanel.new( - 'Alerts', - description='current set of alerts stored in the Alertmanager', - datasource='$datasource', - span=6, - format='none', - stack=true, - fill=1, - legend_show=false, - ) - .addTarget(prometheus.target('sum(alertmanager_alerts{%(amQuerySelector)s}) by (%(alertmanagerClusterLabels)s,%(alertmanagerNameLabels)s)' % $._config { amQuerySelector: amQuerySelector }, legendFormat='%(amNameDashboardLegend)s' % $._config { amNameDashboardLegend: amNameDashboardLegend })); - - local alertsRate = - graphPanel.new( - 'Alerts receive rate', - description='rate of successful and invalid alerts received by the Alertmanager', - datasource='$datasource', - span=6, - format='ops', - stack=true, - fill=1, - legend_show=false, - ) - .addTarget(prometheus.target('sum(rate(alertmanager_alerts_received_total{%(amQuerySelector)s}[$__rate_interval])) by (%(alertmanagerClusterLabels)s,%(alertmanagerNameLabels)s)' % $._config { amQuerySelector: amQuerySelector }, legendFormat='%(amNameDashboardLegend)s Received' % $._config { amNameDashboardLegend: amNameDashboardLegend })) - .addTarget(prometheus.target('sum(rate(alertmanager_alerts_invalid_total{%(amQuerySelector)s}[$__rate_interval])) by (%(alertmanagerClusterLabels)s,%(alertmanagerNameLabels)s)' % $._config { amQuerySelector: amQuerySelector }, legendFormat='%(amNameDashboardLegend)s Invalid' % $._config { amNameDashboardLegend: amNameDashboardLegend })); - - local notifications = - graphPanel.new( - '$integration: Notifications Send Rate', - description='rate of successful and invalid notifications sent by the Alertmanager', - datasource='$datasource', - format='ops', - stack=true, - fill=1, - legend_show=false, - repeat='integration' - ) - .addTarget(prometheus.target('sum(rate(alertmanager_notifications_total{%(amQuerySelector)s, integration="$integration"}[$__rate_interval])) by (integration,%(alertmanagerClusterLabels)s,%(alertmanagerNameLabels)s)' % $._config { amQuerySelector: amQuerySelector }, legendFormat='%(amNameDashboardLegend)s Total' % $._config { amNameDashboardLegend: amNameDashboardLegend })) - .addTarget(prometheus.target('sum(rate(alertmanager_notifications_failed_total{%(amQuerySelector)s, integration="$integration"}[$__rate_interval])) by (integration,%(alertmanagerClusterLabels)s,%(alertmanagerNameLabels)s)' % $._config { amQuerySelector: amQuerySelector }, legendFormat='%(amNameDashboardLegend)s Failed' % $._config { amNameDashboardLegend: amNameDashboardLegend })); - - local notificationDuration = - graphPanel.new( - '$integration: Notification Duration', - description='latency of notifications sent by the Alertmanager', - datasource='$datasource', - format='s', - stack=false, - fill=1, - legend_show=false, - repeat='integration' - ) - .addTarget(prometheus.target( - ||| - histogram_quantile(0.99, - sum(rate(alertmanager_notification_latency_seconds_bucket{%(amQuerySelector)s, integration="$integration"}[$__rate_interval])) by (le,%(alertmanagerClusterLabels)s,%(alertmanagerNameLabels)s) - ) - ||| % $._config { amQuerySelector: amQuerySelector }, legendFormat='%(amNameDashboardLegend)s 99th Percentile' % $._config { amNameDashboardLegend: amNameDashboardLegend } - )) - .addTarget(prometheus.target( - ||| - histogram_quantile(0.50, - sum(rate(alertmanager_notification_latency_seconds_bucket{%(amQuerySelector)s, integration="$integration"}[$__rate_interval])) by (le,%(alertmanagerClusterLabels)s,%(alertmanagerNameLabels)s) - ) - ||| % $._config { amQuerySelector: amQuerySelector }, legendFormat='%(amNameDashboardLegend)s Median' % $._config { amNameDashboardLegend: amNameDashboardLegend } - )) - .addTarget(prometheus.target( - ||| - sum(rate(alertmanager_notification_latency_seconds_sum{%(amQuerySelector)s, integration="$integration"}[$__rate_interval])) by (%(alertmanagerClusterLabels)s,%(alertmanagerNameLabels)s) - / - sum(rate(alertmanager_notification_latency_seconds_count{%(amQuerySelector)s, integration="$integration"}[$__rate_interval])) by (%(alertmanagerClusterLabels)s,%(alertmanagerNameLabels)s) - ||| % $._config { amQuerySelector: amQuerySelector }, legendFormat='%(amNameDashboardLegend)s Average' % $._config { amNameDashboardLegend: amNameDashboardLegend } - )); - - dashboard.new( - '%sOverview' % $._config.dashboardNamePrefix, - time_from='now-1h', - tags=($._config.dashboardTags), - timezone='utc', - refresh='30s', - graphTooltip='shared_crosshair', - uid='alertmanager-overview' - ) - .addTemplate( - { - current: { - text: 'Prometheus', - value: 'Prometheus', - }, - hide: 0, - label: 'Data Source', - name: 'datasource', - options: [], - query: 'prometheus', - refresh: 1, - regex: '', - type: 'datasource', - }, - ) - .addTemplates(alertmanagerClusterSelectorTemplates) - .addTemplate(integrationTemplate) - .addRow( - row.new('Alerts') - .addPanel(alerts) - .addPanel(alertsRate) - ) - .addRow( - row.new('Notifications') - .addPanel(notifications) - .addPanel(notificationDuration) - ), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/jsonnetfile.json deleted file mode 100644 index 650733a05..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/jsonnetfile.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet-lib.git", - "subdir": "grafonnet" - } - }, - "version": "master" - } - ], - "legacyImports": false -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/jsonnetfile.lock.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/jsonnetfile.lock.json deleted file mode 100644 index 803febc84..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/jsonnetfile.lock.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet-lib.git", - "subdir": "grafonnet" - } - }, - "version": "55cf4ee53ced2b6d3ce96ecce9fb813b4465be98", - "sum": "4/sUV0Kk+o8I+wlYxL9R6EPhL/NiLfYHk+NXlU64RUk=" - } - ], - "legacyImports": false -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/mixin.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/mixin.libsonnet deleted file mode 100644 index 22db15c94..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/alertmanager/doc/alertmanager-mixin/mixin.libsonnet +++ /dev/null @@ -1,3 +0,0 @@ -(import 'config.libsonnet') + -(import 'alerts.libsonnet') + -(import 'dashboards.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/.gitignore b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/.gitignore deleted file mode 100644 index 522b99f0b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -jsonnetfile.lock.json -vendor -*.yaml -dashboards_out diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/Makefile b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/Makefile deleted file mode 100644 index d04b37d00..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/Makefile +++ /dev/null @@ -1,32 +0,0 @@ -JSONNET_FMT := jsonnetfmt -n 2 --max-blank-lines 2 --string-style s --comment-style s - -all: fmt node_alerts.yaml node_rules.yaml dashboards_out lint - -fmt: - find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \ - xargs -n 1 -- $(JSONNET_FMT) -i - -node_alerts.yaml: mixin.libsonnet config.libsonnet $(wildcard alerts/*) - jsonnet -S alerts.jsonnet > $@ - -node_rules.yaml: mixin.libsonnet config.libsonnet $(wildcard rules/*) - jsonnet -S rules.jsonnet > $@ - -dashboards_out: mixin.libsonnet config.libsonnet $(wildcard dashboards/*) - @mkdir -p dashboards_out - jsonnet -J vendor -m dashboards_out dashboards.jsonnet - -lint: node_alerts.yaml node_rules.yaml - find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \ - while read f; do \ - $(JSONNET_FMT) "$$f" | diff -u "$$f" -; \ - done - - promtool check rules node_alerts.yaml node_rules.yaml - -.PHONY: jb_install -jb_install: - jb install - -clean: - rm -rf dashboards_out node_alerts.yaml node_rules.yaml diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/README.md deleted file mode 100644 index 824385ec7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/README.md +++ /dev/null @@ -1,45 +0,0 @@ -# Node Mixin - -_This is a work in progress. We aim for it to become a good role model for alerts -and dashboards eventually, but it is not quite there yet._ - -The Node Mixin is a set of configurable, reusable, and extensible alerts and -dashboards based on the metrics exported by the Node Exporter. The mixin creates -recording and alerting rules for Prometheus and suitable dashboard descriptions -for Grafana. - -To use them, you need to have `jsonnet` (v0.16+) and `jb` installed. If you -have a working Go development environment, it's easiest to run the following: - -```bash -go install github.com/google/go-jsonnet/cmd/jsonnet@latest -go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest -go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest -``` - -Next, install the dependencies by running the following command in this -directory: - -```bash -jb install -``` - -You can then build the Prometheus rules files `node_alerts.yaml` and -`node_rules.yaml`: - -```bash -make node_alerts.yaml node_rules.yaml -``` - -You can also build a directory `dashboard_out` with the JSON dashboard files -for Grafana: - -```bash -make dashboards_out -``` - -Note that some of the generated dashboards require recording rules specified in -the previously generated `node_rules.yaml`. - -For more advanced uses of mixins, see -. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/alerts.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/alerts.jsonnet deleted file mode 100644 index 75e7c1b29..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/alerts.jsonnet +++ /dev/null @@ -1 +0,0 @@ -std.manifestYamlDoc((import 'mixin.libsonnet').prometheusAlerts) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/alerts/alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/alerts/alerts.libsonnet deleted file mode 100644 index c34648090..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/alerts/alerts.libsonnet +++ /dev/null @@ -1,428 +0,0 @@ -{ - prometheusAlerts+:: { - groups+: [ - { - name: 'node-exporter', - rules: [ - { - alert: 'NodeFilesystemSpaceFillingUp', - expr: ||| - ( - node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} * 100 < %(fsSpaceFillingUpWarningThreshold)d - and - predict_linear(node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s}[%(fsSpaceFillingUpPredictionWindow)s], 24*60*60) < 0 - and - node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} == 0 - ) - ||| % $._config, - 'for': '1h', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Filesystem is predicted to run out of space within the next 24 hours.', - description: 'Filesystem on {{ $labels.device }}, mounted on {{ $labels.mountpoint }}, at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left and is filling up.', - }, - }, - { - alert: 'NodeFilesystemSpaceFillingUp', - expr: ||| - ( - node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} * 100 < %(fsSpaceFillingUpCriticalThreshold)d - and - predict_linear(node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s}[6h], 4*60*60) < 0 - and - node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} == 0 - ) - ||| % $._config, - 'for': '1h', - labels: { - severity: '%(nodeCriticalSeverity)s' % $._config, - }, - annotations: { - summary: 'Filesystem is predicted to run out of space within the next 4 hours.', - description: 'Filesystem on {{ $labels.device }}, mounted on {{ $labels.mountpoint }}, at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left and is filling up fast.', - }, - }, - { - alert: 'NodeFilesystemAlmostOutOfSpace', - expr: ||| - ( - node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} * 100 < %(fsSpaceAvailableWarningThreshold)d - and - node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} == 0 - ) - ||| % $._config, - 'for': '30m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Filesystem has less than %(fsSpaceAvailableWarningThreshold)d%% space left.' % $._config, - description: 'Filesystem on {{ $labels.device }}, mounted on {{ $labels.mountpoint }}, at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left.', - }, - }, - { - alert: 'NodeFilesystemAlmostOutOfSpace', - expr: ||| - ( - node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} * 100 < %(fsSpaceAvailableCriticalThreshold)d - and - node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} == 0 - ) - ||| % $._config, - 'for': '30m', - labels: { - severity: '%(nodeCriticalSeverity)s' % $._config, - }, - annotations: { - summary: 'Filesystem has less than %(fsSpaceAvailableCriticalThreshold)d%% space left.' % $._config, - description: 'Filesystem on {{ $labels.device }}, mounted on {{ $labels.mountpoint }}, at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left.', - }, - }, - { - alert: 'NodeFilesystemFilesFillingUp', - expr: ||| - ( - node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} * 100 < 40 - and - predict_linear(node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s}[6h], 24*60*60) < 0 - and - node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} == 0 - ) - ||| % $._config, - 'for': '1h', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Filesystem is predicted to run out of inodes within the next 24 hours.', - description: 'Filesystem on {{ $labels.device }}, mounted on {{ $labels.mountpoint }}, at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available inodes left and is filling up.', - }, - }, - { - alert: 'NodeFilesystemFilesFillingUp', - expr: ||| - ( - node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} * 100 < 20 - and - predict_linear(node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s}[6h], 4*60*60) < 0 - and - node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} == 0 - ) - ||| % $._config, - 'for': '1h', - labels: { - severity: '%(nodeCriticalSeverity)s' % $._config, - }, - annotations: { - summary: 'Filesystem is predicted to run out of inodes within the next 4 hours.', - description: 'Filesystem on {{ $labels.device }}, mounted on {{ $labels.mountpoint }}, at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available inodes left and is filling up fast.', - }, - }, - { - alert: 'NodeFilesystemAlmostOutOfFiles', - expr: ||| - ( - node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} * 100 < 5 - and - node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} == 0 - ) - ||| % $._config, - 'for': '1h', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Filesystem has less than 5% inodes left.', - description: 'Filesystem on {{ $labels.device }}, mounted on {{ $labels.mountpoint }}, at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available inodes left.', - }, - }, - { - alert: 'NodeFilesystemAlmostOutOfFiles', - expr: ||| - ( - node_filesystem_files_free{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} / node_filesystem_files{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} * 100 < 3 - and - node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s,%(fsMountpointSelector)s} == 0 - ) - ||| % $._config, - 'for': '1h', - labels: { - severity: '%(nodeCriticalSeverity)s' % $._config, - }, - annotations: { - summary: 'Filesystem has less than 3% inodes left.', - description: 'Filesystem on {{ $labels.device }}, mounted on {{ $labels.mountpoint }}, at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available inodes left.', - }, - }, - { - alert: 'NodeNetworkReceiveErrs', - expr: ||| - rate(node_network_receive_errs_total{%(nodeExporterSelector)s}[2m]) / rate(node_network_receive_packets_total{%(nodeExporterSelector)s}[2m]) > 0.01 - ||| % $._config, - 'for': '1h', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Network interface is reporting many receive errors.', - description: '{{ $labels.instance }} interface {{ $labels.device }} has encountered {{ printf "%.0f" $value }} receive errors in the last two minutes.', - }, - }, - { - alert: 'NodeNetworkTransmitErrs', - expr: ||| - rate(node_network_transmit_errs_total{%(nodeExporterSelector)s}[2m]) / rate(node_network_transmit_packets_total{%(nodeExporterSelector)s}[2m]) > 0.01 - ||| % $._config, - 'for': '1h', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Network interface is reporting many transmit errors.', - description: '{{ $labels.instance }} interface {{ $labels.device }} has encountered {{ printf "%.0f" $value }} transmit errors in the last two minutes.', - }, - }, - { - alert: 'NodeHighNumberConntrackEntriesUsed', - expr: ||| - (node_nf_conntrack_entries{%(nodeExporterSelector)s} / node_nf_conntrack_entries_limit) > 0.75 - ||| % $._config, - annotations: { - summary: 'Number of conntrack are getting close to the limit.', - description: '{{ $value | humanizePercentage }} of conntrack entries are used.', - }, - labels: { - severity: 'warning', - }, - }, - { - alert: 'NodeTextFileCollectorScrapeError', - expr: ||| - node_textfile_scrape_error{%(nodeExporterSelector)s} == 1 - ||| % $._config, - annotations: { - summary: 'Node Exporter text file collector failed to scrape.', - description: 'Node Exporter text file collector on {{ $labels.instance }} failed to scrape.', - }, - labels: { - severity: 'warning', - }, - }, - { - alert: 'NodeClockSkewDetected', - expr: ||| - ( - node_timex_offset_seconds{%(nodeExporterSelector)s} > 0.05 - and - deriv(node_timex_offset_seconds{%(nodeExporterSelector)s}[5m]) >= 0 - ) - or - ( - node_timex_offset_seconds{%(nodeExporterSelector)s} < -0.05 - and - deriv(node_timex_offset_seconds{%(nodeExporterSelector)s}[5m]) <= 0 - ) - ||| % $._config, - 'for': '10m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Clock skew detected.', - description: 'Clock at {{ $labels.instance }} is out of sync by more than 0.05s. Ensure NTP is configured correctly on this host.', - }, - }, - { - alert: 'NodeClockNotSynchronising', - expr: ||| - min_over_time(node_timex_sync_status{%(nodeExporterSelector)s}[5m]) == 0 - and - node_timex_maxerror_seconds{%(nodeExporterSelector)s} >= 16 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Clock not synchronising.', - description: 'Clock at {{ $labels.instance }} is not synchronising. Ensure NTP is configured on this host.', - }, - }, - { - alert: 'NodeRAIDDegraded', - expr: ||| - node_md_disks_required{%(nodeExporterSelector)s,%(diskDeviceSelector)s} - ignoring (state) (node_md_disks{state="active",%(nodeExporterSelector)s,%(diskDeviceSelector)s}) > 0 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'RAID Array is degraded.', - description: "RAID array '{{ $labels.device }}' at {{ $labels.instance }} is in degraded state due to one or more disks failures. Number of spare drives is insufficient to fix issue automatically.", - }, - }, - { - alert: 'NodeRAIDDiskFailure', - expr: ||| - node_md_disks{state="failed",%(nodeExporterSelector)s,%(diskDeviceSelector)s} > 0 - ||| % $._config, - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Failed device in RAID array.', - description: "At least one device in RAID array at {{ $labels.instance }} failed. Array '{{ $labels.device }}' needs attention and possibly a disk swap.", - }, - }, - { - alert: 'NodeFileDescriptorLimit', - expr: ||| - ( - node_filefd_allocated{%(nodeExporterSelector)s} * 100 / node_filefd_maximum{%(nodeExporterSelector)s} > 70 - ) - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Kernel is predicted to exhaust file descriptors limit soon.', - description: 'File descriptors limit at {{ $labels.instance }} is currently at {{ printf "%.2f" $value }}%.', - }, - }, - { - alert: 'NodeFileDescriptorLimit', - expr: ||| - ( - node_filefd_allocated{%(nodeExporterSelector)s} * 100 / node_filefd_maximum{%(nodeExporterSelector)s} > 90 - ) - ||| % $._config, - 'for': '15m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Kernel is predicted to exhaust file descriptors limit soon.', - description: 'File descriptors limit at {{ $labels.instance }} is currently at {{ printf "%.2f" $value }}%.', - }, - }, - { - alert: 'NodeCPUHighUsage', - expr: ||| - sum without(mode) (avg without (cpu) (rate(node_cpu_seconds_total{%(nodeExporterSelector)s, mode!="idle"}[2m]))) * 100 > %(cpuHighUsageThreshold)d - ||| % $._config, - 'for': '15m', - labels: { - severity: 'info', - }, - annotations: { - summary: 'High CPU usage.', - description: ||| - CPU usage at {{ $labels.instance }} has been above %(cpuHighUsageThreshold)d%% for the last 15 minutes, is currently at {{ printf "%%.2f" $value }}%%. - ||| % $._config, - }, - }, - { - alert: 'NodeSystemSaturation', - expr: ||| - node_load1{%(nodeExporterSelector)s} - / count without (cpu, mode) (node_cpu_seconds_total{%(nodeExporterSelector)s, mode="idle"}) > %(systemSaturationPerCoreThreshold)d - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'System saturated, load per core is very high.', - description: ||| - System load per core at {{ $labels.instance }} has been above %(systemSaturationPerCoreThreshold)d for the last 15 minutes, is currently at {{ printf "%%.2f" $value }}. - This might indicate this instance resources saturation and can cause it becoming unresponsive. - ||| % $._config, - }, - }, - { - alert: 'NodeMemoryMajorPagesFaults', - expr: ||| - rate(node_vmstat_pgmajfault{%(nodeExporterSelector)s}[5m]) > %(memoryMajorPagesFaultsThreshold)d - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Memory major page faults are occurring at very high rate.', - description: ||| - Memory major pages are occurring at very high rate at {{ $labels.instance }}, %(memoryMajorPagesFaultsThreshold)d major page faults per second for the last 15 minutes, is currently at {{ printf "%%.2f" $value }}. - Please check that there is enough memory available at this instance. - ||| % $._config, - }, - }, - { - alert: 'NodeMemoryHighUtilization', - expr: ||| - 100 - (node_memory_MemAvailable_bytes{%(nodeExporterSelector)s} / node_memory_MemTotal_bytes{%(nodeExporterSelector)s} * 100) > %(memoryHighUtilizationThreshold)d - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Host is running out of memory.', - description: ||| - Memory is filling up at {{ $labels.instance }}, has been above %(memoryHighUtilizationThreshold)d%% for the last 15 minutes, is currently at {{ printf "%%.2f" $value }}%%. - ||| % $._config, - }, - }, - { - alert: 'NodeDiskIOSaturation', - expr: ||| - rate(node_disk_io_time_weighted_seconds_total{%(nodeExporterSelector)s, %(diskDeviceSelector)s}[5m]) > %(diskIOSaturationThreshold)d - ||| % $._config, - 'for': '30m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Disk IO queue is high.', - description: ||| - Disk IO queue (aqu-sq) is high on {{ $labels.device }} at {{ $labels.instance }}, has been above %(diskIOSaturationThreshold)d for the last 30 minutes, is currently at {{ printf "%%.2f" $value }}. - This symptom might indicate disk saturation. - ||| % $._config, - }, - }, - { - alert: 'NodeSystemdServiceFailed', - expr: ||| - node_systemd_unit_state{%(nodeExporterSelector)s, state="failed"} == 1 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Systemd service has entered failed state.', - description: 'Systemd service {{ $labels.name }} has entered failed state at {{ $labels.instance }}', - }, - }, - { - alert: 'NodeBondingDegraded', - expr: ||| - (node_bonding_slaves - node_bonding_active) != 0 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Bonding interface is degraded', - description: 'Bonding interface {{ $labels.master }} on {{ $labels.instance }} is in degraded state due to one or more slave failures.', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/config.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/config.libsonnet deleted file mode 100644 index df2af23f9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/config.libsonnet +++ /dev/null @@ -1,96 +0,0 @@ -{ - _config+:: { - // Selectors are inserted between {} in Prometheus queries. - - // Select the metrics coming from the node exporter. Note that all - // the selected metrics are shown stacked on top of each other in - // the 'USE Method / Cluster' dashboard. Consider disabling that - // dashboard if mixing up all those metrics in the same dashboard - // doesn't make sense (e.g. because they are coming from different - // clusters). - nodeExporterSelector: 'job="node"', - - // Select the fstype for filesystem-related queries. If left - // empty, all filesystems are selected. If you have unusual - // filesystem you don't want to include in dashboards and - // alerting, you can exclude them here, e.g. 'fstype!="tmpfs"'. - fsSelector: 'fstype!=""', - - // Select the mountpoint for filesystem-related queries. If left - // empty, all mountpoints are selected. For example if you have a - // special purpose tmpfs instance that has a fixed size and will - // always be 100% full, but you still want alerts and dashboards for - // other tmpfs instances, you can exclude those by mountpoint prefix - // like so: 'mountpoint!~"/var/lib/foo.*"'. - fsMountpointSelector: 'mountpoint!=""', - - // Select the device for disk-related queries. If left empty, all - // devices are selected. If you have unusual devices you don't - // want to include in dashboards and alerting, you can exclude - // them here, e.g. 'device!="tmpfs"'. - diskDeviceSelector: 'device!=""', - - // Some of the alerts are meant to fire if a critical failure of a - // node is imminent (e.g. the disk is about to run full). In a - // true “cloud native” setup, failures of a single node should be - // tolerated. Hence, even imminent failure of a single node is no - // reason to create a paging alert. However, in practice there are - // still many situations where operators like to get paged in time - // before a node runs out of disk space. nodeCriticalSeverity can - // be set to the desired severity for this kind of alerts. This - // can even be templated to depend on labels of the node, e.g. you - // could make this critical for traditional database masters but - // just a warning for K8s nodes. - nodeCriticalSeverity: 'critical', - - // CPU utilization (%) on which to trigger the - // 'NodeCPUHighUsage' alert. - cpuHighUsageThreshold: 90, - // Load average 1m (per core) on which to trigger the - // 'NodeSystemSaturation' alert. - systemSaturationPerCoreThreshold: 2, - - // Available disk space (%) thresholds on which to trigger the - // 'NodeFilesystemSpaceFillingUp' alerts. These alerts fire if the disk - // usage grows in a way that it is predicted to run out in 4h or 1d - // and if the provided thresholds have been reached right now. - // In some cases you'll want to adjust these, e.g., by default, Kubernetes - // runs the image garbage collection when the disk usage reaches 85% - // of its available space. In that case, you'll want to reduce the - // critical threshold below to something like 14 or 15, otherwise - // the alert could fire under normal node usage. - // Additionally, the prediction window for the alert can be configured - // to account for environments where disk usage can fluctuate within - // a short time frame. By extending the prediction window, you can - // reduce false positives caused by temporary spikes, providing a - // more accurate prediction of disk space issues. - fsSpaceFillingUpWarningThreshold: 40, - fsSpaceFillingUpCriticalThreshold: 20, - fsSpaceFillingUpPredictionWindow: '6h', - - // Available disk space (%) thresholds on which to trigger the - // 'NodeFilesystemAlmostOutOfSpace' alerts. - fsSpaceAvailableWarningThreshold: 5, - fsSpaceAvailableCriticalThreshold: 3, - - // Memory utilization (%) level on which to trigger the - // 'NodeMemoryHighUtilization' alert. - memoryHighUtilizationThreshold: 90, - - // Threshold for the rate of memory major page faults to trigger - // 'NodeMemoryMajorPagesFaults' alert. - memoryMajorPagesFaultsThreshold: 500, - - // Disk IO queue level above which to trigger - // 'NodeDiskIOSaturation' alert. - diskIOSaturationThreshold: 10, - - rateInterval: '5m', - // Opt-in for multi-cluster support. - showMultiCluster: false, - clusterLabel: 'cluster', - - dashboardNamePrefix: 'Node Exporter / ', - dashboardTags: ['node-exporter-mixin'], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards.jsonnet deleted file mode 100644 index 9d913ed3f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards.jsonnet +++ /dev/null @@ -1,6 +0,0 @@ -local dashboards = (import 'mixin.libsonnet').grafanaDashboards; - -{ - [name]: dashboards[name] - for name in std.objectFields(dashboards) -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards/dashboards.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards/dashboards.libsonnet deleted file mode 100644 index e6adbd4fa..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards/dashboards.libsonnet +++ /dev/null @@ -1,2 +0,0 @@ -(import 'node.libsonnet') + -(import 'use.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards/node.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards/node.libsonnet deleted file mode 100644 index a72f3ee76..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards/node.libsonnet +++ /dev/null @@ -1,7 +0,0 @@ -{ - local nodemixin = import '../lib/prom-mixin.libsonnet', - grafanaDashboards+:: { - 'nodes.json': nodemixin.new(config=$._config, platform='Linux', uid=std.md5('nodes.json')).dashboard, - 'nodes-darwin.json': nodemixin.new(config=$._config, platform='Darwin', uid=std.md5('nodes-darwin.json')).dashboard, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards/use.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards/use.libsonnet deleted file mode 100644 index fce411ab1..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/dashboards/use.libsonnet +++ /dev/null @@ -1,469 +0,0 @@ -local grafana = import 'github.com/grafana/grafonnet-lib/grafonnet/grafana.libsonnet'; -local dashboard = grafana.dashboard; -local row = grafana.row; -local prometheus = grafana.prometheus; -local template = grafana.template; -local graphPanel = grafana.graphPanel; - -local c = import '../config.libsonnet'; - -local datasourceTemplate = { - current: { - text: 'default', - value: 'default', - }, - hide: 0, - label: 'Data Source', - name: 'datasource', - options: [], - query: 'prometheus', - refresh: 1, - regex: '', - type: 'datasource', -}; - -local CPUUtilisation = - graphPanel.new( - 'CPU Utilisation', - datasource='$datasource', - span=6, - format='percentunit', - stack=true, - fill=10, - legend_show=false, - ) { tooltip+: { sort: 2 } }; - -local CPUSaturation = - // TODO: Is this a useful panel? At least there should be some explanation how load - // average relates to the "CPU saturation" in the title. - graphPanel.new( - 'CPU Saturation (Load1 per CPU)', - datasource='$datasource', - span=6, - format='percentunit', - stack=true, - fill=10, - legend_show=false, - ) { tooltip+: { sort: 2 } }; - -local memoryUtilisation = - graphPanel.new( - 'Memory Utilisation', - datasource='$datasource', - span=6, - format='percentunit', - stack=true, - fill=10, - legend_show=false, - ) { tooltip+: { sort: 2 } }; - -local memorySaturation = - graphPanel.new( - 'Memory Saturation (Major Page Faults)', - datasource='$datasource', - span=6, - format='rds', - stack=true, - fill=10, - legend_show=false, - ) { tooltip+: { sort: 2 } }; - -local networkUtilisation = - graphPanel.new( - 'Network Utilisation (Bytes Receive/Transmit)', - datasource='$datasource', - span=6, - format='Bps', - stack=true, - fill=10, - legend_show=false, - ) - .addSeriesOverride({ alias: '/Receive/', stack: 'A' }) - .addSeriesOverride({ alias: '/Transmit/', stack: 'B', transform: 'negative-Y' }) - { tooltip+: { sort: 2 } }; - -local networkSaturation = - graphPanel.new( - 'Network Saturation (Drops Receive/Transmit)', - datasource='$datasource', - span=6, - format='Bps', - stack=true, - fill=10, - legend_show=false, - ) - .addSeriesOverride({ alias: '/ Receive/', stack: 'A' }) - .addSeriesOverride({ alias: '/ Transmit/', stack: 'B', transform: 'negative-Y' }) - { tooltip+: { sort: 2 } }; - -local diskIOUtilisation = - graphPanel.new( - 'Disk IO Utilisation', - datasource='$datasource', - span=6, - format='percentunit', - stack=true, - fill=10, - legend_show=false, - ) { tooltip+: { sort: 2 } }; - -local diskIOSaturation = - graphPanel.new( - 'Disk IO Saturation', - datasource='$datasource', - span=6, - format='percentunit', - stack=true, - fill=10, - legend_show=false, - ) { tooltip+: { sort: 2 } }; - -local diskSpaceUtilisation = - graphPanel.new( - 'Disk Space Utilisation', - datasource='$datasource', - span=12, - format='percentunit', - stack=true, - fill=10, - legend_show=false, - ) { tooltip+: { sort: 2 } }; - -{ - _clusterTemplate:: template.new( - name='cluster', - datasource='$datasource', - query='label_values(node_time_seconds, %s)' % $._config.clusterLabel, - current='', - hide=if $._config.showMultiCluster then '' else '2', - refresh=2, - includeAll=false, - sort=1 - ), - - grafanaDashboards+:: { - 'node-rsrc-use.json': - - dashboard.new( - '%sUSE Method / Node' % $._config.dashboardNamePrefix, - time_from='now-1h', - tags=($._config.dashboardTags), - timezone='utc', - refresh='30s', - graphTooltip='shared_crosshair', - uid=std.md5('node-rsrc-use.json') - ) - .addTemplate(datasourceTemplate) - .addTemplate($._clusterTemplate) - .addTemplate( - template.new( - 'instance', - '$datasource', - 'label_values(node_exporter_build_info{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"}, instance)' % $._config, - refresh='time', - sort=1 - ) - ) - .addRow( - row.new('CPU') - .addPanel(CPUUtilisation.addTarget(prometheus.target('instance:node_cpu_utilisation:rate%(rateInterval)s{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='Utilisation'))) - .addPanel(CPUSaturation.addTarget(prometheus.target('instance:node_load1_per_cpu:ratio{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='Saturation'))) - ) - .addRow( - row.new('Memory') - .addPanel(memoryUtilisation.addTarget(prometheus.target('instance:node_memory_utilisation:ratio{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='Utilisation'))) - .addPanel(memorySaturation.addTarget(prometheus.target('instance:node_vmstat_pgmajfault:rate%(rateInterval)s{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='Major page Faults'))) - ) - .addRow( - row.new('Network') - .addPanel( - networkUtilisation - .addTarget(prometheus.target('instance:node_network_receive_bytes_excluding_lo:rate%(rateInterval)s{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='Receive')) - .addTarget(prometheus.target('instance:node_network_transmit_bytes_excluding_lo:rate%(rateInterval)s{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='Transmit')) - ) - .addPanel( - networkSaturation - .addTarget(prometheus.target('instance:node_network_receive_drop_excluding_lo:rate%(rateInterval)s{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='Receive')) - .addTarget(prometheus.target('instance:node_network_transmit_drop_excluding_lo:rate%(rateInterval)s{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='Transmit')) - ) - ) - .addRow( - row.new('Disk IO') - .addPanel(diskIOUtilisation.addTarget(prometheus.target('instance_device:node_disk_io_time_seconds:rate%(rateInterval)s{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='{{device}}'))) - .addPanel(diskIOSaturation.addTarget(prometheus.target('instance_device:node_disk_io_time_weighted_seconds:rate%(rateInterval)s{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='{{device}}'))) - ) - .addRow( - row.new('Disk Space') - .addPanel( - diskSpaceUtilisation.addTarget(prometheus.target( - ||| - sort_desc(1 - - ( - max without (mountpoint, fstype) (node_filesystem_avail_bytes{%(nodeExporterSelector)s, fstype!="", instance="$instance", %(clusterLabel)s="$cluster"}) - / - max without (mountpoint, fstype) (node_filesystem_size_bytes{%(nodeExporterSelector)s, fstype!="", instance="$instance", %(clusterLabel)s="$cluster"}) - ) != 0 - ) - ||| % $._config, legendFormat='{{device}}' - )) - ) - ), - - 'node-cluster-rsrc-use.json': - dashboard.new( - '%sUSE Method / Cluster' % $._config.dashboardNamePrefix, - time_from='now-1h', - tags=($._config.dashboardTags), - timezone='utc', - refresh='30s', - graphTooltip='shared_crosshair', - uid=std.md5('node-cluster-rsrc-use.json') - ) - .addTemplate(datasourceTemplate) - .addTemplate($._clusterTemplate) - .addRow( - row.new('CPU') - .addPanel( - CPUUtilisation - .addTarget(prometheus.target( - ||| - (( - instance:node_cpu_utilisation:rate%(rateInterval)s{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"} - * - instance:node_num_cpu:sum{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"} - ) != 0 ) - / scalar(sum(instance:node_num_cpu:sum{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"})) - ||| % $._config, legendFormat='{{ instance }}' - )) - ) - .addPanel( - CPUSaturation - .addTarget(prometheus.target( - ||| - ( - instance:node_load1_per_cpu:ratio{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"} - / scalar(count(instance:node_load1_per_cpu:ratio{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"})) - ) != 0 - ||| % $._config, legendFormat='{{instance}}' - )) - ) - ) - .addRow( - row.new('Memory') - .addPanel( - memoryUtilisation - .addTarget(prometheus.target( - ||| - ( - instance:node_memory_utilisation:ratio{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"} - / scalar(count(instance:node_memory_utilisation:ratio{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"})) - ) != 0 - ||| % $._config, legendFormat='{{instance}}', - )) - ) - .addPanel(memorySaturation.addTarget(prometheus.target('instance:node_vmstat_pgmajfault:rate%(rateInterval)s{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"}' % $._config, legendFormat='{{instance}}'))) - ) - .addRow( - row.new('Network') - .addPanel( - networkUtilisation - .addTarget(prometheus.target('instance:node_network_receive_bytes_excluding_lo:rate%(rateInterval)s{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='{{instance}} Receive')) - .addTarget(prometheus.target('instance:node_network_transmit_bytes_excluding_lo:rate%(rateInterval)s{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='{{instance}} Transmit')) - ) - .addPanel( - networkSaturation - .addTarget(prometheus.target('instance:node_network_receive_drop_excluding_lo:rate%(rateInterval)s{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='{{instance}} Receive')) - .addTarget(prometheus.target('instance:node_network_transmit_drop_excluding_lo:rate%(rateInterval)s{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"} != 0' % $._config, legendFormat='{{instance}} Transmit')) - ) - ) - .addRow( - row.new('Disk IO') - .addPanel( - diskIOUtilisation - .addTarget(prometheus.target( - ||| - ( - instance_device:node_disk_io_time_seconds:rate%(rateInterval)s{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"} - / scalar(count(instance_device:node_disk_io_time_seconds:rate%(rateInterval)s{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"})) - ) != 0 - ||| % $._config, legendFormat='{{instance}} {{device}}' - )) - ) - .addPanel( - diskIOSaturation - .addTarget(prometheus.target( - ||| - ( - instance_device:node_disk_io_time_weighted_seconds:rate%(rateInterval)s{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"} - / scalar(count(instance_device:node_disk_io_time_weighted_seconds:rate%(rateInterval)s{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster"})) - ) != 0 - ||| % $._config, legendFormat='{{instance}} {{device}}' - )) - ) - ) - .addRow( - row.new('Disk Space') - .addPanel( - diskSpaceUtilisation - .addTarget(prometheus.target( - ||| - sum without (device) ( - max without (fstype, mountpoint) (( - node_filesystem_size_bytes{%(nodeExporterSelector)s, %(fsSelector)s, %(fsMountpointSelector)s, %(clusterLabel)s="$cluster"} - - - node_filesystem_avail_bytes{%(nodeExporterSelector)s, %(fsSelector)s, %(fsMountpointSelector)s, %(clusterLabel)s="$cluster"} - ) != 0) - ) - / scalar(sum(max without (fstype, mountpoint) (node_filesystem_size_bytes{%(nodeExporterSelector)s, %(fsSelector)s, %(fsMountpointSelector)s, %(clusterLabel)s="$cluster"}))) - ||| % $._config, legendFormat='{{instance}}' - )) - ) - ), - } + - if $._config.showMultiCluster then { - 'node-multicluster-rsrc-use.json': - dashboard.new( - '%sUSE Method / Multi-cluster' % $._config.dashboardNamePrefix, - time_from='now-1h', - tags=($._config.dashboardTags), - timezone='utc', - refresh='30s', - graphTooltip='shared_crosshair', - uid=std.md5('node-multicluster-rsrc-use.json') - ) - .addTemplate(datasourceTemplate) - .addRow( - row.new('CPU') - .addPanel( - CPUUtilisation - .addTarget(prometheus.target( - ||| - sum( - (( - instance:node_cpu_utilisation:rate%(rateInterval)s{%(nodeExporterSelector)s} - * - instance:node_num_cpu:sum{%(nodeExporterSelector)s} - ) != 0) - / scalar(sum(instance:node_num_cpu:sum{%(nodeExporterSelector)s})) - ) by (%(clusterLabel)s) - ||| % $._config, legendFormat='{{%(clusterLabel)s}}' % $._config - )) - ) - .addPanel( - CPUSaturation - .addTarget(prometheus.target( - ||| - sum(( - instance:node_load1_per_cpu:ratio{%(nodeExporterSelector)s} - / scalar(count(instance:node_load1_per_cpu:ratio{%(nodeExporterSelector)s})) - ) != 0) by (%(clusterLabel)s) - ||| % $._config, legendFormat='{{%(clusterLabel)s}}' % $._config - )) - ) - ) - .addRow( - row.new('Memory') - .addPanel( - memoryUtilisation - .addTarget(prometheus.target( - ||| - sum(( - instance:node_memory_utilisation:ratio{%(nodeExporterSelector)s} - / scalar(count(instance:node_memory_utilisation:ratio{%(nodeExporterSelector)s})) - ) != 0) by (%(clusterLabel)s) - ||| % $._config, legendFormat='{{%(clusterLabel)s}}' % $._config - )) - ) - .addPanel( - memorySaturation - .addTarget(prometheus.target( - ||| - sum(( - instance:node_vmstat_pgmajfault:rate%(rateInterval)s{%(nodeExporterSelector)s} - ) != 0) by (%(clusterLabel)s) - ||| % $._config, legendFormat='{{%(clusterLabel)s}}' % $._config - )) - ) - ) - .addRow( - row.new('Network') - .addPanel( - networkUtilisation - .addTarget(prometheus.target( - ||| - sum(( - instance:node_network_receive_bytes_excluding_lo:rate%(rateInterval)s{%(nodeExporterSelector)s} - ) != 0) by (%(clusterLabel)s) - ||| % $._config, legendFormat='{{%(clusterLabel)s}} Receive' % $._config - )) - .addTarget(prometheus.target( - ||| - sum(( - instance:node_network_transmit_bytes_excluding_lo:rate%(rateInterval)s{%(nodeExporterSelector)s} - ) != 0) by (%(clusterLabel)s) - ||| % $._config, legendFormat='{{%(clusterLabel)s}} Transmit' % $._config - )) - ) - .addPanel( - networkSaturation - .addTarget(prometheus.target( - ||| - sum(( - instance:node_network_receive_drop_excluding_lo:rate%(rateInterval)s{%(nodeExporterSelector)s} - ) != 0) by (%(clusterLabel)s) - ||| % $._config, legendFormat='{{%(clusterLabel)s}} Receive' % $._config - )) - .addTarget(prometheus.target( - ||| - sum(( - instance:node_network_transmit_drop_excluding_lo:rate%(rateInterval)s{%(nodeExporterSelector)s} - ) != 0) by (%(clusterLabel)s) - ||| % $._config, legendFormat='{{%(clusterLabel)s}} Transmit' % $._config - )) - ) - ) - .addRow( - row.new('Disk IO') - .addPanel( - diskIOUtilisation - .addTarget(prometheus.target( - ||| - sum(( - instance_device:node_disk_io_time_seconds:rate%(rateInterval)s{%(nodeExporterSelector)s} - / scalar(count(instance_device:node_disk_io_time_seconds:rate%(rateInterval)s{%(nodeExporterSelector)s})) - ) != 0) by (%(clusterLabel)s, device) - ||| % $._config, legendFormat='{{%(clusterLabel)s}} {{device}}' % $._config - )) - ) - .addPanel( - diskIOSaturation - .addTarget(prometheus.target( - ||| - sum(( - instance_device:node_disk_io_time_weighted_seconds:rate%(rateInterval)s{%(nodeExporterSelector)s} - / scalar(count(instance_device:node_disk_io_time_weighted_seconds:rate%(rateInterval)s{%(nodeExporterSelector)s})) - ) != 0) by (%(clusterLabel)s, device) - ||| % $._config, legendFormat='{{%(clusterLabel)s}} {{device}}' % $._config - )) - ) - ) - .addRow( - row.new('Disk Space') - .addPanel( - diskSpaceUtilisation - .addTarget(prometheus.target( - ||| - sum ( - sum without (device) ( - max without (fstype, mountpoint, instance, pod) (( - node_filesystem_size_bytes{%(nodeExporterSelector)s, %(fsSelector)s, %(fsMountpointSelector)s} - node_filesystem_avail_bytes{%(nodeExporterSelector)s, %(fsSelector)s, %(fsMountpointSelector)s} - ) != 0) - ) - / scalar(sum(max without (fstype, mountpoint) (node_filesystem_size_bytes{%(nodeExporterSelector)s, %(fsSelector)s, %(fsMountpointSelector)s}))) - ) by (%(clusterLabel)s) - ||| % $._config, legendFormat='{{%(clusterLabel)s}}' % $._config - )) - ) - ), - } else {}, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/jsonnetfile.json deleted file mode 100644 index 721d4833a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/jsonnetfile.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet-lib.git", - "subdir": "grafonnet" - } - }, - "version": "master" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet-lib.git", - "subdir": "grafonnet-7.0" - } - }, - "version": "master" - } - ], - "legacyImports": false -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/lib/prom-mixin.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/lib/prom-mixin.libsonnet deleted file mode 100644 index 94f1b76a6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/lib/prom-mixin.libsonnet +++ /dev/null @@ -1,523 +0,0 @@ -local grafana = import 'github.com/grafana/grafonnet-lib/grafonnet/grafana.libsonnet'; -local dashboard = grafana.dashboard; -local row = grafana.row; -local prometheus = grafana.prometheus; -local template = grafana.template; -local graphPanel = grafana.graphPanel; -local grafana70 = import 'github.com/grafana/grafonnet-lib/grafonnet-7.0/grafana.libsonnet'; -local gaugePanel = grafana70.panel.gauge; -local table = grafana70.panel.table; - -{ - - new(config=null, platform=null, uid=null):: { - - local prometheusDatasourceTemplate = { - current: { - text: 'default', - value: 'default', - }, - hide: 0, - label: 'Data Source', - name: 'datasource', - options: [], - query: 'prometheus', - refresh: 1, - regex: '', - type: 'datasource', - }, - - local clusterTemplatePrototype = - template.new( - 'cluster', - '$datasource', - '', - hide=if config.showMultiCluster then '' else '2', - refresh='time', - label='Cluster', - ), - local clusterTemplate = - if platform == 'Darwin' then - clusterTemplatePrototype - { query: 'label_values(node_uname_info{%(nodeExporterSelector)s, sysname="Darwin"}, %(clusterLabel)s)' % config } - else - clusterTemplatePrototype - { query: 'label_values(node_uname_info{%(nodeExporterSelector)s, sysname!="Darwin"}, %(clusterLabel)s)' % config }, - - local instanceTemplatePrototype = - template.new( - 'instance', - '$datasource', - '', - refresh='time', - label='Instance', - ), - local instanceTemplate = - if platform == 'Darwin' then - instanceTemplatePrototype - { query: 'label_values(node_uname_info{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster", sysname="Darwin"}, instance)' % config } - else - instanceTemplatePrototype - { query: 'label_values(node_uname_info{%(nodeExporterSelector)s, %(clusterLabel)s="$cluster", sysname!="Darwin"}, instance)' % config }, - - local idleCPU = - graphPanel.new( - 'CPU Usage', - datasource='$datasource', - span=6, - format='percentunit', - max=1, - min=0, - stack=true, - ) - .addTarget(prometheus.target( - ||| - ( - (1 - sum without (mode) (rate(node_cpu_seconds_total{%(nodeExporterSelector)s, mode=~"idle|iowait|steal", instance="$instance", %(clusterLabel)s="$cluster"}[$__rate_interval]))) - / ignoring(cpu) group_left - count without (cpu, mode) (node_cpu_seconds_total{%(nodeExporterSelector)s, mode="idle", instance="$instance", %(clusterLabel)s="$cluster"}) - ) - ||| % config, - legendFormat='{{cpu}}', - intervalFactor=5, - )), - - local systemLoad = - graphPanel.new( - 'Load Average', - datasource='$datasource', - span=6, - format='short', - min=0, - fill=0, - ) - .addTarget(prometheus.target('node_load1{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='1m load average')) - .addTarget(prometheus.target('node_load5{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='5m load average')) - .addTarget(prometheus.target('node_load15{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='15m load average')) - .addTarget(prometheus.target('count(node_cpu_seconds_total{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster", mode="idle"})' % config, legendFormat='logical cores')), - - local memoryGraphPanelPrototype = - graphPanel.new( - 'Memory Usage', - datasource='$datasource', - span=9, - format='bytes', - min=0, - ), - local memoryGraph = - if platform == 'Linux' then - memoryGraphPanelPrototype { stack: true } - .addTarget(prometheus.target( - ||| - ( - node_memory_MemTotal_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} - - - node_memory_MemFree_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} - - - node_memory_Buffers_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} - - - node_memory_Cached_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} - ) - ||| % config, - legendFormat='memory used' - )) - .addTarget(prometheus.target('node_memory_Buffers_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='memory buffers')) - .addTarget(prometheus.target('node_memory_Cached_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='memory cached')) - .addTarget(prometheus.target('node_memory_MemFree_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='memory free')) - else if platform == 'Darwin' then - // not useful to stack - memoryGraphPanelPrototype { stack: false } - .addTarget(prometheus.target('node_memory_total_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='Physical Memory')) - .addTarget(prometheus.target( - ||| - ( - node_memory_internal_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} - - node_memory_purgeable_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} + - node_memory_wired_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} + - node_memory_compressed_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} - ) - ||| % config, legendFormat='Memory Used' - )) - .addTarget(prometheus.target( - ||| - ( - node_memory_internal_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} - - node_memory_purgeable_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"} - ) - ||| % config, legendFormat='App Memory' - )) - .addTarget(prometheus.target('node_memory_wired_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='Wired Memory')) - .addTarget(prometheus.target('node_memory_compressed_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}' % config, legendFormat='Compressed')), - - // NOTE: avg() is used to circumvent a label change caused by a node_exporter rollout. - local memoryGaugePanelPrototype = - gaugePanel.new( - title='Memory Usage', - datasource='$datasource', - ) - .addThresholdStep('rgba(50, 172, 45, 0.97)') - .addThresholdStep('rgba(237, 129, 40, 0.89)', 80) - .addThresholdStep('rgba(245, 54, 54, 0.9)', 90) - .setFieldConfig(max=100, min=0, unit='percent') - + { - span: 3, - }, - - local memoryGauge = - if platform == 'Linux' then - memoryGaugePanelPrototype - - .addTarget(prometheus.target( - ||| - 100 - - ( - avg(node_memory_MemAvailable_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}) / - avg(node_memory_MemTotal_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}) - * 100 - ) - ||| % config, - )) - - else if platform == 'Darwin' then - memoryGaugePanelPrototype - .addTarget(prometheus.target( - ||| - ( - ( - avg(node_memory_internal_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}) - - avg(node_memory_purgeable_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}) + - avg(node_memory_wired_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}) + - avg(node_memory_compressed_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}) - ) / - avg(node_memory_total_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster"}) - ) - * - 100 - ||| % config - )), - - local diskIO = - graphPanel.new( - 'Disk I/O', - datasource='$datasource', - span=6, - min=0, - fill=0, - ) - // TODO: Does it make sense to have those three in the same panel? - .addTarget(prometheus.target( - 'rate(node_disk_read_bytes_total{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster", %(diskDeviceSelector)s}[$__rate_interval])' % config, - legendFormat='{{device}} read', - intervalFactor=1, - )) - .addTarget(prometheus.target( - 'rate(node_disk_written_bytes_total{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster", %(diskDeviceSelector)s}[$__rate_interval])' % config, - legendFormat='{{device}} written', - intervalFactor=1, - )) - .addTarget(prometheus.target( - 'rate(node_disk_io_time_seconds_total{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster", %(diskDeviceSelector)s}[$__rate_interval])' % config, - legendFormat='{{device}} io time', - intervalFactor=1, - )) + - { - seriesOverrides: [ - { - alias: '/ read| written/', - yaxis: 1, - }, - { - alias: '/ io time/', - yaxis: 2, - }, - ], - yaxes: [ - self.yaxe(format='Bps'), - self.yaxe(format='percentunit'), - ], - }, - - local diskSpaceUsage = - table.new( - title='Disk Space Usage', - datasource='$datasource', - ) - .setFieldConfig(unit='decbytes') - .addThresholdStep(color='green', value=null) - .addThresholdStep(color='yellow', value=0.8) - .addThresholdStep(color='red', value=0.9) - .addTarget(prometheus.target( - ||| - max by (mountpoint) (node_filesystem_size_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster", %(fsSelector)s, %(fsMountpointSelector)s}) - ||| % config, - legendFormat='', - instant=true, - format='table' - )) - .addTarget(prometheus.target( - ||| - max by (mountpoint) (node_filesystem_avail_bytes{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster", %(fsSelector)s, %(fsMountpointSelector)s}) - ||| % config, - legendFormat='', - instant=true, - format='table' - )) - .addOverride( - matcher={ - id: 'byName', - options: 'Mounted on', - }, - properties=[ - { - id: 'custom.width', - value: 260, - }, - ], - ) - .addOverride( - matcher={ - id: 'byName', - options: 'Size', - }, - properties=[ - - { - id: 'custom.width', - value: 93, - }, - - ], - ) - .addOverride( - matcher={ - id: 'byName', - options: 'Used', - }, - properties=[ - { - id: 'custom.width', - value: 72, - }, - ], - ) - .addOverride( - matcher={ - id: 'byName', - options: 'Available', - }, - properties=[ - { - id: 'custom.width', - value: 88, - }, - ], - ) - - .addOverride( - matcher={ - id: 'byName', - options: 'Used, %', - }, - properties=[ - { - id: 'unit', - value: 'percentunit', - }, - { - id: 'custom.displayMode', - value: 'gradient-gauge', - }, - { - id: 'max', - value: 1, - }, - { - id: 'min', - value: 0, - }, - ] - ) - + { span: 6 } - + { - transformations: [ - { - id: 'groupBy', - options: { - fields: { - 'Value #A': { - aggregations: [ - 'lastNotNull', - ], - operation: 'aggregate', - }, - 'Value #B': { - aggregations: [ - 'lastNotNull', - ], - operation: 'aggregate', - }, - mountpoint: { - aggregations: [], - operation: 'groupby', - }, - }, - }, - }, - { - id: 'merge', - options: {}, - }, - { - id: 'calculateField', - options: { - alias: 'Used', - binary: { - left: 'Value #A (lastNotNull)', - operator: '-', - reducer: 'sum', - right: 'Value #B (lastNotNull)', - }, - mode: 'binary', - reduce: { - reducer: 'sum', - }, - }, - }, - { - id: 'calculateField', - options: { - alias: 'Used, %', - binary: { - left: 'Used', - operator: '/', - reducer: 'sum', - right: 'Value #A (lastNotNull)', - }, - mode: 'binary', - reduce: { - reducer: 'sum', - }, - }, - }, - { - id: 'organize', - options: { - excludeByName: {}, - indexByName: {}, - renameByName: { - 'Value #A (lastNotNull)': 'Size', - 'Value #B (lastNotNull)': 'Available', - mountpoint: 'Mounted on', - }, - }, - }, - { - id: 'sortBy', - options: { - fields: {}, - sort: [ - { - field: 'Mounted on', - }, - ], - }, - }, - ], - }, - - - local networkReceived = - graphPanel.new( - 'Network Received', - description='Network received (bits/s)', - datasource='$datasource', - span=6, - format='bps', - min=0, - fill=0, - ) - .addTarget(prometheus.target( - 'rate(node_network_receive_bytes_total{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster", device!="lo"}[$__rate_interval]) * 8' % config, - legendFormat='{{device}}', - intervalFactor=1, - )), - - local networkTransmitted = - graphPanel.new( - 'Network Transmitted', - description='Network transmitted (bits/s)', - datasource='$datasource', - span=6, - format='bps', - min=0, - fill=0, - ) - .addTarget(prometheus.target( - 'rate(node_network_transmit_bytes_total{%(nodeExporterSelector)s, instance="$instance", %(clusterLabel)s="$cluster", device!="lo"}[$__rate_interval]) * 8' % config, - legendFormat='{{device}}', - intervalFactor=1, - )), - - local cpuRow = - row.new('CPU') - .addPanel(idleCPU) - .addPanel(systemLoad), - - local memoryRow = - row.new('Memory') - .addPanel(memoryGraph) - .addPanel(memoryGauge), - - local diskRow = - row.new('Disk') - .addPanel(diskIO) - .addPanel(diskSpaceUsage), - - local networkRow = - row.new('Network') - .addPanel(networkReceived) - .addPanel(networkTransmitted), - - local rows = - [ - cpuRow, - memoryRow, - diskRow, - networkRow, - ], - - local templates = - [ - prometheusDatasourceTemplate, - clusterTemplate, - instanceTemplate, - ], - - - dashboard: if platform == 'Linux' then - dashboard.new( - '%sNodes' % config.dashboardNamePrefix, - time_from='now-1h', - tags=(config.dashboardTags), - timezone='utc', - refresh='30s', - graphTooltip='shared_crosshair', - uid=std.md5(uid) - ) - .addTemplates(templates) - .addRows(rows) - else if platform == 'Darwin' then - dashboard.new( - '%sMacOS' % config.dashboardNamePrefix, - time_from='now-1h', - tags=(config.dashboardTags), - timezone='utc', - refresh='30s', - graphTooltip='shared_crosshair', - uid=std.md5(uid) - ) - .addTemplates(templates) - .addRows(rows), - - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/mixin.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/mixin.libsonnet deleted file mode 100644 index b9831f938..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/mixin.libsonnet +++ /dev/null @@ -1,4 +0,0 @@ -(import 'config.libsonnet') + -(import 'alerts/alerts.libsonnet') + -(import 'dashboards/dashboards.libsonnet') + -(import 'rules/rules.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/rules.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/rules.jsonnet deleted file mode 100644 index dbe13f417..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/rules.jsonnet +++ /dev/null @@ -1 +0,0 @@ -std.manifestYamlDoc((import 'mixin.libsonnet').prometheusRules) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/rules/rules.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/rules/rules.libsonnet deleted file mode 100644 index 9c8eb90dd..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/node_exporter/docs/node-mixin/rules/rules.libsonnet +++ /dev/null @@ -1,119 +0,0 @@ -{ - prometheusRules+:: { - groups+: [ - { - name: 'node-exporter.rules', - rules: [ - { - // This rule gives the number of CPUs per node. - record: 'instance:node_num_cpu:sum', - expr: ||| - count without (cpu, mode) ( - node_cpu_seconds_total{%(nodeExporterSelector)s,mode="idle"} - ) - ||| % $._config, - }, - { - // CPU utilisation is % CPU without {idle,iowait,steal}. - record: 'instance:node_cpu_utilisation:rate%(rateInterval)s' % $._config, - expr: ||| - 1 - avg without (cpu) ( - sum without (mode) (rate(node_cpu_seconds_total{%(nodeExporterSelector)s, mode=~"idle|iowait|steal"}[%(rateInterval)s])) - ) - ||| % $._config, - }, - { - // This is CPU saturation: 1min avg run queue length / number of CPUs. - // Can go over 1. - // TODO: There are situation where a run queue >1/core is just normal and fine. - // We need to clarify how to read this metric and if its usage is helpful at all. - record: 'instance:node_load1_per_cpu:ratio', - expr: ||| - ( - node_load1{%(nodeExporterSelector)s} - / - instance:node_num_cpu:sum{%(nodeExporterSelector)s} - ) - ||| % $._config, - }, - { - // Memory utilisation (ratio of used memory per instance). - record: 'instance:node_memory_utilisation:ratio', - expr: ||| - 1 - ( - ( - node_memory_MemAvailable_bytes{%(nodeExporterSelector)s} - or - ( - node_memory_Buffers_bytes{%(nodeExporterSelector)s} - + - node_memory_Cached_bytes{%(nodeExporterSelector)s} - + - node_memory_MemFree_bytes{%(nodeExporterSelector)s} - + - node_memory_Slab_bytes{%(nodeExporterSelector)s} - ) - ) - / - node_memory_MemTotal_bytes{%(nodeExporterSelector)s} - ) - ||| % $._config, - }, - { - record: 'instance:node_vmstat_pgmajfault:rate%(rateInterval)s' % $._config, - expr: ||| - rate(node_vmstat_pgmajfault{%(nodeExporterSelector)s}[%(rateInterval)s]) - ||| % $._config, - }, - { - // Disk utilisation (seconds spent, 1 second rate). - record: 'instance_device:node_disk_io_time_seconds:rate%(rateInterval)s' % $._config, - expr: ||| - rate(node_disk_io_time_seconds_total{%(nodeExporterSelector)s, %(diskDeviceSelector)s}[%(rateInterval)s]) - ||| % $._config, - }, - { - // Disk saturation (weighted seconds spent, 1 second rate). - record: 'instance_device:node_disk_io_time_weighted_seconds:rate%(rateInterval)s' % $._config, - expr: ||| - rate(node_disk_io_time_weighted_seconds_total{%(nodeExporterSelector)s, %(diskDeviceSelector)s}[%(rateInterval)s]) - ||| % $._config, - }, - { - record: 'instance:node_network_receive_bytes_excluding_lo:rate%(rateInterval)s' % $._config, - expr: ||| - sum without (device) ( - rate(node_network_receive_bytes_total{%(nodeExporterSelector)s, device!="lo"}[%(rateInterval)s]) - ) - ||| % $._config, - }, - { - record: 'instance:node_network_transmit_bytes_excluding_lo:rate%(rateInterval)s' % $._config, - expr: ||| - sum without (device) ( - rate(node_network_transmit_bytes_total{%(nodeExporterSelector)s, device!="lo"}[%(rateInterval)s]) - ) - ||| % $._config, - }, - // TODO: Find out if those drops ever happen on modern switched networks. - { - record: 'instance:node_network_receive_drop_excluding_lo:rate%(rateInterval)s' % $._config, - expr: ||| - sum without (device) ( - rate(node_network_receive_drop_total{%(nodeExporterSelector)s, device!="lo"}[%(rateInterval)s]) - ) - ||| % $._config, - }, - { - record: 'instance:node_network_transmit_drop_excluding_lo:rate%(rateInterval)s' % $._config, - expr: ||| - sum without (device) ( - rate(node_network_transmit_drop_total{%(nodeExporterSelector)s, device!="lo"}[%(rateInterval)s]) - ) - ||| % $._config, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/.gitignore b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/.gitignore deleted file mode 100644 index b23a75c9b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -*.yaml -dashboards_out -vendor -jsonnetfile.lock.json diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/Makefile b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/Makefile deleted file mode 100644 index c3023274c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -JSONNET_FMT := jsonnetfmt -n 2 --max-blank-lines 2 --string-style s --comment-style s - -all: fmt prometheus_alerts.yaml dashboards_out lint - -fmt: - find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \ - xargs -n 1 -- $(JSONNET_FMT) -i - -prometheus_alerts.yaml: mixin.libsonnet config.libsonnet alerts.libsonnet - jsonnet -S alerts.jsonnet > $@ - -dashboards_out: mixin.libsonnet config.libsonnet dashboards.libsonnet - @mkdir -p dashboards_out - jsonnet -J vendor -m dashboards_out dashboards.jsonnet - -lint: prometheus_alerts.yaml - find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \ - while read f; do \ - $(JSONNET_FMT) "$$f" | diff -u "$$f" -; \ - done - - promtool check rules prometheus_alerts.yaml - -.PHONY: jb_install -jb_install: - jb install - -clean: - rm -rf dashboards_out prometheus_alerts.yaml diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/README.md deleted file mode 100644 index ef9c8f7c1..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/README.md +++ /dev/null @@ -1,36 +0,0 @@ -# Prometheus Mixin - -_This is work in progress. We aim for it to become a good role model for alerts -and dashboards eventually, but it is not quite there yet._ - -The Prometheus Mixin is a set of configurable, reusable, and extensible alerts -and dashboards for Prometheus. - -To use them, you need to have `jsonnet` (v0.13+) and `jb` installed. If you -have a working Go development environment, it's easiest to run the following: -```bash -$ go install github.com/google/go-jsonnet/cmd/jsonnet@latest -$ go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest -$ go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest -``` - -_Note: The make targets `lint` and `fmt` need the `jsonnetfmt` binary, which is -available from [v.0.16.0](https://github.com/google/jsonnet/releases/tag/v0.16.0) in the Go implementation of `jsonnet`. If your jsonnet version is older than 0.16.0 you have to either upgrade or install the [C++ version of -jsonnetfmt](https://github.com/google/jsonnet) if you want to use `make lint` -or `make fmt`._ - -Next, install the dependencies by running the following command in this -directory: -```bash -$ jb install -``` - -You can then build a `prometheus_alerts.yaml` with the alerts and a directory -`dashboards_out` with the Grafana dashboard JSON files: -```bash -$ make prometheus_alerts.yaml -$ make dashboards_out -``` - -For more advanced uses of mixins, see https://github.com/monitoring-mixins/docs. - diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/alerts.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/alerts.jsonnet deleted file mode 100644 index 75e7c1b29..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/alerts.jsonnet +++ /dev/null @@ -1 +0,0 @@ -std.manifestYamlDoc((import 'mixin.libsonnet').prometheusAlerts) diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/alerts.libsonnet deleted file mode 100644 index 563daab80..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/alerts.libsonnet +++ /dev/null @@ -1,498 +0,0 @@ -{ - prometheusAlerts+:: { - groups+: [ - { - name: 'prometheus', - rules: [ - { - alert: 'PrometheusBadConfig', - expr: ||| - # Without max_over_time, failed scrapes could create false negatives, see - # https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0 for details. - max_over_time(prometheus_config_last_reload_successful{%(prometheusSelector)s}[5m]) == 0 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Failed Prometheus configuration reload.', - description: 'Prometheus %(prometheusName)s has failed to reload its configuration.' % $._config, - }, - }, - { - alert: 'PrometheusSDRefreshFailure', - expr: ||| - increase(prometheus_sd_refresh_failures_total{%(prometheusSelector)s}[10m]) > 0 - ||| % $._config, - 'for': '20m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Failed Prometheus SD refresh.', - description: 'Prometheus %(prometheusName)s has failed to refresh SD with mechanism {{$labels.mechanism}}.' % $._config, - }, - }, - { - alert: 'PrometheusKubernetesListWatchFailures', - expr: ||| - increase(prometheus_sd_kubernetes_failures_total{%(prometheusSelector)s}[5m]) > 0 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Requests in Kubernetes SD are failing.', - description: 'Kubernetes service discovery of Prometheus %(prometheusName)s is experiencing {{ printf "%%.0f" $value }} failures with LIST/WATCH requests to the Kubernetes API in the last 5 minutes.' % $._config, - }, - }, - { - alert: 'PrometheusNotificationQueueRunningFull', - expr: ||| - # Without min_over_time, failed scrapes could create false negatives, see - # https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0 for details. - ( - predict_linear(prometheus_notifications_queue_length{%(prometheusSelector)s}[5m], 60 * 30) - > - min_over_time(prometheus_notifications_queue_capacity{%(prometheusSelector)s}[5m]) - ) - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus alert notification queue predicted to run full in less than 30m.', - description: 'Alert notification queue of Prometheus %(prometheusName)s is running full.' % $._config, - }, - }, - { - alert: 'PrometheusErrorSendingAlertsToSomeAlertmanagers', - expr: ||| - ( - rate(prometheus_notifications_errors_total{%(prometheusSelector)s}[5m]) - / - rate(prometheus_notifications_sent_total{%(prometheusSelector)s}[5m]) - ) - * 100 - > 1 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus has encountered more than 1% errors sending alerts to a specific Alertmanager.', - description: '{{ printf "%%.1f" $value }}%% errors while sending alerts from Prometheus %(prometheusName)s to Alertmanager {{$labels.alertmanager}}.' % $._config, - }, - }, - { - alert: 'PrometheusNotConnectedToAlertmanagers', - expr: ||| - # Without max_over_time, failed scrapes could create false negatives, see - # https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0 for details. - max_over_time(prometheus_notifications_alertmanagers_discovered{%(prometheusSelector)s}[5m]) < 1 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus is not connected to any Alertmanagers.', - description: 'Prometheus %(prometheusName)s is not connected to any Alertmanagers.' % $._config, - }, - }, - { - alert: 'PrometheusTSDBReloadsFailing', - expr: ||| - increase(prometheus_tsdb_reloads_failures_total{%(prometheusSelector)s}[3h]) > 0 - ||| % $._config, - 'for': '4h', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus has issues reloading blocks from disk.', - description: 'Prometheus %(prometheusName)s has detected {{$value | humanize}} reload failures over the last 3h.' % $._config, - }, - }, - { - alert: 'PrometheusTSDBCompactionsFailing', - expr: ||| - increase(prometheus_tsdb_compactions_failed_total{%(prometheusSelector)s}[3h]) > 0 - ||| % $._config, - 'for': '4h', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus has issues compacting blocks.', - description: 'Prometheus %(prometheusName)s has detected {{$value | humanize}} compaction failures over the last 3h.' % $._config, - }, - }, - { - alert: 'PrometheusNotIngestingSamples', - expr: ||| - ( - sum without(type) (rate(prometheus_tsdb_head_samples_appended_total{%(prometheusSelector)s}[5m])) <= 0 - and - ( - sum without(scrape_job) (prometheus_target_metadata_cache_entries{%(prometheusSelector)s}) > 0 - or - sum without(rule_group) (prometheus_rule_group_rules{%(prometheusSelector)s}) > 0 - ) - ) - ||| % $._config, - 'for': '10m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus is not ingesting samples.', - description: 'Prometheus %(prometheusName)s is not ingesting samples.' % $._config, - }, - }, - { - alert: 'PrometheusDuplicateTimestamps', - expr: ||| - rate(prometheus_target_scrapes_sample_duplicate_timestamp_total{%(prometheusSelector)s}[5m]) > 0 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus is dropping samples with duplicate timestamps.', - description: 'Prometheus %(prometheusName)s is dropping {{ printf "%%.4g" $value }} samples/s with different values but duplicated timestamp.' % $._config, - }, - }, - { - alert: 'PrometheusOutOfOrderTimestamps', - expr: ||| - rate(prometheus_target_scrapes_sample_out_of_order_total{%(prometheusSelector)s}[5m]) > 0 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus drops samples with out-of-order timestamps.', - description: 'Prometheus %(prometheusName)s is dropping {{ printf "%%.4g" $value }} samples/s with timestamps arriving out of order.' % $._config, - }, - }, - { - alert: 'PrometheusRemoteStorageFailures', - expr: ||| - ( - (rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[5m]) or rate(prometheus_remote_storage_samples_failed_total{%(prometheusSelector)s}[5m])) - / - ( - (rate(prometheus_remote_storage_failed_samples_total{%(prometheusSelector)s}[5m]) or rate(prometheus_remote_storage_samples_failed_total{%(prometheusSelector)s}[5m])) - + - (rate(prometheus_remote_storage_succeeded_samples_total{%(prometheusSelector)s}[5m]) or rate(prometheus_remote_storage_samples_total{%(prometheusSelector)s}[5m])) - ) - ) - * 100 - > 1 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Prometheus fails to send samples to remote storage.', - description: 'Prometheus %(prometheusName)s failed to send {{ printf "%%.1f" $value }}%% of the samples to {{ $labels.remote_name}}:{{ $labels.url }}' % $._config, - }, - }, - { - alert: 'PrometheusRemoteWriteBehind', - expr: ||| - # Without max_over_time, failed scrapes could create false negatives, see - # https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0 for details. - ( - max_over_time(prometheus_remote_storage_highest_timestamp_in_seconds{%(prometheusSelector)s}[5m]) - - ignoring(remote_name, url) group_right - max_over_time(prometheus_remote_storage_queue_highest_sent_timestamp_seconds{%(prometheusSelector)s}[5m]) - ) - > 120 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Prometheus remote write is behind.', - description: 'Prometheus %(prometheusName)s remote write is {{ printf "%%.1f" $value }}s behind for {{ $labels.remote_name}}:{{ $labels.url }}.' % $._config, - }, - }, - { - alert: 'PrometheusRemoteWriteDesiredShards', - expr: ||| - # Without max_over_time, failed scrapes could create false negatives, see - # https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0 for details. - ( - max_over_time(prometheus_remote_storage_shards_desired{%(prometheusSelector)s}[5m]) - > - max_over_time(prometheus_remote_storage_shards_max{%(prometheusSelector)s}[5m]) - ) - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus remote write desired shards calculation wants to run more than configured max shards.', - description: 'Prometheus %(prometheusName)s remote write desired shards calculation wants to run {{ $value }} shards for queue {{ $labels.remote_name}}:{{ $labels.url }}, which is more than the max of {{ printf `prometheus_remote_storage_shards_max{instance="%%s",%(prometheusSelector)s}` $labels.instance | query | first | value }}.' % $._config, - }, - }, - { - alert: 'PrometheusRuleFailures', - expr: ||| - increase(prometheus_rule_evaluation_failures_total{%(prometheusSelector)s}[5m]) > 0 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Prometheus is failing rule evaluations.', - description: 'Prometheus %(prometheusName)s has failed to evaluate {{ printf "%%.0f" $value }} rules in the last 5m.' % $._config, - }, - }, - { - alert: 'PrometheusMissingRuleEvaluations', - expr: ||| - increase(prometheus_rule_group_iterations_missed_total{%(prometheusSelector)s}[5m]) > 0 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus is missing rule evaluations due to slow rule group evaluation.', - description: 'Prometheus %(prometheusName)s has missed {{ printf "%%.0f" $value }} rule group evaluations in the last 5m.' % $._config, - }, - }, - { - alert: 'PrometheusTargetLimitHit', - expr: ||| - increase(prometheus_target_scrape_pool_exceeded_target_limit_total{%(prometheusSelector)s}[5m]) > 0 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus has dropped targets because some scrape configs have exceeded the targets limit.', - description: 'Prometheus %(prometheusName)s has dropped {{ printf "%%.0f" $value }} targets because the number of targets exceeded the configured target_limit.' % $._config, - }, - }, - { - alert: 'PrometheusLabelLimitHit', - expr: ||| - increase(prometheus_target_scrape_pool_exceeded_label_limits_total{%(prometheusSelector)s}[5m]) > 0 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus has dropped targets because some scrape configs have exceeded the labels limit.', - description: 'Prometheus %(prometheusName)s has dropped {{ printf "%%.0f" $value }} targets because some samples exceeded the configured label_limit, label_name_length_limit or label_value_length_limit.' % $._config, - }, - }, - { - alert: 'PrometheusScrapeBodySizeLimitHit', - expr: ||| - increase(prometheus_target_scrapes_exceeded_body_size_limit_total{%(prometheusSelector)s}[5m]) > 0 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus has dropped some targets that exceeded body size limit.', - description: 'Prometheus %(prometheusName)s has failed {{ printf "%%.0f" $value }} scrapes in the last 5m because some targets exceeded the configured body_size_limit.' % $._config, - }, - }, - { - alert: 'PrometheusScrapeSampleLimitHit', - expr: ||| - increase(prometheus_target_scrapes_exceeded_sample_limit_total{%(prometheusSelector)s}[5m]) > 0 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus has failed scrapes that have exceeded the configured sample limit.', - description: 'Prometheus %(prometheusName)s has failed {{ printf "%%.0f" $value }} scrapes in the last 5m because some targets exceeded the configured sample_limit.' % $._config, - }, - }, - { - alert: 'PrometheusTargetSyncFailure', - expr: ||| - increase(prometheus_target_sync_failed_total{%(prometheusSelector)s}[30m]) > 0 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Prometheus has failed to sync targets.', - description: '{{ printf "%%.0f" $value }} targets in Prometheus %(prometheusName)s have failed to sync because invalid configuration was supplied.' % $._config, - }, - }, - { - alert: 'PrometheusHighQueryLoad', - expr: ||| - avg_over_time(prometheus_engine_queries{%(prometheusSelector)s}[5m]) / max_over_time(prometheus_engine_queries_concurrent_max{%(prometheusSelector)s}[5m]) > 0.8 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'warning', - }, - annotations: { - summary: 'Prometheus is reaching its maximum capacity serving concurrent requests.', - description: 'Prometheus %(prometheusName)s query API has less than 20%% available capacity in its query engine for the last 15 minutes.' % $._config, - }, - }, - ] + if $._config.prometheusHAGroupLabels == '' then self.rulesWithoutHA else self.rulesWithHA, - rulesWithoutHA:: [ - { - alert: 'PrometheusErrorSendingAlertsToAnyAlertmanager', - expr: ||| - min without (alertmanager) ( - rate(prometheus_notifications_errors_total{%(prometheusSelector)s,alertmanager!~`%(nonNotifyingAlertmanagerRegEx)s`}[5m]) - / - rate(prometheus_notifications_sent_total{%(prometheusSelector)s,alertmanager!~`%(nonNotifyingAlertmanagerRegEx)s`}[5m]) - ) - * 100 - > 3 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Prometheus encounters more than 3% errors sending alerts to any Alertmanager.', - description: '{{ printf "%%.1f" $value }}%% minimum errors while sending alerts from Prometheus %(prometheusName)s to any Alertmanager.' % $._config, - }, - }, - ], - rulesWithHA:: [ - { - alert: 'PrometheusErrorSendingAlertsToAnyAlertmanager', - expr: ||| - min by (%(prometheusHAGroupLabels)s) ( - rate(prometheus_notifications_errors_total{%(prometheusSelector)s,alertmanager!~`%(nonNotifyingAlertmanagerRegEx)s`}[5m]) - / - rate(prometheus_notifications_sent_total{%(prometheusSelector)s,alertmanager!~`%(nonNotifyingAlertmanagerRegEx)s`}[5m]) - ) - * 100 - > 3 - ||| % $._config, - 'for': '15m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'Each Prometheus server in an HA group encounters more than 3% errors sending alerts to any Alertmanager.', - description: '{{ printf "%%.1f" $value }}%% minimum errors while sending alerts from any Prometheus server in HA group %(prometheusHAGroupName)s to any Alertmanager.' % $._config, - }, - }, - { - alert: 'PrometheusHAGroupNotIngestingSamples', - expr: ||| - max by (%(prometheusHAGroupLabels)s) ( - rate(prometheus_tsdb_head_samples_appended_total{%(prometheusSelector)s}[5m]) - and - ( - sum without(scrape_job) (prometheus_target_metadata_cache_entries{%(prometheusSelector)s}) > 0 - or - sum without(rule_group) (prometheus_rule_group_rules{%(prometheusSelector)s}) > 0 - ) - ) - <= 0 - ||| % $._config, - 'for': '10m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'A whole Prometheus HA group is not ingesting samples.', - description: 'None of the Prometheus instances in HA group %(prometheusHAGroupName)s is ingesting any samples.' % $._config, - }, - }, - // Both the following critical alerts, PrometheusHAGroupDown and - // PrometheusHAGroupCrashlooping, fire if a whole HA group is - // unhealthy. It is implied that a generic warning alert is in place - // for individual instances being down or crashlooping. - { - alert: 'PrometheusHAGroupDown', - expr: ||| - ( - count by (%(prometheusHAGroupLabels)s) ( - avg_over_time(up{%(prometheusSelector)s}[5m]) < 0.5 - ) - / - count by (%(prometheusHAGroupLabels)s) ( - up{%(prometheusSelector)s} - ) - ) - > 0.5 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'More than half of the Prometheus instances within the same HA group are down.', - description: '{{ $value | humanizePercentage }} of Prometheus instances within the %(prometheusHAGroupName)s HA group have been up for less than half of the last 5m.' % $._config, - }, - }, - { - alert: 'PrometheusHAGroupCrashlooping', - expr: ||| - ( - prometheus_tsdb_clean_start{%(prometheusSelector)s} == 0 - and - ( - count by (%(prometheusHAGroupLabels)s) ( - changes(process_start_time_seconds{%(prometheusSelector)s}[1h]) > 1 - ) - / - count by (%(prometheusHAGroupLabels)s) ( - up{%(prometheusSelector)s} - ) - ) - > 0.5 - ) - or - ( - count by (%(prometheusHAGroupLabels)s) ( - changes(process_start_time_seconds{%(prometheusSelector)s}[30m]) > 4 - ) - / - count by (%(prometheusHAGroupLabels)s) ( - up{%(prometheusSelector)s} - ) - ) - > 0.5 - ||| % $._config, - 'for': '5m', - labels: { - severity: 'critical', - }, - annotations: { - summary: 'More than half of the Prometheus instances within the same HA group are crashlooping.', - description: '{{ $value | humanizePercentage }} of Prometheus instances within the %(prometheusHAGroupName)s HA group have had at least 5 total restarts in the last 30m or 2 unclean restarts in the last 1h.' % $._config, - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/config.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/config.libsonnet deleted file mode 100644 index 70d46a221..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/config.libsonnet +++ /dev/null @@ -1,53 +0,0 @@ -{ - _config+:: { - // prometheusSelector is inserted as part of the label selector in - // PromQL queries to identify metrics collected from Prometheus - // servers. - prometheusSelector: 'job="prometheus"', - - // prometheusHAGroupLabels is a string with comma-separated labels - // that are common labels of instances belonging to the same - // high-availability group of Prometheus servers, i.e. identically - // configured Prometheus servers. Include not only enough labels - // to identify the members of the HA group, but also all common - // labels you want to keep for resulting HA-group-level alerts. - // - // If this is set to an empty string, no HA-related alerts are applied. - prometheusHAGroupLabels: '', - - // prometheusName is inserted into annotations to name the Prometheus - // instance affected by the alert. - prometheusName: '{{$labels.instance}}', - // If you run Prometheus on Kubernetes with the Prometheus - // Operator, you can make use of the configured target labels for - // nicer naming: - // prometheusName: '{{$labels.namespace}}/{{$labels.pod}}' - - // prometheusHAGroupName is inserted into annotations to name an - // HA group. All labels used here must also be present in - // prometheusHAGroupLabels above. - prometheusHAGroupName: '{{$labels.job}}', - - // nonNotifyingAlertmanagerRegEx can be used to mark Alertmanager - // instances that are not part of the Alertmanager cluster - // delivering production notifications. This is important for the - // PrometheusErrorSendingAlertsToAnyAlertmanager alert. Otherwise, - // a still working test or auditing instance could mask a full - // failure of all the production instances. The provided regular - // expression is matched against the `alertmanager` label. - // Example: @'http://test-alertmanager\..*' - nonNotifyingAlertmanagerRegEx: @'', - - grafanaPrometheus: { - prefix: 'Prometheus / ', - tags: ['prometheus-mixin'], - // The default refresh time for all dashboards, default to 60s - refresh: '60s', - }, - - // Opt-out of multi-cluster dashboards by overriding this. - showMultiCluster: true, - // The cluster label to infer the cluster name from. - clusterLabel: 'cluster', - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/dashboards.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/dashboards.jsonnet deleted file mode 100644 index 9d913ed3f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/dashboards.jsonnet +++ /dev/null @@ -1,6 +0,0 @@ -local dashboards = (import 'mixin.libsonnet').grafanaDashboards; - -{ - [name]: dashboards[name] - for name in std.objectFields(dashboards) -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/dashboards.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/dashboards.libsonnet deleted file mode 100644 index 2bdd168cc..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/dashboards.libsonnet +++ /dev/null @@ -1,438 +0,0 @@ -local grafana = import 'github.com/grafana/grafonnet-lib/grafonnet/grafana.libsonnet'; -local g = import 'github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet'; -local dashboard = grafana.dashboard; -local row = grafana.row; -local singlestat = grafana.singlestat; -local prometheus = grafana.prometheus; -local graphPanel = grafana.graphPanel; -local tablePanel = grafana.tablePanel; -local template = grafana.template; -{ - grafanaDashboards+:: { - 'prometheus.json': - local showMultiCluster = $._config.showMultiCluster; - local dashboard = g.dashboard( - '%(prefix)sOverview' % $._config.grafanaPrometheus - ); - local templatedDashboard = if showMultiCluster then - dashboard - .addMultiTemplate('cluster', 'prometheus_build_info{%(prometheusSelector)s}' % $._config, $._config.clusterLabel) - .addMultiTemplate('job', 'prometheus_build_info{cluster=~"$cluster"}', 'job') - .addMultiTemplate('instance', 'prometheus_build_info{cluster=~"$cluster", job=~"$job"}', 'instance') - else - dashboard - .addMultiTemplate('job', 'prometheus_build_info{%(prometheusSelector)s}' % $._config, 'job') - .addMultiTemplate('instance', 'prometheus_build_info{job=~"$job"}', 'instance'); - templatedDashboard - .addRow( - g.row('Prometheus Stats') - .addPanel( - g.panel('Prometheus Stats') + - g.tablePanel(if showMultiCluster then [ - 'count by (cluster, job, instance, version) (prometheus_build_info{cluster=~"$cluster", job=~"$job", instance=~"$instance"})', - 'max by (cluster, job, instance) (time() - process_start_time_seconds{cluster=~"$cluster", job=~"$job", instance=~"$instance"})', - ] else [ - 'count by (job, instance, version) (prometheus_build_info{job=~"$job", instance=~"$instance"})', - 'max by (job, instance) (time() - process_start_time_seconds{job=~"$job", instance=~"$instance"})', - ], { - cluster: { alias: if showMultiCluster then 'Cluster' else '' }, - job: { alias: 'Job' }, - instance: { alias: 'Instance' }, - version: { alias: 'Version' }, - 'Value #A': { alias: 'Count', type: 'hidden' }, - 'Value #B': { alias: 'Uptime', type: 'number', unit: 's' }, - }) - ) - ) - .addRow( - g.row('Discovery') - .addPanel( - g.panel('Target Sync') + - g.queryPanel(if showMultiCluster then 'sum(rate(prometheus_target_sync_length_seconds_sum{cluster=~"$cluster",job=~"$job",instance=~"$instance"}[5m])) by (cluster, job, scrape_job, instance) * 1e3' - else 'sum(rate(prometheus_target_sync_length_seconds_sum{job=~"$job",instance=~"$instance"}[5m])) by (scrape_job) * 1e3', - if showMultiCluster then '{{cluster}}:{{job}}:{{instance}}:{{scrape_job}}' - else '{{scrape_job}}') + - { yaxes: g.yaxes('ms') } - ) - .addPanel( - g.panel('Targets') + - g.queryPanel(if showMultiCluster then 'sum by (cluster, job, instance) (prometheus_sd_discovered_targets{cluster=~"$cluster", job=~"$job",instance=~"$instance"})' - else 'sum(prometheus_sd_discovered_targets{job=~"$job",instance=~"$instance"})', - if showMultiCluster then '{{cluster}}:{{job}}:{{instance}}' - else 'Targets') + - g.stack - ) - ) - .addRow( - g.row('Retrieval') - .addPanel( - g.panel('Average Scrape Interval Duration') + - g.queryPanel(if showMultiCluster then 'rate(prometheus_target_interval_length_seconds_sum{cluster=~"$cluster", job=~"$job",instance=~"$instance"}[5m]) / rate(prometheus_target_interval_length_seconds_count{cluster=~"$cluster", job=~"$job",instance=~"$instance"}[5m]) * 1e3' - else 'rate(prometheus_target_interval_length_seconds_sum{job=~"$job",instance=~"$instance"}[5m]) / rate(prometheus_target_interval_length_seconds_count{job=~"$job",instance=~"$instance"}[5m]) * 1e3', - if showMultiCluster then '{{cluster}}:{{job}}:{{instance}} {{interval}} configured' - else '{{interval}} configured') + - { yaxes: g.yaxes('ms') } - ) - .addPanel( - g.panel('Scrape failures') + - g.queryPanel(if showMultiCluster then [ - 'sum by (cluster, job, instance) (rate(prometheus_target_scrapes_exceeded_body_size_limit_total{cluster=~"$cluster",job=~"$job",instance=~"$instance"}[1m]))', - 'sum by (cluster, job, instance) (rate(prometheus_target_scrapes_exceeded_sample_limit_total{cluster=~"$cluster",job=~"$job",instance=~"$instance"}[1m]))', - 'sum by (cluster, job, instance) (rate(prometheus_target_scrapes_sample_duplicate_timestamp_total{cluster=~"$cluster",job=~"$job",instance=~"$instance"}[1m]))', - 'sum by (cluster, job, instance) (rate(prometheus_target_scrapes_sample_out_of_bounds_total{cluster=~"$cluster",job=~"$job",instance=~"$instance"}[1m]))', - 'sum by (cluster, job, instance) (rate(prometheus_target_scrapes_sample_out_of_order_total{cluster=~"$cluster",job=~"$job",instance=~"$instance"}[1m]))', - ] else [ - 'sum by (job) (rate(prometheus_target_scrapes_exceeded_body_size_limit_total[1m]))', - 'sum by (job) (rate(prometheus_target_scrapes_exceeded_sample_limit_total[1m]))', - 'sum by (job) (rate(prometheus_target_scrapes_sample_duplicate_timestamp_total[1m]))', - 'sum by (job) (rate(prometheus_target_scrapes_sample_out_of_bounds_total[1m]))', - 'sum by (job) (rate(prometheus_target_scrapes_sample_out_of_order_total[1m]))', - ], if showMultiCluster then [ - 'exceeded body size limit: {{cluster}} {{job}} {{instance}}', - 'exceeded sample limit: {{cluster}} {{job}} {{instance}}', - 'duplicate timestamp: {{cluster}} {{job}} {{instance}}', - 'out of bounds: {{cluster}} {{job}} {{instance}}', - 'out of order: {{cluster}} {{job}} {{instance}}', - ] else [ - 'exceeded body size limit: {{job}}', - 'exceeded sample limit: {{job}}', - 'duplicate timestamp: {{job}}', - 'out of bounds: {{job}}', - 'out of order: {{job}}', - ]) + - g.stack - ) - .addPanel( - g.panel('Appended Samples') + - g.queryPanel(if showMultiCluster then 'rate(prometheus_tsdb_head_samples_appended_total{cluster=~"$cluster", job=~"$job",instance=~"$instance"}[5m])' - else 'rate(prometheus_tsdb_head_samples_appended_total{job=~"$job",instance=~"$instance"}[5m])', - if showMultiCluster then '{{cluster}} {{job}} {{instance}}' - else '{{job}} {{instance}}') + - g.stack - ) - ) - .addRow( - g.row('Storage') - .addPanel( - g.panel('Head Series') + - g.queryPanel(if showMultiCluster then 'prometheus_tsdb_head_series{cluster=~"$cluster",job=~"$job",instance=~"$instance"}' - else 'prometheus_tsdb_head_series{job=~"$job",instance=~"$instance"}', - if showMultiCluster then '{{cluster}} {{job}} {{instance}} head series' - else '{{job}} {{instance}} head series') + - g.stack - ) - .addPanel( - g.panel('Head Chunks') + - g.queryPanel(if showMultiCluster then 'prometheus_tsdb_head_chunks{cluster=~"$cluster",job=~"$job",instance=~"$instance"}' - else 'prometheus_tsdb_head_chunks{job=~"$job",instance=~"$instance"}', - if showMultiCluster then '{{cluster}} {{job}} {{instance}} head chunks' - else '{{job}} {{instance}} head chunks') + - g.stack - ) - ) - .addRow( - g.row('Query') - .addPanel( - g.panel('Query Rate') + - g.queryPanel(if showMultiCluster then 'rate(prometheus_engine_query_duration_seconds_count{cluster=~"$cluster",job=~"$job",instance=~"$instance",slice="inner_eval"}[5m])' - else 'rate(prometheus_engine_query_duration_seconds_count{job=~"$job",instance=~"$instance",slice="inner_eval"}[5m])', - if showMultiCluster then '{{cluster}} {{job}} {{instance}}' - else '{{job}} {{instance}}') + - g.stack, - ) - .addPanel( - g.panel('Stage Duration') + - g.queryPanel(if showMultiCluster then 'max by (slice) (prometheus_engine_query_duration_seconds{quantile="0.9",cluster=~"$cluster", job=~"$job",instance=~"$instance"}) * 1e3' - else 'max by (slice) (prometheus_engine_query_duration_seconds{quantile="0.9",job=~"$job",instance=~"$instance"}) * 1e3', - if showMultiCluster then '{{slice}}' - else '{{slice}}') + - { yaxes: g.yaxes('ms') } + - g.stack, - ) - ) + { - tags: $._config.grafanaPrometheus.tags, - refresh: $._config.grafanaPrometheus.refresh, - }, - // Remote write specific dashboard. - 'prometheus-remote-write.json': - local timestampComparison = - graphPanel.new( - 'Highest Timestamp In vs. Highest Timestamp Sent', - datasource='$datasource', - span=6, - ) - .addTarget(prometheus.target( - ||| - ( - prometheus_remote_storage_highest_timestamp_in_seconds{cluster=~"$cluster", instance=~"$instance"} - - - ignoring(remote_name, url) group_right(instance) (prometheus_remote_storage_queue_highest_sent_timestamp_seconds{cluster=~"$cluster", instance=~"$instance", url=~"$url"} != 0) - ) - |||, - legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}', - )); - - local timestampComparisonRate = - graphPanel.new( - 'Rate[5m]', - datasource='$datasource', - span=6, - ) - .addTarget(prometheus.target( - ||| - clamp_min( - rate(prometheus_remote_storage_highest_timestamp_in_seconds{cluster=~"$cluster", instance=~"$instance"}[5m]) - - - ignoring (remote_name, url) group_right(instance) rate(prometheus_remote_storage_queue_highest_sent_timestamp_seconds{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m]) - , 0) - |||, - legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}', - )); - - local samplesRate = - graphPanel.new( - 'Rate, in vs. succeeded or dropped [5m]', - datasource='$datasource', - span=12, - ) - .addTarget(prometheus.target( - ||| - rate( - prometheus_remote_storage_samples_in_total{cluster=~"$cluster", instance=~"$instance"}[5m]) - - - ignoring(remote_name, url) group_right(instance) (rate(prometheus_remote_storage_succeeded_samples_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m]) or rate(prometheus_remote_storage_samples_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m])) - - - (rate(prometheus_remote_storage_dropped_samples_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m]) or rate(prometheus_remote_storage_samples_dropped_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m])) - |||, - legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}' - )); - - local currentShards = - graphPanel.new( - 'Current Shards', - datasource='$datasource', - span=12, - min_span=6, - ) - .addTarget(prometheus.target( - 'prometheus_remote_storage_shards{cluster=~"$cluster", instance=~"$instance", url=~"$url"}', - legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}' - )); - - local maxShards = - graphPanel.new( - 'Max Shards', - datasource='$datasource', - span=4, - ) - .addTarget(prometheus.target( - 'prometheus_remote_storage_shards_max{cluster=~"$cluster", instance=~"$instance", url=~"$url"}', - legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}' - )); - - local minShards = - graphPanel.new( - 'Min Shards', - datasource='$datasource', - span=4, - ) - .addTarget(prometheus.target( - 'prometheus_remote_storage_shards_min{cluster=~"$cluster", instance=~"$instance", url=~"$url"}', - legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}' - )); - - local desiredShards = - graphPanel.new( - 'Desired Shards', - datasource='$datasource', - span=4, - ) - .addTarget(prometheus.target( - 'prometheus_remote_storage_shards_desired{cluster=~"$cluster", instance=~"$instance", url=~"$url"}', - legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}' - )); - - local shardsCapacity = - graphPanel.new( - 'Shard Capacity', - datasource='$datasource', - span=6, - ) - .addTarget(prometheus.target( - 'prometheus_remote_storage_shard_capacity{cluster=~"$cluster", instance=~"$instance", url=~"$url"}', - legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}' - )); - - - local pendingSamples = - graphPanel.new( - 'Pending Samples', - datasource='$datasource', - span=6, - ) - .addTarget(prometheus.target( - 'prometheus_remote_storage_pending_samples{cluster=~"$cluster", instance=~"$instance", url=~"$url"} or prometheus_remote_storage_samples_pending{cluster=~"$cluster", instance=~"$instance", url=~"$url"}', - legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}' - )); - - local walSegment = - graphPanel.new( - 'TSDB Current Segment', - datasource='$datasource', - span=6, - formatY1='none', - ) - .addTarget(prometheus.target( - 'prometheus_tsdb_wal_segment_current{cluster=~"$cluster", instance=~"$instance"}', - legendFormat='{{cluster}}:{{instance}}' - )); - - local queueSegment = - graphPanel.new( - 'Remote Write Current Segment', - datasource='$datasource', - span=6, - formatY1='none', - ) - .addTarget(prometheus.target( - 'prometheus_wal_watcher_current_segment{cluster=~"$cluster", instance=~"$instance"}', - legendFormat='{{cluster}}:{{instance}} {{consumer}}' - )); - - local droppedSamples = - graphPanel.new( - 'Dropped Samples', - datasource='$datasource', - span=3, - ) - .addTarget(prometheus.target( - 'rate(prometheus_remote_storage_dropped_samples_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m]) or rate(prometheus_remote_storage_samples_dropped_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m])', - legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}' - )); - - local failedSamples = - graphPanel.new( - 'Failed Samples', - datasource='$datasource', - span=3, - ) - .addTarget(prometheus.target( - 'rate(prometheus_remote_storage_failed_samples_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m]) or rate(prometheus_remote_storage_samples_failed_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m])', - legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}' - )); - - local retriedSamples = - graphPanel.new( - 'Retried Samples', - datasource='$datasource', - span=3, - ) - .addTarget(prometheus.target( - 'rate(prometheus_remote_storage_retried_samples_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m]) or rate(prometheus_remote_storage_samples_retried_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m])', - legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}' - )); - - local enqueueRetries = - graphPanel.new( - 'Enqueue Retries', - datasource='$datasource', - span=3, - ) - .addTarget(prometheus.target( - 'rate(prometheus_remote_storage_enqueue_retries_total{cluster=~"$cluster", instance=~"$instance", url=~"$url"}[5m])', - legendFormat='{{cluster}}:{{instance}} {{remote_name}}:{{url}}' - )); - - dashboard.new( - title='%(prefix)sRemote Write' % $._config.grafanaPrometheus, - editable=true - ) - .addTemplate( - { - hide: 0, - label: null, - name: 'datasource', - options: [], - query: 'prometheus', - refresh: 1, - regex: '', - type: 'datasource', - }, - ) - .addTemplate( - template.new( - 'cluster', - '$datasource', - 'label_values(prometheus_build_info, cluster)' % $._config, - refresh='time', - current={ - selected: true, - text: 'All', - value: '$__all', - }, - includeAll=true, - ) - ) - .addTemplate( - template.new( - 'instance', - '$datasource', - 'label_values(prometheus_build_info{cluster=~"$cluster"}, instance)' % $._config, - refresh='time', - current={ - selected: true, - text: 'All', - value: '$__all', - }, - includeAll=true, - ) - ) - .addTemplate( - template.new( - 'url', - '$datasource', - 'label_values(prometheus_remote_storage_shards{cluster=~"$cluster", instance=~"$instance"}, url)' % $._config, - refresh='time', - includeAll=true, - ) - ) - .addRow( - row.new('Timestamps') - .addPanel(timestampComparison) - .addPanel(timestampComparisonRate) - ) - .addRow( - row.new('Samples') - .addPanel(samplesRate) - ) - .addRow( - row.new( - 'Shards' - ) - .addPanel(currentShards) - .addPanel(maxShards) - .addPanel(minShards) - .addPanel(desiredShards) - ) - .addRow( - row.new('Shard Details') - .addPanel(shardsCapacity) - .addPanel(pendingSamples) - ) - .addRow( - row.new('Segments') - .addPanel(walSegment) - .addPanel(queueSegment) - ) - .addRow( - row.new('Misc. Rates') - .addPanel(droppedSamples) - .addPanel(failedSamples) - .addPanel(retriedSamples) - .addPanel(enqueueRetries) - ) + { - tags: $._config.grafanaPrometheus.tags, - refresh: $._config.grafanaPrometheus.refresh, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/jsonnetfile.json deleted file mode 100644 index 1c64fd015..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/jsonnetfile.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet-lib.git", - "subdir": "grafonnet" - } - }, - "version": "master" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/jsonnet-libs.git", - "subdir": "grafana-builder" - } - }, - "version": "master" - } - ], - "legacyImports": false -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/mixin.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/mixin.libsonnet deleted file mode 100644 index 3c983a300..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/prometheus/prometheus/documentation/prometheus-mixin/mixin.libsonnet +++ /dev/null @@ -1,3 +0,0 @@ -(import 'config.libsonnet') + -(import 'dashboards.libsonnet') + -(import 'alerts.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/pyrra-dev/pyrra/config/crd/bases/pyrra.dev_servicelevelobjectives.json b/build/kube-prometheus/libraries/main/vendor/github.com/pyrra-dev/pyrra/config/crd/bases/pyrra.dev_servicelevelobjectives.json deleted file mode 100644 index 8b87398a7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/pyrra-dev/pyrra/config/crd/bases/pyrra.dev_servicelevelobjectives.json +++ /dev/null @@ -1,207 +0,0 @@ -{ - "apiVersion": "apiextensions.k8s.io/v1", - "kind": "CustomResourceDefinition", - "metadata": { - "annotations": { - "controller-gen.kubebuilder.io/version": "v0.8.0" - }, - "creationTimestamp": null, - "name": "servicelevelobjectives.pyrra.dev" - }, - "spec": { - "group": "pyrra.dev", - "names": { - "kind": "ServiceLevelObjective", - "listKind": "ServiceLevelObjectiveList", - "plural": "servicelevelobjectives", - "shortNames": [ - "slo" - ], - "singular": "servicelevelobjective" - }, - "scope": "Namespaced", - "versions": [ - { - "name": "v1alpha1", - "schema": { - "openAPIV3Schema": { - "description": "ServiceLevelObjective is the Schema for the ServiceLevelObjectives API.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "type": "object" - }, - "spec": { - "description": "ServiceLevelObjectiveSpec defines the desired state of ServiceLevelObjective.", - "properties": { - "alerting": { - "description": "Alerting customizes the alerting rules generated by Pyrra.", - "properties": { - "disabled": { - "description": "Disabled is used to disable the generation of alerts. Recording rules are still generated.", - "type": "boolean" - }, - "name": { - "description": "Name is used as the name of the alert generated by Pyrra. Defaults to \"ErrorBudgetBurn\".", - "type": "string" - } - }, - "type": "object" - }, - "description": { - "description": "Description describes the ServiceLevelObjective in more detail and gives extra context for engineers that might not directly work on the service.", - "type": "string" - }, - "indicator": { - "description": "ServiceLevelIndicator is the underlying data source that indicates how the service is doing. This will be a Prometheus metric with specific selectors for your service.", - "properties": { - "bool_gauge": { - "description": "BoolGauge is the indicator that measures wheter a boolean gauge is successul.", - "properties": { - "grouping": { - "description": "Total is the metric that returns how many requests there are in total.", - "items": { - "type": "string" - }, - "type": "array" - }, - "metric": { - "type": "string" - } - }, - "required": [ - "grouping", - "metric" - ], - "type": "object" - }, - "latency": { - "description": "Latency is the indicator that measures a certain percentage to be fast than.", - "properties": { - "grouping": { - "description": "Grouping allows an SLO to be defined for many SLI at once, like HTTP handlers for example.", - "items": { - "type": "string" - }, - "type": "array" - }, - "success": { - "description": "Success is the metric that returns how many errors there are.", - "properties": { - "metric": { - "type": "string" - } - }, - "required": [ - "metric" - ], - "type": "object" - }, - "total": { - "description": "Total is the metric that returns how many requests there are in total.", - "properties": { - "metric": { - "type": "string" - } - }, - "required": [ - "metric" - ], - "type": "object" - } - }, - "required": [ - "success", - "total" - ], - "type": "object" - }, - "ratio": { - "description": "Ratio is the indicator that measures against errors / total events.", - "properties": { - "errors": { - "description": "Errors is the metric that returns how many errors there are.", - "properties": { - "metric": { - "type": "string" - } - }, - "required": [ - "metric" - ], - "type": "object" - }, - "grouping": { - "description": "Grouping allows an SLO to be defined for many SLI at once, like HTTP handlers for example.", - "items": { - "type": "string" - }, - "type": "array" - }, - "total": { - "description": "Total is the metric that returns how many requests there are in total.", - "properties": { - "metric": { - "type": "string" - } - }, - "required": [ - "metric" - ], - "type": "object" - } - }, - "required": [ - "errors", - "total" - ], - "type": "object" - } - }, - "type": "object" - }, - "target": { - "description": "Target is a string that's casted to a float64 between 0 - 100. It represents the desired availability of the service in the given window. float64 are not supported: https://github.com/kubernetes-sigs/controller-tools/issues/245", - "type": "string" - }, - "window": { - "description": "Window within which the Target is supposed to be kept. Usually something like 1d, 7d or 28d.", - "type": "string" - } - }, - "required": [ - "indicator", - "target", - "window" - ], - "type": "object" - }, - "status": { - "description": "ServiceLevelObjectiveStatus defines the observed state of ServiceLevelObjective.", - "type": "object" - } - }, - "type": "object" - } - }, - "served": true, - "storage": true - } - ] - }, - "status": { - "acceptedNames": { - "kind": "", - "plural": "" - }, - "conditions": [], - "storedVersions": [] - } -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/pyrra-dev/pyrra/config/crd/bases/pyrra.dev_servicelevelobjectives.yaml b/build/kube-prometheus/libraries/main/vendor/github.com/pyrra-dev/pyrra/config/crd/bases/pyrra.dev_servicelevelobjectives.yaml deleted file mode 100644 index 1bb197112..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/pyrra-dev/pyrra/config/crd/bases/pyrra.dev_servicelevelobjectives.yaml +++ /dev/null @@ -1,170 +0,0 @@ ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.8.0 - creationTimestamp: null - name: servicelevelobjectives.pyrra.dev -spec: - group: pyrra.dev - names: - kind: ServiceLevelObjective - listKind: ServiceLevelObjectiveList - plural: servicelevelobjectives - shortNames: - - slo - singular: servicelevelobjective - scope: Namespaced - versions: - - name: v1alpha1 - schema: - openAPIV3Schema: - description: ServiceLevelObjective is the Schema for the ServiceLevelObjectives - API. - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: ServiceLevelObjectiveSpec defines the desired state of ServiceLevelObjective. - properties: - alerting: - description: Alerting customizes the alerting rules generated by Pyrra. - properties: - disabled: - description: Disabled is used to disable the generation of alerts. - Recording rules are still generated. - type: boolean - name: - description: Name is used as the name of the alert generated by - Pyrra. Defaults to "ErrorBudgetBurn". - type: string - type: object - description: - description: Description describes the ServiceLevelObjective in more - detail and gives extra context for engineers that might not directly - work on the service. - type: string - indicator: - description: ServiceLevelIndicator is the underlying data source that - indicates how the service is doing. This will be a Prometheus metric - with specific selectors for your service. - properties: - bool_gauge: - description: BoolGauge is the indicator that measures wheter a - boolean gauge is successul. - properties: - grouping: - description: Total is the metric that returns how many requests - there are in total. - items: - type: string - type: array - metric: - type: string - required: - - grouping - - metric - type: object - latency: - description: Latency is the indicator that measures a certain - percentage to be fast than. - properties: - grouping: - description: Grouping allows an SLO to be defined for many - SLI at once, like HTTP handlers for example. - items: - type: string - type: array - success: - description: Success is the metric that returns how many errors - there are. - properties: - metric: - type: string - required: - - metric - type: object - total: - description: Total is the metric that returns how many requests - there are in total. - properties: - metric: - type: string - required: - - metric - type: object - required: - - success - - total - type: object - ratio: - description: Ratio is the indicator that measures against errors - / total events. - properties: - errors: - description: Errors is the metric that returns how many errors - there are. - properties: - metric: - type: string - required: - - metric - type: object - grouping: - description: Grouping allows an SLO to be defined for many - SLI at once, like HTTP handlers for example. - items: - type: string - type: array - total: - description: Total is the metric that returns how many requests - there are in total. - properties: - metric: - type: string - required: - - metric - type: object - required: - - errors - - total - type: object - type: object - target: - description: 'Target is a string that''s casted to a float64 between - 0 - 100. It represents the desired availability of the service in - the given window. float64 are not supported: https://github.com/kubernetes-sigs/controller-tools/issues/245' - type: string - window: - description: Window within which the Target is supposed to be kept. - Usually something like 1d, 7d or 28d. - type: string - required: - - indicator - - target - - window - type: object - status: - description: ServiceLevelObjectiveStatus defines the observed state of - ServiceLevelObjective. - type: object - type: object - served: true - storage: true -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/README.md deleted file mode 100644 index 19e020387..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/README.md +++ /dev/null @@ -1,194 +0,0 @@ -# thanos-mixin - -> Note that everything is experimental and may change significantly at any time. Also it still has missing alert and dashboard definitions for certain components, e.g. rule and sidecar. Please feel free to contribute. - -This directory contains extensible and customizable monitoring definitions for Thanos. [Grafana](http://grafana.com/) dashboards, and [Prometheus rules](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/) combined with documentation and scripts to provide easy monitoring experience for Thanos. - -You can find more about monitoring-mixins in [the design document](https://github.com/monitoring-mixins/docs/blob/master/design.pdf), and you can check out other examples like [Prometheus Mixin](https://github.com/prometheus/prometheus/tree/master/documentation/prometheus-mixin). - -The content of this project is written in [jsonnet](http://jsonnet.org/). This project could both be described as a package as well as a library. - -## Requirements - -### jsonnet - -The content of this project consists of a set of [jsonnet](http://jsonnet.org/) files making up a library to be consumed. - -We recommend to use [go-jsonnet](https://github.com/google/go-jsonnet). It's an implementation of [Jsonnet](http://jsonnet.org/) in pure Go. It is feature complete but is not as heavily exercised as the [Jsonnet C++ implementation](https://github.com/google/jsonnet). - -To install: - -```shell -go get github.com/google/go-jsonnet/cmd/jsonnet -``` - -### jsonnet-bundler - -`thanos-mixin` uses [jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler#install) (the jsonnet package manager) to manage its dependencies. - -We also recommend you to use `jsonnet-bundler` to install or update if you decide to use `thanos-mixin` as a dependency for your custom configurations. - -To install: - -```shell -go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb -``` - -> An e.g. of how to install a given version of this library: `jb install github.com/thanos-io/thanos/mixin@main`. - -## Use as a library - -To use the `thanos-mixin` as a dependency, simply use the `jsonnet-bundler` install functionality: - -```shell -$ mkdir thanos-mixin; cd thanos-mixin -$ jb init # Creates the initial/empty `jsonnetfile.json` -# Install the thanos-mixin dependency -$ jb install github.com/thanos-io/thanos/mixin@main # Creates `vendor/` & `jsonnetfile.lock.json`, and fills in `jsonnetfile.json` -``` - -To update the `thanos-mixin` as a dependency, simply use the `jsonnet-bundler` update functionality: - -```shell -$ jb update -``` - -#### Configure - -This project is intended to be used as a library. You can extend and customize dashboards and alerting rules by creating for own generators, such as the generators ([alerts.jsonnet](alerts.jsonnet) and [dashboards.jsonnet](dashboards.jsonnet)) that are use to create [examples](../examples). Default parameters are collected in [config.libsonnet](config.libsonnet), feel free to modify and generate your own definitions. - -```libsonnet mdox-exec="cat mixin/config.libsonnet" -{ - local thanos = self, - // TargetGroups is a way to help mixin users to add high level target grouping to their alerts and dashboards. - // With the help of TargetGroups you can use a single observability stack to monitor several Thanos instances. - // The key in the key-value pair will be used as "label name" in the alerts and variable name in the dashboards. - // The value in the key-value pair will be used as a query to fetch available values for the given label name. - targetGroups+:: { - // For example for given following groups, - // namespace: 'thanos_status', - // cluster: 'find_mi_cluster_bitte', - // zone: 'an_i_in_da_zone', - // region: 'losing_my_region', - // will generate queriers for the alerts as follows: - // ( - // sum by (cluster, namespace, region, zone, job) (rate(thanos_compact_group_compactions_failures_total{job=~"thanos-compact.*"}[5m])) - // / - // sum by (cluster, namespace, region, zone, job) (rate(thanos_compact_group_compactions_total{job=~"thanos-compact.*"}[5m])) - // * 100 > 5 - // ) - // - // AND for the dashborads: - // - // sum by (cluster, namespace, region, zone, job) (rate(thanos_compact_group_compactions_failures_total{cluster=\"$cluster\", namespace=\"$namespace\", region=\"$region\", zone=\"$zone\", job=\"$job\"}[$interval])) - // / - // sum by (cluster, namespace, region, zone, job) (rate(thanos_compact_group_compactions_total{cluster=\"$cluster\", namespace=\"$namespace\", region=\"$region\", zone=\"$zone\", job=\"$job\"}[$interval])) - }, - query+:: { - selector: 'job=~".*thanos-query.*"', - title: '%(prefix)sQuery' % $.dashboard.prefix, - }, - queryFrontend+:: { - selector: 'job=~".*thanos-query-frontend.*"', - title: '%(prefix)sQuery Frontend' % $.dashboard.prefix, - }, - store+:: { - selector: 'job=~".*thanos-store.*"', - title: '%(prefix)sStore' % $.dashboard.prefix, - }, - receive+:: { - selector: 'job=~".*thanos-receive.*"', - title: '%(prefix)sReceive' % $.dashboard.prefix, - }, - rule+:: { - selector: 'job=~".*thanos-rule.*"', - title: '%(prefix)sRule' % $.dashboard.prefix, - }, - compact+:: { - selector: 'job=~".*thanos-compact.*"', - title: '%(prefix)sCompact' % $.dashboard.prefix, - }, - sidecar+:: { - selector: 'job=~".*thanos-sidecar.*"', - thanosPrometheusCommonDimensions: 'namespace, pod', - title: '%(prefix)sSidecar' % $.dashboard.prefix, - }, - bucketReplicate+:: { - selector: 'job=~".*thanos-bucket-replicate.*"', - title: '%(prefix)sBucketReplicate' % $.dashboard.prefix, - }, - dashboard+:: { - prefix: 'Thanos / ', - tags: ['thanos-mixin'], - timezone: 'UTC', - selector: ['%s="$%s"' % [level, level] for level in std.objectFields(thanos.targetGroups)], - dimensions: ['%s' % level for level in std.objectFields(thanos.targetGroups)], - - overview+:: { - title: '%(prefix)sOverview' % $.dashboard.prefix, - selector: std.join(', ', thanos.dashboard.selector), - dimensions: std.join(', ', thanos.dashboard.dimensions + ['job']), - }, - }, -} -``` - -You can format your code using: - -```shell -$ make jsonnet-format -``` - -## Examples - -This project is intended to be used as a library. However, it also provides drop-in examples to monitor Thanos. - -### Requirements - -Although all the required dependencies are handled by `Makefile`, keep in mind that in addition the dependencies that are listed above we have following dependencies: - -#### gojsontoyaml - -`gojsontoyaml` is used to convert generated `json` definitions to `yaml`. - -To install: - -```shell -go get github.com/brancz/gojsontoyaml -``` - -### Generate - -To generate examples after modifying, make sure `jsonnet` dependencies are installed. - -```shell -$ make jsonnet-vendor -``` - -and then - -```shell -$ make examples -``` - -Make action runs the jsonnet code, then reads each key of the generated json and uses that as the file name, and writes the value of that key to that file, and converts each json manifest to yaml. - -> Make commands should handle dependencies for you. - -### Test and validate - -You validate your structural correctness of your Prometheus [alerting rules](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) or [recording rules](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/) with: - -```shell -$ make example-rules-lint -``` - -Check out [test.yaml](../examples/alerts/tests.yaml) to add/modify tests for the mixin. To learn more about how to write test for Prometheus, check out [official documentation](https://www.prometheus.io/docs/prometheus/latest/configuration/unit_testing_rules/). - -You test alerts with: - -```shell -$ make alerts-test -``` - ---- diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts.jsonnet deleted file mode 100644 index 23f4afea6..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts.jsonnet +++ /dev/null @@ -1,3 +0,0 @@ -( - import 'mixin.libsonnet' -).prometheusAlerts diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/absent.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/absent.libsonnet deleted file mode 100644 index bb4d9654e..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/absent.libsonnet +++ /dev/null @@ -1,40 +0,0 @@ -local capitalize(str) = std.asciiUpper(std.substr(str, 0, 1)) + std.asciiLower(std.substr(str, 1, std.length(str))); -local titlize(str) = std.join('', std.map(capitalize, std.split(str, '_'))); - -local components = ['query', 'receive', 'rule', 'compact', 'store', 'bucket-replicate', 'sidecar']; -{ - local thanos = self, - - // We build alerts for the presence of all these jobs. - jobs:: { - ['Thanos%s' % titlize(component)]: thanos[component].selector - for component in std.objectFieldsAll(thanos) - if component != 'jobs' && std.type(thanos[component]) == 'object' && std.member(components, component) - }, - - prometheusAlerts+:: { - local location = if std.length(std.objectFields(thanos.targetGroups)) > 0 then ' from %s' % std.join('/', ['{{$labels.%s}}' % level for level in std.objectFields(thanos.targetGroups)]) else '', - groups+: [ - { - name: 'thanos-component-absent', - rules: [ - { - alert: '%sIsDown' % name, - expr: ||| - absent(up{%s} == 1) - ||| % thanos.jobs[name], - 'for': '5m', - labels: { - severity: 'critical', - }, - annotations: { - description: '%s has disappeared%s. Prometheus target for the component cannot be discovered.' % [name, location], - summary: 'Thanos component has disappeared%s.' % location, - }, - } - for name in std.objectFields(thanos.jobs) - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/add-runbook-links.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/add-runbook-links.libsonnet deleted file mode 100644 index c87189195..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/add-runbook-links.libsonnet +++ /dev/null @@ -1,23 +0,0 @@ -local utils = import '../lib/utils.libsonnet'; - -local lower(x) = - local cp(c) = std.codepoint(c); - local lowerLetter(c) = - if cp(c) >= 65 && cp(c) < 91 - then std.char(cp(c) + 32) - else c; - std.join('', std.map(lowerLetter, std.stringChars(x))); - -{ - _config+:: { - runbookURLPattern: 'https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-%s', - }, - - prometheusAlerts+:: - local addRunbookURL(rule) = rule { - [if 'alert' in rule && !('runbook_url' in rule.annotations) then 'annotations']+: { - runbook_url: $._config.runbookURLPattern % lower(rule.alert), - }, - }; - utils.mapRuleGroups(addRunbookURL), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/alerts.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/alerts.libsonnet deleted file mode 100644 index 730abd460..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/alerts.libsonnet +++ /dev/null @@ -1,9 +0,0 @@ -(import 'compact.libsonnet') + -(import 'query.libsonnet') + -(import 'receive.libsonnet') + -(import 'sidecar.libsonnet') + -(import 'store.libsonnet') + -(import 'rule.libsonnet') + -(import 'bucket-replicate.libsonnet') + -(import 'absent.libsonnet') + -(import 'add-runbook-links.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/bucket-replicate.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/bucket-replicate.libsonnet deleted file mode 100644 index 8235f4a4c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/bucket-replicate.libsonnet +++ /dev/null @@ -1,55 +0,0 @@ -{ - local thanos = self, - bucketReplicate+:: { - selector: error 'must provide selector for Thanos Bucket Replicate dashboard', - errorThreshold: 10, - p99LatencyThreshold: 20, - dimensions: std.join(', ', std.objectFields(thanos.targetGroups) + ['job']), - }, - prometheusAlerts+:: { - groups+: if thanos.bucketReplicate == null then [] else [ - local location = if std.length(std.objectFields(thanos.targetGroups)) > 0 then ' in %s' % std.join('/', ['{{$labels.%s}}' % level for level in std.objectFields(thanos.targetGroups)]) else ''; - { - name: 'thanos-bucket-replicate', - rules: [ - { - alert: 'ThanosBucketReplicateErrorRate', - annotations: { - description: 'Thanos Replicate is failing to run%s, {{$value | humanize}}%% of attempts failed.' % location, - summary: 'Thanos Replicate is failing to run%s.' % location, - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_replicate_replication_runs_total{result="error", %(selector)s}[5m])) - / on (%(dimensions)s) group_left - sum by (%(dimensions)s) (rate(thanos_replicate_replication_runs_total{%(selector)s}[5m])) - ) * 100 >= %(errorThreshold)s - ||| % thanos.bucketReplicate, - 'for': '5m', - labels: { - severity: 'critical', - }, - }, - { - alert: 'ThanosBucketReplicateRunLatency', - annotations: { - description: 'Thanos Replicate {{$labels.job}}%s has a 99th percentile latency of {{$value}} seconds for the replicate operations.' % location, - summary: 'Thanos Replicate has a high latency for replicate operations.', - }, - expr: ||| - ( - histogram_quantile(0.99, sum by (%(dimensions)s) (rate(thanos_replicate_replication_run_duration_seconds_bucket{%(selector)s}[5m]))) > %(p99LatencyThreshold)s - and - sum by (%(dimensions)s) (rate(thanos_replicate_replication_run_duration_seconds_bucket{%(selector)s}[5m])) > 0 - ) - ||| % thanos.bucketReplicate, - 'for': '5m', - labels: { - severity: 'critical', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/compact.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/compact.libsonnet deleted file mode 100644 index 7929a18ef..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/compact.libsonnet +++ /dev/null @@ -1,92 +0,0 @@ -{ - local thanos = self, - compact+:: { - selector: error 'must provide selector for Thanos Compact alerts', - compactionErrorThreshold: 5, - bucketOpsErrorThreshold: 5, - dimensions: std.join(', ', std.objectFields(thanos.targetGroups) + ['job']), - }, - prometheusAlerts+:: { - groups+: if thanos.compact == null then [] else [ - local location = if std.length(std.objectFields(thanos.targetGroups)) > 0 then ' in %s' % std.join('/', ['{{$labels.%s}}' % level for level in std.objectFields(thanos.targetGroups)]) else ''; - { - name: 'thanos-compact', - rules: [ - { - alert: 'ThanosCompactMultipleRunning', - annotations: { - description: 'No more than one Thanos Compact instance should be running at once. There are {{$value}}%s instances running.' % location, - summary: 'Thanos Compact has multiple instances running.', - }, - expr: 'sum by (%(dimensions)s) (up{%(selector)s}) > 1' % thanos.compact, - 'for': '5m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosCompactHalted', - annotations: { - description: 'Thanos Compact {{$labels.job}}%s has failed to run and now is halted.' % location, - summary: 'Thanos Compact has failed to run and is now halted.', - }, - expr: 'thanos_compact_halted{%(selector)s} == 1' % thanos.compact, - 'for': '5m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosCompactHighCompactionFailures', - annotations: { - description: 'Thanos Compact {{$labels.job}}%s is failing to execute {{$value | humanize}}%% of compactions.' % location, - summary: 'Thanos Compact is failing to execute compactions.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_compact_group_compactions_failures_total{%(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_compact_group_compactions_total{%(selector)s}[5m])) - * 100 > %(compactionErrorThreshold)s - ) - ||| % thanos.compact, - 'for': '15m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosCompactBucketHighOperationFailures', - annotations: { - description: 'Thanos Compact {{$labels.job}}%s Bucket is failing to execute {{$value | humanize}}%% of operations.' % location, - summary: 'Thanos Compact Bucket is having a high number of operation failures.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_objstore_bucket_operation_failures_total{%(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_objstore_bucket_operations_total{%(selector)s}[5m])) - * 100 > %(bucketOpsErrorThreshold)s - ) - ||| % thanos.compact, - 'for': '15m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosCompactHasNotRun', - annotations: { - description: 'Thanos Compact {{$labels.job}}%s has not uploaded anything for 24 hours.' % location, - summary: 'Thanos Compact has not uploaded anything for last 24 hours.', - }, - expr: '(time() - max by (%(dimensions)s) (max_over_time(thanos_objstore_bucket_last_successful_upload_time{%(selector)s}[24h]))) / 60 / 60 > 24' % thanos.compact, - labels: { - severity: 'warning', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/query.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/query.libsonnet deleted file mode 100644 index 9015ffb58..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/query.libsonnet +++ /dev/null @@ -1,165 +0,0 @@ -{ - local thanos = self, - query+:: { - selector: error 'must provide selector for Thanos Query alerts', - httpErrorThreshold: 5, - grpcErrorThreshold: 5, - dnsErrorThreshold: 1, - p99QueryLatencyThreshold: 40, - p99QueryRangeLatencyThreshold: 90, - dimensions: std.join(', ', std.objectFields(thanos.targetGroups) + ['job']), - }, - prometheusAlerts+:: { - groups+: if thanos.query == null then [] else [ - local location = if std.length(std.objectFields(thanos.targetGroups)) > 0 then ' in %s' % std.join('/', ['{{$labels.%s}}' % level for level in std.objectFields(thanos.targetGroups)]) else ''; - { - name: 'thanos-query', - rules: [ - { - alert: 'ThanosQueryHttpRequestQueryErrorRateHigh', - annotations: { - description: 'Thanos Query {{$labels.job}}%s is failing to handle {{$value | humanize}}%% of "query" requests.' % location, - summary: 'Thanos Query is failing to handle requests.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(http_requests_total{code=~"5..", %(selector)s, handler="query"}[5m])) - / - sum by (%(dimensions)s) (rate(http_requests_total{%(selector)s, handler="query"}[5m])) - ) * 100 > %(httpErrorThreshold)s - ||| % thanos.query, - 'for': '5m', - labels: { - severity: 'critical', - }, - }, - { - alert: 'ThanosQueryHttpRequestQueryRangeErrorRateHigh', - annotations: { - description: 'Thanos Query {{$labels.job}}%s is failing to handle {{$value | humanize}}%% of "query_range" requests.' % location, - summary: 'Thanos Query is failing to handle requests.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(http_requests_total{code=~"5..", %(selector)s, handler="query_range"}[5m])) - / - sum by (%(dimensions)s) (rate(http_requests_total{%(selector)s, handler="query_range"}[5m])) - ) * 100 > %(httpErrorThreshold)s - ||| % thanos.query, - 'for': '5m', - labels: { - severity: 'critical', - }, - }, - { - alert: 'ThanosQueryGrpcServerErrorRate', - annotations: { - description: 'Thanos Query {{$labels.job}}%s is failing to handle {{$value | humanize}}%% of requests.' % location, - summary: 'Thanos Query is failing to handle requests.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(grpc_server_handled_total{grpc_code=~"Unknown|ResourceExhausted|Internal|Unavailable|DataLoss|DeadlineExceeded", %(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(grpc_server_started_total{%(selector)s}[5m])) - * 100 > %(grpcErrorThreshold)s - ) - ||| % thanos.query, - 'for': '5m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosQueryGrpcClientErrorRate', - annotations: { - description: 'Thanos Query {{$labels.job}}%s is failing to send {{$value | humanize}}%% of requests.' % location, - summary: 'Thanos Query is failing to send requests.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(grpc_client_handled_total{grpc_code!="OK", %(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(grpc_client_started_total{%(selector)s}[5m])) - ) * 100 > %(grpcErrorThreshold)s - ||| % thanos.query, - 'for': '5m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosQueryHighDNSFailures', - annotations: { - description: 'Thanos Query {{$labels.job}}%s have {{$value | humanize}}%% of failing DNS queries for store endpoints.' % location, - summary: 'Thanos Query is having high number of DNS failures.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_query_store_apis_dns_failures_total{%(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_query_store_apis_dns_lookups_total{%(selector)s}[5m])) - ) * 100 > %(dnsErrorThreshold)s - ||| % thanos.query, - 'for': '15m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosQueryInstantLatencyHigh', - annotations: { - description: 'Thanos Query {{$labels.job}}%s has a 99th percentile latency of {{$value}} seconds for instant queries.' % location, - summary: 'Thanos Query has high latency for queries.', - }, - expr: ||| - ( - histogram_quantile(0.99, sum by (%(dimensions)s, le) (rate(http_request_duration_seconds_bucket{%(selector)s, handler="query"}[5m]))) > %(p99QueryLatencyThreshold)s - and - sum by (%(dimensions)s) (rate(http_request_duration_seconds_bucket{%(selector)s, handler="query"}[5m])) > 0 - ) - ||| % thanos.query, - 'for': '10m', - labels: { - severity: 'critical', - }, - }, - { - alert: 'ThanosQueryRangeLatencyHigh', - annotations: { - description: 'Thanos Query {{$labels.job}}%s has a 99th percentile latency of {{$value}} seconds for range queries.' % location, - summary: 'Thanos Query has high latency for queries.', - }, - expr: ||| - ( - histogram_quantile(0.99, sum by (%(dimensions)s, le) (rate(http_request_duration_seconds_bucket{%(selector)s, handler="query_range"}[5m]))) > %(p99QueryRangeLatencyThreshold)s - and - sum by (%(dimensions)s) (rate(http_request_duration_seconds_count{%(selector)s, handler="query_range"}[5m])) > 0 - ) - ||| % thanos.query, - 'for': '10m', - labels: { - severity: 'critical', - }, - }, - { - alert: 'ThanosQueryOverload', - annotations: { - description: 'Thanos Query {{$labels.job}}%s has been overloaded for more than 15 minutes. This may be a symptom of excessive simultaneous complex requests, low performance of the Prometheus API, or failures within these components. Assess the health of the Thanos query instances, the connected Prometheus instances, look for potential senders of these requests and then contact support.' % location, - summary: 'Thanos query reaches its maximum capacity serving concurrent requests.', - }, - expr: ||| - ( - max_over_time(thanos_query_concurrent_gate_queries_max[5m]) - avg_over_time(thanos_query_concurrent_gate_queries_in_flight[5m]) < 1 - ) - ||| % thanos.query, - 'for': '15m', - labels: { - severity: 'warning', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/receive.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/receive.libsonnet deleted file mode 100644 index 131576676..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/receive.libsonnet +++ /dev/null @@ -1,189 +0,0 @@ -{ - local thanos = self, - receive+:: { - selector: error 'must provide selector for Thanos Receive alerts', - httpErrorThreshold: 5, - ingestionThreshold: 50, - forwardErrorThreshold: 20, - metaMonitoringErrorThreshold: 20, - refreshErrorThreshold: 0, - p99LatencyThreshold: 10, - dimensions: std.join(', ', std.objectFields(thanos.targetGroups) + ['job']), - }, - prometheusAlerts+:: { - groups+: if thanos.receive == null then [] else [ - local location = if std.length(std.objectFields(thanos.targetGroups)) > 0 then ' in %s' % std.join('/', ['{{$labels.%s}}' % level for level in std.objectFields(thanos.targetGroups)]) else ''; - { - name: 'thanos-receive', - rules: [ - { - alert: 'ThanosReceiveHttpRequestErrorRateHigh', - annotations: { - description: 'Thanos Receive {{$labels.job}}%s is failing to handle {{$value | humanize}}%% of requests.' % location, - summary: 'Thanos Receive is failing to handle requests.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(http_requests_total{code=~"5..", %(selector)s, handler="receive"}[5m])) - / - sum by (%(dimensions)s) (rate(http_requests_total{%(selector)s, handler="receive"}[5m])) - ) * 100 > %(httpErrorThreshold)s - ||| % thanos.receive, - 'for': '5m', - labels: { - severity: 'critical', - }, - }, - { - alert: 'ThanosReceiveHttpRequestLatencyHigh', - annotations: { - description: 'Thanos Receive {{$labels.job}}%s has a 99th percentile latency of {{ $value }} seconds for requests.' % location, - summary: 'Thanos Receive has high HTTP requests latency.', - }, - expr: ||| - ( - histogram_quantile(0.99, sum by (%(dimensions)s, le) (rate(http_request_duration_seconds_bucket{%(selector)s, handler="receive"}[5m]))) > %(p99LatencyThreshold)s - and - sum by (%(dimensions)s) (rate(http_request_duration_seconds_count{%(selector)s, handler="receive"}[5m])) > 0 - ) - ||| % thanos.receive, - 'for': '10m', - labels: { - severity: 'critical', - }, - }, - { - alert: 'ThanosReceiveHighReplicationFailures', - annotations: { - description: 'Thanos Receive {{$labels.job}}%s is failing to replicate {{$value | humanize}}%% of requests.' % location, - summary: 'Thanos Receive is having high number of replication failures.', - }, - expr: ||| - thanos_receive_replication_factor > 1 - and - ( - ( - sum by (%(dimensions)s) (rate(thanos_receive_replications_total{result="error", %(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_receive_replications_total{%(selector)s}[5m])) - ) - > - ( - max by (%(dimensions)s) (floor((thanos_receive_replication_factor{%(selector)s}+1) / 2)) - / - max by (%(dimensions)s) (thanos_receive_hashring_nodes{%(selector)s}) - ) - ) * 100 - ||| % thanos.receive, - 'for': '5m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosReceiveHighForwardRequestFailures', - annotations: { - description: 'Thanos Receive {{$labels.job}}%s is failing to forward {{$value | humanize}}%% of requests.' % location, - summary: 'Thanos Receive is failing to forward requests.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_receive_forward_requests_total{result="error", %(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_receive_forward_requests_total{%(selector)s}[5m])) - ) * 100 > %(forwardErrorThreshold)s - ||| % thanos.receive, - 'for': '5m', - labels: { - severity: 'info', - }, - }, - { - alert: 'ThanosReceiveHighHashringFileRefreshFailures', - annotations: { - description: 'Thanos Receive {{$labels.job}}%s is failing to refresh hashring file, {{$value | humanize}} of attempts failed.' % location, - summary: 'Thanos Receive is failing to refresh hasring file.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_receive_hashrings_file_errors_total{%(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_receive_hashrings_file_refreshes_total{%(selector)s}[5m])) - > %(refreshErrorThreshold)s - ) - ||| % thanos.receive, - 'for': '15m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosReceiveConfigReloadFailure', - annotations: { - description: 'Thanos Receive {{$labels.job}}%s has not been able to reload hashring configurations.' % location, - summary: 'Thanos Receive has not been able to reload configuration.', - }, - expr: 'avg by (%(dimensions)s) (thanos_receive_config_last_reload_successful{%(selector)s}) != 1' % thanos.receive, - 'for': '5m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosReceiveNoUpload', - annotations: { - description: 'Thanos Receive {{$labels.instance}}%s has not uploaded latest data to object storage.' % location, - summary: 'Thanos Receive has not uploaded latest data to object storage.', - }, - expr: ||| - (up{%(selector)s} - 1) - + on (%(dimensions)s, instance) # filters to only alert on current instance last 3h - (sum by (%(dimensions)s, instance) (increase(thanos_shipper_uploads_total{%(selector)s}[3h])) == 0) - ||| % thanos.receive, - 'for': '3h', - labels: { - severity: 'critical', - }, - }, - { - alert: 'ThanosReceiveLimitsConfigReloadFailure', - annotations: { - description: 'Thanos Receive {{$labels.job}}%s has not been able to reload the limits configuration.' % location, - summary: 'Thanos Receive has not been able to reload the limits configuration.', - }, - expr: 'sum by(%(dimensions)s) (increase(thanos_receive_limits_config_reload_err_total{%(selector)s}[5m])) > 0' % thanos.receive, - 'for': '5m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosReceiveLimitsHighMetaMonitoringQueriesFailureRate', - annotations: { - description: 'Thanos Receive {{$labels.job}}%s is failing for {{$value | humanize}}%% of meta monitoring queries.' % location, - summary: 'Thanos Receive has not been able to update the number of head series.', - }, - // Values are updated every 15s, 20 times over 5 minutes. - expr: '(sum by(%(dimensions)s) (increase(thanos_receive_metamonitoring_failed_queries_total{%(selector)s}[5m])) / 20) * 100 > %(metaMonitoringErrorThreshold)s' % thanos.receive, - 'for': '5m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosReceiveTenantLimitedByHeadSeries', - annotations: { - description: 'Thanos Receive tenant {{$labels.tenant}}%s is limited by head series.' % location, - summary: 'A Thanos Receive tenant is limited by head series.', - }, - expr: 'sum by(%(dimensions)s, tenant) (increase(thanos_receive_head_series_limited_requests_total{%(selector)s}[5m])) > 0' % thanos.receive, - 'for': '5m', - labels: { - severity: 'warning', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/rule.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/rule.libsonnet deleted file mode 100644 index 6ecd8ded2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/rule.libsonnet +++ /dev/null @@ -1,205 +0,0 @@ -{ - local thanos = self, - rule+:: { - selector: error 'must provide selector for Thanos Rule alerts', - grpcErrorThreshold: 5, - rulerDnsErrorThreshold: 1, - alertManagerDnsErrorThreshold: 1, - evalErrorThreshold: 5, - dimensions: std.join(', ', std.objectFields(thanos.targetGroups) + ['job', 'instance']), - }, - prometheusAlerts+:: { - groups+: if thanos.rule == null then [] else [ - local location = if std.length(std.objectFields(thanos.targetGroups)) > 0 then ' in %s' % std.join('/', ['{{$labels.%s}}' % level for level in std.objectFields(thanos.targetGroups)]) else ''; - { - name: 'thanos-rule', - rules: [ - { - alert: 'ThanosRuleQueueIsDroppingAlerts', - annotations: { - description: 'Thanos Rule {{$labels.instance}}%s is failing to queue alerts.' % location, - summary: 'Thanos Rule is failing to queue alerts.', - }, - expr: ||| - sum by (%(dimensions)s) (rate(thanos_alert_queue_alerts_dropped_total{%(selector)s}[5m])) > 0 - ||| % thanos.rule, - 'for': '5m', - labels: { - severity: 'critical', - }, - }, - { - alert: 'ThanosRuleSenderIsFailingAlerts', - annotations: { - description: 'Thanos Rule {{$labels.instance}}%s is failing to send alerts to alertmanager.' % location, - summary: 'Thanos Rule is failing to send alerts to alertmanager.', - }, - expr: ||| - sum by (%(dimensions)s) (rate(thanos_alert_sender_alerts_dropped_total{%(selector)s}[5m])) > 0 - ||| % thanos.rule, - 'for': '5m', - labels: { - severity: 'critical', - }, - }, - { - alert: 'ThanosRuleHighRuleEvaluationFailures', - annotations: { - description: 'Thanos Rule {{$labels.instance}}%s is failing to evaluate rules.' % location, - summary: 'Thanos Rule is failing to evaluate rules.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(prometheus_rule_evaluation_failures_total{%(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(prometheus_rule_evaluations_total{%(selector)s}[5m])) - * 100 > %(evalErrorThreshold)s - ) - ||| % thanos.rule, - - 'for': '5m', - labels: { - severity: 'critical', - }, - }, - { - alert: 'ThanosRuleHighRuleEvaluationWarnings', - annotations: { - description: 'Thanos Rule {{$labels.instance}}%s has high number of evaluation warnings.' % location, - summary: 'Thanos Rule has high number of evaluation warnings.', - }, - expr: ||| - sum by (%(dimensions)s) (rate(thanos_rule_evaluation_with_warnings_total{%(selector)s}[5m])) > 0 - ||| % thanos.rule, - - 'for': '15m', - labels: { - severity: 'info', - }, - }, - { - alert: 'ThanosRuleRuleEvaluationLatencyHigh', - annotations: { - description: 'Thanos Rule {{$labels.instance}}%s has higher evaluation latency than interval for {{$labels.rule_group}}.' % location, - summary: 'Thanos Rule has high rule evaluation latency.', - }, - expr: ||| - ( - sum by (%(dimensions)s, rule_group) (prometheus_rule_group_last_duration_seconds{%(selector)s}) - > - sum by (%(dimensions)s, rule_group) (prometheus_rule_group_interval_seconds{%(selector)s}) - ) - ||| % thanos.rule, - 'for': '5m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosRuleGrpcErrorRate', - annotations: { - description: 'Thanos Rule {{$labels.job}}%s is failing to handle {{$value | humanize}}%% of requests.' % location, - summary: 'Thanos Rule is failing to handle grpc requests.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(grpc_server_handled_total{grpc_code=~"Unknown|ResourceExhausted|Internal|Unavailable|DataLoss|DeadlineExceeded", %(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(grpc_server_started_total{%(selector)s}[5m])) - * 100 > %(grpcErrorThreshold)s - ) - ||| % thanos.rule, - 'for': '5m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosRuleConfigReloadFailure', - annotations: { - description: 'Thanos Rule {{$labels.job}}%s has not been able to reload its configuration.' % location, - summary: 'Thanos Rule has not been able to reload configuration.', - }, - expr: 'avg by (%(dimensions)s) (thanos_rule_config_last_reload_successful{%(selector)s}) != 1' % thanos.rule, - 'for': '5m', - labels: { - severity: 'info', - }, - }, - { - alert: 'ThanosRuleQueryHighDNSFailures', - annotations: { - description: 'Thanos Rule {{$labels.job}}%s has {{$value | humanize}}%% of failing DNS queries for query endpoints.' % location, - summary: 'Thanos Rule is having high number of DNS failures.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_rule_query_apis_dns_failures_total{%(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_rule_query_apis_dns_lookups_total{%(selector)s}[5m])) - * 100 > %(rulerDnsErrorThreshold)s - ) - ||| % thanos.rule, - 'for': '15m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosRuleAlertmanagerHighDNSFailures', - annotations: { - description: 'Thanos Rule {{$labels.instance}}%s has {{$value | humanize}}%% of failing DNS queries for Alertmanager endpoints.' % location, - summary: 'Thanos Rule is having high number of DNS failures.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_rule_alertmanagers_dns_failures_total{%(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_rule_alertmanagers_dns_lookups_total{%(selector)s}[5m])) - * 100 > %(alertManagerDnsErrorThreshold)s - ) - ||| % thanos.rule, - 'for': '15m', - labels: { - severity: 'warning', - }, - }, - { - // NOTE: This alert will give false positive if no rules are configured. - alert: 'ThanosRuleNoEvaluationFor10Intervals', - annotations: { - description: 'Thanos Rule {{$labels.job}}%s has rule groups that did not evaluate for at least 10x of their expected interval.' % location, - summary: 'Thanos Rule has rule groups that did not evaluate for 10 intervals.', - }, - expr: ||| - time() - max by (%(dimensions)s, group) (prometheus_rule_group_last_evaluation_timestamp_seconds{%(selector)s}) - > - 10 * max by (%(dimensions)s, group) (prometheus_rule_group_interval_seconds{%(selector)s}) - ||| % thanos.rule, - 'for': '5m', - labels: { - // TODO(bwplotka): Move to critical once we gain more confidence in this, it's not trivial as it looks. - severity: 'info', - }, - }, - { - alert: 'ThanosNoRuleEvaluations', - annotations: { - description: 'Thanos Rule {{$labels.instance}}%s did not perform any rule evaluations in the past 10 minutes.' % location, - summary: 'Thanos Rule did not perform any rule evaluations.', - }, - expr: ||| - sum by (%(dimensions)s) (rate(prometheus_rule_evaluations_total{%(selector)s}[5m])) <= 0 - and - sum by (%(dimensions)s) (thanos_rule_loaded_rules{%(selector)s}) > 0 - ||| % thanos.rule, - 'for': '5m', - labels: { - severity: 'critical', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/sidecar.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/sidecar.libsonnet deleted file mode 100644 index 5bdea985a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/sidecar.libsonnet +++ /dev/null @@ -1,48 +0,0 @@ -{ - local thanos = self, - sidecar+:: { - selector: error 'must provide selector for Thanos Sidecar alerts', - thanosPrometheusCommonDimensions: error 'must provide commonDimensions between Thanos and Prometheus metrics for Sidecar alerts', - dimensions: std.join(', ', std.objectFields(thanos.targetGroups) + ['job', 'instance']), - }, - prometheusAlerts+:: { - groups+: if thanos.sidecar == null then [] else [ - local location = if std.length(std.objectFields(thanos.targetGroups)) > 0 then ' in %s' % std.join('/', ['{{$labels.%s}}' % level for level in std.objectFields(thanos.targetGroups)]) else ''; - { - name: 'thanos-sidecar', - rules: [ - { - alert: 'ThanosSidecarBucketOperationsFailed', - annotations: { - description: 'Thanos Sidecar {{$labels.instance}}%s bucket operations are failing' % location, - summary: 'Thanos Sidecar bucket operations are failing', - }, - expr: ||| - sum by (%(dimensions)s) (rate(thanos_objstore_bucket_operation_failures_total{%(selector)s}[5m])) > 0 - ||| % thanos.sidecar, - 'for': '5m', - labels: { - severity: 'critical', - }, - }, - { - alert: 'ThanosSidecarNoConnectionToStartedPrometheus', - annotations: { - description: 'Thanos Sidecar {{$labels.instance}}%s is unhealthy.' % location, - summary: 'Thanos Sidecar cannot access Prometheus, even though Prometheus seems healthy and has reloaded WAL.', - }, - expr: ||| - thanos_sidecar_prometheus_up{%(selector)s} == 0 - AND on (%(thanosPrometheusCommonDimensions)s) - prometheus_tsdb_data_replay_duration_seconds != 0 - ||| % thanos.sidecar, - 'for': '5m', - labels: { - severity: 'critical', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/store.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/store.libsonnet deleted file mode 100644 index a036ebcdb..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/alerts/store.libsonnet +++ /dev/null @@ -1,96 +0,0 @@ -{ - local thanos = self, - store+:: { - selector: error 'must provide selector for Thanos Store alerts', - grpcErrorThreshold: 5, - compactionErrorThreshold: 5, - seriesGateErrorThreshold: 2, - bucketOpsErrorThreshold: 5, - bucketOpsP99LatencyThreshold: 2, - dimensions: std.join(', ', std.objectFields(thanos.targetGroups) + ['job']), - }, - prometheusAlerts+:: { - groups+: if thanos.store == null then [] else [ - local location = if std.length(std.objectFields(thanos.targetGroups)) > 0 then ' in %s' % std.join('/', ['{{$labels.%s}}' % level for level in std.objectFields(thanos.targetGroups)]) else ''; - { - name: 'thanos-store', - rules: [ - { - alert: 'ThanosStoreGrpcErrorRate', - annotations: { - description: 'Thanos Store {{$labels.job}}%s is failing to handle {{$value | humanize}}%% of requests.' % location, - summary: 'Thanos Store is failing to handle gRPC requests.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(grpc_server_handled_total{grpc_code=~"Unknown|Internal|Unavailable|DataLoss|DeadlineExceeded", %(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(grpc_server_started_total{%(selector)s}[5m])) - * 100 > %(grpcErrorThreshold)s - ) - ||| % thanos.store, - 'for': '5m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosStoreSeriesGateLatencyHigh', - annotations: { - description: 'Thanos Store {{$labels.job}}%s has a 99th percentile latency of {{$value}} seconds for store series gate requests.' % location, - summary: 'Thanos Store has high latency for store series gate requests.', - }, - expr: ||| - ( - histogram_quantile(0.99, sum by (%(dimensions)s, le) (rate(thanos_bucket_store_series_gate_duration_seconds_bucket{%(selector)s}[5m]))) > %(seriesGateErrorThreshold)s - and - sum by (%(dimensions)s) (rate(thanos_bucket_store_series_gate_duration_seconds_count{%(selector)s}[5m])) > 0 - ) - ||| % thanos.store, - 'for': '10m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosStoreBucketHighOperationFailures', - annotations: { - description: 'Thanos Store {{$labels.job}}%s Bucket is failing to execute {{$value | humanize}}%% of operations.' % location, - summary: 'Thanos Store Bucket is failing to execute operations.', - }, - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_objstore_bucket_operation_failures_total{%(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_objstore_bucket_operations_total{%(selector)s}[5m])) - * 100 > %(bucketOpsErrorThreshold)s - ) - ||| % thanos.store, - 'for': '15m', - labels: { - severity: 'warning', - }, - }, - { - alert: 'ThanosStoreObjstoreOperationLatencyHigh', - annotations: { - description: 'Thanos Store {{$labels.job}}%s Bucket has a 99th percentile latency of {{$value}} seconds for the bucket operations.' % location, - summary: 'Thanos Store is having high latency for bucket operations.', - }, - expr: ||| - ( - histogram_quantile(0.99, sum by (%(dimensions)s, le) (rate(thanos_objstore_bucket_operation_duration_seconds_bucket{%(selector)s}[5m]))) > %(bucketOpsP99LatencyThreshold)s - and - sum by (%(dimensions)s) (rate(thanos_objstore_bucket_operation_duration_seconds_count{%(selector)s}[5m])) > 0 - ) - ||| % thanos.store, - 'for': '10m', - labels: { - severity: 'warning', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/config.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/config.libsonnet deleted file mode 100644 index 10db073c8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/config.libsonnet +++ /dev/null @@ -1,73 +0,0 @@ -{ - local thanos = self, - // TargetGroups is a way to help mixin users to add high level target grouping to their alerts and dashboards. - // With the help of TargetGroups you can use a single observability stack to monitor several Thanos instances. - // The key in the key-value pair will be used as "label name" in the alerts and variable name in the dashboards. - // The value in the key-value pair will be used as a query to fetch available values for the given label name. - targetGroups+:: { - // For example for given following groups, - // namespace: 'thanos_status', - // cluster: 'find_mi_cluster_bitte', - // zone: 'an_i_in_da_zone', - // region: 'losing_my_region', - // will generate queriers for the alerts as follows: - // ( - // sum by (cluster, namespace, region, zone, job) (rate(thanos_compact_group_compactions_failures_total{job=~"thanos-compact.*"}[5m])) - // / - // sum by (cluster, namespace, region, zone, job) (rate(thanos_compact_group_compactions_total{job=~"thanos-compact.*"}[5m])) - // * 100 > 5 - // ) - // - // AND for the dashborads: - // - // sum by (cluster, namespace, region, zone, job) (rate(thanos_compact_group_compactions_failures_total{cluster=\"$cluster\", namespace=\"$namespace\", region=\"$region\", zone=\"$zone\", job=\"$job\"}[$interval])) - // / - // sum by (cluster, namespace, region, zone, job) (rate(thanos_compact_group_compactions_total{cluster=\"$cluster\", namespace=\"$namespace\", region=\"$region\", zone=\"$zone\", job=\"$job\"}[$interval])) - }, - query+:: { - selector: 'job=~".*thanos-query.*"', - title: '%(prefix)sQuery' % $.dashboard.prefix, - }, - queryFrontend+:: { - selector: 'job=~".*thanos-query-frontend.*"', - title: '%(prefix)sQuery Frontend' % $.dashboard.prefix, - }, - store+:: { - selector: 'job=~".*thanos-store.*"', - title: '%(prefix)sStore' % $.dashboard.prefix, - }, - receive+:: { - selector: 'job=~".*thanos-receive.*"', - title: '%(prefix)sReceive' % $.dashboard.prefix, - }, - rule+:: { - selector: 'job=~".*thanos-rule.*"', - title: '%(prefix)sRule' % $.dashboard.prefix, - }, - compact+:: { - selector: 'job=~".*thanos-compact.*"', - title: '%(prefix)sCompact' % $.dashboard.prefix, - }, - sidecar+:: { - selector: 'job=~".*thanos-sidecar.*"', - thanosPrometheusCommonDimensions: 'namespace, pod', - title: '%(prefix)sSidecar' % $.dashboard.prefix, - }, - bucketReplicate+:: { - selector: 'job=~".*thanos-bucket-replicate.*"', - title: '%(prefix)sBucketReplicate' % $.dashboard.prefix, - }, - dashboard+:: { - prefix: 'Thanos / ', - tags: ['thanos-mixin'], - timezone: 'UTC', - selector: ['%s="$%s"' % [level, level] for level in std.objectFields(thanos.targetGroups)], - dimensions: ['%s' % level for level in std.objectFields(thanos.targetGroups)], - - overview+:: { - title: '%(prefix)sOverview' % $.dashboard.prefix, - selector: std.join(', ', thanos.dashboard.selector), - dimensions: std.join(', ', thanos.dashboard.dimensions + ['job']), - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards.jsonnet deleted file mode 100644 index 4e4c5e4e8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards.jsonnet +++ /dev/null @@ -1,8 +0,0 @@ -local dashboards = ( - import 'mixin.libsonnet' -).grafanaDashboards; - -{ - [name]: dashboards[name] - for name in std.objectFields(dashboards) -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/bucket-replicate.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/bucket-replicate.libsonnet deleted file mode 100644 index 8a47aa892..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/bucket-replicate.libsonnet +++ /dev/null @@ -1,61 +0,0 @@ -local g = import '../lib/thanos-grafana-builder/builder.libsonnet'; - -{ - local thanos = self, - bucketReplicate+:: { - selector: error 'must provide selector for Thanos Bucket Replicate dashboard', - title: error 'must provide title for Thanos Bucket Replicate dashboard', - dashboard:: { - selector: std.join(', ', thanos.dashboard.selector + ['job=~"$job"']), - dimensions: std.join(', ', thanos.dashboard.dimensions + ['job']), - }, - }, - grafanaDashboards+:: { - [if thanos.bucketReplicate != null then 'bucket-replicate.json']: - g.dashboard(thanos.bucketReplicate.title) - .addRow( - g.row('Bucket Replicate Runs') - .addPanel( - g.panel('Rate') + - g.qpsErrTotalPanel( - 'thanos_replicate_replication_runs_total{result="error", %s}' % thanos.bucketReplicate.dashboard.selector, - 'thanos_replicate_replication_runs_total{%s}' % thanos.bucketReplicate.dashboard.selector, - thanos.bucketReplicate.dashboard.dimensions - ) - ) - .addPanel( - g.panel('Errors', 'Shows rate of errors.') + - g.queryPanel( - 'sum by (%(dimensions)s, result) (rate(thanos_replicate_replication_runs_total{result="error", %(selector)s}[$__rate_interval]))' % thanos.bucketReplicate.dashboard, - '{{result}}' - ) + - { yaxes: g.yaxes('percentunit') } + - g.stack - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to run a replication cycle.') + - g.latencyPanel( - 'thanos_replicate_replication_run_duration_seconds', - 'result="success", %s' % thanos.bucketReplicate.dashboard.selector, - thanos.bucketReplicate.dashboard.dimensions - ) - ) - ) - .addRow( - g.row('Bucket Replication') - .addPanel( - g.panel('Metrics') + - g.queryPanel( - [ - 'sum by (%(dimensions)s) (rate(blocks_meta_synced{state="loaded", %(selector)s}[$__rate_interval]))' % thanos.bucketReplicate.dashboard, - 'sum by (%(dimensions)s) (rate(blocks_meta_synced{state="failed", %(selector)s}[$__rate_interval]))' % thanos.bucketReplicate.dashboard, - 'sum by (%(dimensions)s) (rate(thanos_replicate_blocks_already_replicated_total{%(selector)s}[$__rate_interval]))' % thanos.bucketReplicate.dashboard, - 'sum by (%(dimensions)s) (rate(thanos_replicate_blocks_replicated_total{%(selector)s}[$__rate_interval]))' % thanos.bucketReplicate.dashboard, - 'sum by (%(dimensions)s) (rate(thanos_replicate_objects_replicated_total{%(selector)s}[$__rate_interval]))' % thanos.bucketReplicate.dashboard, - ], - ['meta loads', 'partial meta reads', 'already replicated blocks', 'replicated blocks', 'replicated objects'] - ) - ) - ), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/compact.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/compact.libsonnet deleted file mode 100644 index 9018e360d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/compact.libsonnet +++ /dev/null @@ -1,205 +0,0 @@ -local g = import '../lib/thanos-grafana-builder/builder.libsonnet'; - -{ - local thanos = self, - compact+:: { - selector: error 'must provide selector for Thanos Compact dashboard', - title: error 'must provide title for Thanos Compact dashboard', - dashboard:: { - selector: std.join(', ', thanos.dashboard.selector + ['job=~"$job"']), - dimensions: std.join(', ', thanos.dashboard.dimensions + ['job']), - }, - }, - grafanaDashboards+:: { - [if thanos.compact != null then 'compact.json']: - g.dashboard(thanos.compact.title) - .addRow( - g.row('Group Compaction') - .addPanel( - g.panel( - 'Rate', - 'Shows rate of execution for compactions against blocks that are stored in the bucket by compaction resolution.' - ) + - g.queryPanel( - 'sum by (%(dimensions)s, resolution) (rate(thanos_compact_group_compactions_total{%(selector)s}[$__rate_interval]))' % thanos.compact.dashboard, - 'compaction {{job}} {{resolution}}' - ) + - g.stack - ) - .addPanel( - g.panel( - 'Errors', - 'Shows ratio of errors compared to the total number of executed compactions against blocks that are stored in the bucket.' - ) + - g.qpsErrTotalPanel( - 'thanos_compact_group_compactions_failures_total{%(selector)s}' % thanos.compact.dashboard.selector, - 'thanos_compact_group_compactions_total{%(selector)s}' % thanos.compact.dashboard.selector, - thanos.compact.dashboard.dimensions - ) - ) - ) - .addRow( - g.row('Downsample') - .addPanel( - g.panel( - 'Rate', - 'Shows rate of execution for downsampling against blocks that are stored in the bucket by compaction resolution.' - ) + - g.queryPanel( - 'sum by (%(dimensions)s, resolution) (rate(thanos_compact_downsample_total{%(selector)s}[$__rate_interval]))' % thanos.compact.dashboard, - 'downsample {{job}} {{resolution}}' - ) + - g.stack - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of executed downsampling against blocks that are stored in the bucket.') + - g.qpsErrTotalPanel( - 'thanos_compact_downsample_failed_total{%(selector)s}' % thanos.compact.dashboard.selector, - 'thanos_compact_downsample_total{%(selector)s}' % thanos.compact.dashboard.selector, - thanos.compact.dashboard.dimensions - ) - ) - ) - .addRow( - g.row('Garbage Collection') - .addPanel( - g.panel( - 'Rate', - 'Shows rate of execution for removals of blocks if their data is available as part of a block with a higher compaction level.' - ) + - g.queryPanel( - 'sum by (%(dimensions)s) (rate(thanos_compact_garbage_collection_total{%(selector)s}[$__rate_interval]))' % thanos.compact.dashboard, - 'garbage collection {{job}}' - ) + - g.stack - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of executed garbage collections.') + - g.qpsErrTotalPanel( - 'thanos_compact_garbage_collection_failures_total{%(selector)s}' % thanos.compact.dashboard.selector, - 'thanos_compact_garbage_collection_total{%(selector)s}' % thanos.compact.dashboard.selector, - thanos.compact.dashboard.dimensions - ) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to execute garbage collection in quantiles.') + - g.latencyPanel('thanos_compact_garbage_collection_duration_seconds', thanos.compact.dashboard.selector, thanos.compact.dashboard.dimensions) - ) - ) - .addRow( - g.row('Blocks deletion') - .addPanel( - g.panel( - 'Deletion Rate', - 'Shows deletion rate of blocks already marked for deletion.' - ) + - g.queryPanel( - 'sum by (%(dimensions)s) (rate(thanos_compact_blocks_cleaned_total{%(selector)s}[$__rate_interval]))' % thanos.compact.dashboard, - 'Blocks cleanup {{job}}' - ) + - g.stack - ) - .addPanel( - g.panel( - 'Deletion Error Rate', - 'Shows deletion failures rate of blocks already marked for deletion.' - ) + - g.queryPanel( - 'sum by (%(dimensions)s) (rate(thanos_compact_block_cleanup_failures_total{%(selector)s}[$__rate_interval]))' % thanos.compact.dashboard, - 'Blocks cleanup failures {{job}}' - ) - ) - .addPanel( - g.panel( - 'Marking Rate', - 'Shows rate at which blocks are marked for deletion (from GC and retention policy).' - ) + - g.queryPanel( - 'sum by (%(dimensions)s) (rate(thanos_compact_blocks_marked_for_deletion_total{%(selector)s}[$__rate_interval]))' % thanos.compact.dashboard, - 'Blocks marked {{job}}' - ) - ) - ) - .addRow( - g.row('Sync Meta') - .addPanel( - g.panel( - 'Rate', - 'Shows rate of execution for all meta files from blocks in the bucket into the memory.' - ) + - g.queryPanel( - 'sum by (%(dimensions)s) (rate(thanos_blocks_meta_syncs_total{%(selector)s}[$__rate_interval]))' % thanos.compact.dashboard, - 'sync {{job}}' - ) + - g.stack - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of executed meta file sync.') + - g.qpsErrTotalPanel( - 'thanos_blocks_meta_sync_failures_total{%(selector)s}' % thanos.compact.dashboard.selector, - 'thanos_blocks_meta_syncs_total{%(selector)s}' % thanos.compact.dashboard.selector, - thanos.compact.dashboard.dimensions - ) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to execute meta file sync, in quantiles.') + - g.latencyPanel('thanos_blocks_meta_sync_duration_seconds', thanos.compact.dashboard.selector, thanos.compact.dashboard.dimensions) - ) - ) - .addRow( - g.row('Object Store Operations') - .addPanel( - g.panel('Rate', 'Shows rate of execution for operations against the bucket.') + - g.queryPanel( - 'sum by (%(dimensions)s, operation) (rate(thanos_objstore_bucket_operations_total{%(selector)s}[$__rate_interval]))' % thanos.compact.dashboard, - '{{job}} {{operation}}' - ) + - g.stack - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of executed operations against the bucket.') + - g.qpsErrTotalPanel( - 'thanos_objstore_bucket_operation_failures_total{%(selector)s}' % thanos.compact.dashboard.selector, - 'thanos_objstore_bucket_operations_total{%(selector)s}' % thanos.compact.dashboard.selector, - thanos.compact.dashboard.dimensions - ) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to execute operations against the bucket, in quantiles.') + - g.latencyPanel('thanos_objstore_bucket_operation_duration_seconds', thanos.compact.dashboard.selector, thanos.compact.dashboard.dimensions) - ) - ) - .addRow( - g.resourceUtilizationRow(thanos.compact.dashboard.selector, thanos.compact.dashboard.dimensions) - ), - - __overviewRows__+:: if thanos.compact == null then [] else [ - g.row('Compact') - .addPanel( - g.panel( - 'Compaction Rate', - 'Shows rate of execution for compactions against blocks that are stored in the bucket.' - ) + - g.queryPanel( - 'sum by (%(dimensions)s) (rate(thanos_compact_group_compactions_total{%(selector)s}[$__rate_interval]))' % thanos.dashboard.overview, - 'compaction {{job}}' - ) + - g.stack + - g.addDashboardLink(thanos.compact.title) - ) - .addPanel( - g.panel( - 'Compaction Errors', - 'Shows ratio of errors compared to the total number of executed compactions against blocks that are stored in the bucket.' - ) + - g.qpsErrTotalPanel( - 'thanos_compact_group_compactions_failures_total{%(selector)s}' % thanos.dashboard.overview.selector, - 'thanos_compact_group_compactions_total{%(selector)s}' % thanos.dashboard.overview.selector, - thanos.compact.dashboard.dimensions - ) + - g.addDashboardLink(thanos.compact.title) - ) + - g.collapse, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/dashboards.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/dashboards.libsonnet deleted file mode 100644 index 84374f458..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/dashboards.libsonnet +++ /dev/null @@ -1,10 +0,0 @@ -(import 'query.libsonnet') + -(import 'query-frontend.libsonnet') + -(import 'store.libsonnet') + -(import 'sidecar.libsonnet') + -(import 'receive.libsonnet') + -(import 'rule.libsonnet') + -(import 'compact.libsonnet') + -(import 'bucket-replicate.libsonnet') + -(import 'overview.libsonnet') + -(import 'defaults.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/defaults.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/defaults.libsonnet deleted file mode 100644 index e176f0100..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/defaults.libsonnet +++ /dev/null @@ -1,91 +0,0 @@ -local utils = import '../lib/utils.libsonnet'; -{ - local thanos = self, - local grafanaDashboards = super.grafanaDashboards, - local grafana = import 'grafonnet/grafana.libsonnet', - local template = grafana.template, - - dashboard:: { - prefix: 'Thanos / ', - tags: error 'must provide dashboard tags', - timezone: 'UTC', - instance_name_filter: '', - }, - - // Automatically add a uid to each dashboard based on the base64 encoding - // of the file name and set the timezone to be 'default'. - grafanaDashboards:: { - local component = utils.sanitizeComponentName(std.split(filename, '.')[0]), - - [filename]: grafanaDashboards[filename] { - uid: std.md5(filename), - timezone: thanos.dashboard.timezone, - tags: thanos.dashboard.tags, - - // Modify tooltip to only show a single value - rows: [ - row { - panels: [ - panel { - tooltip+: { - shared: false, - }, - } - for panel in super.panels - ], - } - for row in super.rows - ], - - templating+: { - // Add optional filter to the datasource template variable - list: [ - if variable.name == 'datasource' - then variable { regex: thanos.dashboard.instance_name_filter } - else variable - for variable in super.list - ] + [ - template.interval( - 'interval', - '5m,10m,30m,1h,6h,12h,auto', - label='interval', - current='5m', - ), - ], - }, - } { - templating+: { - list+: [ - template.new( - level, - '$datasource', - 'label_values(%s, %s)' % [thanos.targetGroups[level], level], - label=level, - refresh=1, - sort=2, - ) - for level in std.objectFields(thanos.targetGroups) - ], - }, - } + if std.objectHas(thanos[component], 'selector') then { - templating+: { - local name = 'job', - local selector = std.join(', ', thanos.dashboard.selector + [thanos[component].selector]), - list+: [ - template.new( - name, - '$datasource', - 'label_values(up{%s}, %s)' % [selector, name], - label=name, - refresh=1, - sort=2, - current='all', - allValues=null, - includeAll=true - ), - ], - }, - } else {} - for filename in std.objectFields(grafanaDashboards) - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/overview.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/overview.libsonnet deleted file mode 100644 index e27736db3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/overview.libsonnet +++ /dev/null @@ -1,33 +0,0 @@ -local g = import '../lib/thanos-grafana-builder/builder.libsonnet'; - -{ - local thanos = self, - overview:: { - title: error 'must provide title for Thanos Overview dashboard', - }, - grafanaDashboards+:: { - 'overview.json': - g.dashboard(thanos.dashboard.overview.title), - }, -} + -{ - local grafanaDashboards = super.grafanaDashboards, - grafanaDashboards+:: { - 'overview.json'+: { - __enumeratedRows__+:: std.foldl( - function(acc, row) - local n = std.length(row.panels); - local panelIndex = acc.counter; - local panels = std.makeArray( - n, function(i) - row.panels[i] { id: panelIndex + i } - ); - acc { counter:: acc.counter + n, rows+: [row { panels: panels }] }, - grafanaDashboards.__overviewRows__, - { counter:: 1, rows: [] } - ), - - rows+: self.__enumeratedRows__.rows, - }, - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/query-frontend.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/query-frontend.libsonnet deleted file mode 100644 index e0dd17f1c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/query-frontend.libsonnet +++ /dev/null @@ -1,81 +0,0 @@ -local g = import '../lib/thanos-grafana-builder/builder.libsonnet'; -local utils = import '../lib/utils.libsonnet'; - -{ - local thanos = self, - queryFrontend+:: { - selector: error 'must provide selector for Thanos Query Frontend dashboard', - title: error 'must provide title for Thanos Query Frontend dashboard', - dashboard:: { - selector: std.join(', ', thanos.dashboard.selector + ['job=~"$job"']), - dimensions: std.join(', ', thanos.dashboard.dimensions + ['job']), - }, - }, - grafanaDashboards+:: { - [if thanos.queryFrontend != null then 'query-frontend.json']: - local queryFrontendHandlerSelector = utils.joinLabels([thanos.queryFrontend.dashboard.selector, 'handler="query-frontend"']); - local queryFrontendOpSelector = utils.joinLabels([thanos.queryFrontend.dashboard.selector, 'op="query_range"']); - g.dashboard(thanos.queryFrontend.title) - .addRow( - g.row('Query Frontend API') - .addPanel( - g.panel('Rate of requests', 'Shows rate of requests against Query Frontend for the given time.') + - g.httpQpsPanel('http_requests_total', queryFrontendHandlerSelector, thanos.queryFrontend.dashboard.dimensions) - ) - .addPanel( - g.panel('Rate of queries', 'Shows rate of queries passing through Query Frontend') + - g.httpQpsPanel('thanos_query_frontend_queries_total', queryFrontendOpSelector, thanos.queryFrontend.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests against Query Frontend.') + - g.httpErrPanel('http_requests_total', queryFrontendHandlerSelector, thanos.queryFrontend.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests in quantiles.') + - g.latencyPanel('http_request_duration_seconds', queryFrontendHandlerSelector, thanos.queryFrontend.dashboard.dimensions) - ) - ) - .addRow( - g.row('Cache Operations') - .addPanel( - g.panel('Requests', 'Show rate of cache requests.') + - g.queryPanel( - 'sum by (%s) (rate(cortex_cache_request_duration_seconds_count{%s}[$__rate_interval]))' % [utils.joinLabels([thanos.queryFrontend.dashboard.dimensions, 'tripperware']), thanos.queryFrontend.dashboard.selector], - '{{job}} {{tripperware}}', - ) + - g.stack - ) - .addPanel( - g.panel('Querier cache gets vs misses', 'Show rate of Querier cache gets vs misses.') + - g.queryPanel( - 'sum by (%s) (rate(querier_cache_gets_total{%s}[$__rate_interval]))' % [utils.joinLabels([thanos.queryFrontend.dashboard.dimensions, 'tripperware']), thanos.queryFrontend.dashboard.selector], - 'Cache gets - {{job}} {{tripperware}}', - ) + - g.queryPanel( - 'sum by (%s) (rate(querier_cache_misses_total{%s}[$__rate_interval]))' % [utils.joinLabels([thanos.queryFrontend.dashboard.dimensions, 'tripperware']), thanos.queryFrontend.dashboard.selector], - 'Cache misses - {{job}} {{tripperware}}', - ) + - g.stack - ) - .addPanel( - g.panel('Cortex fetched keys', 'Shows rate of cortex fetched keys.') + - g.queryPanel( - 'sum by (%s) (rate(cortex_cache_fetched_keys_total{%s}[$__rate_interval]))' % [utils.joinLabels([thanos.queryFrontend.dashboard.dimensions, 'tripperware']), thanos.queryFrontend.dashboard.selector], - '{{job}} {{tripperware}}', - ) + - g.stack - ) - .addPanel( - g.panel('Cortex cache hits', 'Shows rate of cortex cache hits.') + - g.queryPanel( - 'sum by (%s) (rate(cortex_cache_hits_total{%s}[$__rate_interval]))' % [utils.joinLabels([thanos.queryFrontend.dashboard.dimensions, 'tripperware']), thanos.queryFrontend.dashboard.selector], - '{{job}} {{tripperware}}', - ) + - g.stack - ) - ) - .addRow( - g.resourceUtilizationRow(thanos.queryFrontend.dashboard.selector, thanos.queryFrontend.dashboard.dimensions) - ), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/query.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/query.libsonnet deleted file mode 100644 index 70f4d510d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/query.libsonnet +++ /dev/null @@ -1,163 +0,0 @@ -local g = import '../lib/thanos-grafana-builder/builder.libsonnet'; -local utils = import '../lib/utils.libsonnet'; - -{ - local thanos = self, - query+:: { - selector: error 'must provide selector for Thanos Query dashboard', - title: error 'must provide title for Thanos Query dashboard', - dashboard:: { - selector: std.join(', ', thanos.dashboard.selector + ['job=~"$job"']), - dimensions: std.join(', ', thanos.dashboard.dimensions + ['job']), - }, - }, - grafanaDashboards+:: { - [if thanos.query != null then 'query.json']: - local queryHandlerSelector = utils.joinLabels([thanos.query.dashboard.selector, 'handler="query"']); - local queryRangeHandlerSelector = utils.joinLabels([thanos.query.dashboard.selector, 'handler="query_range"']); - local grpcUnarySelector = utils.joinLabels([thanos.query.dashboard.selector, 'grpc_type="unary"']); - local grpcServerStreamSelector = utils.joinLabels([thanos.query.dashboard.selector, 'grpc_type="server_stream"']); - g.dashboard(thanos.query.title) - .addRow( - g.row('Instant Query API') - .addPanel( - g.panel('Rate', 'Shows rate of requests against /query for the given time.') + - g.httpQpsPanel('http_requests_total', queryHandlerSelector, thanos.query.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests against /query.') + - g.httpErrPanel('http_requests_total', queryHandlerSelector, thanos.query.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests in quantiles.') + - g.latencyPanel('http_request_duration_seconds', queryHandlerSelector, thanos.query.dashboard.dimensions) - ) - ) - .addRow( - g.row('Range Query API') - .addPanel( - g.panel('Rate', 'Shows rate of requests against /query_range for the given time range.') + - g.httpQpsPanel('http_requests_total', queryRangeHandlerSelector, thanos.query.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests against /query_range.') + - g.httpErrPanel('http_requests_total', queryRangeHandlerSelector, thanos.query.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests in quantiles.') + - g.latencyPanel('http_request_duration_seconds', queryRangeHandlerSelector, thanos.query.dashboard.dimensions) - ) - ) - .addRow( - g.row('gRPC (Unary)') - .addPanel( - g.panel('Rate', 'Shows rate of handled Unary gRPC requests from other queriers.') + - g.grpcRequestsPanel('grpc_client_handled_total', grpcUnarySelector, thanos.query.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests from other queriers.') + - g.grpcErrorsPanel('grpc_client_handled_total', grpcUnarySelector, thanos.query.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests from other queriers, in quantiles.') + - g.latencyPanel('grpc_client_handling_seconds', grpcUnarySelector, thanos.query.dashboard.dimensions) - ) - ) - .addRow( - g.row('gRPC (Stream)') - .addPanel( - g.panel('Rate', 'Shows rate of handled Streamed gRPC requests from other queriers.') + - g.grpcRequestsPanel('grpc_client_handled_total', grpcServerStreamSelector, thanos.query.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests from other queriers.') + - g.grpcErrorsPanel('grpc_client_handled_total', grpcServerStreamSelector, thanos.query.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests from other queriers, in quantiles') + - g.latencyPanel('grpc_client_handling_seconds', grpcServerStreamSelector, thanos.query.dashboard.dimensions) - ) - ) - .addRow( - g.row('DNS') - .addPanel( - g.panel('Rate', 'Shows rate of DNS lookups to discover stores.') + - g.queryPanel( - 'sum by (%s) (rate(thanos_query_store_apis_dns_lookups_total{%s}[$interval]))' % [thanos.query.dashboard.dimensions, thanos.query.dashboard.selector], - 'lookups {{job}}' - ) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of failures compared to the total number of executed DNS lookups.') + - g.qpsErrTotalPanel( - 'thanos_query_store_apis_dns_failures_total{%s}' % thanos.query.dashboard.selector, - 'thanos_query_store_apis_dns_lookups_total{%s}' % thanos.query.dashboard.selector, - thanos.query.dashboard.dimensions - ) - ) - ) - .addRow( - g.row('Query Concurrency') - .addPanel( - g.panel('Concurrent Capacity', 'Shows available capacity of processing queries in parallel.') + - g.queryPanel( - 'max_over_time(thanos_query_concurrent_gate_queries_max{%s}[$__rate_interval]) - avg_over_time(thanos_query_concurrent_gate_queries_in_flight{%s}[$__rate_interval])' % [thanos.query.dashboard.selector, thanos.query.dashboard.selector], - '{{job}} - {{pod}}' - ) - ) - ) - .addRow( - g.resourceUtilizationRow(thanos.query.dashboard.selector, thanos.query.dashboard.dimensions) - ), - - __overviewRows__+:: if thanos.query == null then [] else [ - g.row('Instant Query') - .addPanel( - g.panel('Requests Rate', 'Shows rate of requests against /query for the given time.') + - g.httpQpsPanel('http_requests_total', utils.joinLabels([thanos.dashboard.overview.selector, 'handler="query"']), thanos.dashboard.overview.dimensions) + - g.addDashboardLink(thanos.query.title) - ) - .addPanel( - g.panel('Requests Errors', 'Shows ratio of errors compared to the total number of handled requests against /query.') + - g.httpErrPanel('http_requests_total', utils.joinLabels([thanos.dashboard.overview.selector, 'handler="query"']), thanos.dashboard.overview.dimensions) + - g.addDashboardLink(thanos.query.title) - ) - .addPanel( - g.sloLatency( - 'Latency 99th Percentile', - 'Shows how long has it taken to handle requests.', - 'http_request_duration_seconds_bucket{%s}' % utils.joinLabels([thanos.dashboard.overview.selector, 'handler="query"']), - thanos.dashboard.overview.dimensions, - 0.99, - 0.5, - 1 - ) + - g.addDashboardLink(thanos.query.title) - ), - - g.row('Range Query') - .addPanel( - g.panel('Requests Rate', 'Shows rate of requests against /query_range for the given time range.') + - g.httpQpsPanel('http_requests_total', utils.joinLabels([thanos.dashboard.overview.selector, 'handler="query_range"']), thanos.dashboard.overview.dimensions) + - g.addDashboardLink(thanos.query.title) - ) - .addPanel( - g.panel('Requests Errors', 'Shows ratio of errors compared to the total number of handled requests against /query_range.') + - g.httpErrPanel('http_requests_total', utils.joinLabels([thanos.dashboard.overview.selector, 'handler="query_range"']), thanos.dashboard.overview.dimensions) + - g.addDashboardLink(thanos.query.title) - ) - .addPanel( - g.sloLatency( - 'Latency 99th Percentile', - 'Shows how long has it taken to handle requests.', - 'http_request_duration_seconds_bucket{%s}' % utils.joinLabels([thanos.dashboard.overview.selector, 'handler="query_range"']), - thanos.dashboard.overview.dimensions, - 0.99, - 0.5, - 1 - ) + - g.addDashboardLink(thanos.query.title) - ), - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/receive.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/receive.libsonnet deleted file mode 100644 index 33e7c542a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/receive.libsonnet +++ /dev/null @@ -1,305 +0,0 @@ -local g = import '../lib/thanos-grafana-builder/builder.libsonnet'; -local utils = import '../lib/utils.libsonnet'; - - -{ - local thanos = self, - receive+:: { - selector: error 'must provide selector for Thanos Receive dashboard', - title: error 'must provide title for Thanos Receive dashboard', - dashboard:: { - selector: std.join(', ', thanos.dashboard.selector + ['job=~"$job"']), - dimensions: std.join(', ', thanos.dashboard.dimensions + ['job']), - tenantSelector: std.join(', ', thanos.dashboard.selector + ['job=~"$job"', 'tenant=~"$tenant"']), - tenantDimensions: std.join(', ', thanos.dashboard.dimensions + ['job', 'tenant']), - }, - }, - grafanaDashboards+:: { - local grafana = import 'grafonnet/grafana.libsonnet', - local template = grafana.template, - [if thanos.receive != null then 'receive.json']: - local receiveHandlerSelector = utils.joinLabels([thanos.receive.dashboard.selector, 'handler="receive"']); - local grpcUnaryWriteSelector = utils.joinLabels([thanos.receive.dashboard.selector, 'grpc_type="unary"', 'grpc_method="RemoteWrite"']); - local grpcUnaryReadSelector = utils.joinLabels([thanos.receive.dashboard.selector, 'grpc_type="unary"', 'grpc_method!="RemoteWrite"']); - local grpcServerStreamSelector = utils.joinLabels([thanos.receive.dashboard.selector, 'grpc_type="server_stream"']); - - local tenantReceiveHandlerSeclector = utils.joinLabels([thanos.receive.dashboard.tenantSelector, 'handler="receive"']); - local tenantHttpCode2XXSelector = std.join(', ', [tenantReceiveHandlerSeclector, 'code=~"2.."']); - local tenantHttpCodeNot2XXSelector = std.join(', ', [tenantReceiveHandlerSeclector, 'code!~"2.."']); - - local tenantWithHttpCodeDimensions = std.join(', ', ['tenant', 'code']); - g.dashboard(thanos.receive.title) { - templating+: { - list+: [ - template.new( - 'tenant', - '$datasource', - 'label_values(http_requests_total{%s}, %s)' % [std.join(', ', [thanos.receive.dashboard.selector] + ['tenant!=""']), 'tenant'], - label='tenant', - refresh=1, - sort=2, - current='all', - allValues=null, - includeAll=true - ), - ], - }, - } - .addRow( - g.row('WRITE - Incoming Request') - .addPanel( - g.panel('Rate', 'Shows rate of incoming requests.') + - g.httpQpsPanel('http_requests_total', receiveHandlerSelector, thanos.receive.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled incoming requests.') + - g.httpErrPanel('http_requests_total', receiveHandlerSelector, thanos.receive.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle incoming requests in quantiles.') + - g.latencyPanel('http_request_duration_seconds', receiveHandlerSelector, thanos.receive.dashboard.dimensions) - ) - ) - .addRow( - g.row('WRITE - Incoming Request (tenant focus)') - .addPanel( - g.panel('Rate of write requests (by tenant and code)') + - g.queryPanel( - 'sum by (%s) (rate(http_requests_total{%s}[$__rate_interval]))' % [tenantWithHttpCodeDimensions, tenantReceiveHandlerSeclector], - '{{code}} - {{tenant}}' - ) - ) - .addPanel( - g.panel('Number of errors (by tenant and code)') + - g.queryPanel( - 'sum by (%s) (rate(http_requests_total{%s}[$__rate_interval]))' % [ - tenantWithHttpCodeDimensions, - tenantHttpCodeNot2XXSelector, - ], - '{{code}} - {{tenant}}' - ) - ) - .addPanel( - g.panel('Average request duration (by tenant)') + - g.queryPanel( - 'sum by (%s) (rate(http_request_duration_seconds_sum{%s}[$__rate_interval])) / sum by (%s) (http_request_duration_seconds_count{%s})' % [ - thanos.receive.dashboard.tenantDimensions, - tenantReceiveHandlerSeclector, - thanos.receive.dashboard.tenantDimensions, - tenantReceiveHandlerSeclector, - ], - '{{tenant}}' - ) - ) - ) - .addRow( - g.row('HTTP requests (tenant focus)') - .addPanel( - g.panel('Average successful HTTP request size (per tenant and code, only 2XX)') + - g.queryPanel( - 'sum by (%s) (rate(http_request_size_bytes_sum{%s}[$__rate_interval])) / sum by (%s) (rate(http_request_size_bytes_count{%s}[$__rate_interval]))' % [ - thanos.receive.dashboard.tenantDimensions, - tenantHttpCode2XXSelector, - thanos.receive.dashboard.tenantDimensions, - tenantHttpCode2XXSelector, - ], - '{{tenant}}' - ) - ) - .addPanel( - g.panel('Average failed HTTP request size (per tenant and code, non 2XX)') + - g.queryPanel( - 'sum by (%s) (rate(http_request_size_bytes_sum{%s}[$__rate_interval])) / sum by (%s) (rate(http_request_size_bytes_count{%s}[$__rate_interval]))' % [ - thanos.receive.dashboard.tenantDimensions, - tenantHttpCodeNot2XXSelector, - thanos.receive.dashboard.tenantDimensions, - tenantHttpCodeNot2XXSelector, - ], - '{{tenant}}' - ) - ) - .addPanel( - g.panel('Inflight requests (per tenant and method)') + - g.queryPanel( - 'sum by (%s) (http_inflight_requests{%s})' % [ - std.join(', ', [thanos.receive.dashboard.tenantDimensions, 'method']), - tenantReceiveHandlerSeclector, - ], - '{{method}} - {{tenant}}' - ) - ) - ) - .addRow( - g.row('Series & Samples (tenant focus)') - .addPanel( - g.panel('Rate of series received (per tenant, only 2XX)') + - g.queryPanel( - 'sum(rate(thanos_receive_write_timeseries_sum{%s}[$__rate_interval])) by (%s) ' % [ - utils.joinLabels([thanos.receive.dashboard.tenantSelector, 'code=~"2.."']), - thanos.receive.dashboard.tenantDimensions, - ], - '{{tenant}}' - ) - ) - .addPanel( - g.panel('Rate of series not written (per tenant and code, non 2XX)') + - g.queryPanel( - 'sum(rate(thanos_receive_write_timeseries_sum{%s}[$__rate_interval])) by (%s) ' % [ - utils.joinLabels([thanos.receive.dashboard.tenantSelector, 'code!~"2.."']), - tenantWithHttpCodeDimensions, - ], - '{{code}} - {{tenant}}' - ) - ) - .addPanel( - g.panel('Rate of samples received (per tenant, only 2XX)') + - g.queryPanel( - 'sum(rate(thanos_receive_write_samples_sum{%s}[$__rate_interval])) by (%s) ' % [ - utils.joinLabels([thanos.receive.dashboard.tenantSelector, 'code=~"2.."']), - thanos.receive.dashboard.tenantDimensions, - ], - '{{tenant}}' - ) - ) - .addPanel( - g.panel('Rate of samples not written (per tenant and code, non 2XX)') + - g.queryPanel( - 'sum(rate(thanos_receive_write_samples_sum{%s}[$__rate_interval])) by (%s) ' % [ - utils.joinLabels([thanos.receive.dashboard.tenantSelector, 'code!~"2.."']), - tenantWithHttpCodeDimensions, - ], - '{{code}} - {{tenant}}' - ) - ) - ) - .addRow( - g.row('WRITE - Replication') - .addPanel( - g.panel('Rate', 'Shows rate of replications to other receive nodes.') + - g.queryPanel( - 'sum by (%s) (rate(thanos_receive_replications_total{%s}[$__rate_interval]))' % [thanos.receive.dashboard.dimensions, thanos.receive.dashboard.selector], - 'all {{job}}', - ) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of replications to other receive nodes.') + - g.qpsErrTotalPanel( - 'thanos_receive_replications_total{%s}' % utils.joinLabels([thanos.receive.dashboard.selector, 'result="error"']), - 'thanos_receive_replications_total{%s}' % thanos.receive.dashboard.selector, - thanos.receive.dashboard.dimensions - ) - ) - ) - .addRow( - g.row('WRITE - Forward Request') - .addPanel( - g.panel('Rate', 'Shows rate of forwarded requests to other receive nodes.') + - g.queryPanel( - 'sum by (%s) (rate(thanos_receive_forward_requests_total{%s}[$__rate_interval]))' % [thanos.receive.dashboard.dimensions, thanos.receive.dashboard.selector], - 'all {{job}}', - ) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of forwarded requests to other receive nodes.') + - g.qpsErrTotalPanel( - 'thanos_receive_forward_requests_total{%s}' % utils.joinLabels([thanos.receive.dashboard.selector, 'result="error"']), - 'thanos_receive_forward_requests_total{%s}' % thanos.receive.dashboard.selector, - thanos.receive.dashboard.dimensions - ) - ) - ) - .addRow( - // TODO(https://github.com/thanos-io/thanos/issues/3926) - g.row('WRITE - gRPC (Unary)') - .addPanel( - g.panel('Rate', 'Shows rate of handled Unary gRPC requests from queriers.') + - g.grpcRequestsPanel('grpc_server_handled_total', grpcUnaryWriteSelector, thanos.receive.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests from queriers.') + - g.grpcErrorsPanel('grpc_server_handled_total', grpcUnaryWriteSelector, thanos.receive.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests from queriers, in quantiles.') + - g.latencyPanel('grpc_server_handling_seconds', grpcUnaryWriteSelector, thanos.receive.dashboard.dimensions) - ) - ) - .addRow( - // TODO(https://github.com/thanos-io/thanos/issues/3926) - g.row('READ - gRPC (Unary)') - .addPanel( - g.panel('Rate', 'Shows rate of handled Unary gRPC requests from queriers.') + - g.grpcRequestsPanel('grpc_server_handled_total', grpcUnaryReadSelector, thanos.receive.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests from queriers.') + - g.grpcErrorsPanel('grpc_server_handled_total', grpcUnaryReadSelector, thanos.receive.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests from queriers, in quantiles.') + - g.latencyPanel('grpc_server_handling_seconds', grpcUnaryReadSelector, thanos.receive.dashboard.dimensions) - ) - ) - .addRow( - // TODO(https://github.com/thanos-io/thanos/issues/3926) - g.row('READ - gRPC (Stream)') - .addPanel( - g.panel('Rate', 'Shows rate of handled Streamed gRPC requests from queriers.') + - g.grpcRequestsPanel('grpc_server_handled_total', grpcServerStreamSelector, thanos.receive.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests from queriers.') + - g.grpcErrorsPanel('grpc_server_handled_total', grpcServerStreamSelector, thanos.receive.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests from queriers, in quantiles.') + - g.latencyPanel('grpc_server_handling_seconds', grpcServerStreamSelector, thanos.receive.dashboard.dimensions) - ) - ) - .addRow( - g.row('Last Updated') - .addPanel( - g.panel('Successful Upload', 'Shows the relative time of last successful upload to the object-store bucket.') + - g.tablePanel( - ['time() - max by (%s) (thanos_objstore_bucket_last_successful_upload_time{%s})' % [utils.joinLabels([thanos.receive.dashboard.dimensions, 'bucket']), thanos.receive.dashboard.selector]], - { - Value: { - alias: 'Uploaded Ago', - unit: 's', - type: 'number', - }, - }, - ) - ) - ) - .addRow( - g.resourceUtilizationRow(thanos.receive.dashboard.selector, thanos.receive.dashboard.dimensions) - ), - - __overviewRows__+:: if thanos.receive == null then [] else [ - g.row('Receive') - .addPanel( - g.panel('Incoming Requests Rate', 'Shows rate of incoming requests.') + - g.httpQpsPanel('http_requests_total', utils.joinLabels([thanos.dashboard.overview.selector, 'handler="receive"']), thanos.dashboard.overview.dimensions) + - g.addDashboardLink(thanos.receive.title) - ) - .addPanel( - g.panel('Incoming Requests Errors', 'Shows ratio of errors compared to the total number of handled incoming requests.') + - g.httpErrPanel('http_requests_total', utils.joinLabels([thanos.dashboard.overview.selector, 'handler="receive"']), thanos.dashboard.overview.dimensions) + - g.addDashboardLink(thanos.receive.title) - ) - .addPanel( - g.sloLatency( - 'Incoming Requests Latency 99th Percentile', - 'Shows how long has it taken to handle incoming requests.', - 'http_request_duration_seconds_bucket{%s}' % utils.joinLabels([thanos.dashboard.overview.selector, 'handler="receive"']), - thanos.dashboard.overview.dimensions, - 0.99, - 0.5, - 1 - ) + - g.addDashboardLink(thanos.receive.title) - ), - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/rule.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/rule.libsonnet deleted file mode 100644 index 92fa7635a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/rule.libsonnet +++ /dev/null @@ -1,175 +0,0 @@ -local g = import '../lib/thanos-grafana-builder/builder.libsonnet'; -local utils = import '../lib/utils.libsonnet'; - -{ - local thanos = self, - rule+:: { - selector: error 'must provide selector for Thanos Rule dashboard', - title: error 'must provide title for Thanos Rule dashboard', - dashboard:: { - selector: std.join(', ', thanos.dashboard.selector + ['job=~"$job"']), - dimensions: std.join(', ', thanos.dashboard.dimensions + ['job']), - ruleGroupDimensions: std.join(', ', thanos.dashboard.dimensions + ['job', 'rule_group', 'strategy']), - }, - }, - grafanaDashboards+:: { - [if thanos.rule != null then 'rule.json']: - local grpcUnarySelector = utils.joinLabels([thanos.rule.dashboard.selector, 'grpc_type="unary"']); - local grpcServerStreamSelector = utils.joinLabels([thanos.rule.dashboard.selector, 'grpc_type="server_stream"']); - - g.dashboard(thanos.rule.title) - .addRow( - g.row('Rule Group Evaluations') - .addPanel( - g.panel('Rule Group Evaluations') + - g.queryPanel( - 'sum by (%(ruleGroupDimensions)s) (rate(prometheus_rule_evaluations_total{%(selector)s}[$__rate_interval]))' % thanos.rule.dashboard, - '{{ rule_group }} {{ strategy }}', - ) - ) - .addPanel( - g.panel('Rule Group Evaluations Failed') + - g.queryPanel( - 'sum by (%(ruleGroupDimensions)s) (rate(prometheus_rule_evaluation_failures_total{%(selector)s}[$__rate_interval]))' % thanos.rule.dashboard, - '{{ rule_group }} {{ strategy }}', - ) - ) - .addPanel( - g.panel('Rule Group Evaluations Missed') + - g.queryPanel( - 'sum by (%(ruleGroupDimensions)s) (increase(prometheus_rule_group_iterations_missed_total{%(selector)s}[$__rate_interval]))' % thanos.rule.dashboard, - '{{ rule_group }} {{ strategy }}', - ) - ) - .addPanel( - g.panel('Rule Group Evaluations Too Slow') + - g.queryPanel( - ||| - ( - sum by(%(dimensions)s, rule_group) (prometheus_rule_group_last_duration_seconds{%(selector)s}) - > - sum by(%(dimensions)s, rule_group) (prometheus_rule_group_interval_seconds{%(selector)s}) - ) - ||| % thanos.rule.dashboard, - '{{ rule_group }}', - ) - ) - ) - .addRow( - g.row('Alert Sent') - .addPanel( - g.panel('Dropped Rate', 'Shows rate of dropped alerts.') + - g.queryPanel( - 'sum by (%(dimensions)s, alertmanager) (rate(thanos_alert_sender_alerts_dropped_total{%s}[$__rate_interval]))' % [thanos.rule.dashboard.dimensions, thanos.rule.dashboard.selector], - '{{alertmanager}}' - ) - ) - .addPanel( - g.panel('Sent Rate', 'Shows rate of alerts that successfully sent to alert manager.') + - g.queryPanel( - 'sum by (%(dimensions)s, alertmanager) (rate(thanos_alert_sender_alerts_sent_total{%s}[$__rate_interval]))' % [thanos.rule.dashboard.dimensions, thanos.rule.dashboard.selector], - '{{alertmanager}}' - ) + - g.stack - ) - .addPanel( - g.panel('Sent Errors', 'Shows ratio of errors compared to the total number of sent alerts.') + - g.qpsErrTotalPanel( - 'thanos_alert_sender_errors_total{%s}' % thanos.rule.dashboard.selector, - 'thanos_alert_sender_alerts_sent_total{%s}' % thanos.rule.dashboard.selector, - thanos.rule.dashboard.dimensions - ) - ) - .addPanel( - g.panel('Sent Duration', 'Shows how long has it taken to send alerts to alert manager.') + - g.latencyPanel('thanos_alert_sender_latency_seconds', thanos.rule.dashboard.selector, thanos.rule.dashboard.dimensions), - ) - ) - .addRow( - g.row('Alert Queue') - .addPanel( - g.panel('Push Rate', 'Shows rate of queued alerts.') + - g.queryPanel( - 'sum by (%s) (rate(thanos_alert_queue_alerts_dropped_total{%s}[$__rate_interval]))' % [thanos.rule.dashboard.dimensions, thanos.rule.dashboard.selector], - '{{job}}' - ) - ) - .addPanel( - g.panel('Drop Ratio', 'Shows ratio of dropped alerts compared to the total number of queued alerts.') + - g.qpsErrTotalPanel( - 'thanos_alert_queue_alerts_dropped_total{%s}' % thanos.rule.dashboard.selector, - 'thanos_alert_queue_alerts_pushed_total{%s}' % thanos.rule.dashboard.selector, - thanos.rule.dashboard.dimensions - ) - ) - ) - .addRow( - g.row('gRPC (Unary)') - .addPanel( - g.panel('Rate', 'Shows rate of handled Unary gRPC requests.') + - g.grpcRequestsPanel('grpc_server_handled_total', grpcUnarySelector, thanos.rule.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests.') + - g.grpcErrorsPanel('grpc_server_handled_total', grpcUnarySelector, thanos.rule.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests, in quantiles.') + - g.latencyPanel('grpc_server_handling_seconds', grpcUnarySelector, thanos.rule.dashboard.dimensions) - ) - ) - .addRow( - g.row('gRPC (Stream)') - .addPanel( - g.panel('Rate', 'Shows rate of handled Streamed gRPC requests.') + - g.grpcRequestsPanel('grpc_server_handled_total', grpcServerStreamSelector, thanos.rule.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests.') + - g.grpcErrorsPanel('grpc_server_handled_total', grpcServerStreamSelector, thanos.rule.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests, in quantiles') + - g.latencyPanel('grpc_server_handling_seconds', grpcServerStreamSelector, thanos.rule.dashboard.dimensions) - ) - ) - .addRow( - g.resourceUtilizationRow(thanos.rule.dashboard.selector, thanos.rule.dashboard.dimensions) - ), - - __overviewRows__+:: if thanos.rule == null then [] else [ - g.row('Rule') - .addPanel( - g.panel('Alert Sent Rate', 'Shows rate of alerts that successfully sent to alert manager.') + - g.queryPanel( - 'sum by (%s) (rate(thanos_alert_sender_alerts_sent_total{%s}[$__rate_interval]))' % [utils.joinLabels([thanos.dashboard.overview.dimensions, 'alertmanager']), thanos.dashboard.overview.selector], - '{{alertmanager}}' - ) + - g.addDashboardLink(thanos.rule.title) + - g.stack - ) - .addPanel( - g.panel('Alert Sent Errors', 'Shows ratio of errors compared to the total number of sent alerts.') + - g.qpsErrTotalPanel( - 'thanos_alert_sender_errors_total{%s}' % thanos.dashboard.overview.selector, - 'thanos_alert_sender_alerts_sent_total{%s}' % thanos.dashboard.overview.selector, - thanos.dashboard.overview.dimensions - ) + - g.addDashboardLink(thanos.rule.title) - ) - .addPanel( - g.sloLatency( - 'Alert Sent Duration', - 'Shows how long has it taken to send alerts to alert manager.', - 'thanos_alert_sender_latency_seconds_bucket{%s}' % thanos.dashboard.overview.selector, - thanos.dashboard.overview.dimensions, - 0.99, - 0.5, - 1 - ) + - g.addDashboardLink(thanos.rule.title) - ) + - g.collapse, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/sidecar.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/sidecar.libsonnet deleted file mode 100644 index f760b9aac..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/sidecar.libsonnet +++ /dev/null @@ -1,119 +0,0 @@ -local g = import '../lib/thanos-grafana-builder/builder.libsonnet'; -local utils = import '../lib/utils.libsonnet'; - -{ - local thanos = self, - sidecar+:: { - selector: error 'must provide selector for Thanos Sidecar dashboard', - title: error 'must provide title for Thanos Sidecar dashboard', - dashboard:: { - selector: std.join(', ', thanos.dashboard.selector + ['job=~"$job"']), - dimensions: std.join(', ', thanos.dashboard.dimensions + ['job']), - }, - }, - grafanaDashboards+:: { - [if thanos.sidecar != null then 'sidecar.json']: - local grpcUnarySelector = utils.joinLabels([thanos.sidecar.dashboard.selector, 'grpc_type="unary"']); - local grpcServerSelector = utils.joinLabels([thanos.sidecar.dashboard.selector, 'grpc_type="server_stream"']); - - g.dashboard(thanos.sidecar.title) - .addRow( - g.row('gRPC (Unary)') - .addPanel( - g.panel('Rate', 'Shows rate of handled Unary gRPC requests from queriers.') + - g.grpcRequestsPanel('grpc_server_handled_total', grpcUnarySelector, thanos.sidecar.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests from queriers.') + - g.grpcErrorsPanel('grpc_server_handled_total', grpcUnarySelector, thanos.sidecar.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests from queriers, in quantiles.') + - g.latencyPanel('grpc_server_handling_seconds', grpcUnarySelector, thanos.sidecar.dashboard.dimensions) - ) - ) - .addRow( - g.row('gRPC (Stream)') - .addPanel( - g.panel('Rate', 'Shows rate of handled Streamed gRPC requests from queriers.') + - g.grpcRequestsPanel('grpc_server_handled_total', grpcServerSelector, thanos.sidecar.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors') + - g.grpcErrorsPanel('grpc_server_handled_total', grpcServerSelector, thanos.sidecar.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests from queriers, in quantiles.') + - g.latencyPanel('grpc_server_handling_seconds', grpcServerSelector, thanos.sidecar.dashboard.dimensions) - ) - ) - .addRow( - g.row('Last Updated') - .addPanel( - g.panel('Successful Upload', 'Shows the relative time of last successful upload to the object-store bucket.') + - g.tablePanel( - ['time() - max by (%s) (thanos_objstore_bucket_last_successful_upload_time{%s})' % [utils.joinLabels([thanos.sidecar.dashboard.dimensions, 'bucket']), thanos.sidecar.dashboard.selector]], - { - Value: { - alias: 'Uploaded Ago', - unit: 's', - type: 'number', - }, - }, - ) - ) - ) - .addRow( - g.row('Bucket Operations') - .addPanel( - g.panel('Rate') + - g.queryPanel( - 'sum by (%s) (rate(thanos_objstore_bucket_operations_total{%s}[$__rate_interval]))' % [utils.joinLabels([thanos.sidecar.dashboard.dimensions, 'operation']), thanos.sidecar.dashboard.selector], - '{{job}} {{operation}}' - ) + - g.stack - ) - .addPanel( - g.panel('Errors') + - g.qpsErrTotalPanel( - 'thanos_objstore_bucket_operation_failures_total{%s}' % thanos.sidecar.dashboard.selector, - 'thanos_objstore_bucket_operations_total{%s}' % thanos.sidecar.dashboard.selector, - thanos.sidecar.dashboard.dimensions - ) - ) - .addPanel( - g.panel('Duration') + - g.latencyPanel('thanos_objstore_bucket_operation_duration_seconds', thanos.sidecar.dashboard.selector, thanos.sidecar.dashboard.dimensions) - ) - ) - .addRow( - g.resourceUtilizationRow(thanos.sidecar.dashboard.selector, thanos.sidecar.dashboard.dimensions) - ), - - __overviewRows__+:: if thanos.sidecar == null then [] else [ - g.row('Sidecar') - .addPanel( - g.panel('gRPC (Unary) Rate', 'Shows rate of handled Unary gRPC requests from queriers.') + - g.grpcRequestsPanel('grpc_server_handled_total', utils.joinLabels([thanos.dashboard.overview.selector, 'grpc_type="unary"']), thanos.dashboard.overview.dimensions) + - g.addDashboardLink(thanos.sidecar.title) - ) - .addPanel( - g.panel('gRPC (Unary) Errors', 'Shows ratio of errors compared to the total number of handled requests from queriers.') + - g.grpcErrorsPanel('grpc_server_handled_total', utils.joinLabels([thanos.dashboard.overview.selector, 'grpc_type="unary"']), thanos.dashboard.overview.dimensions) + - g.addDashboardLink(thanos.sidecar.title) - ) - .addPanel( - g.sloLatency( - 'gRPC (Unary) Latency 99th Percentile', - 'Shows how long has it taken to handle requests from queriers, in quantiles.', - 'grpc_server_handling_seconds_bucket{%s}' % utils.joinLabels([thanos.dashboard.overview.selector, 'grpc_type="unary"']), - thanos.dashboard.overview.dimensions, - 0.99, - 0.5, - 1 - ) + - g.addDashboardLink(thanos.sidecar.title) - ), - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/store.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/store.libsonnet deleted file mode 100644 index 1733e51b2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/dashboards/store.libsonnet +++ /dev/null @@ -1,303 +0,0 @@ -local g = import '../lib/thanos-grafana-builder/builder.libsonnet'; -local utils = import '../lib/utils.libsonnet'; - -{ - local thanos = self, - store+:: { - selector: error 'must provide selector for Thanos Store dashboard', - title: error 'must provide title for Thanos Store dashboard', - dashboard:: { - selector: std.join(', ', thanos.dashboard.selector + ['job=~"$job"']), - dimensions: std.join(', ', thanos.dashboard.dimensions + ['job']), - }, - }, - grafanaDashboards+:: { - [if thanos.store != null then 'store.json']: - local grpcUnarySelector = utils.joinLabels([thanos.store.dashboard.selector, 'grpc_type="unary"']); - local grpcServerStreamSelector = utils.joinLabels([thanos.store.dashboard.selector, 'grpc_type="server_stream"']); - local dataSizeDimensions = utils.joinLabels([thanos.store.dashboard.dimensions, 'data_type']); - - g.dashboard(thanos.store.title) - .addRow( - g.row('gRPC (Unary)') - .addPanel( - g.panel('Rate', 'Shows rate of handled Unary gRPC requests from queriers.') + - g.grpcRequestsPanel('grpc_server_handled_total', grpcUnarySelector, thanos.store.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests from queriers.') + - g.grpcErrorsPanel('grpc_server_handled_total', grpcUnarySelector, thanos.store.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests from queriers, in quantiles.') + - g.latencyPanel('grpc_server_handling_seconds', grpcUnarySelector, thanos.store.dashboard.dimensions) - ) - ) - .addRow( - g.row('gRPC (Stream)') - .addPanel( - g.panel('Rate', 'Shows rate of handled Streamed gRPC requests from queriers.') + - g.grpcRequestsPanel('grpc_server_handled_total', grpcServerStreamSelector, thanos.store.dashboard.dimensions) - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests from queriers.') + - g.grpcErrorsPanel('grpc_server_handled_total', grpcServerStreamSelector, thanos.store.dashboard.dimensions) - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to handle requests from queriers, in quantiles.') + - g.latencyPanel('grpc_server_handling_seconds', grpcServerStreamSelector, thanos.store.dashboard.dimensions) - ) - ) - .addRow( - g.row('Bucket Operations') - .addPanel( - g.panel('Rate', 'Shows rate of execution for operations against the bucket.') + - g.queryPanel( - 'sum by (%s) (rate(thanos_objstore_bucket_operations_total{%s}[$__rate_interval]))' % [utils.joinLabels([thanos.store.dashboard.dimensions, 'operation']), thanos.store.dashboard.selector], - '{{job}} {{operation}}' - ) + - g.stack - ) - .addPanel( - g.panel('Errors', 'Shows ratio of errors compared to the total number of executed operations against the bucket.') + - g.queryPanel( - 'sum by (%(dimensions)s) (rate(thanos_objstore_bucket_operation_failures_total{%(selector)s}[$__rate_interval])) / sum by (%(dimensions)s) (rate(thanos_objstore_bucket_operations_total{%(selector)s}[$__rate_interval]))' % thanos.store.dashboard { dimensions: utils.joinLabels([thanos.store.dashboard.dimensions, 'operation']) }, - '{{job}} {{operation}}' - ) + - { yaxes: g.yaxes({ format: 'percentunit' }) } + - g.stack, - ) - .addPanel( - g.panel('Duration', 'Shows how long has it taken to execute operations against the bucket, in quantiles.') + - $.latencyByOperationPanel('thanos_objstore_bucket_operation_duration_seconds', thanos.store.dashboard.selector, thanos.store.dashboard.dimensions) - ) - ) - .addRow( - g.row('Block Operations') - .addPanel( - g.panel('Block Load Rate', 'Shows rate of block loads from the bucket.') + - g.queryPanel( - 'sum by (%s) (rate(thanos_bucket_store_block_loads_total{%s}[$__rate_interval]))' % [thanos.store.dashboard.dimensions, thanos.store.dashboard.selector], - 'block loads' - ) + - g.stack - ) - .addPanel( - g.panel('Block Load Errors', 'Shows ratio of errors compared to the total number of block loads from the bucket.') + - g.qpsErrTotalPanel( - 'thanos_bucket_store_block_load_failures_total{%s}' % thanos.store.dashboard.selector, - 'thanos_bucket_store_block_loads_total{%s}' % thanos.store.dashboard.selector, - thanos.store.dashboard.dimensions - ) - ) - .addPanel( - g.panel('Block Drop Rate', 'Shows rate of block drops.') + - g.queryPanel( - 'sum by (%s) (rate(thanos_bucket_store_block_drops_total{%s}[$__rate_interval]))' % [utils.joinLabels([thanos.store.dashboard.dimensions, 'operation']), thanos.store.dashboard.selector], - 'block drops {{job}}' - ) + - g.stack - ) - .addPanel( - g.panel('Block Drop Errors', 'Shows ratio of errors compared to the total number of block drops.') + - g.qpsErrTotalPanel( - 'thanos_bucket_store_block_drop_failures_total{%s}' % thanos.store.dashboard.selector, - 'thanos_bucket_store_block_drops_total{%s}' % thanos.store.dashboard.selector, - thanos.store.dashboard.dimensions - ) - ) - ) - .addRow( - g.row('Cache Operations') - .addPanel( - g.panel('Requests', 'Show rate of cache requests.') + - g.queryPanel( - 'sum by (%s) (rate(thanos_store_index_cache_requests_total{%s}[$__rate_interval]))' % [utils.joinLabels([thanos.store.dashboard.dimensions, 'item_type']), thanos.store.dashboard.selector], - '{{job}} {{item_type}}', - ) + - g.stack - ) - .addPanel( - g.panel('Hits', 'Shows ratio of errors compared to the total number of cache hits.') + - g.queryPanel( - 'sum by (%s) (rate(thanos_store_index_cache_hits_total{%s}[$__rate_interval]))' % [utils.joinLabels([thanos.store.dashboard.dimensions, 'item_type']), thanos.store.dashboard.selector], - '{{job}} {{item_type}}', - ) + - g.stack - ) - .addPanel( - g.panel('Added', 'Show rate of added items to cache.') + - g.queryPanel( - 'sum by (%s) (rate(thanos_store_index_cache_items_added_total{%s}[$__rate_interval]))' % [utils.joinLabels([thanos.store.dashboard.dimensions, 'item_type']), thanos.store.dashboard.selector], - '{{job}} {{item_type}}', - ) + - g.stack - ) - .addPanel( - g.panel('Evicted', 'Show rate of evicted items from cache.') + - g.queryPanel( - 'sum by (%s) (rate(thanos_store_index_cache_items_evicted_total{%s}[$__rate_interval]))' % [utils.joinLabels([thanos.store.dashboard.dimensions, 'item_type']), thanos.store.dashboard.selector], - '{{job}} {{item_type}}', - ) + - g.stack - ) - ) - .addRow( - g.row('Store Sent') - .addPanel( - g.panel('Chunk Size', 'Shows size of chunks that have sent to the bucket.') + - g.queryPanel( - [ - 'histogram_quantile(0.99, sum by (%s) (rate(thanos_bucket_store_sent_chunk_size_bytes_bucket{%s}[$__rate_interval])))' % [utils.joinLabels([thanos.store.dashboard.dimensions, 'le']), thanos.store.dashboard.selector], - 'sum by (%(dimensions)s) (rate(thanos_bucket_store_sent_chunk_size_bytes_sum{%(selector)s}[$__rate_interval])) / sum by (%(dimensions)s) (rate(thanos_bucket_store_sent_chunk_size_bytes_count{%(selector)s}[$__rate_interval]))' % thanos.store.dashboard, - 'histogram_quantile(0.50, sum by (%s) (rate(thanos_bucket_store_sent_chunk_size_bytes_bucket{%s}[$__rate_interval])))' % [utils.joinLabels([thanos.store.dashboard.dimensions, 'le']), thanos.store.dashboard.selector], - ], - [ - 'P99', - 'mean', - 'P50', - ], - ) + - { yaxes: g.yaxes('bytes') } - ), - ) - .addRow( - g.row('Series Operations') - .addPanel( - g.panel('Block queried') + - g.queryPanel( - [ - 'histogram_quantile(0.99, sum by (le) (rate(thanos_bucket_store_series_blocks_queried{%s}[$__rate_interval])))' % thanos.store.dashboard.selector, - 'sum by (%(dimensions)s) (rate(thanos_bucket_store_series_blocks_queried_sum{%(selector)s}[$__rate_interval])) / sum by (%(dimensions)s) (rate(thanos_bucket_store_series_blocks_queried_count{%(selector)s}[$__rate_interval]))' % thanos.store.dashboard, - 'histogram_quantile(0.50, sum by (le) (rate(thanos_bucket_store_series_blocks_queried{%s}[$__rate_interval])))' % thanos.store.dashboard.selector, - ], [ - 'P99', - 'mean {{job}}', - 'P50', - ], - ) - ) - .addPanel( - g.panel('Data Fetched', 'Show the size of data fetched') + - g.queryPanel( - [ - 'histogram_quantile(0.99, sum by (le) (rate(thanos_bucket_store_series_data_fetched{%s}[$__rate_interval])))' % thanos.store.dashboard.selector, - 'sum by (%s) (rate(thanos_bucket_store_series_data_fetched_sum{%s}[$__rate_interval])) / sum by (%s) (rate(thanos_bucket_store_series_data_fetched_count{%s}[$__rate_interval]))' % [dataSizeDimensions, thanos.store.dashboard.selector, dataSizeDimensions, thanos.store.dashboard.selector], - 'histogram_quantile(0.50, sum by (le) (rate(thanos_bucket_store_series_data_fetched{%s}[$__rate_interval])))' % thanos.store.dashboard.selector, - ], [ - 'P99: {{data_type}} / {{job}}', - 'mean: {{data_type}} / {{job}}', - 'P50: {{data_type}} / {{job}}', - ], - ) + - { yaxes: g.yaxes('bytes') } - ) - .addPanel( - g.panel('Data Touched', 'Show the size of data touched') + - g.queryPanel( - [ - 'histogram_quantile(0.99, sum by (le) (rate(thanos_bucket_store_series_data_touched{%s}[$__rate_interval])))' % thanos.store.dashboard.selector, - 'sum by (%s) (rate(thanos_bucket_store_series_data_touched_sum{%s}[$__rate_interval])) / sum by (%s) (rate(thanos_bucket_store_series_data_touched_count{%s}[$__rate_interval]))' % [dataSizeDimensions, thanos.store.dashboard.selector, dataSizeDimensions, thanos.store.dashboard.selector], - 'histogram_quantile(0.50, sum by (le) (rate(thanos_bucket_store_series_data_touched{%s}[$__rate_interval])))' % thanos.store.dashboard.selector, - ], [ - 'P99: {{data_type}} / {{job}}', - 'mean: {{data_type}} / {{job}}', - 'P50: {{data_type}} / {{job}}', - ], - ) + - { yaxes: g.yaxes('bytes') } - ) - .addPanel( - g.panel('Result series') + - g.queryPanel( - [ - 'histogram_quantile(0.99, sum by (le) (rate(thanos_bucket_store_series_result_series{%s}[$__rate_interval])))' % thanos.store.dashboard.selector, - 'sum by (%(dimensions)s) (rate(thanos_bucket_store_series_result_series_sum{%(selector)s}[$__rate_interval])) / sum by (%(dimensions)s) (rate(thanos_bucket_store_series_result_series_count{%(selector)s}[$__rate_interval]))' % thanos.store.dashboard, - 'histogram_quantile(0.50, sum by (le) (rate(thanos_bucket_store_series_result_series{%s}[$__rate_interval])))' % thanos.store.dashboard.selector, - ], [ - 'P99', - 'mean {{job}}', - 'P50', - ], - ) - ) - ) - .addRow( - g.row('Series Operation Durations') - .addPanel( - g.panel('Get All', 'Shows how long has it taken to get all series.') + - g.latencyPanel('thanos_bucket_store_series_get_all_duration_seconds', thanos.store.dashboard.selector, thanos.store.dashboard.dimensions) - ) - .addPanel( - g.panel('Merge', 'Shows how long has it taken to merge series.') + - g.latencyPanel('thanos_bucket_store_series_merge_duration_seconds', thanos.store.dashboard.selector, thanos.store.dashboard.dimensions) - ) - .addPanel( - g.panel('Gate', 'Shows how long has it taken for a series to wait at the gate.') + - g.latencyPanel('thanos_bucket_store_series_gate_duration_seconds', thanos.store.dashboard.selector, thanos.store.dashboard.dimensions) - ) - ) - .addRow( - g.resourceUtilizationRow(thanos.store.dashboard.selector, thanos.store.dashboard.dimensions) - ), - - __overviewRows__+:: if thanos.store == null then [] else [ - g.row('Store') - .addPanel( - g.panel('gRPC (Unary) Rate', 'Shows rate of handled Unary gRPC requests from queriers.') + - g.grpcRequestsPanel('grpc_server_handled_total', utils.joinLabels([thanos.dashboard.overview.selector, 'grpc_type="unary"']), thanos.dashboard.overview.dimensions) + - g.addDashboardLink(thanos.store.title) - ) - .addPanel( - g.panel('gRPC (Unary) Errors', 'Shows ratio of errors compared to the total number of handled requests from queriers.') + - g.grpcErrorsPanel('grpc_server_handled_total', utils.joinLabels([thanos.dashboard.overview.selector, 'grpc_type="unary"']), thanos.dashboard.overview.dimensions) + - g.addDashboardLink(thanos.store.title) - ) - .addPanel( - g.sloLatency( - 'gRPC Latency 99th Percentile', - 'Shows how long has it taken to handle requests from queriers.', - 'grpc_server_handling_seconds_bucket{%s}' % utils.joinLabels([thanos.dashboard.overview.selector, 'grpc_type="unary"']), - thanos.dashboard.overview.dimensions, - 0.99, - 0.5, - 1 - ) + - g.addDashboardLink(thanos.store.title) - ), - ], - }, - - latencyByOperationPanel(metricName, selector, dimensions, multiplier='1'):: { - local params = { metricName: metricName, selector: selector, multiplier: multiplier, dimensions: dimensions }, - - nullPointMode: 'null as zero', - targets: [ - { - expr: 'histogram_quantile(0.99, sum by (%(dimensions)s, operation, le) (rate(%(metricName)s_bucket{%(selector)s}[$__rate_interval]))) * %(multiplier)s' % params, - format: 'time_series', - intervalFactor: 2, - legendFormat: 'P99 {{job}}', - refId: 'A', - step: 10, - }, - { - expr: 'sum by (%(dimensions)s, operation) (rate(%(metricName)s_sum{%(selector)s}[$__rate_interval])) * %(multiplier)s / sum by (%(dimensions)s, operation) (rate(%(metricName)s_count{%(selector)s}[$__rate_interval]))' % params, - format: 'time_series', - intervalFactor: 2, - legendFormat: 'mean {{job}}', - refId: 'B', - step: 10, - }, - { - expr: 'histogram_quantile(0.50, sum by (%(dimensions)s, operation, le) (rate(%(metricName)s_bucket{%(selector)s}[$__rate_interval]))) * %(multiplier)s' % params, - format: 'time_series', - intervalFactor: 2, - legendFormat: 'P50 {{job}}', - refId: 'C', - step: 10, - }, - ], - yaxes: g.yaxes('s'), - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/jsonnetfile.json b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/jsonnetfile.json deleted file mode 100644 index c45a96b03..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/jsonnetfile.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet-lib.git", - "subdir": "grafonnet" - } - }, - "version": "master" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/jsonnet-libs.git", - "subdir": "grafana-builder" - } - }, - "version": "master" - } - ], - "legacyImports": true -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/jsonnetfile.lock.json b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/jsonnetfile.lock.json deleted file mode 100644 index de1b098e1..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/jsonnetfile.lock.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "version": 1, - "dependencies": [ - { - "source": { - "git": { - "remote": "https://github.com/grafana/grafonnet-lib.git", - "subdir": "grafonnet" - } - }, - "version": "daad85cf3fad3580e58029414630e29956aefe21", - "sum": "zkOBVXtNSGlOdbm5TRCbEik7c/Jk+btbJqaE9qW8j3Y=" - }, - { - "source": { - "git": { - "remote": "https://github.com/grafana/jsonnet-libs.git", - "subdir": "grafana-builder" - } - }, - "version": "4d4b5b1ce01003547a110f93cc86b8b7afb282a6", - "sum": "GRf2GvwEU4jhXV+JOonXSZ4wdDv8mnHBPCQ6TUVd+g8=" - } - ], - "legacyImports": false -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/README.md b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/README.md deleted file mode 100644 index 272a8ad80..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# thanos-grafana-builder - -> Deprecated This will be removed soon, please do not depend on it. - -This is an `deprecated` jsonnet grafana builder library to help `thanos-mixin` to generate dashboards. diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/builder.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/builder.libsonnet deleted file mode 100644 index 39cedb404..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/builder.libsonnet +++ /dev/null @@ -1,185 +0,0 @@ -local utils = import '../utils.libsonnet'; - -(import 'grafana-builder/grafana.libsonnet') + -{ - collapse: { - collapse: true, - }, - - panel(title, description=null):: - super.panel(title) { [if description != null then 'description']: description }, - - addDashboardLink(name): { - links+: [ - { - dashboard: name, - includeVars: true, - keepTime: true, - title: name, - type: 'dashboard', - }, - ], - }, - - spanSize(size):: { - span: size, - }, - - postfix(postfix):: { - postfix: postfix, - }, - - sparkline:: { - sparkline: { - show: true, - lineColor: 'rgb(31, 120, 193)', - fillColor: 'rgba(31, 118, 189, 0.18)', - }, - }, - - latencyPanel(metricName, selector, dimensions, multiplier='1'):: { - local aggregatedLabels = std.split(dimensions, ','), - local dimensionsTemplate = std.join(' ', ['{{%s}}' % std.stripChars(label, ' ') for label in aggregatedLabels]), - - nullPointMode: 'null as zero', - targets: [ - { - expr: 'histogram_quantile(%.2f, sum by (%s) (rate(%s_bucket{%s}[$interval]))) * %s' % [percentile, utils.joinLabels([dimensions, 'le']), metricName, selector, multiplier], - format: 'time_series', - intervalFactor: 2, - legendFormat: 'p%d %s' % [100 * percentile, dimensionsTemplate], - logBase: 10, - min: null, - max: null, - step: 10, - } - for percentile in [0.5, 0.9, 0.99] - ], - yaxes: $.yaxes('s'), - seriesOverrides: [ - { - alias: 'p99', - color: '#FA6400', - fill: 1, - fillGradient: 1, - }, - { - alias: 'p90', - color: '#E0B400', - fill: 1, - fillGradient: 1, - }, - { - alias: 'p50', - color: '#37872D', - fill: 10, - fillGradient: 0, - }, - ], - }, - - qpsErrTotalPerLabelPanel(selectorErr, selectorTotal, dimensions, perLabel):: { - local errExpr = 'sum by (%s, %s) (rate(%s[$interval]))' % [dimensions, perLabel, selectorErr], - local totalExpr = 'sum by (%s) (rate(%s[$interval]))' % [dimensions, selectorTotal], - - aliasColors: { - 'error': '#E24D42', - }, - targets: [ - { - expr: '%s / ignoring (%s) group_left() %s' % [errExpr, perLabel, totalExpr], - format: 'time_series', - intervalFactor: 2, - step: 10, - }, - ], - yaxes: $.yaxes({ format: 'percentunit' }), - } + $.stack, - - qpsErrTotalPanel(selectorErr, selectorTotal, dimensions):: { - local expr(selector) = 'sum by (%s) (rate(%s[$interval]))' % [dimensions, selector], - - aliasColors: { - 'error': '#E24D42', - }, - targets: [ - { - expr: '%s / %s' % [expr(selectorErr), expr(selectorTotal)], - format: 'time_series', - intervalFactor: 2, - legendFormat: 'error', - step: 10, - }, - ], - yaxes: $.yaxes({ format: 'percentunit' }), - } + $.stack, - - qpsSuccErrRatePanel(selectorErr, selectorTotal, dimensions):: { - local expr(selector) = 'sum by (%s) (rate(%s[$interval]))' % [dimensions, selector], - - aliasColors: { - success: '#7EB26D', - 'error': '#E24D42', - }, - targets: [ - { - expr: '%s / %s' % [expr(selectorErr), expr(selectorTotal)], - format: 'time_series', - intervalFactor: 2, - legendFormat: 'error', - step: 10, - }, - { - expr: '(%s - %s) / %s' % [expr(selectorTotal), expr(selectorErr), expr(selectorTotal)], - format: 'time_series', - intervalFactor: 2, - legendFormat: 'success', - step: 10, - }, - ], - yaxes: $.yaxes({ format: 'percentunit', max: 1 }), - } + $.stack, - - resourceUtilizationRow(selector, dimensions):: - $.row('Resources') - .addPanel( - $.panel('Memory Used') + - $.queryPanel( - [ - 'go_memstats_alloc_bytes{%s}' % selector, - 'go_memstats_heap_alloc_bytes{%s}' % selector, - 'rate(go_memstats_alloc_bytes_total{%s}[30s])' % selector, - 'rate(go_memstats_heap_alloc_bytes{%s}[30s])' % selector, - 'go_memstats_stack_inuse_bytes{%s}' % selector, - 'go_memstats_heap_inuse_bytes{%s}' % selector, - ], - [ - 'alloc all {{instance}}', - 'alloc heap {{instance}}', - 'alloc rate all {{instance}}', - 'alloc rate heap {{instance}}', - 'inuse heap {{instance}}', - 'inuse stack {{instance}}', - ] - ) + - { yaxes: $.yaxes('bytes') }, - ) - .addPanel( - $.panel('Goroutines') + - $.queryPanel( - 'go_goroutines{%s}' % selector, - '{{instance}}' - ) - ) - .addPanel( - $.panel('GC Time Quantiles') + - $.queryPanel( - 'go_gc_duration_seconds{%s}' % selector, - '{{quantile}} {{instance}}' - ) - ) + - $.collapse, -} + -(import 'grpc.libsonnet') + -(import 'http.libsonnet') + -(import 'slo.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/grpc.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/grpc.libsonnet deleted file mode 100644 index 62d1ae0d4..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/grpc.libsonnet +++ /dev/null @@ -1,46 +0,0 @@ -local utils = import '../utils.libsonnet'; - -{ - grpcRequestsPanel(metric, selector, dimensions):: { - local aggregatedLabels = std.split(dimensions, ','), - local dimensionsTemplate = std.join(' ', ['{{%s}}' % std.stripChars(label, ' ') for label in aggregatedLabels]), - - seriesOverrides: [ - { alias: '/Aborted/', color: '#EAB839' }, - { alias: '/AlreadyExists/', color: '#37872D' }, - { alias: '/FailedPrecondition/', color: '#E0B400' }, - { alias: '/Unimplemented/', color: '#E0B400' }, - { alias: '/InvalidArgument/', color: '#1F60C4' }, - { alias: '/NotFound/', color: '#1F60C4' }, - { alias: '/PermissionDenied/', color: '#1F60C4' }, - { alias: '/Unauthenticated/', color: '#1F60C4' }, - { alias: '/Canceled/', color: '#C4162A' }, - { alias: '/DataLoss/', color: '#C4162A' }, - { alias: '/DeadlineExceeded/', color: '#C4162A' }, - { alias: '/Internal/', color: '#C4162A' }, - { alias: '/OutOfRange/', color: '#C4162A' }, - { alias: '/ResourceExhausted/', color: '#C4162A' }, - { alias: '/Unavailable/', color: '#C4162A' }, - { alias: '/Unknown/', color: '#C4162A' }, - { alias: '/OK/', color: '#37872D' }, - { alias: 'error', color: '#C4162A' }, - ], - targets: [ - { - expr: 'sum by (%s) (rate(%s{%s}[$interval]))' % [utils.joinLabels(aggregatedLabels + ['grpc_method', 'grpc_code']), metric, selector], - format: 'time_series', - intervalFactor: 2, - legendFormat: dimensionsTemplate + ' {{grpc_method}} {{grpc_code}}', - step: 10, - }, - ], - } + $.stack, - - grpcErrorsPanel(metric, selector, dimensions):: - $.qpsErrTotalPerLabelPanel( - '%s{grpc_code=~"Unknown|ResourceExhausted|Internal|Unavailable|DataLoss",%s}' % [metric, selector], - '%s{%s}' % [metric, selector], - dimensions, - 'grpc_code', - ), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/http.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/http.libsonnet deleted file mode 100644 index f3554411f..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/http.libsonnet +++ /dev/null @@ -1,34 +0,0 @@ -local utils = import '../utils.libsonnet'; - -{ - httpQpsPanel(metric, selector, dimensions):: { - local aggregatedLabels = std.split(dimensions, ','), - local dimensionsTemplate = std.join(' ', ['{{%s}}' % std.stripChars(label, ' ') for label in aggregatedLabels]), - - seriesOverrides: [ - { alias: '/1../', color: '#EAB839' }, - { alias: '/2../', color: '#37872D' }, - { alias: '/3../', color: '#E0B400' }, - { alias: '/4../', color: '#1F60C4' }, - { alias: '/5../', color: '#C4162A' }, - ], - - targets: [ - { - expr: 'sum by (%s) (rate(%s{%s}[$interval]))' % [utils.joinLabels(aggregatedLabels + ['handler', 'code']), metric, selector], - format: 'time_series', - intervalFactor: 2, - legendFormat: dimensionsTemplate + ' {{handler}} {{code}}', - step: 10, - }, - ], - } + $.stack, - - httpErrPanel(metric, selector, dimensions):: - $.qpsErrTotalPerLabelPanel( - '%s{%s,code=~"5.."}' % [metric, selector], - '%s{%s}' % [metric, selector], - dimensions, - 'code', - ), -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/slo.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/slo.libsonnet deleted file mode 100644 index 80acca3cf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/thanos-grafana-builder/slo.libsonnet +++ /dev/null @@ -1,34 +0,0 @@ -local utils = import '../utils.libsonnet'; - -{ - sloLatency(title, description, selector, dimensions, quantile, warning, critical):: - local aggregatedLabels = std.split(dimensions, ','); - local dimensionsTemplate = std.join(' ', ['{{%s}}' % std.stripChars(label, ' ') for label in aggregatedLabels]); - - $.panel(title, description) + - $.queryPanel( - 'histogram_quantile(%.2f, sum by (%s) (rate(%s[$interval])))' % [quantile, utils.joinLabels(aggregatedLabels + ['le']), selector], - dimensionsTemplate + ' P' + quantile * 100 - ) + - { - yaxes: $.yaxes('s'), - thresholds+: [ - { - value: warning, - colorMode: 'warning', - op: 'gt', - fill: true, - line: true, - yaxis: 'left', - }, - { - value: critical, - colorMode: 'critical', - op: 'gt', - fill: true, - line: true, - yaxis: 'left', - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/utils.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/utils.libsonnet deleted file mode 100644 index c791a4f9c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/lib/utils.libsonnet +++ /dev/null @@ -1,32 +0,0 @@ -{ - mapRuleGroups(f): { - groups: [ - group { - rules: [ - f(rule) - for rule in super.rules - ], - } - for group in super.groups - ], - }, - - joinLabels(labels): std.join(', ', std.filter(function(x) std.length(std.stripChars(x, ' ')) > 0, labels)), - - firstCharUppercase(parts): std.join( - '', - [ - std.join( - '', - [std.asciiUpper(std.stringChars(part)[0]), std.substr(part, 1, std.length(part) - 1)] - ) - for part in parts[1:std.length(parts)] - ] - ), - - toCamelCase(parts): std.join('', [parts[0], self.firstCharUppercase(parts)]), - - componentParts(name): std.split(name, '-'), - - sanitizeComponentName(name): if std.length(self.componentParts(name)) > 1 then self.toCamelCase(self.componentParts(name)) else name, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/mixin.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/mixin.libsonnet deleted file mode 100644 index 8aa275ccb..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/mixin.libsonnet +++ /dev/null @@ -1,4 +0,0 @@ -(import 'dashboards/dashboards.libsonnet') + -(import 'alerts/alerts.libsonnet') + -(import 'rules/rules.libsonnet') + -(import 'config.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules.jsonnet deleted file mode 100644 index 1c9271ab7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules.jsonnet +++ /dev/null @@ -1,3 +0,0 @@ -( - import 'mixin.libsonnet' -).prometheusRules diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/bucket-replicate.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/bucket-replicate.libsonnet deleted file mode 100644 index c05826a3d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/bucket-replicate.libsonnet +++ /dev/null @@ -1,14 +0,0 @@ -{ - local thanos = self, - bucketReplicate+:: { - selector: error 'must provide selector for Thanos Bucket Replicate dashboard', - }, - prometheusRules+:: { - groups+: if thanos.bucketReplicate == null then [] else [ - { - name: 'thanos-bucket-replicate.rules', - rules: [], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/query.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/query.libsonnet deleted file mode 100644 index 81865520c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/query.libsonnet +++ /dev/null @@ -1,68 +0,0 @@ -{ - local thanos = self, - query+:: { - selector: error 'must provide selector for Thanos Query recording rules', - dimensions: std.join(', ', std.objectFields(thanos.targetGroups) + ['job']), - }, - prometheusRules+:: { - groups+: if thanos.query == null then [] else [ - { - name: 'thanos-query.rules', - rules: [ - { - record: ':grpc_client_failures_per_unary:sum_rate', - expr: ||| - ( - sum by (%(dimensions)s) (rate(grpc_client_handled_total{grpc_code=~"Unknown|ResourceExhausted|Internal|Unavailable|DataLoss|DeadlineExceeded", %(selector)s, grpc_type="unary"}[5m])) - / - sum by (%(dimensions)s) (rate(grpc_client_started_total{%(selector)s, grpc_type="unary"}[5m])) - ) - ||| % thanos.query, - }, - { - record: ':grpc_client_failures_per_stream:sum_rate', - expr: ||| - ( - sum by (%(dimensions)s) (rate(grpc_client_handled_total{grpc_code=~"Unknown|ResourceExhausted|Internal|Unavailable|DataLoss|DeadlineExceeded", %(selector)s, grpc_type="server_stream"}[5m])) - / - sum by (%(dimensions)s) (rate(grpc_client_started_total{%(selector)s, grpc_type="server_stream"}[5m])) - ) - ||| % thanos.query, - }, - { - record: ':thanos_query_store_apis_dns_failures_per_lookup:sum_rate', - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_query_store_apis_dns_failures_total{%(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_query_store_apis_dns_lookups_total{%(selector)s}[5m])) - ) - ||| % thanos.query, - }, - { - record: ':query_duration_seconds:histogram_quantile', - expr: ||| - histogram_quantile(0.99, - sum by (%(dimensions)s, le) (rate(http_request_duration_seconds_bucket{%(selector)s, handler="query"}[5m])) - ) - ||| % thanos.query, - labels: { - quantile: '0.99', - }, - }, - { - record: ':api_range_query_duration_seconds:histogram_quantile', - expr: ||| - histogram_quantile(0.99, - sum by (%(dimensions)s, le) (rate(http_request_duration_seconds_bucket{%(selector)s, handler="query_range"}[5m])) - ) - ||| % thanos.query, - labels: { - quantile: '0.99', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/receive.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/receive.libsonnet deleted file mode 100644 index 8ae75d9b8..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/receive.libsonnet +++ /dev/null @@ -1,87 +0,0 @@ -{ - local thanos = self, - receive+:: { - selector: error 'must provide selector for Thanos Receive recording rules', - dimensions: std.join(', ', std.objectFields(thanos.targetGroups) + ['job']), - }, - prometheusRules+:: { - groups+: if thanos.receive == null then [] else [ - { - name: 'thanos-receive.rules', - rules: [ - { - record: ':thanos_query_receive_grpc_server_failures_per_unary:sum_rate', - expr: ||| - ( - sum by (%(dimensions)s) (rate(grpc_server_handled_total{grpc_code=~"Unknown|ResourceExhausted|Internal|Unavailable|DataLoss|DeadlineExceeded", %(selector)s, grpc_type="unary"}[5m])) - / - sum by (%(dimensions)s) (rate(grpc_server_started_total{%(selector)s, grpc_type="unary"}[5m])) - ) - ||| % thanos.receive, - }, - { - record: ':thanos_query_receive_grpc_server_failures_per_stream:sum_rate', - expr: ||| - ( - sum by (%(dimensions)s) (rate(grpc_server_handled_total{grpc_code=~"Unknown|ResourceExhausted|Internal|Unavailable|DataLoss|DeadlineExceeded", %(selector)s, grpc_type="server_stream"}[5m])) - / - sum by (%(dimensions)s) (rate(grpc_server_started_total{%(selector)s, grpc_type="server_stream"}[5m])) - ) - ||| % thanos.receive, - }, - { - record: ':http_failure_per_request:sum_rate', - expr: ||| - ( - sum by (%(dimensions)s) (rate(http_requests_total{handler="receive", %(selector)s, code!~"5.."}[5m])) - / - sum by (%(dimensions)s) (rate(http_requests_total{handler="receive", %(selector)s}[5m])) - ) - ||| % thanos.receive, - }, - { - record: ':http_request_duration_seconds:histogram_quantile', - expr: ||| - histogram_quantile(0.99, - sum by (%(dimensions)s, le) (rate(http_request_duration_seconds_bucket{handler="receive", %(selector)s}[5m])) - ) - ||| % thanos.receive, - labels: { - quantile: '0.99', - }, - }, - { - record: ':thanos_receive_replication_failure_per_requests:sum_rate', - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_receive_replications_total{result="error", %(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_receive_replications_total{%(selector)s}[5m])) - ) - ||| % thanos.receive, - }, - { - record: ':thanos_receive_forward_failure_per_requests:sum_rate', - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_receive_forward_requests_total{result="error", %(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_receive_forward_requests_total{%(selector)s}[5m])) - ) - ||| % thanos.receive, - }, - { - record: ':thanos_receive_hashring_file_failure_per_refresh:sum_rate', - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_receive_hashrings_file_errors_total{%(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_receive_hashrings_file_refreshes_total{%(selector)s}[5m])) - ) - ||| % thanos.receive, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/rules.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/rules.libsonnet deleted file mode 100644 index c1723eeb2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/rules.libsonnet +++ /dev/null @@ -1,4 +0,0 @@ -(import 'query.libsonnet') + -(import 'receive.libsonnet') + -(import 'store.libsonnet') + -(import 'bucket-replicate.libsonnet') diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/store.libsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/store.libsonnet deleted file mode 100644 index cfef97dd3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/rules/store.libsonnet +++ /dev/null @@ -1,57 +0,0 @@ -{ - local thanos = self, - store+:: { - selector: error 'must provide selector for Thanos Store recording rules', - dimensions: std.join(', ', std.objectFields(thanos.targetGroups) + ['job']), - }, - prometheusRules+:: { - groups+: if thanos.store == null then [] else [ - { - name: 'thanos-store.rules', - rules: [ - { - record: ':thanos_query_store_grpc_server_failures_per_unary:sum_rate', - expr: ||| - ( - sum by (%(dimensions)s) (rate(grpc_server_handled_total{grpc_code=~"Unknown|Internal|Unavailable|DataLoss|DeadlineExceeded", %(selector)s, grpc_type="unary"}[5m])) - / - sum by (%(dimensions)s) (rate(grpc_server_started_total{%(selector)s, grpc_type="unary"}[5m])) - ) - ||| % thanos.store, - }, - { - record: ':thanos_query_store_grpc_server_failures_per_stream:sum_rate', - expr: ||| - ( - sum by (%(dimensions)s) (rate(grpc_server_handled_total{grpc_code=~"Unknown|Internal|Unavailable|DataLoss|DeadlineExceeded", %(selector)s, grpc_type="server_stream"}[5m])) - / - sum by (%(dimensions)s) (rate(grpc_server_started_total{%(selector)s, grpc_type="server_stream"}[5m])) - ) - ||| % thanos.store, - }, - { - record: ':thanos_objstore_bucket_failures_per_operation:sum_rate', - expr: ||| - ( - sum by (%(dimensions)s) (rate(thanos_objstore_bucket_operation_failures_total{%(selector)s}[5m])) - / - sum by (%(dimensions)s) (rate(thanos_objstore_bucket_operations_total{%(selector)s}[5m])) - ) - ||| % thanos.store, - }, - { - record: ':thanos_objstore_bucket_operation_duration_seconds:histogram_quantile', - expr: ||| - histogram_quantile(0.99, - sum by (%(dimensions)s, le) (rate(thanos_objstore_bucket_operation_duration_seconds_bucket{%(selector)s}[5m])) - ) - ||| % thanos.store, - labels: { - quantile: '0.99', - }, - }, - ], - }, - ], - }, -} diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/runbook.md b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/runbook.md deleted file mode 100755 index 38b72eb80..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/runbook.md +++ /dev/null @@ -1,100 +0,0 @@ -# Alerts - -## Rule Groups - -* [thanos-bucket-replicate](#thanos-bucket-replicate) -* [thanos-compact](#thanos-compact) -* [thanos-component-absent](#thanos-component-absent) -* [thanos-query](#thanos-query) -* [thanos-receive](#thanos-receive) -* [thanos-rule](#thanos-rule) -* [thanos-sidecar](#thanos-sidecar) -* [thanos-store](#thanos-store) - -## thanos-bucket-replicate - -|Name|Summary|Description|Severity|Runbook| -|---|---|---|---|---| -|ThanosBucketReplicateErrorRate|Thanos Replicate is failing to run.|Thanos Replicate is failing to run, {{$value humanize}}% of attempts failed.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosbucketreplicateerrorrate](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosbucketreplicateerrorrate)| -|ThanosBucketReplicateRunLatency|Thanos Replicate has a high latency for replicate operations.|Thanos Replicate {{$labels.job}} has a 99th percentile latency of {{$value}} seconds for the replicate operations.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosbucketreplicaterunlatency](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosbucketreplicaterunlatency)| - -## thanos-compact - -|Name|Summary|Description|Severity|Runbook| -|---|---|---|---|---| -|ThanosCompactMultipleRunning|Thanos Compact has multiple instances running.|No more than one Thanos Compact instance should be running at once. There are {{$value}} instances running.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanoscompactmultiplerunning](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanoscompactmultiplerunning)| -|ThanosCompactHalted|Thanos Compact has failed to run and is now halted.|Thanos Compact {{$labels.job}} has failed to run and now is halted.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanoscompacthalted](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanoscompacthalted)| -|ThanosCompactHighCompactionFailures|Thanos Compact is failing to execute compactions.|Thanos Compact {{$labels.job}} is failing to execute {{$value humanize}}% of compactions.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanoscompacthighcompactionfailures](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanoscompacthighcompactionfailures)| -|ThanosCompactBucketHighOperationFailures|Thanos Compact Bucket is having a high number of operation failures.|Thanos Compact {{$labels.job}} Bucket is failing to execute {{$value humanize}}% of operations.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanoscompactbuckethighoperationfailures](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanoscompactbuckethighoperationfailures)| -|ThanosCompactHasNotRun|Thanos Compact has not uploaded anything for last 24 hours.|Thanos Compact {{$labels.job}} has not uploaded anything for 24 hours.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanoscompacthasnotrun](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanoscompacthasnotrun)| - -## thanos-component-absent - -|Name|Summary|Description|Severity|Runbook| -|---|---|---|---|---| -|ThanosCompactIsDown|Thanos component has disappeared.|ThanosCompact has disappeared. Prometheus target for the component cannot be discovered.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanoscompactisdown](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanoscompactisdown)| -|ThanosQueryIsDown|Thanos component has disappeared.|ThanosQuery has disappeared. Prometheus target for the component cannot be discovered.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryisdown](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryisdown)| -|ThanosReceiveIsDown|Thanos component has disappeared.|ThanosReceive has disappeared. Prometheus target for the component cannot be discovered.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceiveisdown](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceiveisdown)| -|ThanosRuleIsDown|Thanos component has disappeared.|ThanosRule has disappeared. Prometheus target for the component cannot be discovered.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosruleisdown](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosruleisdown)| -|ThanosSidecarIsDown|Thanos component has disappeared.|ThanosSidecar has disappeared. Prometheus target for the component cannot be discovered.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarisdown](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarisdown)| -|ThanosStoreIsDown|Thanos component has disappeared.|ThanosStore has disappeared. Prometheus target for the component cannot be discovered.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosstoreisdown](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosstoreisdown)| - -## thanos-query - -|Name|Summary|Description|Severity|Runbook| -|---|---|---|---|---| -|ThanosQueryHttpRequestQueryErrorRateHigh|Thanos Query is failing to handle requests.|Thanos Query {{$labels.job}} is failing to handle {{$value humanize}}% of "query" requests.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryhttprequestqueryerrorratehigh](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryhttprequestqueryerrorratehigh)| -|ThanosQueryHttpRequestQueryRangeErrorRateHigh|Thanos Query is failing to handle requests.|Thanos Query {{$labels.job}} is failing to handle {{$value humanize}}% of "query_range" requests.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryhttprequestqueryrangeerrorratehigh](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryhttprequestqueryrangeerrorratehigh)| -|ThanosQueryGrpcServerErrorRate|Thanos Query is failing to handle requests.|Thanos Query {{$labels.job}} is failing to handle {{$value humanize}}% of requests.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosquerygrpcservererrorrate](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosquerygrpcservererrorrate)| -|ThanosQueryGrpcClientErrorRate|Thanos Query is failing to send requests.|Thanos Query {{$labels.job}} is failing to send {{$value humanize}}% of requests.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosquerygrpcclienterrorrate](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosquerygrpcclienterrorrate)| -|ThanosQueryHighDNSFailures|Thanos Query is having high number of DNS failures.|Thanos Query {{$labels.job}} have {{$value humanize}}% of failing DNS queries for store endpoints.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryhighdnsfailures](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryhighdnsfailures)| -|ThanosQueryInstantLatencyHigh|Thanos Query has high latency for queries.|Thanos Query {{$labels.job}} has a 99th percentile latency of {{$value}} seconds for instant queries.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryinstantlatencyhigh](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryinstantlatencyhigh)| -|ThanosQueryRangeLatencyHigh|Thanos Query has high latency for queries.|Thanos Query {{$labels.job}} has a 99th percentile latency of {{$value}} seconds for range queries.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryrangelatencyhigh](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryrangelatencyhigh)| -|ThanosQueryOverload|Thanos query reaches its maximum capacity serving concurrent requests.|Thanos Query {{$labels.job}} has been overloaded for more than 15 minutes. This may be a symptom of excessive simultaneous complex requests, low performance of the Prometheus API, or failures within these components. Assess the health of the Thanos query instances, the connected Prometheus instances, look for potential senders of these requests and then contact support.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryoverload](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosqueryoverload)| - -## thanos-receive - -|Name|Summary|Description|Severity|Runbook| -|---|---|---|---|---| -|ThanosReceiveHttpRequestErrorRateHigh|Thanos Receive is failing to handle requests.|Thanos Receive {{$labels.job}} is failing to handle {{$value humanize}}% of requests.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivehttprequesterrorratehigh](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivehttprequesterrorratehigh)| -|ThanosReceiveHttpRequestLatencyHigh|Thanos Receive has high HTTP requests latency.|Thanos Receive {{$labels.job}} has a 99th percentile latency of {{ $value }} seconds for requests.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivehttprequestlatencyhigh](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivehttprequestlatencyhigh)| -|ThanosReceiveHighReplicationFailures|Thanos Receive is having high number of replication failures.|Thanos Receive {{$labels.job}} is failing to replicate {{$value humanize}}% of requests.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivehighreplicationfailures](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivehighreplicationfailures)| -|ThanosReceiveHighForwardRequestFailures|Thanos Receive is failing to forward requests.|Thanos Receive {{$labels.job}} is failing to forward {{$value humanize}}% of requests.|info|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivehighforwardrequestfailures](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivehighforwardrequestfailures)| -|ThanosReceiveHighHashringFileRefreshFailures|Thanos Receive is failing to refresh hasring file.|Thanos Receive {{$labels.job}} is failing to refresh hashring file, {{$value humanize}} of attempts failed.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivehighhashringfilerefreshfailures](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivehighhashringfilerefreshfailures)| -|ThanosReceiveConfigReloadFailure|Thanos Receive has not been able to reload configuration.|Thanos Receive {{$labels.job}} has not been able to reload hashring configurations.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceiveconfigreloadfailure](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceiveconfigreloadfailure)| -|ThanosReceiveNoUpload|Thanos Receive has not uploaded latest data to object storage.|Thanos Receive {{$labels.instance}} has not uploaded latest data to object storage.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivenoupload](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivenoupload)| -|ThanosReceiveLimitsConfigReloadFailure|Thanos Receive has not been able to reload the limits configuration.|Thanos Receive {{$labels.job}} has not been able to reload the limits configuration.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivelimitsconfigreloadfailure](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivelimitsconfigreloadfailure)| -|ThanosReceiveLimitsHighMetaMonitoringQueriesFailureRate|Thanos Receive has not been able to update the number of head series.|Thanos Receive {{$labels.job}} is failing for {{$value humanize}}% of meta monitoring queries.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivelimitshighmetamonitoringqueriesfailurerate](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivelimitshighmetamonitoringqueriesfailurerate)| -|ThanosReceiveTenantLimitedByHeadSeries|A Thanos Receive tenant is limited by head series.|Thanos Receive tenant {{$labels.tenant}} is limited by head series.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivetenantlimitedbyheadseries](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosreceivetenantlimitedbyheadseries)| - -## thanos-rule - -|Name|Summary|Description|Severity|Runbook| -|---|---|---|---|---| -|ThanosRuleQueueIsDroppingAlerts|Thanos Rule is failing to queue alerts.|Thanos Rule {{$labels.instance}} is failing to queue alerts.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulequeueisdroppingalerts](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulequeueisdroppingalerts)| -|ThanosRuleSenderIsFailingAlerts|Thanos Rule is failing to send alerts to alertmanager.|Thanos Rule {{$labels.instance}} is failing to send alerts to alertmanager.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulesenderisfailingalerts](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulesenderisfailingalerts)| -|ThanosRuleHighRuleEvaluationFailures|Thanos Rule is failing to evaluate rules.|Thanos Rule {{$labels.instance}} is failing to evaluate rules.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulehighruleevaluationfailures](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulehighruleevaluationfailures)| -|ThanosRuleHighRuleEvaluationWarnings|Thanos Rule has high number of evaluation warnings.|Thanos Rule {{$labels.instance}} has high number of evaluation warnings.|info|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulehighruleevaluationwarnings](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulehighruleevaluationwarnings)| -|ThanosRuleRuleEvaluationLatencyHigh|Thanos Rule has high rule evaluation latency.|Thanos Rule {{$labels.instance}} has higher evaluation latency than interval for {{$labels.rule_group}}.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosruleruleevaluationlatencyhigh](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosruleruleevaluationlatencyhigh)| -|ThanosRuleGrpcErrorRate|Thanos Rule is failing to handle grpc requests.|Thanos Rule {{$labels.job}} is failing to handle {{$value humanize}}% of requests.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulegrpcerrorrate](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulegrpcerrorrate)| -|ThanosRuleConfigReloadFailure|Thanos Rule has not been able to reload configuration.|Thanos Rule {{$labels.job}} has not been able to reload its configuration.|info|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosruleconfigreloadfailure](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosruleconfigreloadfailure)| -|ThanosRuleQueryHighDNSFailures|Thanos Rule is having high number of DNS failures.|Thanos Rule {{$labels.job}} has {{$value humanize}}% of failing DNS queries for query endpoints.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulequeryhighdnsfailures](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulequeryhighdnsfailures)| -|ThanosRuleAlertmanagerHighDNSFailures|Thanos Rule is having high number of DNS failures.|Thanos Rule {{$labels.instance}} has {{$value humanize}}% of failing DNS queries for Alertmanager endpoints.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulealertmanagerhighdnsfailures](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulealertmanagerhighdnsfailures)| -|ThanosRuleNoEvaluationFor10Intervals|Thanos Rule has rule groups that did not evaluate for 10 intervals.|Thanos Rule {{$labels.job}} has rule groups that did not evaluate for at least 10x of their expected interval.|info|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulenoevaluationfor10intervals](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosrulenoevaluationfor10intervals)| -|ThanosNoRuleEvaluations|Thanos Rule did not perform any rule evaluations.|Thanos Rule {{$labels.instance}} did not perform any rule evaluations in the past 10 minutes.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosnoruleevaluations](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosnoruleevaluations)| - -## thanos-sidecar - -|Name|Summary|Description|Severity|Runbook| -|---|---|---|---|---| -|ThanosSidecarBucketOperationsFailed|Thanos Sidecar bucket operations are failing|Thanos Sidecar {{$labels.instance}} bucket operations are failing|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarbucketoperationsfailed](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarbucketoperationsfailed)| -|ThanosSidecarNoConnectionToStartedPrometheus|Thanos Sidecar cannot access Prometheus, even though Prometheus seems healthy and has reloaded WAL.|Thanos Sidecar {{$labels.instance}} is unhealthy.|critical|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarnoconnectiontostartedprometheus](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanossidecarnoconnectiontostartedprometheus)| - -## thanos-store - -|Name|Summary|Description|Severity|Runbook| -|---|---|---|---|---| -|ThanosStoreGrpcErrorRate|Thanos Store is failing to handle gRPC requests.|Thanos Store {{$labels.job}} is failing to handle {{$value humanize}}% of requests.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosstoregrpcerrorrate](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosstoregrpcerrorrate)| -|ThanosStoreSeriesGateLatencyHigh|Thanos Store has high latency for store series gate requests.|Thanos Store {{$labels.job}} has a 99th percentile latency of {{$value}} seconds for store series gate requests.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosstoreseriesgatelatencyhigh](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosstoreseriesgatelatencyhigh)| -|ThanosStoreBucketHighOperationFailures|Thanos Store Bucket is failing to execute operations.|Thanos Store {{$labels.job}} Bucket is failing to execute {{$value humanize}}% of operations.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosstorebuckethighoperationfailures](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosstorebuckethighoperationfailures)| -|ThanosStoreObjstoreOperationLatencyHigh|Thanos Store is having high latency for bucket operations.|Thanos Store {{$labels.job}} Bucket has a 99th percentile latency of {{$value}} seconds for the bucket operations.|warning|[https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosstoreobjstoreoperationlatencyhigh](https://github.com/thanos-io/thanos/tree/main/mixin/runbook.md#alert-name-thanosstoreobjstoreoperationlatencyhigh)| diff --git a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/separated-alerts.jsonnet b/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/separated-alerts.jsonnet deleted file mode 100644 index 329a427bf..000000000 --- a/build/kube-prometheus/libraries/main/vendor/github.com/thanos-io/thanos/mixin/separated-alerts.jsonnet +++ /dev/null @@ -1,7 +0,0 @@ -{ - [group.name]: group - for group in - ( - import 'mixin.libsonnet' - ).prometheusAlerts.groups -} diff --git a/build/kube-prometheus/libraries/main/vendor/grafana b/build/kube-prometheus/libraries/main/vendor/grafana deleted file mode 120000 index 38153c647..000000000 --- a/build/kube-prometheus/libraries/main/vendor/grafana +++ /dev/null @@ -1 +0,0 @@ -github.com/brancz/kubernetes-grafana/grafana \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/grafana-builder b/build/kube-prometheus/libraries/main/vendor/grafana-builder deleted file mode 120000 index cfa90ddb0..000000000 --- a/build/kube-prometheus/libraries/main/vendor/grafana-builder +++ /dev/null @@ -1 +0,0 @@ -github.com/grafana/jsonnet-libs/grafana-builder \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/grafana-mixin b/build/kube-prometheus/libraries/main/vendor/grafana-mixin deleted file mode 120000 index 257be40d7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/grafana-mixin +++ /dev/null @@ -1 +0,0 @@ -github.com/grafana/grafana/grafana-mixin \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/grafonnet b/build/kube-prometheus/libraries/main/vendor/grafonnet deleted file mode 120000 index fd2d163fc..000000000 --- a/build/kube-prometheus/libraries/main/vendor/grafonnet +++ /dev/null @@ -1 +0,0 @@ -github.com/grafana/grafonnet-lib/grafonnet \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/grafonnet-7.0 b/build/kube-prometheus/libraries/main/vendor/grafonnet-7.0 deleted file mode 120000 index 5e7fee674..000000000 --- a/build/kube-prometheus/libraries/main/vendor/grafonnet-7.0 +++ /dev/null @@ -1 +0,0 @@ -github.com/grafana/grafonnet-lib/grafonnet-7.0 \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/grafonnet-latest b/build/kube-prometheus/libraries/main/vendor/grafonnet-latest deleted file mode 120000 index 803696fd9..000000000 --- a/build/kube-prometheus/libraries/main/vendor/grafonnet-latest +++ /dev/null @@ -1 +0,0 @@ -github.com/grafana/grafonnet/gen/grafonnet-latest \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/grafonnet-v10.0.0 b/build/kube-prometheus/libraries/main/vendor/grafonnet-v10.0.0 deleted file mode 120000 index 3749c7b1c..000000000 --- a/build/kube-prometheus/libraries/main/vendor/grafonnet-v10.0.0 +++ /dev/null @@ -1 +0,0 @@ -github.com/grafana/grafonnet/gen/grafonnet-v10.0.0 \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/grafonnet-v11.0.0 b/build/kube-prometheus/libraries/main/vendor/grafonnet-v11.0.0 deleted file mode 120000 index 9ba06e230..000000000 --- a/build/kube-prometheus/libraries/main/vendor/grafonnet-v11.0.0 +++ /dev/null @@ -1 +0,0 @@ -github.com/grafana/grafonnet/gen/grafonnet-v11.0.0 \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/kube-prometheus b/build/kube-prometheus/libraries/main/vendor/kube-prometheus deleted file mode 120000 index f33b9de94..000000000 --- a/build/kube-prometheus/libraries/main/vendor/kube-prometheus +++ /dev/null @@ -1 +0,0 @@ -github.com/prometheus-operator/kube-prometheus/jsonnet/kube-prometheus \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/kube-state-metrics b/build/kube-prometheus/libraries/main/vendor/kube-state-metrics deleted file mode 120000 index 3f7df5eef..000000000 --- a/build/kube-prometheus/libraries/main/vendor/kube-state-metrics +++ /dev/null @@ -1 +0,0 @@ -github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/kube-state-metrics-mixin b/build/kube-prometheus/libraries/main/vendor/kube-state-metrics-mixin deleted file mode 120000 index 5329c150a..000000000 --- a/build/kube-prometheus/libraries/main/vendor/kube-state-metrics-mixin +++ /dev/null @@ -1 +0,0 @@ -github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/kubernetes-mixin b/build/kube-prometheus/libraries/main/vendor/kubernetes-mixin deleted file mode 120000 index cd2bed46b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/kubernetes-mixin +++ /dev/null @@ -1 +0,0 @@ -github.com/kubernetes-monitoring/kubernetes-mixin \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/mixin b/build/kube-prometheus/libraries/main/vendor/mixin deleted file mode 120000 index 2fca89894..000000000 --- a/build/kube-prometheus/libraries/main/vendor/mixin +++ /dev/null @@ -1 +0,0 @@ -github.com/etcd-io/etcd/contrib/mixin \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/node-mixin b/build/kube-prometheus/libraries/main/vendor/node-mixin deleted file mode 120000 index 877dfdbb2..000000000 --- a/build/kube-prometheus/libraries/main/vendor/node-mixin +++ /dev/null @@ -1 +0,0 @@ -github.com/prometheus/node_exporter/docs/node-mixin \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/prometheus b/build/kube-prometheus/libraries/main/vendor/prometheus deleted file mode 120000 index 1ecfd0b3b..000000000 --- a/build/kube-prometheus/libraries/main/vendor/prometheus +++ /dev/null @@ -1 +0,0 @@ -github.com/prometheus/prometheus/documentation/prometheus-mixin \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/prometheus-operator b/build/kube-prometheus/libraries/main/vendor/prometheus-operator deleted file mode 120000 index b425b2036..000000000 --- a/build/kube-prometheus/libraries/main/vendor/prometheus-operator +++ /dev/null @@ -1 +0,0 @@ -github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/prometheus-operator-mixin b/build/kube-prometheus/libraries/main/vendor/prometheus-operator-mixin deleted file mode 120000 index b78ed5a8d..000000000 --- a/build/kube-prometheus/libraries/main/vendor/prometheus-operator-mixin +++ /dev/null @@ -1 +0,0 @@ -github.com/prometheus-operator/prometheus-operator/jsonnet/mixin \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/pyrra b/build/kube-prometheus/libraries/main/vendor/pyrra deleted file mode 120000 index 8e97768e3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/pyrra +++ /dev/null @@ -1 +0,0 @@ -github.com/pyrra-dev/pyrra/config/crd/bases \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/thanos-mixin b/build/kube-prometheus/libraries/main/vendor/thanos-mixin deleted file mode 120000 index 17b674aa7..000000000 --- a/build/kube-prometheus/libraries/main/vendor/thanos-mixin +++ /dev/null @@ -1 +0,0 @@ -github.com/thanos-io/thanos/mixin \ No newline at end of file diff --git a/build/kube-prometheus/libraries/main/vendor/xtd b/build/kube-prometheus/libraries/main/vendor/xtd deleted file mode 120000 index 68b106aa3..000000000 --- a/build/kube-prometheus/libraries/main/vendor/xtd +++ /dev/null @@ -1 +0,0 @@ -github.com/jsonnet-libs/xtd \ No newline at end of file